modal 1.1.5.dev26__py3-none-any.whl → 1.1.5.dev27__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.
- modal/_functions.py +29 -2
- modal/client.pyi +2 -2
- {modal-1.1.5.dev26.dist-info → modal-1.1.5.dev27.dist-info}/METADATA +1 -1
- {modal-1.1.5.dev26.dist-info → modal-1.1.5.dev27.dist-info}/RECORD +12 -12
- modal_proto/api.proto +11 -0
- modal_proto/api_pb2.py +643 -642
- modal_proto/api_pb2.pyi +48 -5
- modal_version/__init__.py +1 -1
- {modal-1.1.5.dev26.dist-info → modal-1.1.5.dev27.dist-info}/WHEEL +0 -0
- {modal-1.1.5.dev26.dist-info → modal-1.1.5.dev27.dist-info}/entry_points.txt +0 -0
- {modal-1.1.5.dev26.dist-info → modal-1.1.5.dev27.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.5.dev26.dist-info → modal-1.1.5.dev27.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -265,6 +265,7 @@ class _DataFormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
|
|
|
265
265
|
""""Asgi" protobuf message"""
|
|
266
266
|
DATA_FORMAT_GENERATOR_DONE: _DataFormat.ValueType # 3
|
|
267
267
|
""""GeneratorDone" protobuf message"""
|
|
268
|
+
DATA_FORMAT_CBOR: _DataFormat.ValueType # 4
|
|
268
269
|
|
|
269
270
|
class DataFormat(_DataFormat, metaclass=_DataFormatEnumTypeWrapper):
|
|
270
271
|
"""Which data format a binary message is encoded with."""
|
|
@@ -276,6 +277,7 @@ DATA_FORMAT_ASGI: DataFormat.ValueType # 2
|
|
|
276
277
|
""""Asgi" protobuf message"""
|
|
277
278
|
DATA_FORMAT_GENERATOR_DONE: DataFormat.ValueType # 3
|
|
278
279
|
""""GeneratorDone" protobuf message"""
|
|
280
|
+
DATA_FORMAT_CBOR: DataFormat.ValueType # 4
|
|
279
281
|
global___DataFormat = DataFormat
|
|
280
282
|
|
|
281
283
|
class _DeploymentNamespace:
|
|
@@ -4551,6 +4553,8 @@ class Function(google.protobuf.message.Message):
|
|
|
4551
4553
|
FLASH_SERVICE_LABEL_FIELD_NUMBER: builtins.int
|
|
4552
4554
|
ENABLE_GPU_SNAPSHOT_FIELD_NUMBER: builtins.int
|
|
4553
4555
|
STARTUP_TIMEOUT_SECS_FIELD_NUMBER: builtins.int
|
|
4556
|
+
SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
4557
|
+
SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
4554
4558
|
module_name: builtins.str
|
|
4555
4559
|
function_name: builtins.str
|
|
4556
4560
|
@property
|
|
@@ -4690,6 +4694,11 @@ class Function(google.protobuf.message.Message):
|
|
|
4690
4694
|
enable_gpu_snapshot: builtins.bool
|
|
4691
4695
|
"""GPU memory snapshotting (alpha)"""
|
|
4692
4696
|
startup_timeout_secs: builtins.int
|
|
4697
|
+
@property
|
|
4698
|
+
def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]:
|
|
4699
|
+
"""can be used as inputs"""
|
|
4700
|
+
@property
|
|
4701
|
+
def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
4693
4702
|
def __init__(
|
|
4694
4703
|
self,
|
|
4695
4704
|
*,
|
|
@@ -4766,9 +4775,11 @@ class Function(google.protobuf.message.Message):
|
|
|
4766
4775
|
flash_service_label: builtins.str = ...,
|
|
4767
4776
|
enable_gpu_snapshot: builtins.bool = ...,
|
|
4768
4777
|
startup_timeout_secs: builtins.int = ...,
|
|
4778
|
+
supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
4779
|
+
supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
4769
4780
|
) -> None: ...
|
|
4770
4781
|
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: ...
|
|
4771
|
-
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", "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: ...
|
|
4782
|
+
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: ...
|
|
4772
4783
|
@typing.overload
|
|
4773
4784
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
|
|
4774
4785
|
@typing.overload
|
|
@@ -5229,6 +5240,8 @@ class FunctionData(google.protobuf.message.Message):
|
|
|
5229
5240
|
FLASH_SERVICE_URLS_FIELD_NUMBER: builtins.int
|
|
5230
5241
|
FLASH_SERVICE_LABEL_FIELD_NUMBER: builtins.int
|
|
5231
5242
|
STARTUP_TIMEOUT_SECS_FIELD_NUMBER: builtins.int
|
|
5243
|
+
SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
5244
|
+
SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
5232
5245
|
module_name: builtins.str
|
|
5233
5246
|
function_name: builtins.str
|
|
5234
5247
|
function_type: global___Function.FunctionType.ValueType
|
|
@@ -5291,6 +5304,10 @@ class FunctionData(google.protobuf.message.Message):
|
|
|
5291
5304
|
def flash_service_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
5292
5305
|
flash_service_label: builtins.str
|
|
5293
5306
|
startup_timeout_secs: builtins.int
|
|
5307
|
+
@property
|
|
5308
|
+
def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
5309
|
+
@property
|
|
5310
|
+
def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
5294
5311
|
def __init__(
|
|
5295
5312
|
self,
|
|
5296
5313
|
*,
|
|
@@ -5329,9 +5346,11 @@ class FunctionData(google.protobuf.message.Message):
|
|
|
5329
5346
|
flash_service_urls: collections.abc.Iterable[builtins.str] | None = ...,
|
|
5330
5347
|
flash_service_label: builtins.str = ...,
|
|
5331
5348
|
startup_timeout_secs: builtins.int = ...,
|
|
5349
|
+
supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
5350
|
+
supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
5332
5351
|
) -> None: ...
|
|
5333
5352
|
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: ...
|
|
5334
|
-
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", "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: ...
|
|
5353
|
+
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: ...
|
|
5335
5354
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
|
|
5336
5355
|
|
|
5337
5356
|
global___FunctionData = FunctionData
|
|
@@ -5781,6 +5800,8 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
|
|
|
5781
5800
|
INPUT_PLANE_REGION_FIELD_NUMBER: builtins.int
|
|
5782
5801
|
MAX_OBJECT_SIZE_BYTES_FIELD_NUMBER: builtins.int
|
|
5783
5802
|
_EXPERIMENTAL_FLASH_URLS_FIELD_NUMBER: builtins.int
|
|
5803
|
+
SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
5804
|
+
SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
5784
5805
|
function_name: builtins.str
|
|
5785
5806
|
"""Should be a subset and use IDs/types from `Function` above"""
|
|
5786
5807
|
function_type: global___Function.FunctionType.ValueType
|
|
@@ -5805,6 +5826,10 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
|
|
|
5805
5826
|
@property
|
|
5806
5827
|
def _experimental_flash_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
5807
5828
|
"""(Optional) urls for flash services"""
|
|
5829
|
+
@property
|
|
5830
|
+
def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
5831
|
+
@property
|
|
5832
|
+
def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
5808
5833
|
def __init__(
|
|
5809
5834
|
self,
|
|
5810
5835
|
*,
|
|
@@ -5822,9 +5847,11 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
|
|
|
5822
5847
|
input_plane_region: builtins.str | None = ...,
|
|
5823
5848
|
max_object_size_bytes: builtins.int | None = ...,
|
|
5824
5849
|
_experimental_flash_urls: collections.abc.Iterable[builtins.str] | None = ...,
|
|
5850
|
+
supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
5851
|
+
supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
5825
5852
|
) -> None: ...
|
|
5826
5853
|
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: ...
|
|
5827
|
-
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", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "web_url", b"web_url"]) -> None: ...
|
|
5854
|
+
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: ...
|
|
5828
5855
|
@typing.overload
|
|
5829
5856
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_input_plane_region", b"_input_plane_region"]) -> typing_extensions.Literal["input_plane_region"] | None: ...
|
|
5830
5857
|
@typing.overload
|
|
@@ -6060,6 +6087,8 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
|
|
|
6060
6087
|
USE_METHOD_NAME_FIELD_NUMBER: builtins.int
|
|
6061
6088
|
METHOD_DEFINITIONS_FIELD_NUMBER: builtins.int
|
|
6062
6089
|
FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
|
|
6090
|
+
SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
6091
|
+
SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
6063
6092
|
app_id: builtins.str
|
|
6064
6093
|
function_name: builtins.str
|
|
6065
6094
|
existing_function_id: builtins.str
|
|
@@ -6075,6 +6104,10 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
|
|
|
6075
6104
|
"""Mapping of method names to method definitions, only non-empty for class service functions"""
|
|
6076
6105
|
@property
|
|
6077
6106
|
def function_schema(self) -> global___FunctionSchema: ...
|
|
6107
|
+
@property
|
|
6108
|
+
def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
6109
|
+
@property
|
|
6110
|
+
def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
6078
6111
|
def __init__(
|
|
6079
6112
|
self,
|
|
6080
6113
|
*,
|
|
@@ -6087,9 +6120,11 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
|
|
|
6087
6120
|
use_method_name: builtins.str = ...,
|
|
6088
6121
|
method_definitions: collections.abc.Mapping[builtins.str, global___MethodDefinition] | None = ...,
|
|
6089
6122
|
function_schema: global___FunctionSchema | None = ...,
|
|
6123
|
+
supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
6124
|
+
supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
6090
6125
|
) -> None: ...
|
|
6091
6126
|
def HasField(self, field_name: typing_extensions.Literal["function_schema", b"function_schema", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
|
|
6092
|
-
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: ...
|
|
6127
|
+
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: ...
|
|
6093
6128
|
|
|
6094
6129
|
global___FunctionPrecreateRequest = FunctionPrecreateRequest
|
|
6095
6130
|
|
|
@@ -7179,6 +7214,8 @@ class MethodDefinition(google.protobuf.message.Message):
|
|
|
7179
7214
|
WEB_URL_INFO_FIELD_NUMBER: builtins.int
|
|
7180
7215
|
CUSTOM_DOMAIN_INFO_FIELD_NUMBER: builtins.int
|
|
7181
7216
|
FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
|
|
7217
|
+
SUPPORTED_INPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
7218
|
+
SUPPORTED_OUTPUT_FORMATS_FIELD_NUMBER: builtins.int
|
|
7182
7219
|
function_name: builtins.str
|
|
7183
7220
|
function_type: global___Function.FunctionType.ValueType
|
|
7184
7221
|
@property
|
|
@@ -7190,6 +7227,10 @@ class MethodDefinition(google.protobuf.message.Message):
|
|
|
7190
7227
|
def custom_domain_info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CustomDomainInfo]: ...
|
|
7191
7228
|
@property
|
|
7192
7229
|
def function_schema(self) -> global___FunctionSchema: ...
|
|
7230
|
+
@property
|
|
7231
|
+
def supported_input_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
7232
|
+
@property
|
|
7233
|
+
def supported_output_formats(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DataFormat.ValueType]: ...
|
|
7193
7234
|
def __init__(
|
|
7194
7235
|
self,
|
|
7195
7236
|
*,
|
|
@@ -7200,9 +7241,11 @@ class MethodDefinition(google.protobuf.message.Message):
|
|
|
7200
7241
|
web_url_info: global___WebUrlInfo | None = ...,
|
|
7201
7242
|
custom_domain_info: collections.abc.Iterable[global___CustomDomainInfo] | None = ...,
|
|
7202
7243
|
function_schema: global___FunctionSchema | None = ...,
|
|
7244
|
+
supported_input_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
7245
|
+
supported_output_formats: collections.abc.Iterable[global___DataFormat.ValueType] | None = ...,
|
|
7203
7246
|
) -> None: ...
|
|
7204
7247
|
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: ...
|
|
7205
|
-
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: ...
|
|
7248
|
+
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: ...
|
|
7206
7249
|
|
|
7207
7250
|
global___MethodDefinition = MethodDefinition
|
|
7208
7251
|
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|