modal 1.0.6.dev58__py3-none-any.whl → 1.2.3.dev7__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 modal might be problematic. Click here for more details.

Files changed (147) hide show
  1. modal/__main__.py +3 -4
  2. modal/_billing.py +80 -0
  3. modal/_clustered_functions.py +7 -3
  4. modal/_clustered_functions.pyi +4 -2
  5. modal/_container_entrypoint.py +41 -49
  6. modal/_functions.py +424 -195
  7. modal/_grpc_client.py +171 -0
  8. modal/_load_context.py +105 -0
  9. modal/_object.py +68 -20
  10. modal/_output.py +58 -45
  11. modal/_partial_function.py +36 -11
  12. modal/_pty.py +7 -3
  13. modal/_resolver.py +21 -35
  14. modal/_runtime/asgi.py +4 -3
  15. modal/_runtime/container_io_manager.py +301 -186
  16. modal/_runtime/container_io_manager.pyi +70 -61
  17. modal/_runtime/execution_context.py +18 -2
  18. modal/_runtime/execution_context.pyi +4 -1
  19. modal/_runtime/gpu_memory_snapshot.py +170 -63
  20. modal/_runtime/user_code_imports.py +28 -58
  21. modal/_serialization.py +57 -1
  22. modal/_utils/async_utils.py +33 -12
  23. modal/_utils/auth_token_manager.py +2 -5
  24. modal/_utils/blob_utils.py +110 -53
  25. modal/_utils/function_utils.py +49 -42
  26. modal/_utils/grpc_utils.py +80 -50
  27. modal/_utils/mount_utils.py +26 -1
  28. modal/_utils/name_utils.py +17 -3
  29. modal/_utils/task_command_router_client.py +536 -0
  30. modal/_utils/time_utils.py +34 -6
  31. modal/app.py +219 -83
  32. modal/app.pyi +229 -56
  33. modal/billing.py +5 -0
  34. modal/{requirements → builder}/2025.06.txt +1 -0
  35. modal/{requirements → builder}/PREVIEW.txt +1 -0
  36. modal/cli/_download.py +19 -3
  37. modal/cli/_traceback.py +3 -2
  38. modal/cli/app.py +4 -4
  39. modal/cli/cluster.py +15 -7
  40. modal/cli/config.py +5 -3
  41. modal/cli/container.py +7 -6
  42. modal/cli/dict.py +22 -16
  43. modal/cli/entry_point.py +12 -5
  44. modal/cli/environment.py +5 -4
  45. modal/cli/import_refs.py +3 -3
  46. modal/cli/launch.py +102 -5
  47. modal/cli/network_file_system.py +9 -13
  48. modal/cli/profile.py +3 -2
  49. modal/cli/programs/launch_instance_ssh.py +94 -0
  50. modal/cli/programs/run_jupyter.py +1 -1
  51. modal/cli/programs/run_marimo.py +95 -0
  52. modal/cli/programs/vscode.py +1 -1
  53. modal/cli/queues.py +57 -26
  54. modal/cli/run.py +58 -16
  55. modal/cli/secret.py +48 -22
  56. modal/cli/utils.py +3 -4
  57. modal/cli/volume.py +28 -25
  58. modal/client.py +13 -116
  59. modal/client.pyi +9 -91
  60. modal/cloud_bucket_mount.py +5 -3
  61. modal/cloud_bucket_mount.pyi +5 -1
  62. modal/cls.py +130 -102
  63. modal/cls.pyi +45 -85
  64. modal/config.py +29 -10
  65. modal/container_process.py +291 -13
  66. modal/container_process.pyi +95 -32
  67. modal/dict.py +282 -63
  68. modal/dict.pyi +423 -73
  69. modal/environments.py +15 -27
  70. modal/environments.pyi +5 -15
  71. modal/exception.py +8 -0
  72. modal/experimental/__init__.py +143 -38
  73. modal/experimental/flash.py +247 -78
  74. modal/experimental/flash.pyi +137 -9
  75. modal/file_io.py +14 -28
  76. modal/file_io.pyi +2 -2
  77. modal/file_pattern_matcher.py +25 -16
  78. modal/functions.pyi +134 -61
  79. modal/image.py +255 -86
  80. modal/image.pyi +300 -62
  81. modal/io_streams.py +436 -126
  82. modal/io_streams.pyi +236 -171
  83. modal/mount.py +62 -157
  84. modal/mount.pyi +45 -172
  85. modal/network_file_system.py +30 -53
  86. modal/network_file_system.pyi +16 -76
  87. modal/object.pyi +42 -8
  88. modal/parallel_map.py +821 -113
  89. modal/parallel_map.pyi +134 -0
  90. modal/partial_function.pyi +4 -1
  91. modal/proxy.py +16 -7
  92. modal/proxy.pyi +10 -2
  93. modal/queue.py +263 -61
  94. modal/queue.pyi +409 -66
  95. modal/runner.py +112 -92
  96. modal/runner.pyi +45 -27
  97. modal/sandbox.py +451 -124
  98. modal/sandbox.pyi +513 -67
  99. modal/secret.py +291 -67
  100. modal/secret.pyi +425 -19
  101. modal/serving.py +7 -11
  102. modal/serving.pyi +7 -8
  103. modal/snapshot.py +11 -8
  104. modal/token_flow.py +4 -4
  105. modal/volume.py +344 -98
  106. modal/volume.pyi +464 -68
  107. {modal-1.0.6.dev58.dist-info → modal-1.2.3.dev7.dist-info}/METADATA +9 -8
  108. modal-1.2.3.dev7.dist-info/RECORD +195 -0
  109. modal_docs/mdmd/mdmd.py +11 -1
  110. modal_proto/api.proto +399 -67
  111. modal_proto/api_grpc.py +241 -1
  112. modal_proto/api_pb2.py +1395 -1000
  113. modal_proto/api_pb2.pyi +1239 -79
  114. modal_proto/api_pb2_grpc.py +499 -4
  115. modal_proto/api_pb2_grpc.pyi +162 -14
  116. modal_proto/modal_api_grpc.py +175 -160
  117. modal_proto/sandbox_router.proto +145 -0
  118. modal_proto/sandbox_router_grpc.py +105 -0
  119. modal_proto/sandbox_router_pb2.py +149 -0
  120. modal_proto/sandbox_router_pb2.pyi +333 -0
  121. modal_proto/sandbox_router_pb2_grpc.py +203 -0
  122. modal_proto/sandbox_router_pb2_grpc.pyi +75 -0
  123. modal_proto/task_command_router.proto +144 -0
  124. modal_proto/task_command_router_grpc.py +105 -0
  125. modal_proto/task_command_router_pb2.py +149 -0
  126. modal_proto/task_command_router_pb2.pyi +333 -0
  127. modal_proto/task_command_router_pb2_grpc.py +203 -0
  128. modal_proto/task_command_router_pb2_grpc.pyi +75 -0
  129. modal_version/__init__.py +1 -1
  130. modal-1.0.6.dev58.dist-info/RECORD +0 -183
  131. modal_proto/modal_options_grpc.py +0 -3
  132. modal_proto/options.proto +0 -19
  133. modal_proto/options_grpc.py +0 -3
  134. modal_proto/options_pb2.py +0 -35
  135. modal_proto/options_pb2.pyi +0 -20
  136. modal_proto/options_pb2_grpc.py +0 -4
  137. modal_proto/options_pb2_grpc.pyi +0 -7
  138. /modal/{requirements → builder}/2023.12.312.txt +0 -0
  139. /modal/{requirements → builder}/2023.12.txt +0 -0
  140. /modal/{requirements → builder}/2024.04.txt +0 -0
  141. /modal/{requirements → builder}/2024.10.txt +0 -0
  142. /modal/{requirements → builder}/README.md +0 -0
  143. /modal/{requirements → builder}/base-images.json +0 -0
  144. {modal-1.0.6.dev58.dist-info → modal-1.2.3.dev7.dist-info}/WHEEL +0 -0
  145. {modal-1.0.6.dev58.dist-info → modal-1.2.3.dev7.dist-info}/entry_points.txt +0 -0
  146. {modal-1.0.6.dev58.dist-info → modal-1.2.3.dev7.dist-info}/licenses/LICENSE +0 -0
  147. {modal-1.0.6.dev58.dist-info → modal-1.2.3.dev7.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi CHANGED
@@ -9,6 +9,7 @@ import google.protobuf.internal.containers
9
9
  import google.protobuf.internal.enum_type_wrapper
10
10
  import google.protobuf.message
11
11
  import google.protobuf.struct_pb2
12
+ import google.protobuf.timestamp_pb2
12
13
  import google.protobuf.wrappers_pb2
13
14
  import sys
14
15
  import typing
@@ -265,6 +266,7 @@ class _DataFormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
265
266
  """"Asgi" protobuf message"""
266
267
  DATA_FORMAT_GENERATOR_DONE: _DataFormat.ValueType # 3
267
268
  """"GeneratorDone" protobuf message"""
269
+ DATA_FORMAT_CBOR: _DataFormat.ValueType # 4
268
270
 
269
271
  class DataFormat(_DataFormat, metaclass=_DataFormatEnumTypeWrapper):
270
272
  """Which data format a binary message is encoded with."""
@@ -276,6 +278,7 @@ DATA_FORMAT_ASGI: DataFormat.ValueType # 2
276
278
  """"Asgi" protobuf message"""
277
279
  DATA_FORMAT_GENERATOR_DONE: DataFormat.ValueType # 3
278
280
  """"GeneratorDone" protobuf message"""
281
+ DATA_FORMAT_CBOR: DataFormat.ValueType # 4
279
282
  global___DataFormat = DataFormat
280
283
 
281
284
  class _DeploymentNamespace:
@@ -649,6 +652,25 @@ SYSTEM_ERROR_CODE_NOSPC: SystemErrorCode.ValueType # 28
649
652
  """ENOSPC: No space left on device"""
650
653
  global___SystemErrorCode = SystemErrorCode
651
654
 
655
+ class _TaskSnapshotBehavior:
656
+ ValueType = typing.NewType("ValueType", builtins.int)
657
+ V: typing_extensions.TypeAlias = ValueType
658
+
659
+ class _TaskSnapshotBehaviorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TaskSnapshotBehavior.ValueType], builtins.type): # noqa: F821
660
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
661
+ TASK_SNAPSHOT_BEHAVIOR_UNSPECIFIED: _TaskSnapshotBehavior.ValueType # 0
662
+ TASK_SNAPSHOT_BEHAVIOR_SNAPSHOT: _TaskSnapshotBehavior.ValueType # 1
663
+ TASK_SNAPSHOT_BEHAVIOR_RESTORE: _TaskSnapshotBehavior.ValueType # 2
664
+ TASK_SNAPSHOT_BEHAVIOR_NONE: _TaskSnapshotBehavior.ValueType # 3
665
+
666
+ class TaskSnapshotBehavior(_TaskSnapshotBehavior, metaclass=_TaskSnapshotBehaviorEnumTypeWrapper): ...
667
+
668
+ TASK_SNAPSHOT_BEHAVIOR_UNSPECIFIED: TaskSnapshotBehavior.ValueType # 0
669
+ TASK_SNAPSHOT_BEHAVIOR_SNAPSHOT: TaskSnapshotBehavior.ValueType # 1
670
+ TASK_SNAPSHOT_BEHAVIOR_RESTORE: TaskSnapshotBehavior.ValueType # 2
671
+ TASK_SNAPSHOT_BEHAVIOR_NONE: TaskSnapshotBehavior.ValueType # 3
672
+ global___TaskSnapshotBehavior = TaskSnapshotBehavior
673
+
652
674
  class _TaskState:
653
675
  ValueType = typing.NewType("ValueType", builtins.int)
654
676
  V: typing_extensions.TypeAlias = ValueType
@@ -787,15 +809,34 @@ global___AppClientDisconnectRequest = AppClientDisconnectRequest
787
809
  class AppCreateRequest(google.protobuf.message.Message):
788
810
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
789
811
 
812
+ class TagsEntry(google.protobuf.message.Message):
813
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
814
+
815
+ KEY_FIELD_NUMBER: builtins.int
816
+ VALUE_FIELD_NUMBER: builtins.int
817
+ key: builtins.str
818
+ value: builtins.str
819
+ def __init__(
820
+ self,
821
+ *,
822
+ key: builtins.str = ...,
823
+ value: builtins.str = ...,
824
+ ) -> None: ...
825
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
826
+
790
827
  CLIENT_ID_FIELD_NUMBER: builtins.int
791
828
  DESCRIPTION_FIELD_NUMBER: builtins.int
792
829
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
793
830
  APP_STATE_FIELD_NUMBER: builtins.int
831
+ TAGS_FIELD_NUMBER: builtins.int
794
832
  client_id: builtins.str
795
833
  description: builtins.str
796
834
  """Human readable label for the app"""
797
835
  environment_name: builtins.str
798
836
  app_state: global___AppState.ValueType
837
+ @property
838
+ def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
839
+ """Additional metadata to attach to the App"""
799
840
  def __init__(
800
841
  self,
801
842
  *,
@@ -803,8 +844,9 @@ class AppCreateRequest(google.protobuf.message.Message):
803
844
  description: builtins.str = ...,
804
845
  environment_name: builtins.str = ...,
805
846
  app_state: global___AppState.ValueType = ...,
847
+ tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
806
848
  ) -> None: ...
807
- def ClearField(self, field_name: typing_extensions.Literal["app_state", b"app_state", "client_id", b"client_id", "description", b"description", "environment_name", b"environment_name"]) -> None: ...
849
+ def ClearField(self, field_name: typing_extensions.Literal["app_state", b"app_state", "client_id", b"client_id", "description", b"description", "environment_name", b"environment_name", "tags", b"tags"]) -> None: ...
808
850
 
809
851
  global___AppCreateRequest = AppCreateRequest
810
852
 
@@ -1009,6 +1051,7 @@ class AppGetLogsRequest(google.protobuf.message.Message):
1009
1051
  TIMEOUT_FIELD_NUMBER: builtins.int
1010
1052
  LAST_ENTRY_ID_FIELD_NUMBER: builtins.int
1011
1053
  FUNCTION_ID_FIELD_NUMBER: builtins.int
1054
+ PARAMETRIZED_FUNCTION_ID_FIELD_NUMBER: builtins.int
1012
1055
  INPUT_ID_FIELD_NUMBER: builtins.int
1013
1056
  TASK_ID_FIELD_NUMBER: builtins.int
1014
1057
  FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
@@ -1018,6 +1061,7 @@ class AppGetLogsRequest(google.protobuf.message.Message):
1018
1061
  timeout: builtins.float
1019
1062
  last_entry_id: builtins.str
1020
1063
  function_id: builtins.str
1064
+ parametrized_function_id: builtins.str
1021
1065
  input_id: builtins.str
1022
1066
  task_id: builtins.str
1023
1067
  function_call_id: builtins.str
@@ -1030,13 +1074,14 @@ class AppGetLogsRequest(google.protobuf.message.Message):
1030
1074
  timeout: builtins.float = ...,
1031
1075
  last_entry_id: builtins.str = ...,
1032
1076
  function_id: builtins.str = ...,
1077
+ parametrized_function_id: builtins.str = ...,
1033
1078
  input_id: builtins.str = ...,
1034
1079
  task_id: builtins.str = ...,
1035
1080
  function_call_id: builtins.str = ...,
1036
1081
  file_descriptor: global___FileDescriptor.ValueType = ...,
1037
1082
  sandbox_id: builtins.str = ...,
1038
1083
  ) -> None: ...
1039
- def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "file_descriptor", b"file_descriptor", "function_call_id", b"function_call_id", "function_id", b"function_id", "input_id", b"input_id", "last_entry_id", b"last_entry_id", "sandbox_id", b"sandbox_id", "task_id", b"task_id", "timeout", b"timeout"]) -> None: ...
1084
+ def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "file_descriptor", b"file_descriptor", "function_call_id", b"function_call_id", "function_id", b"function_id", "input_id", b"input_id", "last_entry_id", b"last_entry_id", "parametrized_function_id", b"parametrized_function_id", "sandbox_id", b"sandbox_id", "task_id", b"task_id", "timeout", b"timeout"]) -> None: ...
1040
1085
 
1041
1086
  global___AppGetLogsRequest = AppGetLogsRequest
1042
1087
 
@@ -1129,6 +1174,50 @@ class AppGetOrCreateResponse(google.protobuf.message.Message):
1129
1174
 
1130
1175
  global___AppGetOrCreateResponse = AppGetOrCreateResponse
1131
1176
 
1177
+ class AppGetTagsRequest(google.protobuf.message.Message):
1178
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1179
+
1180
+ APP_ID_FIELD_NUMBER: builtins.int
1181
+ app_id: builtins.str
1182
+ def __init__(
1183
+ self,
1184
+ *,
1185
+ app_id: builtins.str = ...,
1186
+ ) -> None: ...
1187
+ def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id"]) -> None: ...
1188
+
1189
+ global___AppGetTagsRequest = AppGetTagsRequest
1190
+
1191
+ class AppGetTagsResponse(google.protobuf.message.Message):
1192
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1193
+
1194
+ class TagsEntry(google.protobuf.message.Message):
1195
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1196
+
1197
+ KEY_FIELD_NUMBER: builtins.int
1198
+ VALUE_FIELD_NUMBER: builtins.int
1199
+ key: builtins.str
1200
+ value: builtins.str
1201
+ def __init__(
1202
+ self,
1203
+ *,
1204
+ key: builtins.str = ...,
1205
+ value: builtins.str = ...,
1206
+ ) -> None: ...
1207
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
1208
+
1209
+ TAGS_FIELD_NUMBER: builtins.int
1210
+ @property
1211
+ def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
1212
+ def __init__(
1213
+ self,
1214
+ *,
1215
+ tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1216
+ ) -> None: ...
1217
+ def ClearField(self, field_name: typing_extensions.Literal["tags", b"tags"]) -> None: ...
1218
+
1219
+ global___AppGetTagsResponse = AppGetTagsResponse
1220
+
1132
1221
  class AppHeartbeatRequest(google.protobuf.message.Message):
1133
1222
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1134
1223
 
@@ -1336,6 +1425,21 @@ class AppPublishRequest(google.protobuf.message.Message):
1336
1425
  ) -> None: ...
1337
1426
  def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
1338
1427
 
1428
+ class TagsEntry(google.protobuf.message.Message):
1429
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1430
+
1431
+ KEY_FIELD_NUMBER: builtins.int
1432
+ VALUE_FIELD_NUMBER: builtins.int
1433
+ key: builtins.str
1434
+ value: builtins.str
1435
+ def __init__(
1436
+ self,
1437
+ *,
1438
+ key: builtins.str = ...,
1439
+ value: builtins.str = ...,
1440
+ ) -> None: ...
1441
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
1442
+
1339
1443
  APP_ID_FIELD_NUMBER: builtins.int
1340
1444
  NAME_FIELD_NUMBER: builtins.int
1341
1445
  DEPLOYMENT_TAG_FIELD_NUMBER: builtins.int
@@ -1346,6 +1450,7 @@ class AppPublishRequest(google.protobuf.message.Message):
1346
1450
  ROLLBACK_VERSION_FIELD_NUMBER: builtins.int
1347
1451
  CLIENT_VERSION_FIELD_NUMBER: builtins.int
1348
1452
  COMMIT_INFO_FIELD_NUMBER: builtins.int
1453
+ TAGS_FIELD_NUMBER: builtins.int
1349
1454
  app_id: builtins.str
1350
1455
  name: builtins.str
1351
1456
  deployment_tag: builtins.str
@@ -1368,6 +1473,9 @@ class AppPublishRequest(google.protobuf.message.Message):
1368
1473
  @property
1369
1474
  def commit_info(self) -> global___CommitInfo:
1370
1475
  """Git information for deployment tracking"""
1476
+ @property
1477
+ def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
1478
+ """Additional metadata to attach to the App"""
1371
1479
  def __init__(
1372
1480
  self,
1373
1481
  *,
@@ -1381,9 +1489,10 @@ class AppPublishRequest(google.protobuf.message.Message):
1381
1489
  rollback_version: builtins.int = ...,
1382
1490
  client_version: builtins.str = ...,
1383
1491
  commit_info: global___CommitInfo | None = ...,
1492
+ tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1384
1493
  ) -> None: ...
1385
1494
  def HasField(self, field_name: typing_extensions.Literal["commit_info", b"commit_info"]) -> builtins.bool: ...
1386
- def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "app_state", b"app_state", "class_ids", b"class_ids", "client_version", b"client_version", "commit_info", b"commit_info", "definition_ids", b"definition_ids", "deployment_tag", b"deployment_tag", "function_ids", b"function_ids", "name", b"name", "rollback_version", b"rollback_version"]) -> None: ...
1495
+ def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "app_state", b"app_state", "class_ids", b"class_ids", "client_version", b"client_version", "commit_info", b"commit_info", "definition_ids", b"definition_ids", "deployment_tag", b"deployment_tag", "function_ids", b"function_ids", "name", b"name", "rollback_version", b"rollback_version", "tags", b"tags"]) -> None: ...
1387
1496
 
1388
1497
  global___AppPublishRequest = AppPublishRequest
1389
1498
 
@@ -1467,6 +1576,39 @@ class AppSetObjectsRequest(google.protobuf.message.Message):
1467
1576
 
1468
1577
  global___AppSetObjectsRequest = AppSetObjectsRequest
1469
1578
 
1579
+ class AppSetTagsRequest(google.protobuf.message.Message):
1580
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1581
+
1582
+ class TagsEntry(google.protobuf.message.Message):
1583
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1584
+
1585
+ KEY_FIELD_NUMBER: builtins.int
1586
+ VALUE_FIELD_NUMBER: builtins.int
1587
+ key: builtins.str
1588
+ value: builtins.str
1589
+ def __init__(
1590
+ self,
1591
+ *,
1592
+ key: builtins.str = ...,
1593
+ value: builtins.str = ...,
1594
+ ) -> None: ...
1595
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
1596
+
1597
+ APP_ID_FIELD_NUMBER: builtins.int
1598
+ TAGS_FIELD_NUMBER: builtins.int
1599
+ app_id: builtins.str
1600
+ @property
1601
+ def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
1602
+ def __init__(
1603
+ self,
1604
+ *,
1605
+ app_id: builtins.str = ...,
1606
+ tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1607
+ ) -> None: ...
1608
+ def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "tags", b"tags"]) -> None: ...
1609
+
1610
+ global___AppSetTagsRequest = AppSetTagsRequest
1611
+
1470
1612
  class AppStopRequest(google.protobuf.message.Message):
1471
1613
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1472
1614
 
@@ -1975,6 +2117,64 @@ class AuthTokenGetResponse(google.protobuf.message.Message):
1975
2117
 
1976
2118
  global___AuthTokenGetResponse = AuthTokenGetResponse
1977
2119
 
2120
+ class AutoscalerConfiguration(google.protobuf.message.Message):
2121
+ """Message representing the current (coalesced) state of the autoscaler configuration
2122
+ As well as the different sources that were used to create it.
2123
+ """
2124
+
2125
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
2126
+
2127
+ class OverrideEventsEntry(google.protobuf.message.Message):
2128
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
2129
+
2130
+ KEY_FIELD_NUMBER: builtins.int
2131
+ VALUE_FIELD_NUMBER: builtins.int
2132
+ key: builtins.str
2133
+ @property
2134
+ def value(self) -> global___UserActionInfo: ...
2135
+ def __init__(
2136
+ self,
2137
+ *,
2138
+ key: builtins.str = ...,
2139
+ value: global___UserActionInfo | None = ...,
2140
+ ) -> None: ...
2141
+ def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ...
2142
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
2143
+
2144
+ SETTINGS_FIELD_NUMBER: builtins.int
2145
+ OVERRIDE_EVENTS_FIELD_NUMBER: builtins.int
2146
+ DEFAULT_SETTINGS_FIELD_NUMBER: builtins.int
2147
+ STATIC_SETTINGS_FIELD_NUMBER: builtins.int
2148
+ OVERRIDE_SETTINGS_FIELD_NUMBER: builtins.int
2149
+ @property
2150
+ def settings(self) -> global___AutoscalerSettings:
2151
+ """The settings that are currently in effect."""
2152
+ @property
2153
+ def override_events(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___UserActionInfo]:
2154
+ """For tracking the source of the overridden value; keys correspond to fields in `settings`."""
2155
+ @property
2156
+ def default_settings(self) -> global___AutoscalerSettings:
2157
+ """The default settings that are used when no static settings are provided and no overrides are in effect."""
2158
+ @property
2159
+ def static_settings(self) -> global___AutoscalerSettings:
2160
+ """The static settings that were used to initialize the configuration."""
2161
+ @property
2162
+ def override_settings(self) -> global___AutoscalerSettings:
2163
+ """The merge of all overrides that were used to create the current configuration."""
2164
+ def __init__(
2165
+ self,
2166
+ *,
2167
+ settings: global___AutoscalerSettings | None = ...,
2168
+ override_events: collections.abc.Mapping[builtins.str, global___UserActionInfo] | None = ...,
2169
+ default_settings: global___AutoscalerSettings | None = ...,
2170
+ static_settings: global___AutoscalerSettings | None = ...,
2171
+ override_settings: global___AutoscalerSettings | None = ...,
2172
+ ) -> None: ...
2173
+ def HasField(self, field_name: typing_extensions.Literal["default_settings", b"default_settings", "override_settings", b"override_settings", "settings", b"settings", "static_settings", b"static_settings"]) -> builtins.bool: ...
2174
+ def ClearField(self, field_name: typing_extensions.Literal["default_settings", b"default_settings", "override_events", b"override_events", "override_settings", b"override_settings", "settings", b"settings", "static_settings", b"static_settings"]) -> None: ...
2175
+
2176
+ global___AutoscalerConfiguration = AutoscalerConfiguration
2177
+
1978
2178
  class AutoscalerSettings(google.protobuf.message.Message):
1979
2179
  """A collection of user-configurable settings for Function autoscaling
1980
2180
  These are used for static configuration and for dynamic autoscaler updates
@@ -1988,7 +2188,7 @@ class AutoscalerSettings(google.protobuf.message.Message):
1988
2188
  SCALEUP_WINDOW_FIELD_NUMBER: builtins.int
1989
2189
  SCALEDOWN_WINDOW_FIELD_NUMBER: builtins.int
1990
2190
  min_containers: builtins.int
1991
- """Minimum containers when scale-to-zero is not deisired; pka "keep_warm" or "warm_pool_size" """
2191
+ """Minimum containers when scale-to-zero is not desired; pka "keep_warm" or "warm_pool_size" """
1992
2192
  max_containers: builtins.int
1993
2193
  """Limit on the number of containers that can be running for each Function; pka "concurrency_limit" """
1994
2194
  buffer_containers: builtins.int
@@ -2021,6 +2221,31 @@ class AutoscalerSettings(google.protobuf.message.Message):
2021
2221
 
2022
2222
  global___AutoscalerSettings = AutoscalerSettings
2023
2223
 
2224
+ class AutoscalingMetrics(google.protobuf.message.Message):
2225
+ """Used for flash autoscaling"""
2226
+
2227
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
2228
+
2229
+ CPU_USAGE_PERCENT_FIELD_NUMBER: builtins.int
2230
+ MEMORY_USAGE_PERCENT_FIELD_NUMBER: builtins.int
2231
+ CONCURRENT_REQUESTS_FIELD_NUMBER: builtins.int
2232
+ TIMESTAMP_FIELD_NUMBER: builtins.int
2233
+ cpu_usage_percent: builtins.float
2234
+ memory_usage_percent: builtins.float
2235
+ concurrent_requests: builtins.int
2236
+ timestamp: builtins.float
2237
+ def __init__(
2238
+ self,
2239
+ *,
2240
+ cpu_usage_percent: builtins.float = ...,
2241
+ memory_usage_percent: builtins.float = ...,
2242
+ concurrent_requests: builtins.int = ...,
2243
+ timestamp: builtins.float = ...,
2244
+ ) -> None: ...
2245
+ def ClearField(self, field_name: typing_extensions.Literal["concurrent_requests", b"concurrent_requests", "cpu_usage_percent", b"cpu_usage_percent", "memory_usage_percent", b"memory_usage_percent", "timestamp", b"timestamp"]) -> None: ...
2246
+
2247
+ global___AutoscalingMetrics = AutoscalingMetrics
2248
+
2024
2249
  class BaseImage(google.protobuf.message.Message):
2025
2250
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
2026
2251
 
@@ -2524,6 +2749,21 @@ class CloudBucketMount(google.protobuf.message.Message):
2524
2749
  R2: CloudBucketMount.BucketType.ValueType # 2
2525
2750
  GCP: CloudBucketMount.BucketType.ValueType # 3
2526
2751
 
2752
+ class _MetadataTTLType:
2753
+ ValueType = typing.NewType("ValueType", builtins.int)
2754
+ V: typing_extensions.TypeAlias = ValueType
2755
+
2756
+ class _MetadataTTLTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CloudBucketMount._MetadataTTLType.ValueType], builtins.type): # noqa: F821
2757
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
2758
+ METADATA_TTL_TYPE_UNSPECIFIED: CloudBucketMount._MetadataTTLType.ValueType # 0
2759
+ METADATA_TTL_TYPE_MINIMAL: CloudBucketMount._MetadataTTLType.ValueType # 1
2760
+ METADATA_TTL_TYPE_INDEFINITE: CloudBucketMount._MetadataTTLType.ValueType # 2
2761
+
2762
+ class MetadataTTLType(_MetadataTTLType, metaclass=_MetadataTTLTypeEnumTypeWrapper): ...
2763
+ METADATA_TTL_TYPE_UNSPECIFIED: CloudBucketMount.MetadataTTLType.ValueType # 0
2764
+ METADATA_TTL_TYPE_MINIMAL: CloudBucketMount.MetadataTTLType.ValueType # 1
2765
+ METADATA_TTL_TYPE_INDEFINITE: CloudBucketMount.MetadataTTLType.ValueType # 2
2766
+
2527
2767
  BUCKET_NAME_FIELD_NUMBER: builtins.int
2528
2768
  MOUNT_PATH_FIELD_NUMBER: builtins.int
2529
2769
  CREDENTIALS_SECRET_ID_FIELD_NUMBER: builtins.int
@@ -2533,6 +2773,9 @@ class CloudBucketMount(google.protobuf.message.Message):
2533
2773
  BUCKET_ENDPOINT_URL_FIELD_NUMBER: builtins.int
2534
2774
  KEY_PREFIX_FIELD_NUMBER: builtins.int
2535
2775
  OIDC_AUTH_ROLE_ARN_FIELD_NUMBER: builtins.int
2776
+ FORCE_PATH_STYLE_FIELD_NUMBER: builtins.int
2777
+ METADATA_TTL_TYPE_FIELD_NUMBER: builtins.int
2778
+ METADATA_TTL_SECONDS_FIELD_NUMBER: builtins.int
2536
2779
  bucket_name: builtins.str
2537
2780
  mount_path: builtins.str
2538
2781
  credentials_secret_id: builtins.str
@@ -2542,6 +2785,9 @@ class CloudBucketMount(google.protobuf.message.Message):
2542
2785
  bucket_endpoint_url: builtins.str
2543
2786
  key_prefix: builtins.str
2544
2787
  oidc_auth_role_arn: builtins.str
2788
+ force_path_style: builtins.bool
2789
+ metadata_ttl_type: global___CloudBucketMount.MetadataTTLType.ValueType
2790
+ metadata_ttl_seconds: builtins.int
2545
2791
  def __init__(
2546
2792
  self,
2547
2793
  *,
@@ -2554,15 +2800,20 @@ class CloudBucketMount(google.protobuf.message.Message):
2554
2800
  bucket_endpoint_url: builtins.str | None = ...,
2555
2801
  key_prefix: builtins.str | None = ...,
2556
2802
  oidc_auth_role_arn: builtins.str | None = ...,
2803
+ force_path_style: builtins.bool = ...,
2804
+ metadata_ttl_type: global___CloudBucketMount.MetadataTTLType.ValueType = ...,
2805
+ metadata_ttl_seconds: builtins.int = ...,
2557
2806
  ) -> None: ...
2558
- def HasField(self, field_name: typing_extensions.Literal["_bucket_endpoint_url", b"_bucket_endpoint_url", "_key_prefix", b"_key_prefix", "_oidc_auth_role_arn", b"_oidc_auth_role_arn", "bucket_endpoint_url", b"bucket_endpoint_url", "key_prefix", b"key_prefix", "oidc_auth_role_arn", b"oidc_auth_role_arn"]) -> builtins.bool: ...
2559
- def ClearField(self, field_name: typing_extensions.Literal["_bucket_endpoint_url", b"_bucket_endpoint_url", "_key_prefix", b"_key_prefix", "_oidc_auth_role_arn", b"_oidc_auth_role_arn", "bucket_endpoint_url", b"bucket_endpoint_url", "bucket_name", b"bucket_name", "bucket_type", b"bucket_type", "credentials_secret_id", b"credentials_secret_id", "key_prefix", b"key_prefix", "mount_path", b"mount_path", "oidc_auth_role_arn", b"oidc_auth_role_arn", "read_only", b"read_only", "requester_pays", b"requester_pays"]) -> None: ...
2807
+ def HasField(self, field_name: typing_extensions.Literal["_bucket_endpoint_url", b"_bucket_endpoint_url", "_key_prefix", b"_key_prefix", "_oidc_auth_role_arn", b"_oidc_auth_role_arn", "bucket_endpoint_url", b"bucket_endpoint_url", "key_prefix", b"key_prefix", "metadata_ttl_oneof", b"metadata_ttl_oneof", "metadata_ttl_seconds", b"metadata_ttl_seconds", "metadata_ttl_type", b"metadata_ttl_type", "oidc_auth_role_arn", b"oidc_auth_role_arn"]) -> builtins.bool: ...
2808
+ def ClearField(self, field_name: typing_extensions.Literal["_bucket_endpoint_url", b"_bucket_endpoint_url", "_key_prefix", b"_key_prefix", "_oidc_auth_role_arn", b"_oidc_auth_role_arn", "bucket_endpoint_url", b"bucket_endpoint_url", "bucket_name", b"bucket_name", "bucket_type", b"bucket_type", "credentials_secret_id", b"credentials_secret_id", "force_path_style", b"force_path_style", "key_prefix", b"key_prefix", "metadata_ttl_oneof", b"metadata_ttl_oneof", "metadata_ttl_seconds", b"metadata_ttl_seconds", "metadata_ttl_type", b"metadata_ttl_type", "mount_path", b"mount_path", "oidc_auth_role_arn", b"oidc_auth_role_arn", "read_only", b"read_only", "requester_pays", b"requester_pays"]) -> None: ...
2560
2809
  @typing.overload
2561
2810
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_bucket_endpoint_url", b"_bucket_endpoint_url"]) -> typing_extensions.Literal["bucket_endpoint_url"] | None: ...
2562
2811
  @typing.overload
2563
2812
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_key_prefix", b"_key_prefix"]) -> typing_extensions.Literal["key_prefix"] | None: ...
2564
2813
  @typing.overload
2565
2814
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_oidc_auth_role_arn", b"_oidc_auth_role_arn"]) -> typing_extensions.Literal["oidc_auth_role_arn"] | None: ...
2815
+ @typing.overload
2816
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["metadata_ttl_oneof", b"metadata_ttl_oneof"]) -> typing_extensions.Literal["metadata_ttl_type", "metadata_ttl_seconds"] | None: ...
2566
2817
 
2567
2818
  global___CloudBucketMount = CloudBucketMount
2568
2819
 
@@ -2717,6 +2968,7 @@ class ContainerArguments(google.protobuf.message.Message):
2717
2968
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
2718
2969
  CHECKPOINT_ID_FIELD_NUMBER: builtins.int
2719
2970
  APP_LAYOUT_FIELD_NUMBER: builtins.int
2971
+ INPUT_PLANE_SERVER_URL_FIELD_NUMBER: builtins.int
2720
2972
  task_id: builtins.str
2721
2973
  function_id: builtins.str
2722
2974
  app_id: builtins.str
@@ -2732,6 +2984,7 @@ class ContainerArguments(google.protobuf.message.Message):
2732
2984
  checkpoint_id: builtins.str
2733
2985
  @property
2734
2986
  def app_layout(self) -> global___AppLayout: ...
2987
+ input_plane_server_url: builtins.str
2735
2988
  def __init__(
2736
2989
  self,
2737
2990
  *,
@@ -2746,9 +2999,10 @@ class ContainerArguments(google.protobuf.message.Message):
2746
2999
  environment_name: builtins.str = ...,
2747
3000
  checkpoint_id: builtins.str | None = ...,
2748
3001
  app_layout: global___AppLayout | None = ...,
3002
+ input_plane_server_url: builtins.str = ...,
2749
3003
  ) -> None: ...
2750
3004
  def HasField(self, field_name: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id", "app_layout", b"app_layout", "checkpoint_id", b"checkpoint_id", "function_def", b"function_def", "proxy_info", b"proxy_info"]) -> builtins.bool: ...
2751
- def ClearField(self, field_name: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id", "app_id", b"app_id", "app_layout", b"app_layout", "checkpoint_id", b"checkpoint_id", "environment_name", b"environment_name", "function_def", b"function_def", "function_id", b"function_id", "proxy_info", b"proxy_info", "runtime", b"runtime", "serialized_params", b"serialized_params", "task_id", b"task_id", "tracing_context", b"tracing_context"]) -> None: ...
3005
+ def ClearField(self, field_name: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id", "app_id", b"app_id", "app_layout", b"app_layout", "checkpoint_id", b"checkpoint_id", "environment_name", b"environment_name", "function_def", b"function_def", "function_id", b"function_id", "input_plane_server_url", b"input_plane_server_url", "proxy_info", b"proxy_info", "runtime", b"runtime", "serialized_params", b"serialized_params", "task_id", b"task_id", "tracing_context", b"tracing_context"]) -> None: ...
2752
3006
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_checkpoint_id", b"_checkpoint_id"]) -> typing_extensions.Literal["checkpoint_id"] | None: ...
2753
3007
 
2754
3008
  global___ContainerArguments = ContainerArguments
@@ -3363,6 +3617,27 @@ class ContainerStopResponse(google.protobuf.message.Message):
3363
3617
 
3364
3618
  global___ContainerStopResponse = ContainerStopResponse
3365
3619
 
3620
+ class CreationInfo(google.protobuf.message.Message):
3621
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
3622
+
3623
+ CREATED_AT_FIELD_NUMBER: builtins.int
3624
+ CREATED_BY_FIELD_NUMBER: builtins.int
3625
+ created_at: builtins.float
3626
+ """This message is used in metadata for resource objects like Dict, Queue, Volume, etc.
3627
+ Timestamp of resource creation
3628
+ """
3629
+ created_by: builtins.str
3630
+ """User name or service name"""
3631
+ def __init__(
3632
+ self,
3633
+ *,
3634
+ created_at: builtins.float = ...,
3635
+ created_by: builtins.str = ...,
3636
+ ) -> None: ...
3637
+ def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "created_by", b"created_by"]) -> None: ...
3638
+
3639
+ global___CreationInfo = CreationInfo
3640
+
3366
3641
  class CustomDomainConfig(google.protobuf.message.Message):
3367
3642
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
3368
3643
 
@@ -3566,13 +3841,18 @@ class DictGetOrCreateResponse(google.protobuf.message.Message):
3566
3841
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
3567
3842
 
3568
3843
  DICT_ID_FIELD_NUMBER: builtins.int
3844
+ METADATA_FIELD_NUMBER: builtins.int
3569
3845
  dict_id: builtins.str
3846
+ @property
3847
+ def metadata(self) -> global___DictMetadata: ...
3570
3848
  def __init__(
3571
3849
  self,
3572
3850
  *,
3573
3851
  dict_id: builtins.str = ...,
3852
+ metadata: global___DictMetadata | None = ...,
3574
3853
  ) -> None: ...
3575
- def ClearField(self, field_name: typing_extensions.Literal["dict_id", b"dict_id"]) -> None: ...
3854
+ def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
3855
+ def ClearField(self, field_name: typing_extensions.Literal["dict_id", b"dict_id", "metadata", b"metadata"]) -> None: ...
3576
3856
 
3577
3857
  global___DictGetOrCreateResponse = DictGetOrCreateResponse
3578
3858
 
@@ -3658,13 +3938,18 @@ class DictListRequest(google.protobuf.message.Message):
3658
3938
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
3659
3939
 
3660
3940
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
3941
+ PAGINATION_FIELD_NUMBER: builtins.int
3661
3942
  environment_name: builtins.str
3943
+ @property
3944
+ def pagination(self) -> global___ListPagination: ...
3662
3945
  def __init__(
3663
3946
  self,
3664
3947
  *,
3665
3948
  environment_name: builtins.str = ...,
3949
+ pagination: global___ListPagination | None = ...,
3666
3950
  ) -> None: ...
3667
- def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name"]) -> None: ...
3951
+ def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ...
3952
+ def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "pagination", b"pagination"]) -> None: ...
3668
3953
 
3669
3954
  global___DictListRequest = DictListRequest
3670
3955
 
@@ -3676,28 +3961,59 @@ class DictListResponse(google.protobuf.message.Message):
3676
3961
 
3677
3962
  NAME_FIELD_NUMBER: builtins.int
3678
3963
  CREATED_AT_FIELD_NUMBER: builtins.int
3964
+ DICT_ID_FIELD_NUMBER: builtins.int
3965
+ METADATA_FIELD_NUMBER: builtins.int
3679
3966
  name: builtins.str
3680
3967
  created_at: builtins.float
3968
+ """Superseded by metadata, used by clients up to 1.1.2"""
3969
+ dict_id: builtins.str
3970
+ @property
3971
+ def metadata(self) -> global___DictMetadata: ...
3681
3972
  def __init__(
3682
3973
  self,
3683
3974
  *,
3684
3975
  name: builtins.str = ...,
3685
3976
  created_at: builtins.float = ...,
3977
+ dict_id: builtins.str = ...,
3978
+ metadata: global___DictMetadata | None = ...,
3686
3979
  ) -> None: ...
3687
- def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "name", b"name"]) -> None: ...
3980
+ def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
3981
+ def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "dict_id", b"dict_id", "metadata", b"metadata", "name", b"name"]) -> None: ...
3688
3982
 
3689
3983
  DICTS_FIELD_NUMBER: builtins.int
3984
+ ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
3690
3985
  @property
3691
3986
  def dicts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DictListResponse.DictInfo]: ...
3987
+ environment_name: builtins.str
3692
3988
  def __init__(
3693
3989
  self,
3694
3990
  *,
3695
3991
  dicts: collections.abc.Iterable[global___DictListResponse.DictInfo] | None = ...,
3992
+ environment_name: builtins.str = ...,
3696
3993
  ) -> None: ...
3697
- def ClearField(self, field_name: typing_extensions.Literal["dicts", b"dicts"]) -> None: ...
3994
+ def ClearField(self, field_name: typing_extensions.Literal["dicts", b"dicts", "environment_name", b"environment_name"]) -> None: ...
3698
3995
 
3699
3996
  global___DictListResponse = DictListResponse
3700
3997
 
3998
+ class DictMetadata(google.protobuf.message.Message):
3999
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4000
+
4001
+ NAME_FIELD_NUMBER: builtins.int
4002
+ CREATION_INFO_FIELD_NUMBER: builtins.int
4003
+ name: builtins.str
4004
+ @property
4005
+ def creation_info(self) -> global___CreationInfo: ...
4006
+ def __init__(
4007
+ self,
4008
+ *,
4009
+ name: builtins.str = ...,
4010
+ creation_info: global___CreationInfo | None = ...,
4011
+ ) -> None: ...
4012
+ def HasField(self, field_name: typing_extensions.Literal["creation_info", b"creation_info"]) -> builtins.bool: ...
4013
+ def ClearField(self, field_name: typing_extensions.Literal["creation_info", b"creation_info", "name", b"name"]) -> None: ...
4014
+
4015
+ global___DictMetadata = DictMetadata
4016
+
3701
4017
  class DictPopRequest(google.protobuf.message.Message):
3702
4018
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
3703
4019
 
@@ -3953,10 +4269,22 @@ class EnvironmentListItem(google.protobuf.message.Message):
3953
4269
  WEBHOOK_SUFFIX_FIELD_NUMBER: builtins.int
3954
4270
  CREATED_AT_FIELD_NUMBER: builtins.int
3955
4271
  DEFAULT_FIELD_NUMBER: builtins.int
4272
+ IS_MANAGED_FIELD_NUMBER: builtins.int
4273
+ ENVIRONMENT_ID_FIELD_NUMBER: builtins.int
4274
+ MAX_CONCURRENT_TASKS_FIELD_NUMBER: builtins.int
4275
+ MAX_CONCURRENT_GPUS_FIELD_NUMBER: builtins.int
4276
+ CURRENT_CONCURRENT_TASKS_FIELD_NUMBER: builtins.int
4277
+ CURRENT_CONCURRENT_GPUS_FIELD_NUMBER: builtins.int
3956
4278
  name: builtins.str
3957
4279
  webhook_suffix: builtins.str
3958
4280
  created_at: builtins.float
3959
4281
  default: builtins.bool
4282
+ is_managed: builtins.bool
4283
+ environment_id: builtins.str
4284
+ max_concurrent_tasks: builtins.int
4285
+ max_concurrent_gpus: builtins.int
4286
+ current_concurrent_tasks: builtins.int
4287
+ current_concurrent_gpus: builtins.int
3960
4288
  def __init__(
3961
4289
  self,
3962
4290
  *,
@@ -3964,8 +4292,19 @@ class EnvironmentListItem(google.protobuf.message.Message):
3964
4292
  webhook_suffix: builtins.str = ...,
3965
4293
  created_at: builtins.float = ...,
3966
4294
  default: builtins.bool = ...,
4295
+ is_managed: builtins.bool = ...,
4296
+ environment_id: builtins.str = ...,
4297
+ max_concurrent_tasks: builtins.int | None = ...,
4298
+ max_concurrent_gpus: builtins.int | None = ...,
4299
+ current_concurrent_tasks: builtins.int = ...,
4300
+ current_concurrent_gpus: builtins.int = ...,
3967
4301
  ) -> None: ...
3968
- def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "default", b"default", "name", b"name", "webhook_suffix", b"webhook_suffix"]) -> None: ...
4302
+ def HasField(self, field_name: typing_extensions.Literal["_max_concurrent_gpus", b"_max_concurrent_gpus", "_max_concurrent_tasks", b"_max_concurrent_tasks", "max_concurrent_gpus", b"max_concurrent_gpus", "max_concurrent_tasks", b"max_concurrent_tasks"]) -> builtins.bool: ...
4303
+ def ClearField(self, field_name: typing_extensions.Literal["_max_concurrent_gpus", b"_max_concurrent_gpus", "_max_concurrent_tasks", b"_max_concurrent_tasks", "created_at", b"created_at", "current_concurrent_gpus", b"current_concurrent_gpus", "current_concurrent_tasks", b"current_concurrent_tasks", "default", b"default", "environment_id", b"environment_id", "is_managed", b"is_managed", "max_concurrent_gpus", b"max_concurrent_gpus", "max_concurrent_tasks", b"max_concurrent_tasks", "name", b"name", "webhook_suffix", b"webhook_suffix"]) -> None: ...
4304
+ @typing.overload
4305
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_max_concurrent_gpus", b"_max_concurrent_gpus"]) -> typing_extensions.Literal["max_concurrent_gpus"] | None: ...
4306
+ @typing.overload
4307
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_max_concurrent_tasks", b"_max_concurrent_tasks"]) -> typing_extensions.Literal["max_concurrent_tasks"] | None: ...
3969
4308
 
3970
4309
  global___EnvironmentListItem = EnvironmentListItem
3971
4310
 
@@ -4031,20 +4370,30 @@ class EnvironmentUpdateRequest(google.protobuf.message.Message):
4031
4370
  CURRENT_NAME_FIELD_NUMBER: builtins.int
4032
4371
  NAME_FIELD_NUMBER: builtins.int
4033
4372
  WEB_SUFFIX_FIELD_NUMBER: builtins.int
4373
+ MAX_CONCURRENT_TASKS_FIELD_NUMBER: builtins.int
4374
+ MAX_CONCURRENT_GPUS_FIELD_NUMBER: builtins.int
4034
4375
  current_name: builtins.str
4035
4376
  @property
4036
4377
  def name(self) -> google.protobuf.wrappers_pb2.StringValue: ...
4037
4378
  @property
4038
4379
  def web_suffix(self) -> google.protobuf.wrappers_pb2.StringValue: ...
4380
+ max_concurrent_tasks: builtins.int
4381
+ max_concurrent_gpus: builtins.int
4039
4382
  def __init__(
4040
4383
  self,
4041
4384
  *,
4042
4385
  current_name: builtins.str = ...,
4043
4386
  name: google.protobuf.wrappers_pb2.StringValue | None = ...,
4044
4387
  web_suffix: google.protobuf.wrappers_pb2.StringValue | None = ...,
4388
+ max_concurrent_tasks: builtins.int | None = ...,
4389
+ max_concurrent_gpus: builtins.int | None = ...,
4045
4390
  ) -> None: ...
4046
- def HasField(self, field_name: typing_extensions.Literal["name", b"name", "web_suffix", b"web_suffix"]) -> builtins.bool: ...
4047
- def ClearField(self, field_name: typing_extensions.Literal["current_name", b"current_name", "name", b"name", "web_suffix", b"web_suffix"]) -> None: ...
4391
+ def HasField(self, field_name: typing_extensions.Literal["_max_concurrent_gpus", b"_max_concurrent_gpus", "_max_concurrent_tasks", b"_max_concurrent_tasks", "max_concurrent_gpus", b"max_concurrent_gpus", "max_concurrent_tasks", b"max_concurrent_tasks", "name", b"name", "web_suffix", b"web_suffix"]) -> builtins.bool: ...
4392
+ def ClearField(self, field_name: typing_extensions.Literal["_max_concurrent_gpus", b"_max_concurrent_gpus", "_max_concurrent_tasks", b"_max_concurrent_tasks", "current_name", b"current_name", "max_concurrent_gpus", b"max_concurrent_gpus", "max_concurrent_tasks", b"max_concurrent_tasks", "name", b"name", "web_suffix", b"web_suffix"]) -> None: ...
4393
+ @typing.overload
4394
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_max_concurrent_gpus", b"_max_concurrent_gpus"]) -> typing_extensions.Literal["max_concurrent_gpus"] | None: ...
4395
+ @typing.overload
4396
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_max_concurrent_tasks", b"_max_concurrent_tasks"]) -> typing_extensions.Literal["max_concurrent_tasks"] | None: ...
4048
4397
 
4049
4398
  global___EnvironmentUpdateRequest = EnvironmentUpdateRequest
4050
4399
 
@@ -4223,6 +4572,50 @@ class FlashContainerRegisterResponse(google.protobuf.message.Message):
4223
4572
 
4224
4573
  global___FlashContainerRegisterResponse = FlashContainerRegisterResponse
4225
4574
 
4575
+ class FlashProxyUpstreamRequest(google.protobuf.message.Message):
4576
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4577
+
4578
+ UPSTREAM_REQUESTS_FIELD_NUMBER: builtins.int
4579
+ TIMESTAMP_FIELD_NUMBER: builtins.int
4580
+ upstream_requests: builtins.int
4581
+ timestamp: builtins.float
4582
+ def __init__(
4583
+ self,
4584
+ *,
4585
+ upstream_requests: builtins.int = ...,
4586
+ timestamp: builtins.float = ...,
4587
+ ) -> None: ...
4588
+ def ClearField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp", "upstream_requests", b"upstream_requests"]) -> None: ...
4589
+
4590
+ global___FlashProxyUpstreamRequest = FlashProxyUpstreamRequest
4591
+
4592
+ class FlashSetTargetSlotsMetricsRequest(google.protobuf.message.Message):
4593
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4594
+
4595
+ FUNCTION_ID_FIELD_NUMBER: builtins.int
4596
+ TARGET_SLOTS_FIELD_NUMBER: builtins.int
4597
+ function_id: builtins.str
4598
+ """TODO(claudia): add other metrics to use in autoscaling decisions"""
4599
+ target_slots: builtins.int
4600
+ def __init__(
4601
+ self,
4602
+ *,
4603
+ function_id: builtins.str = ...,
4604
+ target_slots: builtins.int = ...,
4605
+ ) -> None: ...
4606
+ def ClearField(self, field_name: typing_extensions.Literal["function_id", b"function_id", "target_slots", b"target_slots"]) -> None: ...
4607
+
4608
+ global___FlashSetTargetSlotsMetricsRequest = FlashSetTargetSlotsMetricsRequest
4609
+
4610
+ class FlashSetTargetSlotsMetricsResponse(google.protobuf.message.Message):
4611
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
4612
+
4613
+ def __init__(
4614
+ self,
4615
+ ) -> None: ...
4616
+
4617
+ global___FlashSetTargetSlotsMetricsResponse = FlashSetTargetSlotsMetricsResponse
4618
+
4226
4619
  class Function(google.protobuf.message.Message):
4227
4620
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
4228
4621
 
@@ -4360,6 +4753,9 @@ class Function(google.protobuf.message.Message):
4360
4753
  FLASH_SERVICE_URLS_FIELD_NUMBER: builtins.int
4361
4754
  FLASH_SERVICE_LABEL_FIELD_NUMBER: builtins.int
4362
4755
  ENABLE_GPU_SNAPSHOT_FIELD_NUMBER: builtins.int
4756
+ STARTUP_TIMEOUT_SECS_FIELD_NUMBER: builtins.int
4757
+ SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
4758
+ SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
4363
4759
  module_name: builtins.str
4364
4760
  function_name: builtins.str
4365
4761
  @property
@@ -4498,6 +4894,12 @@ class Function(google.protobuf.message.Message):
4498
4894
  flash_service_label: builtins.str
4499
4895
  enable_gpu_snapshot: builtins.bool
4500
4896
  """GPU memory snapshotting (alpha)"""
4897
+ startup_timeout_secs: builtins.int
4898
+ @property
4899
+ def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]:
4900
+ """can be used as inputs"""
4901
+ @property
4902
+ def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
4501
4903
  def __init__(
4502
4904
  self,
4503
4905
  *,
@@ -4573,9 +4975,12 @@ class Function(google.protobuf.message.Message):
4573
4975
  flash_service_urls: collections.abc.Iterable[builtins.str] | None = ...,
4574
4976
  flash_service_label: builtins.str = ...,
4575
4977
  enable_gpu_snapshot: builtins.bool = ...,
4978
+ startup_timeout_secs: builtins.int = ...,
4979
+ supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
4980
+ supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
4576
4981
  ) -> None: ...
4577
4982
  def HasField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "autoscaler_settings", b"autoscaler_settings", "checkpoint", b"checkpoint", "class_parameter_info", b"class_parameter_info", "cloud_provider", b"cloud_provider", "function_schema", b"function_schema", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
4578
- def ClearField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_buffer_containers", b"_experimental_buffer_containers", "_experimental_concurrent_cancellations", b"_experimental_concurrent_cancellations", "_experimental_custom_scaling", b"_experimental_custom_scaling", "_experimental_enable_gpu_snapshot", b"_experimental_enable_gpu_snapshot", "_experimental_group_size", b"_experimental_group_size", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_experimental_task_templates", b"_experimental_task_templates", "_experimental_task_templates_enabled", b"_experimental_task_templates_enabled", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "app_name", b"app_name", "autoscaler_settings", b"autoscaler_settings", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "block_network", b"block_network", "checkpoint", b"checkpoint", "checkpointing_enabled", b"checkpointing_enabled", "class_parameter_info", b"class_parameter_info", "class_serialized", b"class_serialized", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "concurrency_limit", b"concurrency_limit", "custom_domain_info", b"custom_domain_info", "definition_type", b"definition_type", "enable_gpu_snapshot", b"enable_gpu_snapshot", "experimental_options", b"experimental_options", "flash_service_label", b"flash_service_label", "flash_service_urls", b"flash_service_urls", "function_name", b"function_name", "function_schema", b"function_schema", "function_serialized", b"function_serialized", "function_type", b"function_type", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "is_auto_snapshot", b"is_auto_snapshot", "is_builder_function", b"is_builder_function", "is_checkpointing_function", b"is_checkpointing_function", "is_class", b"is_class", "is_method", b"is_method", "max_concurrent_inputs", b"max_concurrent_inputs", "max_inputs", b"max_inputs", "method_definitions", b"method_definitions", "method_definitions_set", b"method_definitions_set", "module_name", b"module_name", "mount_client_dependencies", b"mount_client_dependencies", "mount_ids", b"mount_ids", "object_dependencies", b"object_dependencies", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "runtime_perf_record", b"runtime_perf_record", "s3_mounts", b"s3_mounts", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "shared_volume_mounts", b"shared_volume_mounts", "snapshot_debug", b"snapshot_debug", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "untrusted", b"untrusted", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "volume_mounts", b"volume_mounts", "warm_pool_size", b"warm_pool_size", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config", "worker_id", b"worker_id"]) -> None: ...
4983
+ def ClearField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_buffer_containers", b"_experimental_buffer_containers", "_experimental_concurrent_cancellations", b"_experimental_concurrent_cancellations", "_experimental_custom_scaling", b"_experimental_custom_scaling", "_experimental_enable_gpu_snapshot", b"_experimental_enable_gpu_snapshot", "_experimental_group_size", b"_experimental_group_size", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_experimental_task_templates", b"_experimental_task_templates", "_experimental_task_templates_enabled", b"_experimental_task_templates_enabled", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "app_name", b"app_name", "autoscaler_settings", b"autoscaler_settings", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "block_network", b"block_network", "checkpoint", b"checkpoint", "checkpointing_enabled", b"checkpointing_enabled", "class_parameter_info", b"class_parameter_info", "class_serialized", b"class_serialized", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "concurrency_limit", b"concurrency_limit", "custom_domain_info", b"custom_domain_info", "definition_type", b"definition_type", "enable_gpu_snapshot", b"enable_gpu_snapshot", "experimental_options", b"experimental_options", "flash_service_label", b"flash_service_label", "flash_service_urls", b"flash_service_urls", "function_name", b"function_name", "function_schema", b"function_schema", "function_serialized", b"function_serialized", "function_type", b"function_type", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "is_auto_snapshot", b"is_auto_snapshot", "is_builder_function", b"is_builder_function", "is_checkpointing_function", b"is_checkpointing_function", "is_class", b"is_class", "is_method", b"is_method", "max_concurrent_inputs", b"max_concurrent_inputs", "max_inputs", b"max_inputs", "method_definitions", b"method_definitions", "method_definitions_set", b"method_definitions_set", "module_name", b"module_name", "mount_client_dependencies", b"mount_client_dependencies", "mount_ids", b"mount_ids", "object_dependencies", b"object_dependencies", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "runtime_perf_record", b"runtime_perf_record", "s3_mounts", b"s3_mounts", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "shared_volume_mounts", b"shared_volume_mounts", "snapshot_debug", b"snapshot_debug", "startup_timeout_secs", b"startup_timeout_secs", "supported_input_formats", b"supported_input_formats", "supported_output_formats", b"supported_output_formats", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "untrusted", b"untrusted", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "volume_mounts", b"volume_mounts", "warm_pool_size", b"warm_pool_size", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config", "worker_id", b"worker_id"]) -> None: ...
4579
4984
  @typing.overload
4580
4985
  def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
4581
4986
  @typing.overload
@@ -4633,11 +5038,14 @@ class FunctionBindParamsRequest(google.protobuf.message.Message):
4633
5038
  SERIALIZED_PARAMS_FIELD_NUMBER: builtins.int
4634
5039
  FUNCTION_OPTIONS_FIELD_NUMBER: builtins.int
4635
5040
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
5041
+ AUTH_SECRET_FIELD_NUMBER: builtins.int
4636
5042
  function_id: builtins.str
4637
5043
  serialized_params: builtins.bytes
4638
5044
  @property
4639
5045
  def function_options(self) -> global___FunctionOptions: ...
4640
5046
  environment_name: builtins.str
5047
+ auth_secret: builtins.str
5048
+ """Only used for the input plane."""
4641
5049
  def __init__(
4642
5050
  self,
4643
5051
  *,
@@ -4645,9 +5053,10 @@ class FunctionBindParamsRequest(google.protobuf.message.Message):
4645
5053
  serialized_params: builtins.bytes = ...,
4646
5054
  function_options: global___FunctionOptions | None = ...,
4647
5055
  environment_name: builtins.str = ...,
5056
+ auth_secret: builtins.str = ...,
4648
5057
  ) -> None: ...
4649
5058
  def HasField(self, field_name: typing_extensions.Literal["function_options", b"function_options"]) -> builtins.bool: ...
4650
- def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "function_id", b"function_id", "function_options", b"function_options", "serialized_params", b"serialized_params"]) -> None: ...
5059
+ def ClearField(self, field_name: typing_extensions.Literal["auth_secret", b"auth_secret", "environment_name", b"environment_name", "function_id", b"function_id", "function_options", b"function_options", "serialized_params", b"serialized_params"]) -> None: ...
4651
5060
 
4652
5061
  global___FunctionBindParamsRequest = FunctionBindParamsRequest
4653
5062
 
@@ -4716,20 +5125,61 @@ class FunctionCallCancelRequest(google.protobuf.message.Message):
4716
5125
 
4717
5126
  global___FunctionCallCancelRequest = FunctionCallCancelRequest
4718
5127
 
5128
+ class FunctionCallFromIdRequest(google.protobuf.message.Message):
5129
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
5130
+
5131
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
5132
+ function_call_id: builtins.str
5133
+ def __init__(
5134
+ self,
5135
+ *,
5136
+ function_call_id: builtins.str = ...,
5137
+ ) -> None: ...
5138
+ def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id"]) -> None: ...
5139
+
5140
+ global___FunctionCallFromIdRequest = FunctionCallFromIdRequest
5141
+
5142
+ class FunctionCallFromIdResponse(google.protobuf.message.Message):
5143
+ """Everything you need to build a FunctionCallHandler."""
5144
+
5145
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
5146
+
5147
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
5148
+ NUM_INPUTS_FIELD_NUMBER: builtins.int
5149
+ function_call_id: builtins.str
5150
+ num_inputs: builtins.int
5151
+ def __init__(
5152
+ self,
5153
+ *,
5154
+ function_call_id: builtins.str = ...,
5155
+ num_inputs: builtins.int = ...,
5156
+ ) -> None: ...
5157
+ def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "num_inputs", b"num_inputs"]) -> None: ...
5158
+
5159
+ global___FunctionCallFromIdResponse = FunctionCallFromIdResponse
5160
+
4719
5161
  class FunctionCallGetDataRequest(google.protobuf.message.Message):
4720
5162
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
4721
5163
 
4722
5164
  FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
5165
+ ATTEMPT_TOKEN_FIELD_NUMBER: builtins.int
4723
5166
  LAST_INDEX_FIELD_NUMBER: builtins.int
5167
+ USE_GAPLESS_READ_FIELD_NUMBER: builtins.int
4724
5168
  function_call_id: builtins.str
5169
+ attempt_token: builtins.str
4725
5170
  last_index: builtins.int
5171
+ use_gapless_read: builtins.bool
4726
5172
  def __init__(
4727
5173
  self,
4728
5174
  *,
4729
5175
  function_call_id: builtins.str = ...,
5176
+ attempt_token: builtins.str = ...,
4730
5177
  last_index: builtins.int = ...,
5178
+ use_gapless_read: builtins.bool = ...,
4731
5179
  ) -> None: ...
4732
- def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "last_index", b"last_index"]) -> None: ...
5180
+ def HasField(self, field_name: typing_extensions.Literal["attempt_token", b"attempt_token", "call_info", b"call_info", "function_call_id", b"function_call_id"]) -> builtins.bool: ...
5181
+ def ClearField(self, field_name: typing_extensions.Literal["attempt_token", b"attempt_token", "call_info", b"call_info", "function_call_id", b"function_call_id", "last_index", b"last_index", "use_gapless_read", b"use_gapless_read"]) -> None: ...
5182
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["call_info", b"call_info"]) -> typing_extensions.Literal["function_call_id", "attempt_token"] | None: ...
4733
5183
 
4734
5184
  global___FunctionCallGetDataRequest = FunctionCallGetDataRequest
4735
5185
 
@@ -4815,17 +5265,22 @@ class FunctionCallPutDataRequest(google.protobuf.message.Message):
4815
5265
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
4816
5266
 
4817
5267
  FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
5268
+ ATTEMPT_TOKEN_FIELD_NUMBER: builtins.int
4818
5269
  DATA_CHUNKS_FIELD_NUMBER: builtins.int
4819
5270
  function_call_id: builtins.str
5271
+ attempt_token: builtins.str
4820
5272
  @property
4821
5273
  def data_chunks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DataChunk]: ...
4822
5274
  def __init__(
4823
5275
  self,
4824
5276
  *,
4825
5277
  function_call_id: builtins.str = ...,
5278
+ attempt_token: builtins.str = ...,
4826
5279
  data_chunks: collections.abc.Iterable[global___DataChunk] | None = ...,
4827
5280
  ) -> None: ...
4828
- def ClearField(self, field_name: typing_extensions.Literal["data_chunks", b"data_chunks", "function_call_id", b"function_call_id"]) -> None: ...
5281
+ def HasField(self, field_name: typing_extensions.Literal["attempt_token", b"attempt_token", "call_info", b"call_info", "function_call_id", b"function_call_id"]) -> builtins.bool: ...
5282
+ def ClearField(self, field_name: typing_extensions.Literal["attempt_token", b"attempt_token", "call_info", b"call_info", "data_chunks", b"data_chunks", "function_call_id", b"function_call_id"]) -> None: ...
5283
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["call_info", b"call_info"]) -> typing_extensions.Literal["function_call_id", "attempt_token"] | None: ...
4829
5284
 
4830
5285
  global___FunctionCallPutDataRequest = FunctionCallPutDataRequest
4831
5286
 
@@ -4988,6 +5443,9 @@ class FunctionData(google.protobuf.message.Message):
4988
5443
  EXPERIMENTAL_OPTIONS_FIELD_NUMBER: builtins.int
4989
5444
  FLASH_SERVICE_URLS_FIELD_NUMBER: builtins.int
4990
5445
  FLASH_SERVICE_LABEL_FIELD_NUMBER: builtins.int
5446
+ STARTUP_TIMEOUT_SECS_FIELD_NUMBER: builtins.int
5447
+ SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
5448
+ SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
4991
5449
  module_name: builtins.str
4992
5450
  function_name: builtins.str
4993
5451
  function_type: global___Function.FunctionType.ValueType
@@ -5049,7 +5507,12 @@ class FunctionData(google.protobuf.message.Message):
5049
5507
  @property
5050
5508
  def flash_service_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
5051
5509
  flash_service_label: builtins.str
5052
- def __init__(
5510
+ startup_timeout_secs: builtins.int
5511
+ @property
5512
+ def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
5513
+ @property
5514
+ def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
5515
+ def __init__(
5053
5516
  self,
5054
5517
  *,
5055
5518
  module_name: builtins.str = ...,
@@ -5086,9 +5549,12 @@ class FunctionData(google.protobuf.message.Message):
5086
5549
  experimental_options: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
5087
5550
  flash_service_urls: collections.abc.Iterable[builtins.str] | None = ...,
5088
5551
  flash_service_label: builtins.str = ...,
5552
+ startup_timeout_secs: builtins.int = ...,
5553
+ supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
5554
+ supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
5089
5555
  ) -> None: ...
5090
5556
  def HasField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_experimental_proxy_ip", b"_experimental_proxy_ip", "autoscaler_settings", b"autoscaler_settings", "class_parameter_info", b"class_parameter_info", "function_schema", b"function_schema", "schedule", b"schedule", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
5091
- def ClearField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_experimental_buffer_containers", b"_experimental_buffer_containers", "_experimental_custom_scaling", b"_experimental_custom_scaling", "_experimental_enable_gpu_snapshot", b"_experimental_enable_gpu_snapshot", "_experimental_group_size", b"_experimental_group_size", "_experimental_proxy_ip", b"_experimental_proxy_ip", "autoscaler_settings", b"autoscaler_settings", "class_parameter_info", b"class_parameter_info", "concurrency_limit", b"concurrency_limit", "custom_domain_info", b"custom_domain_info", "experimental_options", b"experimental_options", "flash_service_label", b"flash_service_label", "flash_service_urls", b"flash_service_urls", "function_name", b"function_name", "function_schema", b"function_schema", "function_type", b"function_type", "is_class", b"is_class", "is_method", b"is_method", "method_definitions", b"method_definitions", "method_definitions_set", b"method_definitions_set", "module_name", b"module_name", "ranked_functions", b"ranked_functions", "runtime_perf_record", b"runtime_perf_record", "schedule", b"schedule", "snapshot_debug", b"snapshot_debug", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "untrusted", b"untrusted", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "warm_pool_size", b"warm_pool_size", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config", "worker_id", b"worker_id"]) -> None: ...
5557
+ def ClearField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_experimental_buffer_containers", b"_experimental_buffer_containers", "_experimental_custom_scaling", b"_experimental_custom_scaling", "_experimental_enable_gpu_snapshot", b"_experimental_enable_gpu_snapshot", "_experimental_group_size", b"_experimental_group_size", "_experimental_proxy_ip", b"_experimental_proxy_ip", "autoscaler_settings", b"autoscaler_settings", "class_parameter_info", b"class_parameter_info", "concurrency_limit", b"concurrency_limit", "custom_domain_info", b"custom_domain_info", "experimental_options", b"experimental_options", "flash_service_label", b"flash_service_label", "flash_service_urls", b"flash_service_urls", "function_name", b"function_name", "function_schema", b"function_schema", "function_type", b"function_type", "is_class", b"is_class", "is_method", b"is_method", "method_definitions", b"method_definitions", "method_definitions_set", b"method_definitions_set", "module_name", b"module_name", "ranked_functions", b"ranked_functions", "runtime_perf_record", b"runtime_perf_record", "schedule", b"schedule", "snapshot_debug", b"snapshot_debug", "startup_timeout_secs", b"startup_timeout_secs", "supported_input_formats", b"supported_input_formats", "supported_output_formats", b"supported_output_formats", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "untrusted", b"untrusted", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "warm_pool_size", b"warm_pool_size", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config", "worker_id", b"worker_id"]) -> None: ...
5092
5558
  def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
5093
5559
 
5094
5560
  global___FunctionData = FunctionData
@@ -5117,6 +5583,26 @@ class FunctionExtended(google.protobuf.message.Message):
5117
5583
 
5118
5584
  global___FunctionExtended = FunctionExtended
5119
5585
 
5586
+ class FunctionFinishInputsRequest(google.protobuf.message.Message):
5587
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
5588
+
5589
+ FUNCTION_ID_FIELD_NUMBER: builtins.int
5590
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
5591
+ NUM_INPUTS_FIELD_NUMBER: builtins.int
5592
+ function_id: builtins.str
5593
+ function_call_id: builtins.str
5594
+ num_inputs: builtins.int
5595
+ def __init__(
5596
+ self,
5597
+ *,
5598
+ function_id: builtins.str = ...,
5599
+ function_call_id: builtins.str = ...,
5600
+ num_inputs: builtins.int = ...,
5601
+ ) -> None: ...
5602
+ def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "function_id", b"function_id", "num_inputs", b"num_inputs"]) -> None: ...
5603
+
5604
+ global___FunctionFinishInputsRequest = FunctionFinishInputsRequest
5605
+
5120
5606
  class FunctionGetCallGraphRequest(google.protobuf.message.Message):
5121
5607
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
5122
5608
 
@@ -5208,6 +5694,8 @@ class FunctionGetInputsItem(google.protobuf.message.Message):
5208
5694
  FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
5209
5695
  FUNCTION_CALL_INVOCATION_TYPE_FIELD_NUMBER: builtins.int
5210
5696
  RETRY_COUNT_FIELD_NUMBER: builtins.int
5697
+ FUNCTION_MAP_IDX_FIELD_NUMBER: builtins.int
5698
+ ATTEMPT_TOKEN_FIELD_NUMBER: builtins.int
5211
5699
  input_id: builtins.str
5212
5700
  @property
5213
5701
  def input(self) -> global___FunctionInput: ...
@@ -5215,6 +5703,9 @@ class FunctionGetInputsItem(google.protobuf.message.Message):
5215
5703
  function_call_id: builtins.str
5216
5704
  function_call_invocation_type: global___FunctionCallInvocationType.ValueType
5217
5705
  retry_count: builtins.int
5706
+ function_map_idx: builtins.int
5707
+ """intercepted and only used by the worker."""
5708
+ attempt_token: builtins.str
5218
5709
  def __init__(
5219
5710
  self,
5220
5711
  *,
@@ -5224,9 +5715,12 @@ class FunctionGetInputsItem(google.protobuf.message.Message):
5224
5715
  function_call_id: builtins.str = ...,
5225
5716
  function_call_invocation_type: global___FunctionCallInvocationType.ValueType = ...,
5226
5717
  retry_count: builtins.int = ...,
5718
+ function_map_idx: builtins.int | None = ...,
5719
+ attempt_token: builtins.str = ...,
5227
5720
  ) -> None: ...
5228
- def HasField(self, field_name: typing_extensions.Literal["input", b"input"]) -> builtins.bool: ...
5229
- def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "function_call_invocation_type", b"function_call_invocation_type", "input", b"input", "input_id", b"input_id", "kill_switch", b"kill_switch", "retry_count", b"retry_count"]) -> None: ...
5721
+ def HasField(self, field_name: typing_extensions.Literal["_function_map_idx", b"_function_map_idx", "function_map_idx", b"function_map_idx", "input", b"input"]) -> builtins.bool: ...
5722
+ def ClearField(self, field_name: typing_extensions.Literal["_function_map_idx", b"_function_map_idx", "attempt_token", b"attempt_token", "function_call_id", b"function_call_id", "function_call_invocation_type", b"function_call_invocation_type", "function_map_idx", b"function_map_idx", "input", b"input", "input_id", b"input_id", "kill_switch", b"kill_switch", "retry_count", b"retry_count"]) -> None: ...
5723
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_function_map_idx", b"_function_map_idx"]) -> typing_extensions.Literal["function_map_idx"] | None: ...
5230
5724
 
5231
5725
  global___FunctionGetInputsItem = FunctionGetInputsItem
5232
5726
 
@@ -5334,6 +5828,7 @@ class FunctionGetOutputsRequest(google.protobuf.message.Message):
5334
5828
  REQUESTED_AT_FIELD_NUMBER: builtins.int
5335
5829
  INPUT_JWTS_FIELD_NUMBER: builtins.int
5336
5830
  START_IDX_FIELD_NUMBER: builtins.int
5831
+ END_IDX_FIELD_NUMBER: builtins.int
5337
5832
  function_call_id: builtins.str
5338
5833
  max_values: builtins.int
5339
5834
  timeout: builtins.float
@@ -5347,6 +5842,8 @@ class FunctionGetOutputsRequest(google.protobuf.message.Message):
5347
5842
  """The jwts the client expects the server to be processing. This is optional and used for sync inputs only."""
5348
5843
  start_idx: builtins.int
5349
5844
  """for async batch requests. this indicates which index to start from."""
5845
+ end_idx: builtins.int
5846
+ """for async batch requests. this indicates which index to end at."""
5350
5847
  def __init__(
5351
5848
  self,
5352
5849
  *,
@@ -5358,9 +5855,13 @@ class FunctionGetOutputsRequest(google.protobuf.message.Message):
5358
5855
  requested_at: builtins.float = ...,
5359
5856
  input_jwts: collections.abc.Iterable[builtins.str] | None = ...,
5360
5857
  start_idx: builtins.int | None = ...,
5858
+ end_idx: builtins.int | None = ...,
5361
5859
  ) -> None: ...
5362
- def HasField(self, field_name: typing_extensions.Literal["_start_idx", b"_start_idx", "start_idx", b"start_idx"]) -> builtins.bool: ...
5363
- def ClearField(self, field_name: typing_extensions.Literal["_start_idx", b"_start_idx", "clear_on_success", b"clear_on_success", "function_call_id", b"function_call_id", "input_jwts", b"input_jwts", "last_entry_id", b"last_entry_id", "max_values", b"max_values", "requested_at", b"requested_at", "start_idx", b"start_idx", "timeout", b"timeout"]) -> None: ...
5860
+ def HasField(self, field_name: typing_extensions.Literal["_end_idx", b"_end_idx", "_start_idx", b"_start_idx", "end_idx", b"end_idx", "start_idx", b"start_idx"]) -> builtins.bool: ...
5861
+ def ClearField(self, field_name: typing_extensions.Literal["_end_idx", b"_end_idx", "_start_idx", b"_start_idx", "clear_on_success", b"clear_on_success", "end_idx", b"end_idx", "function_call_id", b"function_call_id", "input_jwts", b"input_jwts", "last_entry_id", b"last_entry_id", "max_values", b"max_values", "requested_at", b"requested_at", "start_idx", b"start_idx", "timeout", b"timeout"]) -> None: ...
5862
+ @typing.overload
5863
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_end_idx", b"_end_idx"]) -> typing_extensions.Literal["end_idx"] | None: ...
5864
+ @typing.overload
5364
5865
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_start_idx", b"_start_idx"]) -> typing_extensions.Literal["start_idx"] | None: ...
5365
5866
 
5366
5867
  global___FunctionGetOutputsRequest = FunctionGetOutputsRequest
@@ -5502,6 +6003,9 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
5502
6003
  INPUT_PLANE_URL_FIELD_NUMBER: builtins.int
5503
6004
  INPUT_PLANE_REGION_FIELD_NUMBER: builtins.int
5504
6005
  MAX_OBJECT_SIZE_BYTES_FIELD_NUMBER: builtins.int
6006
+ _EXPERIMENTAL_FLASH_URLS_FIELD_NUMBER: builtins.int
6007
+ SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
6008
+ SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
5505
6009
  function_name: builtins.str
5506
6010
  """Should be a subset and use IDs/types from `Function` above"""
5507
6011
  function_type: global___Function.FunctionType.ValueType
@@ -5523,6 +6027,13 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
5523
6027
  input_plane_region: builtins.str
5524
6028
  max_object_size_bytes: builtins.int
5525
6029
  """Use optional to ensure unset values default to None instead of 0"""
6030
+ @property
6031
+ def _experimental_flash_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
6032
+ """(Optional) urls for flash services"""
6033
+ @property
6034
+ def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
6035
+ @property
6036
+ def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
5526
6037
  def __init__(
5527
6038
  self,
5528
6039
  *,
@@ -5539,9 +6050,12 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
5539
6050
  input_plane_url: builtins.str | None = ...,
5540
6051
  input_plane_region: builtins.str | None = ...,
5541
6052
  max_object_size_bytes: builtins.int | None = ...,
6053
+ _experimental_flash_urls: collections.abc.Iterable[builtins.str] | None = ...,
6054
+ supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
6055
+ supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
5542
6056
  ) -> None: ...
5543
6057
  def HasField(self, field_name: typing_extensions.Literal["_input_plane_region", b"_input_plane_region", "_input_plane_url", b"_input_plane_url", "_max_object_size_bytes", b"_max_object_size_bytes", "class_parameter_info", b"class_parameter_info", "function_schema", b"function_schema", "input_plane_region", b"input_plane_region", "input_plane_url", b"input_plane_url", "max_object_size_bytes", b"max_object_size_bytes"]) -> builtins.bool: ...
5544
- def ClearField(self, field_name: typing_extensions.Literal["_input_plane_region", b"_input_plane_region", "_input_plane_url", b"_input_plane_url", "_max_object_size_bytes", b"_max_object_size_bytes", "class_parameter_info", b"class_parameter_info", "definition_id", b"definition_id", "function_name", b"function_name", "function_schema", b"function_schema", "function_type", b"function_type", "input_plane_region", b"input_plane_region", "input_plane_url", b"input_plane_url", "is_method", b"is_method", "max_object_size_bytes", b"max_object_size_bytes", "method_handle_metadata", b"method_handle_metadata", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "web_url", b"web_url"]) -> None: ...
6058
+ def ClearField(self, field_name: typing_extensions.Literal["_experimental_flash_urls", b"_experimental_flash_urls", "_input_plane_region", b"_input_plane_region", "_input_plane_url", b"_input_plane_url", "_max_object_size_bytes", b"_max_object_size_bytes", "class_parameter_info", b"class_parameter_info", "definition_id", b"definition_id", "function_name", b"function_name", "function_schema", b"function_schema", "function_type", b"function_type", "input_plane_region", b"input_plane_region", "input_plane_url", b"input_plane_url", "is_method", b"is_method", "max_object_size_bytes", b"max_object_size_bytes", "method_handle_metadata", b"method_handle_metadata", "supported_input_formats", b"supported_input_formats", "supported_output_formats", b"supported_output_formats", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "web_url", b"web_url"]) -> None: ...
5545
6059
  @typing.overload
5546
6060
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_input_plane_region", b"_input_plane_region"]) -> typing_extensions.Literal["input_plane_region"] | None: ...
5547
6061
  @typing.overload
@@ -5668,6 +6182,10 @@ class FunctionOptions(google.protobuf.message.Message):
5668
6182
  MAX_CONCURRENT_INPUTS_FIELD_NUMBER: builtins.int
5669
6183
  BATCH_MAX_SIZE_FIELD_NUMBER: builtins.int
5670
6184
  BATCH_LINGER_MS_FIELD_NUMBER: builtins.int
6185
+ SCHEDULER_PLACEMENT_FIELD_NUMBER: builtins.int
6186
+ CLOUD_PROVIDER_STR_FIELD_NUMBER: builtins.int
6187
+ REPLACE_CLOUD_BUCKET_MOUNTS_FIELD_NUMBER: builtins.int
6188
+ CLOUD_BUCKET_MOUNTS_FIELD_NUMBER: builtins.int
5671
6189
  @property
5672
6190
  def secret_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
5673
6191
  @property
@@ -5690,6 +6208,12 @@ class FunctionOptions(google.protobuf.message.Message):
5690
6208
  max_concurrent_inputs: builtins.int
5691
6209
  batch_max_size: builtins.int
5692
6210
  batch_linger_ms: builtins.int
6211
+ @property
6212
+ def scheduler_placement(self) -> global___SchedulerPlacement: ...
6213
+ cloud_provider_str: builtins.str
6214
+ replace_cloud_bucket_mounts: builtins.bool
6215
+ @property
6216
+ def cloud_bucket_mounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CloudBucketMount]: ...
5693
6217
  def __init__(
5694
6218
  self,
5695
6219
  *,
@@ -5709,9 +6233,13 @@ class FunctionOptions(google.protobuf.message.Message):
5709
6233
  max_concurrent_inputs: builtins.int | None = ...,
5710
6234
  batch_max_size: builtins.int | None = ...,
5711
6235
  batch_linger_ms: builtins.int | None = ...,
6236
+ scheduler_placement: global___SchedulerPlacement | None = ...,
6237
+ cloud_provider_str: builtins.str | None = ...,
6238
+ replace_cloud_bucket_mounts: builtins.bool = ...,
6239
+ cloud_bucket_mounts: collections.abc.Iterable[global___CloudBucketMount] | None = ...,
5712
6240
  ) -> None: ...
5713
- def HasField(self, field_name: typing_extensions.Literal["_batch_linger_ms", b"_batch_linger_ms", "_batch_max_size", b"_batch_max_size", "_buffer_containers", b"_buffer_containers", "_concurrency_limit", b"_concurrency_limit", "_max_concurrent_inputs", b"_max_concurrent_inputs", "_resources", b"_resources", "_retry_policy", b"_retry_policy", "_target_concurrent_inputs", b"_target_concurrent_inputs", "_task_idle_timeout_secs", b"_task_idle_timeout_secs", "_timeout_secs", b"_timeout_secs", "_warm_pool_size", b"_warm_pool_size", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "buffer_containers", b"buffer_containers", "concurrency_limit", b"concurrency_limit", "max_concurrent_inputs", b"max_concurrent_inputs", "resources", b"resources", "retry_policy", b"retry_policy", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "warm_pool_size", b"warm_pool_size"]) -> builtins.bool: ...
5714
- def ClearField(self, field_name: typing_extensions.Literal["_batch_linger_ms", b"_batch_linger_ms", "_batch_max_size", b"_batch_max_size", "_buffer_containers", b"_buffer_containers", "_concurrency_limit", b"_concurrency_limit", "_max_concurrent_inputs", b"_max_concurrent_inputs", "_resources", b"_resources", "_retry_policy", b"_retry_policy", "_target_concurrent_inputs", b"_target_concurrent_inputs", "_task_idle_timeout_secs", b"_task_idle_timeout_secs", "_timeout_secs", b"_timeout_secs", "_warm_pool_size", b"_warm_pool_size", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "buffer_containers", b"buffer_containers", "concurrency_limit", b"concurrency_limit", "max_concurrent_inputs", b"max_concurrent_inputs", "mount_ids", b"mount_ids", "replace_secret_ids", b"replace_secret_ids", "replace_volume_mounts", b"replace_volume_mounts", "resources", b"resources", "retry_policy", b"retry_policy", "secret_ids", b"secret_ids", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "volume_mounts", b"volume_mounts", "warm_pool_size", b"warm_pool_size"]) -> None: ...
6241
+ def HasField(self, field_name: typing_extensions.Literal["_batch_linger_ms", b"_batch_linger_ms", "_batch_max_size", b"_batch_max_size", "_buffer_containers", b"_buffer_containers", "_cloud_provider_str", b"_cloud_provider_str", "_concurrency_limit", b"_concurrency_limit", "_max_concurrent_inputs", b"_max_concurrent_inputs", "_resources", b"_resources", "_retry_policy", b"_retry_policy", "_scheduler_placement", b"_scheduler_placement", "_target_concurrent_inputs", b"_target_concurrent_inputs", "_task_idle_timeout_secs", b"_task_idle_timeout_secs", "_timeout_secs", b"_timeout_secs", "_warm_pool_size", b"_warm_pool_size", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "buffer_containers", b"buffer_containers", "cloud_provider_str", b"cloud_provider_str", "concurrency_limit", b"concurrency_limit", "max_concurrent_inputs", b"max_concurrent_inputs", "resources", b"resources", "retry_policy", b"retry_policy", "scheduler_placement", b"scheduler_placement", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "warm_pool_size", b"warm_pool_size"]) -> builtins.bool: ...
6242
+ def ClearField(self, field_name: typing_extensions.Literal["_batch_linger_ms", b"_batch_linger_ms", "_batch_max_size", b"_batch_max_size", "_buffer_containers", b"_buffer_containers", "_cloud_provider_str", b"_cloud_provider_str", "_concurrency_limit", b"_concurrency_limit", "_max_concurrent_inputs", b"_max_concurrent_inputs", "_resources", b"_resources", "_retry_policy", b"_retry_policy", "_scheduler_placement", b"_scheduler_placement", "_target_concurrent_inputs", b"_target_concurrent_inputs", "_task_idle_timeout_secs", b"_task_idle_timeout_secs", "_timeout_secs", b"_timeout_secs", "_warm_pool_size", b"_warm_pool_size", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "buffer_containers", b"buffer_containers", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider_str", b"cloud_provider_str", "concurrency_limit", b"concurrency_limit", "max_concurrent_inputs", b"max_concurrent_inputs", "mount_ids", b"mount_ids", "replace_cloud_bucket_mounts", b"replace_cloud_bucket_mounts", "replace_secret_ids", b"replace_secret_ids", "replace_volume_mounts", b"replace_volume_mounts", "resources", b"resources", "retry_policy", b"retry_policy", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "volume_mounts", b"volume_mounts", "warm_pool_size", b"warm_pool_size"]) -> None: ...
5715
6243
  @typing.overload
5716
6244
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_batch_linger_ms", b"_batch_linger_ms"]) -> typing_extensions.Literal["batch_linger_ms"] | None: ...
5717
6245
  @typing.overload
@@ -5719,6 +6247,8 @@ class FunctionOptions(google.protobuf.message.Message):
5719
6247
  @typing.overload
5720
6248
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_buffer_containers", b"_buffer_containers"]) -> typing_extensions.Literal["buffer_containers"] | None: ...
5721
6249
  @typing.overload
6250
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_cloud_provider_str", b"_cloud_provider_str"]) -> typing_extensions.Literal["cloud_provider_str"] | None: ...
6251
+ @typing.overload
5722
6252
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_concurrency_limit", b"_concurrency_limit"]) -> typing_extensions.Literal["concurrency_limit"] | None: ...
5723
6253
  @typing.overload
5724
6254
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_max_concurrent_inputs", b"_max_concurrent_inputs"]) -> typing_extensions.Literal["max_concurrent_inputs"] | None: ...
@@ -5727,6 +6257,8 @@ class FunctionOptions(google.protobuf.message.Message):
5727
6257
  @typing.overload
5728
6258
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_retry_policy", b"_retry_policy"]) -> typing_extensions.Literal["retry_policy"] | None: ...
5729
6259
  @typing.overload
6260
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_scheduler_placement", b"_scheduler_placement"]) -> typing_extensions.Literal["scheduler_placement"] | None: ...
6261
+ @typing.overload
5730
6262
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_target_concurrent_inputs", b"_target_concurrent_inputs"]) -> typing_extensions.Literal["target_concurrent_inputs"] | None: ...
5731
6263
  @typing.overload
5732
6264
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_task_idle_timeout_secs", b"_task_idle_timeout_secs"]) -> typing_extensions.Literal["task_idle_timeout_secs"] | None: ...
@@ -5766,6 +6298,8 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
5766
6298
  USE_METHOD_NAME_FIELD_NUMBER: builtins.int
5767
6299
  METHOD_DEFINITIONS_FIELD_NUMBER: builtins.int
5768
6300
  FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
6301
+ SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
6302
+ SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
5769
6303
  app_id: builtins.str
5770
6304
  function_name: builtins.str
5771
6305
  existing_function_id: builtins.str
@@ -5781,6 +6315,10 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
5781
6315
  """Mapping of method names to method definitions, only non-empty for class service functions"""
5782
6316
  @property
5783
6317
  def function_schema(self) -> global___FunctionSchema: ...
6318
+ @property
6319
+ def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
6320
+ @property
6321
+ def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
5784
6322
  def __init__(
5785
6323
  self,
5786
6324
  *,
@@ -5793,9 +6331,11 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
5793
6331
  use_method_name: builtins.str = ...,
5794
6332
  method_definitions: collections.abc.Mapping[builtins.str, global___MethodDefinition] | None = ...,
5795
6333
  function_schema: global___FunctionSchema | None = ...,
6334
+ supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
6335
+ supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
5796
6336
  ) -> None: ...
5797
6337
  def HasField(self, field_name: typing_extensions.Literal["function_schema", b"function_schema", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
5798
- def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "existing_function_id", b"existing_function_id", "function_name", b"function_name", "function_schema", b"function_schema", "function_type", b"function_type", "method_definitions", b"method_definitions", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "webhook_config", b"webhook_config"]) -> None: ...
6338
+ def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "existing_function_id", b"existing_function_id", "function_name", b"function_name", "function_schema", b"function_schema", "function_type", b"function_type", "method_definitions", b"method_definitions", "supported_input_formats", b"supported_input_formats", "supported_output_formats", b"supported_output_formats", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "webhook_config", b"webhook_config"]) -> None: ...
5799
6339
 
5800
6340
  global___FunctionPrecreateRequest = FunctionPrecreateRequest
5801
6341
 
@@ -5824,22 +6364,22 @@ class FunctionPutInputsItem(google.protobuf.message.Message):
5824
6364
  IDX_FIELD_NUMBER: builtins.int
5825
6365
  INPUT_FIELD_NUMBER: builtins.int
5826
6366
  R2_FAILED_FIELD_NUMBER: builtins.int
5827
- R2_LATENCY_MS_FIELD_NUMBER: builtins.int
6367
+ R2_THROUGHPUT_BYTES_S_FIELD_NUMBER: builtins.int
5828
6368
  idx: builtins.int
5829
6369
  @property
5830
6370
  def input(self) -> global___FunctionInput: ...
5831
6371
  r2_failed: builtins.bool
5832
- r2_latency_ms: builtins.int
6372
+ r2_throughput_bytes_s: builtins.int
5833
6373
  def __init__(
5834
6374
  self,
5835
6375
  *,
5836
6376
  idx: builtins.int = ...,
5837
6377
  input: global___FunctionInput | None = ...,
5838
6378
  r2_failed: builtins.bool = ...,
5839
- r2_latency_ms: builtins.int = ...,
6379
+ r2_throughput_bytes_s: builtins.int = ...,
5840
6380
  ) -> None: ...
5841
6381
  def HasField(self, field_name: typing_extensions.Literal["input", b"input"]) -> builtins.bool: ...
5842
- def ClearField(self, field_name: typing_extensions.Literal["idx", b"idx", "input", b"input", "r2_failed", b"r2_failed", "r2_latency_ms", b"r2_latency_ms"]) -> None: ...
6382
+ def ClearField(self, field_name: typing_extensions.Literal["idx", b"idx", "input", b"input", "r2_failed", b"r2_failed", "r2_throughput_bytes_s", b"r2_throughput_bytes_s"]) -> None: ...
5843
6383
 
5844
6384
  global___FunctionPutInputsItem = FunctionPutInputsItem
5845
6385
 
@@ -5908,6 +6448,8 @@ class FunctionPutOutputsItem(google.protobuf.message.Message):
5908
6448
  OUTPUT_CREATED_AT_FIELD_NUMBER: builtins.int
5909
6449
  DATA_FORMAT_FIELD_NUMBER: builtins.int
5910
6450
  RETRY_COUNT_FIELD_NUMBER: builtins.int
6451
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
6452
+ FUNCTION_MAP_IDX_FIELD_NUMBER: builtins.int
5911
6453
  input_id: builtins.str
5912
6454
  @property
5913
6455
  def result(self) -> global___GenericResult: ...
@@ -5916,6 +6458,10 @@ class FunctionPutOutputsItem(google.protobuf.message.Message):
5916
6458
  data_format: global___DataFormat.ValueType
5917
6459
  """for result.data_oneof"""
5918
6460
  retry_count: builtins.int
6461
+ function_call_id: builtins.str
6462
+ """injected by the worker"""
6463
+ function_map_idx: builtins.int
6464
+ """injected by the worker"""
5919
6465
  def __init__(
5920
6466
  self,
5921
6467
  *,
@@ -5925,9 +6471,12 @@ class FunctionPutOutputsItem(google.protobuf.message.Message):
5925
6471
  output_created_at: builtins.float = ...,
5926
6472
  data_format: global___DataFormat.ValueType = ...,
5927
6473
  retry_count: builtins.int = ...,
6474
+ function_call_id: builtins.str = ...,
6475
+ function_map_idx: builtins.int | None = ...,
5928
6476
  ) -> None: ...
5929
- def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ...
5930
- def ClearField(self, field_name: typing_extensions.Literal["data_format", b"data_format", "input_id", b"input_id", "input_started_at", b"input_started_at", "output_created_at", b"output_created_at", "result", b"result", "retry_count", b"retry_count"]) -> None: ...
6477
+ def HasField(self, field_name: typing_extensions.Literal["_function_map_idx", b"_function_map_idx", "function_map_idx", b"function_map_idx", "result", b"result"]) -> builtins.bool: ...
6478
+ def ClearField(self, field_name: typing_extensions.Literal["_function_map_idx", b"_function_map_idx", "data_format", b"data_format", "function_call_id", b"function_call_id", "function_map_idx", b"function_map_idx", "input_id", b"input_id", "input_started_at", b"input_started_at", "output_created_at", b"output_created_at", "result", b"result", "retry_count", b"retry_count"]) -> None: ...
6479
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_function_map_idx", b"_function_map_idx"]) -> typing_extensions.Literal["function_map_idx"] | None: ...
5931
6480
 
5932
6481
  global___FunctionPutOutputsItem = FunctionPutOutputsItem
5933
6482
 
@@ -6192,6 +6741,8 @@ class GenericResult(google.protobuf.message.Message):
6192
6741
  Terminates the function and all remaining inputs.
6193
6742
  """
6194
6743
  GENERIC_STATUS_INTERNAL_FAILURE: GenericResult._GenericStatus.ValueType # 6
6744
+ GENERIC_STATUS_IDLE_TIMEOUT: GenericResult._GenericStatus.ValueType # 7
6745
+ """Used when sandboxes are terminated due to idle_timeout"""
6195
6746
 
6196
6747
  class GenericStatus(_GenericStatus, metaclass=_GenericStatusEnumTypeWrapper): ...
6197
6748
  GENERIC_STATUS_UNSPECIFIED: GenericResult.GenericStatus.ValueType # 0
@@ -6205,6 +6756,8 @@ class GenericResult(google.protobuf.message.Message):
6205
6756
  Terminates the function and all remaining inputs.
6206
6757
  """
6207
6758
  GENERIC_STATUS_INTERNAL_FAILURE: GenericResult.GenericStatus.ValueType # 6
6759
+ GENERIC_STATUS_IDLE_TIMEOUT: GenericResult.GenericStatus.ValueType # 7
6760
+ """Used when sandboxes are terminated due to idle_timeout"""
6208
6761
 
6209
6762
  STATUS_FIELD_NUMBER: builtins.int
6210
6763
  EXCEPTION_FIELD_NUMBER: builtins.int
@@ -6284,6 +6837,7 @@ class Image(google.protobuf.message.Message):
6284
6837
  RUNTIME_DEBUG_FIELD_NUMBER: builtins.int
6285
6838
  BUILD_FUNCTION_FIELD_NUMBER: builtins.int
6286
6839
  BUILD_ARGS_FIELD_NUMBER: builtins.int
6840
+ VOLUME_MOUNTS_FIELD_NUMBER: builtins.int
6287
6841
  @property
6288
6842
  def base_images(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BaseImage]: ...
6289
6843
  @property
@@ -6314,6 +6868,9 @@ class Image(google.protobuf.message.Message):
6314
6868
  @property
6315
6869
  def build_args(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
6316
6870
  """Build arguments for the image (--build-arg) for ARG substitution in Dockerfile."""
6871
+ @property
6872
+ def volume_mounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VolumeMount]:
6873
+ """Volume mount for RUN commands"""
6317
6874
  def __init__(
6318
6875
  self,
6319
6876
  *,
@@ -6331,9 +6888,10 @@ class Image(google.protobuf.message.Message):
6331
6888
  runtime_debug: builtins.bool = ...,
6332
6889
  build_function: global___BuildFunction | None = ...,
6333
6890
  build_args: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
6891
+ volume_mounts: collections.abc.Iterable[global___VolumeMount] | None = ...,
6334
6892
  ) -> None: ...
6335
6893
  def HasField(self, field_name: typing_extensions.Literal["build_function", b"build_function", "gpu_config", b"gpu_config", "image_registry_config", b"image_registry_config"]) -> builtins.bool: ...
6336
- def ClearField(self, field_name: typing_extensions.Literal["base_images", b"base_images", "build_args", b"build_args", "build_function", b"build_function", "build_function_def", b"build_function_def", "build_function_globals", b"build_function_globals", "context_files", b"context_files", "context_mount_id", b"context_mount_id", "dockerfile_commands", b"dockerfile_commands", "gpu_config", b"gpu_config", "image_registry_config", b"image_registry_config", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "secret_ids", b"secret_ids", "version", b"version"]) -> None: ...
6894
+ def ClearField(self, field_name: typing_extensions.Literal["base_images", b"base_images", "build_args", b"build_args", "build_function", b"build_function", "build_function_def", b"build_function_def", "build_function_globals", b"build_function_globals", "context_files", b"context_files", "context_mount_id", b"context_mount_id", "dockerfile_commands", b"dockerfile_commands", "gpu_config", b"gpu_config", "image_registry_config", b"image_registry_config", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "secret_ids", b"secret_ids", "version", b"version", "volume_mounts", b"volume_mounts"]) -> None: ...
6337
6895
 
6338
6896
  global___Image = Image
6339
6897
 
@@ -6354,6 +6912,20 @@ class ImageContextFile(google.protobuf.message.Message):
6354
6912
 
6355
6913
  global___ImageContextFile = ImageContextFile
6356
6914
 
6915
+ class ImageDeleteRequest(google.protobuf.message.Message):
6916
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
6917
+
6918
+ IMAGE_ID_FIELD_NUMBER: builtins.int
6919
+ image_id: builtins.str
6920
+ def __init__(
6921
+ self,
6922
+ *,
6923
+ image_id: builtins.str = ...,
6924
+ ) -> None: ...
6925
+ def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id"]) -> None: ...
6926
+
6927
+ global___ImageDeleteRequest = ImageDeleteRequest
6928
+
6357
6929
  class ImageFromIdRequest(google.protobuf.message.Message):
6358
6930
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
6359
6931
 
@@ -6663,6 +7235,191 @@ class InputInfo(google.protobuf.message.Message):
6663
7235
 
6664
7236
  global___InputInfo = InputInfo
6665
7237
 
7238
+ class ListPagination(google.protobuf.message.Message):
7239
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
7240
+
7241
+ MAX_OBJECTS_FIELD_NUMBER: builtins.int
7242
+ CREATED_BEFORE_FIELD_NUMBER: builtins.int
7243
+ max_objects: builtins.int
7244
+ created_before: builtins.float
7245
+ def __init__(
7246
+ self,
7247
+ *,
7248
+ max_objects: builtins.int = ...,
7249
+ created_before: builtins.float = ...,
7250
+ ) -> None: ...
7251
+ def ClearField(self, field_name: typing_extensions.Literal["created_before", b"created_before", "max_objects", b"max_objects"]) -> None: ...
7252
+
7253
+ global___ListPagination = ListPagination
7254
+
7255
+ class MapAwaitRequest(google.protobuf.message.Message):
7256
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
7257
+
7258
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
7259
+ MAP_TOKEN_FIELD_NUMBER: builtins.int
7260
+ LAST_ENTRY_ID_FIELD_NUMBER: builtins.int
7261
+ REQUESTED_AT_FIELD_NUMBER: builtins.int
7262
+ TIMEOUT_FIELD_NUMBER: builtins.int
7263
+ function_call_id: builtins.str
7264
+ map_token: builtins.str
7265
+ last_entry_id: builtins.str
7266
+ requested_at: builtins.float
7267
+ """Used for waypoints."""
7268
+ timeout: builtins.float
7269
+ def __init__(
7270
+ self,
7271
+ *,
7272
+ function_call_id: builtins.str = ...,
7273
+ map_token: builtins.str = ...,
7274
+ last_entry_id: builtins.str = ...,
7275
+ requested_at: builtins.float = ...,
7276
+ timeout: builtins.float = ...,
7277
+ ) -> None: ...
7278
+ def HasField(self, field_name: typing_extensions.Literal["call_info", b"call_info", "function_call_id", b"function_call_id", "map_token", b"map_token"]) -> builtins.bool: ...
7279
+ def ClearField(self, field_name: typing_extensions.Literal["call_info", b"call_info", "function_call_id", b"function_call_id", "last_entry_id", b"last_entry_id", "map_token", b"map_token", "requested_at", b"requested_at", "timeout", b"timeout"]) -> None: ...
7280
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["call_info", b"call_info"]) -> typing_extensions.Literal["function_call_id", "map_token"] | None: ...
7281
+
7282
+ global___MapAwaitRequest = MapAwaitRequest
7283
+
7284
+ class MapAwaitResponse(google.protobuf.message.Message):
7285
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
7286
+
7287
+ OUTPUTS_FIELD_NUMBER: builtins.int
7288
+ LAST_ENTRY_ID_FIELD_NUMBER: builtins.int
7289
+ @property
7290
+ def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionGetOutputsItem]: ...
7291
+ last_entry_id: builtins.str
7292
+ def __init__(
7293
+ self,
7294
+ *,
7295
+ outputs: collections.abc.Iterable[global___FunctionGetOutputsItem] | None = ...,
7296
+ last_entry_id: builtins.str = ...,
7297
+ ) -> None: ...
7298
+ def ClearField(self, field_name: typing_extensions.Literal["last_entry_id", b"last_entry_id", "outputs", b"outputs"]) -> None: ...
7299
+
7300
+ global___MapAwaitResponse = MapAwaitResponse
7301
+
7302
+ class MapCheckInputsRequest(google.protobuf.message.Message):
7303
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
7304
+
7305
+ LAST_ENTRY_ID_FIELD_NUMBER: builtins.int
7306
+ TIMEOUT_FIELD_NUMBER: builtins.int
7307
+ ATTEMPT_TOKENS_FIELD_NUMBER: builtins.int
7308
+ last_entry_id: builtins.str
7309
+ timeout: builtins.float
7310
+ @property
7311
+ def attempt_tokens(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
7312
+ def __init__(
7313
+ self,
7314
+ *,
7315
+ last_entry_id: builtins.str = ...,
7316
+ timeout: builtins.float = ...,
7317
+ attempt_tokens: collections.abc.Iterable[builtins.str] | None = ...,
7318
+ ) -> None: ...
7319
+ def ClearField(self, field_name: typing_extensions.Literal["attempt_tokens", b"attempt_tokens", "last_entry_id", b"last_entry_id", "timeout", b"timeout"]) -> None: ...
7320
+
7321
+ global___MapCheckInputsRequest = MapCheckInputsRequest
7322
+
7323
+ class MapCheckInputsResponse(google.protobuf.message.Message):
7324
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
7325
+
7326
+ LOST_FIELD_NUMBER: builtins.int
7327
+ @property
7328
+ def lost(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ...
7329
+ def __init__(
7330
+ self,
7331
+ *,
7332
+ lost: collections.abc.Iterable[builtins.bool] | None = ...,
7333
+ ) -> None: ...
7334
+ def ClearField(self, field_name: typing_extensions.Literal["lost", b"lost"]) -> None: ...
7335
+
7336
+ global___MapCheckInputsResponse = MapCheckInputsResponse
7337
+
7338
+ class MapStartOrContinueItem(google.protobuf.message.Message):
7339
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
7340
+
7341
+ INPUT_FIELD_NUMBER: builtins.int
7342
+ ATTEMPT_TOKEN_FIELD_NUMBER: builtins.int
7343
+ @property
7344
+ def input(self) -> global___FunctionPutInputsItem: ...
7345
+ attempt_token: builtins.str
7346
+ """None if this is a fresh input, otherwise it is the attempt token for a retry."""
7347
+ def __init__(
7348
+ self,
7349
+ *,
7350
+ input: global___FunctionPutInputsItem | None = ...,
7351
+ attempt_token: builtins.str | None = ...,
7352
+ ) -> None: ...
7353
+ def HasField(self, field_name: typing_extensions.Literal["_attempt_token", b"_attempt_token", "attempt_token", b"attempt_token", "input", b"input"]) -> builtins.bool: ...
7354
+ def ClearField(self, field_name: typing_extensions.Literal["_attempt_token", b"_attempt_token", "attempt_token", b"attempt_token", "input", b"input"]) -> None: ...
7355
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_attempt_token", b"_attempt_token"]) -> typing_extensions.Literal["attempt_token"] | None: ...
7356
+
7357
+ global___MapStartOrContinueItem = MapStartOrContinueItem
7358
+
7359
+ class MapStartOrContinueRequest(google.protobuf.message.Message):
7360
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
7361
+
7362
+ FUNCTION_ID_FIELD_NUMBER: builtins.int
7363
+ PARENT_INPUT_ID_FIELD_NUMBER: builtins.int
7364
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
7365
+ MAP_TOKEN_FIELD_NUMBER: builtins.int
7366
+ ITEMS_FIELD_NUMBER: builtins.int
7367
+ function_id: builtins.str
7368
+ parent_input_id: builtins.str
7369
+ function_call_id: builtins.str
7370
+ map_token: builtins.str
7371
+ @property
7372
+ def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MapStartOrContinueItem]: ...
7373
+ def __init__(
7374
+ self,
7375
+ *,
7376
+ function_id: builtins.str = ...,
7377
+ parent_input_id: builtins.str = ...,
7378
+ function_call_id: builtins.str = ...,
7379
+ map_token: builtins.str = ...,
7380
+ items: collections.abc.Iterable[global___MapStartOrContinueItem] | None = ...,
7381
+ ) -> None: ...
7382
+ def HasField(self, field_name: typing_extensions.Literal["call_info", b"call_info", "function_call_id", b"function_call_id", "map_token", b"map_token"]) -> builtins.bool: ...
7383
+ def ClearField(self, field_name: typing_extensions.Literal["call_info", b"call_info", "function_call_id", b"function_call_id", "function_id", b"function_id", "items", b"items", "map_token", b"map_token", "parent_input_id", b"parent_input_id"]) -> None: ...
7384
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["call_info", b"call_info"]) -> typing_extensions.Literal["function_call_id", "map_token"] | None: ...
7385
+
7386
+ global___MapStartOrContinueRequest = MapStartOrContinueRequest
7387
+
7388
+ class MapStartOrContinueResponse(google.protobuf.message.Message):
7389
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
7390
+
7391
+ MAP_TOKEN_FIELD_NUMBER: builtins.int
7392
+ FUNCTION_ID_FIELD_NUMBER: builtins.int
7393
+ FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
7394
+ MAX_INPUTS_OUTSTANDING_FIELD_NUMBER: builtins.int
7395
+ ATTEMPT_TOKENS_FIELD_NUMBER: builtins.int
7396
+ RETRY_POLICY_FIELD_NUMBER: builtins.int
7397
+ map_token: builtins.str
7398
+ """function_id and function_call_id are not necessary if map_token is provided.
7399
+ All 3 will be sent until it is safe to only send map_token.
7400
+ """
7401
+ function_id: builtins.str
7402
+ function_call_id: builtins.str
7403
+ max_inputs_outstanding: builtins.int
7404
+ @property
7405
+ def attempt_tokens(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
7406
+ @property
7407
+ def retry_policy(self) -> global___FunctionRetryPolicy: ...
7408
+ def __init__(
7409
+ self,
7410
+ *,
7411
+ map_token: builtins.str = ...,
7412
+ function_id: builtins.str = ...,
7413
+ function_call_id: builtins.str = ...,
7414
+ max_inputs_outstanding: builtins.int = ...,
7415
+ attempt_tokens: collections.abc.Iterable[builtins.str] | None = ...,
7416
+ retry_policy: global___FunctionRetryPolicy | None = ...,
7417
+ ) -> None: ...
7418
+ def HasField(self, field_name: typing_extensions.Literal["retry_policy", b"retry_policy"]) -> builtins.bool: ...
7419
+ def ClearField(self, field_name: typing_extensions.Literal["attempt_tokens", b"attempt_tokens", "function_call_id", b"function_call_id", "function_id", b"function_id", "map_token", b"map_token", "max_inputs_outstanding", b"max_inputs_outstanding", "retry_policy", b"retry_policy"]) -> None: ...
7420
+
7421
+ global___MapStartOrContinueResponse = MapStartOrContinueResponse
7422
+
6666
7423
  class MethodDefinition(google.protobuf.message.Message):
6667
7424
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
6668
7425
 
@@ -6673,6 +7430,8 @@ class MethodDefinition(google.protobuf.message.Message):
6673
7430
  WEB_URL_INFO_FIELD_NUMBER: builtins.int
6674
7431
  CUSTOM_DOMAIN_INFO_FIELD_NUMBER: builtins.int
6675
7432
  FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
7433
+ SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
7434
+ SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
6676
7435
  function_name: builtins.str
6677
7436
  function_type: global___Function.FunctionType.ValueType
6678
7437
  @property
@@ -6684,6 +7443,10 @@ class MethodDefinition(google.protobuf.message.Message):
6684
7443
  def custom_domain_info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CustomDomainInfo]: ...
6685
7444
  @property
6686
7445
  def function_schema(self) -> global___FunctionSchema: ...
7446
+ @property
7447
+ def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
7448
+ @property
7449
+ def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
6687
7450
  def __init__(
6688
7451
  self,
6689
7452
  *,
@@ -6694,9 +7457,11 @@ class MethodDefinition(google.protobuf.message.Message):
6694
7457
  web_url_info: global___WebUrlInfo | None = ...,
6695
7458
  custom_domain_info: collections.abc.Iterable[global___CustomDomainInfo] | None = ...,
6696
7459
  function_schema: global___FunctionSchema | None = ...,
7460
+ supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
7461
+ supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
6697
7462
  ) -> None: ...
6698
7463
  def HasField(self, field_name: typing_extensions.Literal["function_schema", b"function_schema", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
6699
- def ClearField(self, field_name: typing_extensions.Literal["custom_domain_info", b"custom_domain_info", "function_name", b"function_name", "function_schema", b"function_schema", "function_type", b"function_type", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> None: ...
7464
+ def ClearField(self, field_name: typing_extensions.Literal["custom_domain_info", b"custom_domain_info", "function_name", b"function_name", "function_schema", b"function_schema", "function_type", b"function_type", "supported_input_formats", b"supported_input_formats", "supported_output_formats", b"supported_output_formats", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> None: ...
6700
7465
 
6701
7466
  global___MethodDefinition = MethodDefinition
6702
7467
 
@@ -7179,6 +7944,7 @@ class PTYInfo(google.protobuf.message.Message):
7179
7944
  ENV_COLORTERM_FIELD_NUMBER: builtins.int
7180
7945
  ENV_TERM_PROGRAM_FIELD_NUMBER: builtins.int
7181
7946
  PTY_TYPE_FIELD_NUMBER: builtins.int
7947
+ NO_TERMINATE_ON_IDLE_STDIN_FIELD_NUMBER: builtins.int
7182
7948
  enabled: builtins.bool
7183
7949
  """Soon deprecated"""
7184
7950
  winsz_rows: builtins.int
@@ -7187,6 +7953,7 @@ class PTYInfo(google.protobuf.message.Message):
7187
7953
  env_colorterm: builtins.str
7188
7954
  env_term_program: builtins.str
7189
7955
  pty_type: global___PTYInfo.PTYType.ValueType
7956
+ no_terminate_on_idle_stdin: builtins.bool
7190
7957
  def __init__(
7191
7958
  self,
7192
7959
  *,
@@ -7197,8 +7964,9 @@ class PTYInfo(google.protobuf.message.Message):
7197
7964
  env_colorterm: builtins.str = ...,
7198
7965
  env_term_program: builtins.str = ...,
7199
7966
  pty_type: global___PTYInfo.PTYType.ValueType = ...,
7967
+ no_terminate_on_idle_stdin: builtins.bool = ...,
7200
7968
  ) -> None: ...
7201
- def ClearField(self, field_name: typing_extensions.Literal["enabled", b"enabled", "env_colorterm", b"env_colorterm", "env_term", b"env_term", "env_term_program", b"env_term_program", "pty_type", b"pty_type", "winsz_cols", b"winsz_cols", "winsz_rows", b"winsz_rows"]) -> None: ...
7969
+ def ClearField(self, field_name: typing_extensions.Literal["enabled", b"enabled", "env_colorterm", b"env_colorterm", "env_term", b"env_term", "env_term_program", b"env_term_program", "no_terminate_on_idle_stdin", b"no_terminate_on_idle_stdin", "pty_type", b"pty_type", "winsz_cols", b"winsz_cols", "winsz_rows", b"winsz_rows"]) -> None: ...
7202
7970
 
7203
7971
  global___PTYInfo = PTYInfo
7204
7972
 
@@ -7245,24 +8013,27 @@ class Proxy(google.protobuf.message.Message):
7245
8013
  NAME_FIELD_NUMBER: builtins.int
7246
8014
  CREATED_AT_FIELD_NUMBER: builtins.int
7247
8015
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
7248
- PROXY_ID_FIELD_NUMBER: builtins.int
7249
8016
  PROXY_IPS_FIELD_NUMBER: builtins.int
8017
+ PROXY_ID_FIELD_NUMBER: builtins.int
8018
+ REGION_FIELD_NUMBER: builtins.int
7250
8019
  name: builtins.str
7251
8020
  created_at: builtins.float
7252
8021
  environment_name: builtins.str
7253
- proxy_id: builtins.str
7254
8022
  @property
7255
8023
  def proxy_ips(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProxyIp]: ...
8024
+ proxy_id: builtins.str
8025
+ region: builtins.str
7256
8026
  def __init__(
7257
8027
  self,
7258
8028
  *,
7259
8029
  name: builtins.str = ...,
7260
8030
  created_at: builtins.float = ...,
7261
8031
  environment_name: builtins.str = ...,
7262
- proxy_id: builtins.str = ...,
7263
8032
  proxy_ips: collections.abc.Iterable[global___ProxyIp] | None = ...,
8033
+ proxy_id: builtins.str = ...,
8034
+ region: builtins.str = ...,
7264
8035
  ) -> None: ...
7265
- def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "environment_name", b"environment_name", "name", b"name", "proxy_id", b"proxy_id", "proxy_ips", b"proxy_ips"]) -> None: ...
8036
+ def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "environment_name", b"environment_name", "name", b"name", "proxy_id", b"proxy_id", "proxy_ips", b"proxy_ips", "region", b"region"]) -> None: ...
7266
8037
 
7267
8038
  global___Proxy = Proxy
7268
8039
 
@@ -7301,15 +8072,18 @@ class ProxyCreateRequest(google.protobuf.message.Message):
7301
8072
 
7302
8073
  NAME_FIELD_NUMBER: builtins.int
7303
8074
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
8075
+ REGION_FIELD_NUMBER: builtins.int
7304
8076
  name: builtins.str
7305
8077
  environment_name: builtins.str
8078
+ region: builtins.str
7306
8079
  def __init__(
7307
8080
  self,
7308
8081
  *,
7309
8082
  name: builtins.str = ...,
7310
8083
  environment_name: builtins.str = ...,
8084
+ region: builtins.str = ...,
7311
8085
  ) -> None: ...
7312
- def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "name", b"name"]) -> None: ...
8086
+ def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "name", b"name", "region", b"region"]) -> None: ...
7313
8087
 
7314
8088
  global___ProxyCreateRequest = ProxyCreateRequest
7315
8089
 
@@ -7547,13 +8321,18 @@ class QueueGetOrCreateResponse(google.protobuf.message.Message):
7547
8321
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
7548
8322
 
7549
8323
  QUEUE_ID_FIELD_NUMBER: builtins.int
8324
+ METADATA_FIELD_NUMBER: builtins.int
7550
8325
  queue_id: builtins.str
8326
+ @property
8327
+ def metadata(self) -> global___QueueMetadata: ...
7551
8328
  def __init__(
7552
8329
  self,
7553
8330
  *,
7554
8331
  queue_id: builtins.str = ...,
8332
+ metadata: global___QueueMetadata | None = ...,
7555
8333
  ) -> None: ...
7556
- def ClearField(self, field_name: typing_extensions.Literal["queue_id", b"queue_id"]) -> None: ...
8334
+ def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
8335
+ def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "queue_id", b"queue_id"]) -> None: ...
7557
8336
 
7558
8337
  global___QueueGetOrCreateResponse = QueueGetOrCreateResponse
7559
8338
 
@@ -7665,16 +8444,21 @@ class QueueListRequest(google.protobuf.message.Message):
7665
8444
 
7666
8445
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
7667
8446
  TOTAL_SIZE_LIMIT_FIELD_NUMBER: builtins.int
8447
+ PAGINATION_FIELD_NUMBER: builtins.int
7668
8448
  environment_name: builtins.str
7669
8449
  total_size_limit: builtins.int
7670
- """Allow client to report a bounded total size to reduce the number of partitions that need to be checked"""
8450
+ """Limit on "number of partitions" reported, since checking them is costly"""
8451
+ @property
8452
+ def pagination(self) -> global___ListPagination: ...
7671
8453
  def __init__(
7672
8454
  self,
7673
8455
  *,
7674
8456
  environment_name: builtins.str = ...,
7675
8457
  total_size_limit: builtins.int = ...,
8458
+ pagination: global___ListPagination | None = ...,
7676
8459
  ) -> None: ...
7677
- def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "total_size_limit", b"total_size_limit"]) -> None: ...
8460
+ def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ...
8461
+ def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "pagination", b"pagination", "total_size_limit", b"total_size_limit"]) -> None: ...
7678
8462
 
7679
8463
  global___QueueListRequest = QueueListRequest
7680
8464
 
@@ -7688,10 +8472,16 @@ class QueueListResponse(google.protobuf.message.Message):
7688
8472
  CREATED_AT_FIELD_NUMBER: builtins.int
7689
8473
  NUM_PARTITIONS_FIELD_NUMBER: builtins.int
7690
8474
  TOTAL_SIZE_FIELD_NUMBER: builtins.int
8475
+ QUEUE_ID_FIELD_NUMBER: builtins.int
8476
+ METADATA_FIELD_NUMBER: builtins.int
7691
8477
  name: builtins.str
7692
8478
  created_at: builtins.float
8479
+ """Superseded by metadata, used by clients up to 1.1.2"""
7693
8480
  num_partitions: builtins.int
7694
8481
  total_size: builtins.int
8482
+ queue_id: builtins.str
8483
+ @property
8484
+ def metadata(self) -> global___QueueMetadata: ...
7695
8485
  def __init__(
7696
8486
  self,
7697
8487
  *,
@@ -7699,21 +8489,46 @@ class QueueListResponse(google.protobuf.message.Message):
7699
8489
  created_at: builtins.float = ...,
7700
8490
  num_partitions: builtins.int = ...,
7701
8491
  total_size: builtins.int = ...,
8492
+ queue_id: builtins.str = ...,
8493
+ metadata: global___QueueMetadata | None = ...,
7702
8494
  ) -> None: ...
7703
- def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "name", b"name", "num_partitions", b"num_partitions", "total_size", b"total_size"]) -> None: ...
8495
+ def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
8496
+ def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "metadata", b"metadata", "name", b"name", "num_partitions", b"num_partitions", "queue_id", b"queue_id", "total_size", b"total_size"]) -> None: ...
7704
8497
 
7705
8498
  QUEUES_FIELD_NUMBER: builtins.int
8499
+ ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
7706
8500
  @property
7707
8501
  def queues(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueueListResponse.QueueInfo]: ...
8502
+ environment_name: builtins.str
7708
8503
  def __init__(
7709
8504
  self,
7710
8505
  *,
7711
8506
  queues: collections.abc.Iterable[global___QueueListResponse.QueueInfo] | None = ...,
8507
+ environment_name: builtins.str = ...,
7712
8508
  ) -> None: ...
7713
- def ClearField(self, field_name: typing_extensions.Literal["queues", b"queues"]) -> None: ...
8509
+ def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "queues", b"queues"]) -> None: ...
7714
8510
 
7715
8511
  global___QueueListResponse = QueueListResponse
7716
8512
 
8513
+ class QueueMetadata(google.protobuf.message.Message):
8514
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
8515
+
8516
+ NAME_FIELD_NUMBER: builtins.int
8517
+ CREATION_INFO_FIELD_NUMBER: builtins.int
8518
+ name: builtins.str
8519
+ @property
8520
+ def creation_info(self) -> global___CreationInfo: ...
8521
+ def __init__(
8522
+ self,
8523
+ *,
8524
+ name: builtins.str = ...,
8525
+ creation_info: global___CreationInfo | None = ...,
8526
+ ) -> None: ...
8527
+ def HasField(self, field_name: typing_extensions.Literal["creation_info", b"creation_info"]) -> builtins.bool: ...
8528
+ def ClearField(self, field_name: typing_extensions.Literal["creation_info", b"creation_info", "name", b"name"]) -> None: ...
8529
+
8530
+ global___QueueMetadata = QueueMetadata
8531
+
7717
8532
  class QueueNextItemsRequest(google.protobuf.message.Message):
7718
8533
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
7719
8534
 
@@ -7939,6 +8754,21 @@ global___S3Mount = S3Mount
7939
8754
  class Sandbox(google.protobuf.message.Message):
7940
8755
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
7941
8756
 
8757
+ class ExperimentalOptionsEntry(google.protobuf.message.Message):
8758
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
8759
+
8760
+ KEY_FIELD_NUMBER: builtins.int
8761
+ VALUE_FIELD_NUMBER: builtins.int
8762
+ key: builtins.str
8763
+ value: builtins.bool
8764
+ def __init__(
8765
+ self,
8766
+ *,
8767
+ key: builtins.str = ...,
8768
+ value: builtins.bool = ...,
8769
+ ) -> None: ...
8770
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
8771
+
7942
8772
  ENTRYPOINT_ARGS_FIELD_NUMBER: builtins.int
7943
8773
  MOUNT_IDS_FIELD_NUMBER: builtins.int
7944
8774
  IMAGE_ID_FIELD_NUMBER: builtins.int
@@ -7967,6 +8797,10 @@ class Sandbox(google.protobuf.message.Message):
7967
8797
  RUNTIME_FIELD_NUMBER: builtins.int
7968
8798
  VERBOSE_FIELD_NUMBER: builtins.int
7969
8799
  NAME_FIELD_NUMBER: builtins.int
8800
+ EXPERIMENTAL_OPTIONS_FIELD_NUMBER: builtins.int
8801
+ PRELOAD_PATH_PREFIXES_FIELD_NUMBER: builtins.int
8802
+ IDLE_TIMEOUT_SECS_FIELD_NUMBER: builtins.int
8803
+ DIRECT_SANDBOX_COMMANDS_ENABLED_FIELD_NUMBER: builtins.int
7970
8804
  @property
7971
8805
  def entrypoint_args(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
7972
8806
  @property
@@ -7979,6 +8813,7 @@ class Sandbox(google.protobuf.message.Message):
7979
8813
  cloud_provider: global___CloudProvider.ValueType
7980
8814
  """Deprecated at some point"""
7981
8815
  timeout_secs: builtins.int
8816
+ """The max lifetime of a sandbox in seconds."""
7982
8817
  workdir: builtins.str
7983
8818
  @property
7984
8819
  def nfs_mounts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SharedVolumeMount]: ...
@@ -8024,6 +8859,19 @@ class Sandbox(google.protobuf.message.Message):
8024
8859
  """If set, the sandbox will be created with verbose logging enabled."""
8025
8860
  name: builtins.str
8026
8861
  """If set, the sandbox will be created with a name."""
8862
+ @property
8863
+ def experimental_options(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.bool]:
8864
+ """Experimental options"""
8865
+ @property
8866
+ def preload_path_prefixes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
8867
+ """Internal use only."""
8868
+ idle_timeout_secs: builtins.int
8869
+ """Optional idle timeout in seconds. If set, the sandbox will be terminated after being idle for this duration."""
8870
+ direct_sandbox_commands_enabled: builtins.bool
8871
+ """If set, the sandbox will be created with direct sandbox commands enabled.
8872
+ Exec commands for the sandbox will be issued directly to the sandbox
8873
+ command router running on the Modal worker.
8874
+ """
8027
8875
  def __init__(
8028
8876
  self,
8029
8877
  *,
@@ -8055,9 +8903,15 @@ class Sandbox(google.protobuf.message.Message):
8055
8903
  runtime: builtins.str | None = ...,
8056
8904
  verbose: builtins.bool = ...,
8057
8905
  name: builtins.str | None = ...,
8906
+ experimental_options: collections.abc.Mapping[builtins.str, builtins.bool] | None = ...,
8907
+ preload_path_prefixes: collections.abc.Iterable[builtins.str] | None = ...,
8908
+ idle_timeout_secs: builtins.int | None = ...,
8909
+ direct_sandbox_commands_enabled: builtins.bool = ...,
8058
8910
  ) -> None: ...
8059
- def HasField(self, field_name: typing_extensions.Literal["_name", b"_name", "_proxy_id", b"_proxy_id", "_runsc_runtime_version", b"_runsc_runtime_version", "_runtime", b"_runtime", "_scheduler_placement", b"_scheduler_placement", "_snapshot_version", b"_snapshot_version", "_workdir", b"_workdir", "name", b"name", "network_access", b"network_access", "open_ports", b"open_ports", "open_ports_oneof", b"open_ports_oneof", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "resources", b"resources", "runsc_runtime_version", b"runsc_runtime_version", "runtime", b"runtime", "scheduler_placement", b"scheduler_placement", "snapshot_version", b"snapshot_version", "workdir", b"workdir"]) -> builtins.bool: ...
8060
- def ClearField(self, field_name: typing_extensions.Literal["_name", b"_name", "_proxy_id", b"_proxy_id", "_runsc_runtime_version", b"_runsc_runtime_version", "_runtime", b"_runtime", "_scheduler_placement", b"_scheduler_placement", "_snapshot_version", b"_snapshot_version", "_workdir", b"_workdir", "block_network", b"block_network", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "enable_snapshot", b"enable_snapshot", "entrypoint_args", b"entrypoint_args", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "mount_ids", b"mount_ids", "name", b"name", "network_access", b"network_access", "nfs_mounts", b"nfs_mounts", "open_ports", b"open_ports", "open_ports_oneof", b"open_ports_oneof", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "resources", b"resources", "runsc_runtime_version", b"runsc_runtime_version", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "s3_mounts", b"s3_mounts", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "snapshot_version", b"snapshot_version", "timeout_secs", b"timeout_secs", "verbose", b"verbose", "volume_mounts", b"volume_mounts", "workdir", b"workdir", "worker_id", b"worker_id"]) -> None: ...
8911
+ def HasField(self, field_name: typing_extensions.Literal["_idle_timeout_secs", b"_idle_timeout_secs", "_name", b"_name", "_proxy_id", b"_proxy_id", "_runsc_runtime_version", b"_runsc_runtime_version", "_runtime", b"_runtime", "_scheduler_placement", b"_scheduler_placement", "_snapshot_version", b"_snapshot_version", "_workdir", b"_workdir", "idle_timeout_secs", b"idle_timeout_secs", "name", b"name", "network_access", b"network_access", "open_ports", b"open_ports", "open_ports_oneof", b"open_ports_oneof", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "resources", b"resources", "runsc_runtime_version", b"runsc_runtime_version", "runtime", b"runtime", "scheduler_placement", b"scheduler_placement", "snapshot_version", b"snapshot_version", "workdir", b"workdir"]) -> builtins.bool: ...
8912
+ def ClearField(self, field_name: typing_extensions.Literal["_idle_timeout_secs", b"_idle_timeout_secs", "_name", b"_name", "_proxy_id", b"_proxy_id", "_runsc_runtime_version", b"_runsc_runtime_version", "_runtime", b"_runtime", "_scheduler_placement", b"_scheduler_placement", "_snapshot_version", b"_snapshot_version", "_workdir", b"_workdir", "block_network", b"block_network", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "direct_sandbox_commands_enabled", b"direct_sandbox_commands_enabled", "enable_snapshot", b"enable_snapshot", "entrypoint_args", b"entrypoint_args", "experimental_options", b"experimental_options", "i6pn_enabled", b"i6pn_enabled", "idle_timeout_secs", b"idle_timeout_secs", "image_id", b"image_id", "mount_ids", b"mount_ids", "name", b"name", "network_access", b"network_access", "nfs_mounts", b"nfs_mounts", "open_ports", b"open_ports", "open_ports_oneof", b"open_ports_oneof", "preload_path_prefixes", b"preload_path_prefixes", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "resources", b"resources", "runsc_runtime_version", b"runsc_runtime_version", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "s3_mounts", b"s3_mounts", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "snapshot_version", b"snapshot_version", "timeout_secs", b"timeout_secs", "verbose", b"verbose", "volume_mounts", b"volume_mounts", "workdir", b"workdir", "worker_id", b"worker_id"]) -> None: ...
8913
+ @typing.overload
8914
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_idle_timeout_secs", b"_idle_timeout_secs"]) -> typing_extensions.Literal["idle_timeout_secs"] | None: ...
8061
8915
  @typing.overload
8062
8916
  def WhichOneof(self, oneof_group: typing_extensions.Literal["_name", b"_name"]) -> typing_extensions.Literal["name"] | None: ...
8063
8917
  @typing.overload
@@ -8077,6 +8931,40 @@ class Sandbox(google.protobuf.message.Message):
8077
8931
 
8078
8932
  global___Sandbox = Sandbox
8079
8933
 
8934
+ class SandboxCreateConnectTokenRequest(google.protobuf.message.Message):
8935
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
8936
+
8937
+ SANDBOX_ID_FIELD_NUMBER: builtins.int
8938
+ USER_METADATA_FIELD_NUMBER: builtins.int
8939
+ sandbox_id: builtins.str
8940
+ user_metadata: builtins.str
8941
+ def __init__(
8942
+ self,
8943
+ *,
8944
+ sandbox_id: builtins.str = ...,
8945
+ user_metadata: builtins.str = ...,
8946
+ ) -> None: ...
8947
+ def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id", "user_metadata", b"user_metadata"]) -> None: ...
8948
+
8949
+ global___SandboxCreateConnectTokenRequest = SandboxCreateConnectTokenRequest
8950
+
8951
+ class SandboxCreateConnectTokenResponse(google.protobuf.message.Message):
8952
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
8953
+
8954
+ URL_FIELD_NUMBER: builtins.int
8955
+ TOKEN_FIELD_NUMBER: builtins.int
8956
+ url: builtins.str
8957
+ token: builtins.str
8958
+ def __init__(
8959
+ self,
8960
+ *,
8961
+ url: builtins.str = ...,
8962
+ token: builtins.str = ...,
8963
+ ) -> None: ...
8964
+ def ClearField(self, field_name: typing_extensions.Literal["token", b"token", "url", b"url"]) -> None: ...
8965
+
8966
+ global___SandboxCreateConnectTokenResponse = SandboxCreateConnectTokenResponse
8967
+
8080
8968
  class SandboxCreateRequest(google.protobuf.message.Message):
8081
8969
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8082
8970
 
@@ -8436,6 +9324,51 @@ class SandboxRestoreResponse(google.protobuf.message.Message):
8436
9324
 
8437
9325
  global___SandboxRestoreResponse = SandboxRestoreResponse
8438
9326
 
9327
+ class SandboxSnapshotFsAsyncGetRequest(google.protobuf.message.Message):
9328
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
9329
+
9330
+ IMAGE_ID_FIELD_NUMBER: builtins.int
9331
+ TIMEOUT_FIELD_NUMBER: builtins.int
9332
+ image_id: builtins.str
9333
+ timeout: builtins.float
9334
+ def __init__(
9335
+ self,
9336
+ *,
9337
+ image_id: builtins.str = ...,
9338
+ timeout: builtins.float = ...,
9339
+ ) -> None: ...
9340
+ def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id", "timeout", b"timeout"]) -> None: ...
9341
+
9342
+ global___SandboxSnapshotFsAsyncGetRequest = SandboxSnapshotFsAsyncGetRequest
9343
+
9344
+ class SandboxSnapshotFsAsyncRequest(google.protobuf.message.Message):
9345
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
9346
+
9347
+ SANDBOX_ID_FIELD_NUMBER: builtins.int
9348
+ sandbox_id: builtins.str
9349
+ def __init__(
9350
+ self,
9351
+ *,
9352
+ sandbox_id: builtins.str = ...,
9353
+ ) -> None: ...
9354
+ def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id"]) -> None: ...
9355
+
9356
+ global___SandboxSnapshotFsAsyncRequest = SandboxSnapshotFsAsyncRequest
9357
+
9358
+ class SandboxSnapshotFsAsyncResponse(google.protobuf.message.Message):
9359
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
9360
+
9361
+ IMAGE_ID_FIELD_NUMBER: builtins.int
9362
+ image_id: builtins.str
9363
+ def __init__(
9364
+ self,
9365
+ *,
9366
+ image_id: builtins.str = ...,
9367
+ ) -> None: ...
9368
+ def ClearField(self, field_name: typing_extensions.Literal["image_id", b"image_id"]) -> None: ...
9369
+
9370
+ global___SandboxSnapshotFsAsyncResponse = SandboxSnapshotFsAsyncResponse
9371
+
8439
9372
  class SandboxSnapshotFsRequest(google.protobuf.message.Message):
8440
9373
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8441
9374
 
@@ -8615,6 +9548,35 @@ class SandboxTag(google.protobuf.message.Message):
8615
9548
 
8616
9549
  global___SandboxTag = SandboxTag
8617
9550
 
9551
+ class SandboxTagsGetRequest(google.protobuf.message.Message):
9552
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
9553
+
9554
+ SANDBOX_ID_FIELD_NUMBER: builtins.int
9555
+ sandbox_id: builtins.str
9556
+ def __init__(
9557
+ self,
9558
+ *,
9559
+ sandbox_id: builtins.str = ...,
9560
+ ) -> None: ...
9561
+ def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id"]) -> None: ...
9562
+
9563
+ global___SandboxTagsGetRequest = SandboxTagsGetRequest
9564
+
9565
+ class SandboxTagsGetResponse(google.protobuf.message.Message):
9566
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
9567
+
9568
+ TAGS_FIELD_NUMBER: builtins.int
9569
+ @property
9570
+ def tags(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SandboxTag]: ...
9571
+ def __init__(
9572
+ self,
9573
+ *,
9574
+ tags: collections.abc.Iterable[global___SandboxTag] | None = ...,
9575
+ ) -> None: ...
9576
+ def ClearField(self, field_name: typing_extensions.Literal["tags", b"tags"]) -> None: ...
9577
+
9578
+ global___SandboxTagsGetResponse = SandboxTagsGetResponse
9579
+
8618
9580
  class SandboxTagsSetRequest(google.protobuf.message.Message):
8619
9581
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8620
9582
 
@@ -8766,29 +9728,23 @@ class Schedule(google.protobuf.message.Message):
8766
9728
  global___Schedule = Schedule
8767
9729
 
8768
9730
  class SchedulerPlacement(google.protobuf.message.Message):
8769
- """TODO(irfansharif):
8770
- - Fold in cloud, resource needs here too.
8771
- - Allow specifying list of zones, cloud, fallback and alternative
8772
- GPU types.
8773
- """
8774
-
8775
9731
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8776
9732
 
8777
9733
  REGIONS_FIELD_NUMBER: builtins.int
8778
9734
  _ZONE_FIELD_NUMBER: builtins.int
8779
9735
  _LIFECYCLE_FIELD_NUMBER: builtins.int
8780
9736
  _INSTANCE_TYPES_FIELD_NUMBER: builtins.int
9737
+ NONPREEMPTIBLE_FIELD_NUMBER: builtins.int
8781
9738
  @property
8782
9739
  def regions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
8783
9740
  _zone: builtins.str
8784
- """TODO(irfansharif): Make these two repeated.
8785
- admin-only
8786
- """
9741
+ """TODO: Deprecate"""
8787
9742
  _lifecycle: builtins.str
8788
- """admin-only, "on-demand" or "spot", else ignored"""
9743
+ """TODO: Deprecate"""
8789
9744
  @property
8790
9745
  def _instance_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
8791
- """admin-only"""
9746
+ """TODO: Deprecate"""
9747
+ nonpreemptible: builtins.bool
8792
9748
  def __init__(
8793
9749
  self,
8794
9750
  *,
@@ -8796,9 +9752,10 @@ class SchedulerPlacement(google.protobuf.message.Message):
8796
9752
  _zone: builtins.str | None = ...,
8797
9753
  _lifecycle: builtins.str | None = ...,
8798
9754
  _instance_types: collections.abc.Iterable[builtins.str] | None = ...,
9755
+ nonpreemptible: builtins.bool = ...,
8799
9756
  ) -> None: ...
8800
9757
  def HasField(self, field_name: typing_extensions.Literal["X_lifecycle", b"X_lifecycle", "X_zone", b"X_zone", "_lifecycle", b"_lifecycle", "_zone", b"_zone"]) -> builtins.bool: ...
8801
- def ClearField(self, field_name: typing_extensions.Literal["X_lifecycle", b"X_lifecycle", "X_zone", b"X_zone", "_instance_types", b"_instance_types", "_lifecycle", b"_lifecycle", "_zone", b"_zone", "regions", b"regions"]) -> None: ...
9758
+ def ClearField(self, field_name: typing_extensions.Literal["X_lifecycle", b"X_lifecycle", "X_zone", b"X_zone", "_instance_types", b"_instance_types", "_lifecycle", b"_lifecycle", "_zone", b"_zone", "nonpreemptible", b"nonpreemptible", "regions", b"regions"]) -> None: ...
8802
9759
  @typing.overload
8803
9760
  def WhichOneof(self, oneof_group: typing_extensions.Literal["X_lifecycle", b"X_lifecycle"]) -> typing_extensions.Literal["_lifecycle"] | None: ...
8804
9761
  @typing.overload
@@ -8930,13 +9887,18 @@ class SecretGetOrCreateResponse(google.protobuf.message.Message):
8930
9887
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8931
9888
 
8932
9889
  SECRET_ID_FIELD_NUMBER: builtins.int
9890
+ METADATA_FIELD_NUMBER: builtins.int
8933
9891
  secret_id: builtins.str
9892
+ @property
9893
+ def metadata(self) -> global___SecretMetadata: ...
8934
9894
  def __init__(
8935
9895
  self,
8936
9896
  *,
8937
9897
  secret_id: builtins.str = ...,
9898
+ metadata: global___SecretMetadata | None = ...,
8938
9899
  ) -> None: ...
8939
- def ClearField(self, field_name: typing_extensions.Literal["secret_id", b"secret_id"]) -> None: ...
9900
+ def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
9901
+ def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "secret_id", b"secret_id"]) -> None: ...
8940
9902
 
8941
9903
  global___SecretGetOrCreateResponse = SecretGetOrCreateResponse
8942
9904
 
@@ -8948,11 +9910,16 @@ class SecretListItem(google.protobuf.message.Message):
8948
9910
  LAST_USED_AT_FIELD_NUMBER: builtins.int
8949
9911
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
8950
9912
  SECRET_ID_FIELD_NUMBER: builtins.int
9913
+ METADATA_FIELD_NUMBER: builtins.int
8951
9914
  label: builtins.str
8952
9915
  created_at: builtins.float
9916
+ """Superseded by metadata, used by clients up to 1.1.2"""
8953
9917
  last_used_at: builtins.float
8954
9918
  environment_name: builtins.str
9919
+ """Unused by client"""
8955
9920
  secret_id: builtins.str
9921
+ @property
9922
+ def metadata(self) -> global___SecretMetadata: ...
8956
9923
  def __init__(
8957
9924
  self,
8958
9925
  *,
@@ -8961,8 +9928,10 @@ class SecretListItem(google.protobuf.message.Message):
8961
9928
  last_used_at: builtins.float = ...,
8962
9929
  environment_name: builtins.str = ...,
8963
9930
  secret_id: builtins.str = ...,
9931
+ metadata: global___SecretMetadata | None = ...,
8964
9932
  ) -> None: ...
8965
- def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "environment_name", b"environment_name", "label", b"label", "last_used_at", b"last_used_at", "secret_id", b"secret_id"]) -> None: ...
9933
+ def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
9934
+ def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "environment_name", b"environment_name", "label", b"label", "last_used_at", b"last_used_at", "metadata", b"metadata", "secret_id", b"secret_id"]) -> None: ...
8966
9935
 
8967
9936
  global___SecretListItem = SecretListItem
8968
9937
 
@@ -8970,14 +9939,18 @@ class SecretListRequest(google.protobuf.message.Message):
8970
9939
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8971
9940
 
8972
9941
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
9942
+ PAGINATION_FIELD_NUMBER: builtins.int
8973
9943
  environment_name: builtins.str
8974
- """leaving empty will assume a singular environment"""
9944
+ @property
9945
+ def pagination(self) -> global___ListPagination: ...
8975
9946
  def __init__(
8976
9947
  self,
8977
9948
  *,
8978
9949
  environment_name: builtins.str = ...,
9950
+ pagination: global___ListPagination | None = ...,
8979
9951
  ) -> None: ...
8980
- def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name"]) -> None: ...
9952
+ def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ...
9953
+ def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "pagination", b"pagination"]) -> None: ...
8981
9954
 
8982
9955
  global___SecretListRequest = SecretListRequest
8983
9956
 
@@ -8989,7 +9962,6 @@ class SecretListResponse(google.protobuf.message.Message):
8989
9962
  @property
8990
9963
  def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SecretListItem]: ...
8991
9964
  environment_name: builtins.str
8992
- """the environment that was listed (useful when relying on "default" logic)"""
8993
9965
  def __init__(
8994
9966
  self,
8995
9967
  *,
@@ -9000,7 +9972,28 @@ class SecretListResponse(google.protobuf.message.Message):
9000
9972
 
9001
9973
  global___SecretListResponse = SecretListResponse
9002
9974
 
9975
+ class SecretMetadata(google.protobuf.message.Message):
9976
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
9977
+
9978
+ NAME_FIELD_NUMBER: builtins.int
9979
+ CREATION_INFO_FIELD_NUMBER: builtins.int
9980
+ name: builtins.str
9981
+ @property
9982
+ def creation_info(self) -> global___CreationInfo: ...
9983
+ def __init__(
9984
+ self,
9985
+ *,
9986
+ name: builtins.str = ...,
9987
+ creation_info: global___CreationInfo | None = ...,
9988
+ ) -> None: ...
9989
+ def HasField(self, field_name: typing_extensions.Literal["creation_info", b"creation_info"]) -> builtins.bool: ...
9990
+ def ClearField(self, field_name: typing_extensions.Literal["creation_info", b"creation_info", "name", b"name"]) -> None: ...
9991
+
9992
+ global___SecretMetadata = SecretMetadata
9993
+
9003
9994
  class SharedVolumeDeleteRequest(google.protobuf.message.Message):
9995
+ """SharedVolume in the backend corresponds to NetworkFileSystem in the current API"""
9996
+
9004
9997
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
9005
9998
 
9006
9999
  SHARED_VOLUME_ID_FIELD_NUMBER: builtins.int
@@ -9196,20 +10189,17 @@ class SharedVolumeMount(google.protobuf.message.Message):
9196
10189
  MOUNT_PATH_FIELD_NUMBER: builtins.int
9197
10190
  SHARED_VOLUME_ID_FIELD_NUMBER: builtins.int
9198
10191
  CLOUD_PROVIDER_FIELD_NUMBER: builtins.int
9199
- ALLOW_CROSS_REGION_FIELD_NUMBER: builtins.int
9200
10192
  mount_path: builtins.str
9201
10193
  shared_volume_id: builtins.str
9202
10194
  cloud_provider: global___CloudProvider.ValueType
9203
- allow_cross_region: builtins.bool
9204
10195
  def __init__(
9205
10196
  self,
9206
10197
  *,
9207
10198
  mount_path: builtins.str = ...,
9208
10199
  shared_volume_id: builtins.str = ...,
9209
10200
  cloud_provider: global___CloudProvider.ValueType = ...,
9210
- allow_cross_region: builtins.bool = ...,
9211
10201
  ) -> None: ...
9212
- def ClearField(self, field_name: typing_extensions.Literal["allow_cross_region", b"allow_cross_region", "cloud_provider", b"cloud_provider", "mount_path", b"mount_path", "shared_volume_id", b"shared_volume_id"]) -> None: ...
10202
+ def ClearField(self, field_name: typing_extensions.Literal["cloud_provider", b"cloud_provider", "mount_path", b"mount_path", "shared_volume_id", b"shared_volume_id"]) -> None: ...
9213
10203
 
9214
10204
  global___SharedVolumeMount = SharedVolumeMount
9215
10205
 
@@ -9319,19 +10309,23 @@ class TaskClusterHelloResponse(google.protobuf.message.Message):
9319
10309
  CLUSTER_ID_FIELD_NUMBER: builtins.int
9320
10310
  CLUSTER_RANK_FIELD_NUMBER: builtins.int
9321
10311
  CONTAINER_IPS_FIELD_NUMBER: builtins.int
10312
+ CONTAINER_IPV4_IPS_FIELD_NUMBER: builtins.int
9322
10313
  cluster_id: builtins.str
9323
10314
  cluster_rank: builtins.int
9324
10315
  @property
9325
10316
  def container_ips(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
9326
- """All IP addresses in cluster, ordered by cluster rank"""
10317
+ """All IPv6 addresses in cluster, ordered by cluster rank"""
10318
+ @property
10319
+ def container_ipv4_ips(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
9327
10320
  def __init__(
9328
10321
  self,
9329
10322
  *,
9330
10323
  cluster_id: builtins.str = ...,
9331
10324
  cluster_rank: builtins.int = ...,
9332
10325
  container_ips: collections.abc.Iterable[builtins.str] | None = ...,
10326
+ container_ipv4_ips: collections.abc.Iterable[builtins.str] | None = ...,
9333
10327
  ) -> None: ...
9334
- def ClearField(self, field_name: typing_extensions.Literal["cluster_id", b"cluster_id", "cluster_rank", b"cluster_rank", "container_ips", b"container_ips"]) -> None: ...
10328
+ def ClearField(self, field_name: typing_extensions.Literal["cluster_id", b"cluster_id", "cluster_rank", b"cluster_rank", "container_ips", b"container_ips", "container_ipv4_ips", b"container_ipv4_ips"]) -> None: ...
9335
10329
 
9336
10330
  global___TaskClusterHelloResponse = TaskClusterHelloResponse
9337
10331
 
@@ -9350,6 +10344,42 @@ class TaskCurrentInputsResponse(google.protobuf.message.Message):
9350
10344
 
9351
10345
  global___TaskCurrentInputsResponse = TaskCurrentInputsResponse
9352
10346
 
10347
+ class TaskGetCommandRouterAccessRequest(google.protobuf.message.Message):
10348
+ """Used to get a JWT and URL for direct access to a task command router
10349
+ running on the modal-worker, so the client can issue exec commands (and other
10350
+ operations as they become available) directly to the worker.
10351
+ """
10352
+
10353
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
10354
+
10355
+ TASK_ID_FIELD_NUMBER: builtins.int
10356
+ task_id: builtins.str
10357
+ def __init__(
10358
+ self,
10359
+ *,
10360
+ task_id: builtins.str = ...,
10361
+ ) -> None: ...
10362
+ def ClearField(self, field_name: typing_extensions.Literal["task_id", b"task_id"]) -> None: ...
10363
+
10364
+ global___TaskGetCommandRouterAccessRequest = TaskGetCommandRouterAccessRequest
10365
+
10366
+ class TaskGetCommandRouterAccessResponse(google.protobuf.message.Message):
10367
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
10368
+
10369
+ JWT_FIELD_NUMBER: builtins.int
10370
+ URL_FIELD_NUMBER: builtins.int
10371
+ jwt: builtins.str
10372
+ url: builtins.str
10373
+ def __init__(
10374
+ self,
10375
+ *,
10376
+ jwt: builtins.str = ...,
10377
+ url: builtins.str = ...,
10378
+ ) -> None: ...
10379
+ def ClearField(self, field_name: typing_extensions.Literal["jwt", b"jwt", "url", b"url"]) -> None: ...
10380
+
10381
+ global___TaskGetCommandRouterAccessResponse = TaskGetCommandRouterAccessResponse
10382
+
9353
10383
  class TaskInfo(google.protobuf.message.Message):
9354
10384
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
9355
10385
 
@@ -9360,6 +10390,8 @@ class TaskInfo(google.protobuf.message.Message):
9360
10390
  ENQUEUED_AT_FIELD_NUMBER: builtins.int
9361
10391
  GPU_TYPE_FIELD_NUMBER: builtins.int
9362
10392
  SANDBOX_ID_FIELD_NUMBER: builtins.int
10393
+ SNAPSHOT_BEHAVIOR_FIELD_NUMBER: builtins.int
10394
+ GPU_CONFIG_FIELD_NUMBER: builtins.int
9363
10395
  id: builtins.str
9364
10396
  started_at: builtins.float
9365
10397
  finished_at: builtins.float
@@ -9368,6 +10400,9 @@ class TaskInfo(google.protobuf.message.Message):
9368
10400
  enqueued_at: builtins.float
9369
10401
  gpu_type: builtins.str
9370
10402
  sandbox_id: builtins.str
10403
+ snapshot_behavior: global___TaskSnapshotBehavior.ValueType
10404
+ @property
10405
+ def gpu_config(self) -> global___GPUConfig: ...
9371
10406
  def __init__(
9372
10407
  self,
9373
10408
  *,
@@ -9378,9 +10413,11 @@ class TaskInfo(google.protobuf.message.Message):
9378
10413
  enqueued_at: builtins.float = ...,
9379
10414
  gpu_type: builtins.str = ...,
9380
10415
  sandbox_id: builtins.str = ...,
10416
+ snapshot_behavior: global___TaskSnapshotBehavior.ValueType = ...,
10417
+ gpu_config: global___GPUConfig | None = ...,
9381
10418
  ) -> None: ...
9382
- def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ...
9383
- def ClearField(self, field_name: typing_extensions.Literal["enqueued_at", b"enqueued_at", "finished_at", b"finished_at", "gpu_type", b"gpu_type", "id", b"id", "result", b"result", "sandbox_id", b"sandbox_id", "started_at", b"started_at"]) -> None: ...
10419
+ def HasField(self, field_name: typing_extensions.Literal["gpu_config", b"gpu_config", "result", b"result"]) -> builtins.bool: ...
10420
+ def ClearField(self, field_name: typing_extensions.Literal["enqueued_at", b"enqueued_at", "finished_at", b"finished_at", "gpu_config", b"gpu_config", "gpu_type", b"gpu_type", "id", b"id", "result", b"result", "sandbox_id", b"sandbox_id", "snapshot_behavior", b"snapshot_behavior", "started_at", b"started_at"]) -> None: ...
9384
10421
 
9385
10422
  global___TaskInfo = TaskInfo
9386
10423
 
@@ -9463,6 +10500,7 @@ class TaskLogsBatch(google.protobuf.message.Message):
9463
10500
  EOF_FIELD_NUMBER: builtins.int
9464
10501
  PTY_EXEC_ID_FIELD_NUMBER: builtins.int
9465
10502
  ROOT_FUNCTION_ID_FIELD_NUMBER: builtins.int
10503
+ TTL_DAYS_FIELD_NUMBER: builtins.int
9466
10504
  task_id: builtins.str
9467
10505
  @property
9468
10506
  def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TaskLogs]: ...
@@ -9476,6 +10514,7 @@ class TaskLogsBatch(google.protobuf.message.Message):
9476
10514
  pty_exec_id: builtins.str
9477
10515
  """Used for interactive functions"""
9478
10516
  root_function_id: builtins.str
10517
+ ttl_days: builtins.int
9479
10518
  def __init__(
9480
10519
  self,
9481
10520
  *,
@@ -9489,8 +10528,9 @@ class TaskLogsBatch(google.protobuf.message.Message):
9489
10528
  eof: builtins.bool = ...,
9490
10529
  pty_exec_id: builtins.str = ...,
9491
10530
  root_function_id: builtins.str = ...,
10531
+ ttl_days: builtins.int = ...,
9492
10532
  ) -> None: ...
9493
- def ClearField(self, field_name: typing_extensions.Literal["app_done", b"app_done", "entry_id", b"entry_id", "eof", b"eof", "function_id", b"function_id", "image_id", b"image_id", "input_id", b"input_id", "items", b"items", "pty_exec_id", b"pty_exec_id", "root_function_id", b"root_function_id", "task_id", b"task_id"]) -> None: ...
10533
+ def ClearField(self, field_name: typing_extensions.Literal["app_done", b"app_done", "entry_id", b"entry_id", "eof", b"eof", "function_id", b"function_id", "image_id", b"image_id", "input_id", b"input_id", "items", b"items", "pty_exec_id", b"pty_exec_id", "root_function_id", b"root_function_id", "task_id", b"task_id", "ttl_days", b"ttl_days"]) -> None: ...
9494
10534
 
9495
10535
  global___TaskLogsBatch = TaskLogsBatch
9496
10536
 
@@ -9798,6 +10838,25 @@ class UploadUrlList(google.protobuf.message.Message):
9798
10838
 
9799
10839
  global___UploadUrlList = UploadUrlList
9800
10840
 
10841
+ class UserActionInfo(google.protobuf.message.Message):
10842
+ """Used for capturing context about an action performed by a user"""
10843
+
10844
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
10845
+
10846
+ USER_ID_FIELD_NUMBER: builtins.int
10847
+ TIMESTAMP_FIELD_NUMBER: builtins.int
10848
+ user_id: builtins.str
10849
+ timestamp: builtins.float
10850
+ def __init__(
10851
+ self,
10852
+ *,
10853
+ user_id: builtins.str = ...,
10854
+ timestamp: builtins.float = ...,
10855
+ ) -> None: ...
10856
+ def ClearField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp", "user_id", b"user_id"]) -> None: ...
10857
+
10858
+ global___UserActionInfo = UserActionInfo
10859
+
9801
10860
  class VolumeCommitRequest(google.protobuf.message.Message):
9802
10861
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
9803
10862
 
@@ -10035,6 +11094,7 @@ class VolumeGetOrCreateResponse(google.protobuf.message.Message):
10035
11094
  METADATA_FIELD_NUMBER: builtins.int
10036
11095
  volume_id: builtins.str
10037
11096
  version: global___VolumeFsVersion.ValueType
11097
+ """Not used directly; version is part of the metadata"""
10038
11098
  @property
10039
11099
  def metadata(self) -> global___VolumeMetadata: ...
10040
11100
  def __init__(
@@ -10149,18 +11209,24 @@ class VolumeListItem(google.protobuf.message.Message):
10149
11209
  LABEL_FIELD_NUMBER: builtins.int
10150
11210
  VOLUME_ID_FIELD_NUMBER: builtins.int
10151
11211
  CREATED_AT_FIELD_NUMBER: builtins.int
11212
+ METADATA_FIELD_NUMBER: builtins.int
10152
11213
  label: builtins.str
10153
11214
  """app name of object entity app"""
10154
11215
  volume_id: builtins.str
10155
11216
  created_at: builtins.float
11217
+ """Superseded by metadata, used by clients up to 1.1.2"""
11218
+ @property
11219
+ def metadata(self) -> global___VolumeMetadata: ...
10156
11220
  def __init__(
10157
11221
  self,
10158
11222
  *,
10159
11223
  label: builtins.str = ...,
10160
11224
  volume_id: builtins.str = ...,
10161
11225
  created_at: builtins.float = ...,
11226
+ metadata: global___VolumeMetadata | None = ...,
10162
11227
  ) -> None: ...
10163
- def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "label", b"label", "volume_id", b"volume_id"]) -> None: ...
11228
+ def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
11229
+ def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "label", b"label", "metadata", b"metadata", "volume_id", b"volume_id"]) -> None: ...
10164
11230
 
10165
11231
  global___VolumeListItem = VolumeListItem
10166
11232
 
@@ -10168,13 +11234,18 @@ class VolumeListRequest(google.protobuf.message.Message):
10168
11234
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
10169
11235
 
10170
11236
  ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
11237
+ PAGINATION_FIELD_NUMBER: builtins.int
10171
11238
  environment_name: builtins.str
11239
+ @property
11240
+ def pagination(self) -> global___ListPagination: ...
10172
11241
  def __init__(
10173
11242
  self,
10174
11243
  *,
10175
11244
  environment_name: builtins.str = ...,
11245
+ pagination: global___ListPagination | None = ...,
10176
11246
  ) -> None: ...
10177
- def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name"]) -> None: ...
11247
+ def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ...
11248
+ def ClearField(self, field_name: typing_extensions.Literal["environment_name", b"environment_name", "pagination", b"pagination"]) -> None: ...
10178
11249
 
10179
11250
  global___VolumeListRequest = VolumeListRequest
10180
11251
 
@@ -10200,13 +11271,21 @@ class VolumeMetadata(google.protobuf.message.Message):
10200
11271
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
10201
11272
 
10202
11273
  VERSION_FIELD_NUMBER: builtins.int
11274
+ NAME_FIELD_NUMBER: builtins.int
11275
+ CREATION_INFO_FIELD_NUMBER: builtins.int
10203
11276
  version: global___VolumeFsVersion.ValueType
11277
+ name: builtins.str
11278
+ @property
11279
+ def creation_info(self) -> global___CreationInfo: ...
10204
11280
  def __init__(
10205
11281
  self,
10206
11282
  *,
10207
11283
  version: global___VolumeFsVersion.ValueType = ...,
11284
+ name: builtins.str = ...,
11285
+ creation_info: global___CreationInfo | None = ...,
10208
11286
  ) -> None: ...
10209
- def ClearField(self, field_name: typing_extensions.Literal["version", b"version"]) -> None: ...
11287
+ def HasField(self, field_name: typing_extensions.Literal["creation_info", b"creation_info"]) -> builtins.bool: ...
11288
+ def ClearField(self, field_name: typing_extensions.Literal["creation_info", b"creation_info", "name", b"name", "version", b"version"]) -> None: ...
10210
11289
 
10211
11290
  global___VolumeMetadata = VolumeMetadata
10212
11291
 
@@ -10530,9 +11609,11 @@ class WebhookConfig(google.protobuf.message.Message):
10530
11609
  WEB_SERVER_STARTUP_TIMEOUT_FIELD_NUMBER: builtins.int
10531
11610
  WEB_ENDPOINT_DOCS_FIELD_NUMBER: builtins.int
10532
11611
  REQUIRES_PROXY_AUTH_FIELD_NUMBER: builtins.int
11612
+ EPHEMERAL_SUFFIX_FIELD_NUMBER: builtins.int
10533
11613
  type: global___WebhookType.ValueType
10534
11614
  method: builtins.str
10535
11615
  requested_suffix: builtins.str
11616
+ """User-supplied "label" component of URL"""
10536
11617
  async_mode: global___WebhookAsyncMode.ValueType
10537
11618
  @property
10538
11619
  def custom_domains(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CustomDomainConfig]: ...
@@ -10540,6 +11621,8 @@ class WebhookConfig(google.protobuf.message.Message):
10540
11621
  web_server_startup_timeout: builtins.float
10541
11622
  web_endpoint_docs: builtins.bool
10542
11623
  requires_proxy_auth: builtins.bool
11624
+ ephemeral_suffix: builtins.str
11625
+ """Additional URL suffix added for ephemeral Apps"""
10543
11626
  def __init__(
10544
11627
  self,
10545
11628
  *,
@@ -10552,11 +11635,88 @@ class WebhookConfig(google.protobuf.message.Message):
10552
11635
  web_server_startup_timeout: builtins.float = ...,
10553
11636
  web_endpoint_docs: builtins.bool = ...,
10554
11637
  requires_proxy_auth: builtins.bool = ...,
11638
+ ephemeral_suffix: builtins.str = ...,
10555
11639
  ) -> None: ...
10556
- def ClearField(self, field_name: typing_extensions.Literal["async_mode", b"async_mode", "custom_domains", b"custom_domains", "method", b"method", "requested_suffix", b"requested_suffix", "requires_proxy_auth", b"requires_proxy_auth", "type", b"type", "web_endpoint_docs", b"web_endpoint_docs", "web_server_port", b"web_server_port", "web_server_startup_timeout", b"web_server_startup_timeout"]) -> None: ...
11640
+ def ClearField(self, field_name: typing_extensions.Literal["async_mode", b"async_mode", "custom_domains", b"custom_domains", "ephemeral_suffix", b"ephemeral_suffix", "method", b"method", "requested_suffix", b"requested_suffix", "requires_proxy_auth", b"requires_proxy_auth", "type", b"type", "web_endpoint_docs", b"web_endpoint_docs", "web_server_port", b"web_server_port", "web_server_startup_timeout", b"web_server_startup_timeout"]) -> None: ...
10557
11641
 
10558
11642
  global___WebhookConfig = WebhookConfig
10559
11643
 
11644
+ class WorkspaceBillingReportItem(google.protobuf.message.Message):
11645
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
11646
+
11647
+ class TagsEntry(google.protobuf.message.Message):
11648
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
11649
+
11650
+ KEY_FIELD_NUMBER: builtins.int
11651
+ VALUE_FIELD_NUMBER: builtins.int
11652
+ key: builtins.str
11653
+ value: builtins.str
11654
+ def __init__(
11655
+ self,
11656
+ *,
11657
+ key: builtins.str = ...,
11658
+ value: builtins.str = ...,
11659
+ ) -> None: ...
11660
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
11661
+
11662
+ OBJECT_ID_FIELD_NUMBER: builtins.int
11663
+ DESCRIPTION_FIELD_NUMBER: builtins.int
11664
+ ENVIRONMENT_NAME_FIELD_NUMBER: builtins.int
11665
+ INTERVAL_FIELD_NUMBER: builtins.int
11666
+ COST_FIELD_NUMBER: builtins.int
11667
+ TAGS_FIELD_NUMBER: builtins.int
11668
+ object_id: builtins.str
11669
+ description: builtins.str
11670
+ environment_name: builtins.str
11671
+ @property
11672
+ def interval(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
11673
+ cost: builtins.str
11674
+ @property
11675
+ def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
11676
+ def __init__(
11677
+ self,
11678
+ *,
11679
+ object_id: builtins.str = ...,
11680
+ description: builtins.str = ...,
11681
+ environment_name: builtins.str = ...,
11682
+ interval: google.protobuf.timestamp_pb2.Timestamp | None = ...,
11683
+ cost: builtins.str = ...,
11684
+ tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
11685
+ ) -> None: ...
11686
+ def HasField(self, field_name: typing_extensions.Literal["interval", b"interval"]) -> builtins.bool: ...
11687
+ def ClearField(self, field_name: typing_extensions.Literal["cost", b"cost", "description", b"description", "environment_name", b"environment_name", "interval", b"interval", "object_id", b"object_id", "tags", b"tags"]) -> None: ...
11688
+
11689
+ global___WorkspaceBillingReportItem = WorkspaceBillingReportItem
11690
+
11691
+ class WorkspaceBillingReportRequest(google.protobuf.message.Message):
11692
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
11693
+
11694
+ START_TIMESTAMP_FIELD_NUMBER: builtins.int
11695
+ END_TIMESTAMP_FIELD_NUMBER: builtins.int
11696
+ RESOLUTION_FIELD_NUMBER: builtins.int
11697
+ TAG_NAMES_FIELD_NUMBER: builtins.int
11698
+ @property
11699
+ def start_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp:
11700
+ """Workspace ID will be implicit in the request metadata"""
11701
+ @property
11702
+ def end_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
11703
+ resolution: builtins.str
11704
+ """e.g. 'd' or 'h'; server defines what we accept"""
11705
+ @property
11706
+ def tag_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
11707
+ def __init__(
11708
+ self,
11709
+ *,
11710
+ start_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
11711
+ end_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
11712
+ resolution: builtins.str = ...,
11713
+ tag_names: collections.abc.Iterable[builtins.str] | None = ...,
11714
+ ) -> None: ...
11715
+ def HasField(self, field_name: typing_extensions.Literal["end_timestamp", b"end_timestamp", "start_timestamp", b"start_timestamp"]) -> builtins.bool: ...
11716
+ def ClearField(self, field_name: typing_extensions.Literal["end_timestamp", b"end_timestamp", "resolution", b"resolution", "start_timestamp", b"start_timestamp", "tag_names", b"tag_names"]) -> None: ...
11717
+
11718
+ global___WorkspaceBillingReportRequest = WorkspaceBillingReportRequest
11719
+
10560
11720
  class WorkspaceNameLookupResponse(google.protobuf.message.Message):
10561
11721
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
10562
11722