modal 0.73.150__py3-none-any.whl → 0.73.151__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.
- modal/_functions.py +27 -2
- modal/_serialization.py +26 -1
- modal/client.pyi +2 -2
- modal/cls.py +22 -0
- modal/cls.pyi +12 -0
- modal/config.py +1 -0
- modal/functions.pyi +13 -6
- {modal-0.73.150.dist-info → modal-0.73.151.dist-info}/METADATA +1 -1
- {modal-0.73.150.dist-info → modal-0.73.151.dist-info}/RECORD +17 -17
- modal_proto/api.proto +15 -2
- modal_proto/api_pb2.py +571 -558
- modal_proto/api_pb2.pyi +67 -10
- modal_version/_version_generated.py +1 -1
- {modal-0.73.150.dist-info → modal-0.73.151.dist-info}/LICENSE +0 -0
- {modal-0.73.150.dist-info → modal-0.73.151.dist-info}/WHEEL +0 -0
- {modal-0.73.150.dist-info → modal-0.73.151.dist-info}/entry_points.txt +0 -0
- {modal-0.73.150.dist-info → modal-0.73.151.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -3921,6 +3921,7 @@ class Function(google.protobuf.message.Message):
|
|
3921
3921
|
CLOUD_PROVIDER_STR_FIELD_NUMBER: builtins.int
|
3922
3922
|
_EXPERIMENTAL_ENABLE_GPU_SNAPSHOT_FIELD_NUMBER: builtins.int
|
3923
3923
|
AUTOSCALER_SETTINGS_FIELD_NUMBER: builtins.int
|
3924
|
+
FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
|
3924
3925
|
module_name: builtins.str
|
3925
3926
|
function_name: builtins.str
|
3926
3927
|
@property
|
@@ -4041,6 +4042,8 @@ class Function(google.protobuf.message.Message):
|
|
4041
4042
|
@property
|
4042
4043
|
def autoscaler_settings(self) -> global___AutoscalerSettings:
|
4043
4044
|
"""Bundle of parameters related to autoscaling"""
|
4045
|
+
@property
|
4046
|
+
def function_schema(self) -> global___FunctionSchema: ...
|
4044
4047
|
def __init__(
|
4045
4048
|
self,
|
4046
4049
|
*,
|
@@ -4110,9 +4113,10 @@ class Function(google.protobuf.message.Message):
|
|
4110
4113
|
cloud_provider_str: builtins.str = ...,
|
4111
4114
|
_experimental_enable_gpu_snapshot: builtins.bool = ...,
|
4112
4115
|
autoscaler_settings: global___AutoscalerSettings | None = ...,
|
4116
|
+
function_schema: global___FunctionSchema | None = ...,
|
4113
4117
|
) -> None: ...
|
4114
|
-
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", "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: ...
|
4115
|
-
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", "function_name", b"function_name", "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_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: ...
|
4118
|
+
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: ...
|
4119
|
+
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", "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_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: ...
|
4116
4120
|
@typing.overload
|
4117
4121
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
|
4118
4122
|
@typing.overload
|
@@ -4496,6 +4500,7 @@ class FunctionData(google.protobuf.message.Message):
|
|
4496
4500
|
SNAPSHOT_DEBUG_FIELD_NUMBER: builtins.int
|
4497
4501
|
RUNTIME_PERF_RECORD_FIELD_NUMBER: builtins.int
|
4498
4502
|
AUTOSCALER_SETTINGS_FIELD_NUMBER: builtins.int
|
4503
|
+
FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
|
4499
4504
|
module_name: builtins.str
|
4500
4505
|
function_name: builtins.str
|
4501
4506
|
function_type: global___Function.FunctionType.ValueType
|
@@ -4550,6 +4555,8 @@ class FunctionData(google.protobuf.message.Message):
|
|
4550
4555
|
@property
|
4551
4556
|
def autoscaler_settings(self) -> global___AutoscalerSettings:
|
4552
4557
|
"""Bundle of parameters related to autoscaling"""
|
4558
|
+
@property
|
4559
|
+
def function_schema(self) -> global___FunctionSchema: ...
|
4553
4560
|
def __init__(
|
4554
4561
|
self,
|
4555
4562
|
*,
|
@@ -4583,9 +4590,10 @@ class FunctionData(google.protobuf.message.Message):
|
|
4583
4590
|
snapshot_debug: builtins.bool = ...,
|
4584
4591
|
runtime_perf_record: builtins.bool = ...,
|
4585
4592
|
autoscaler_settings: global___AutoscalerSettings | None = ...,
|
4593
|
+
function_schema: global___FunctionSchema | None = ...,
|
4586
4594
|
) -> None: ...
|
4587
|
-
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", "schedule", b"schedule", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
|
4588
|
-
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", "function_name", b"function_name", "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: ...
|
4595
|
+
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: ...
|
4596
|
+
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", "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: ...
|
4589
4597
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
|
4590
4598
|
|
4591
4599
|
global___FunctionData = FunctionData
|
@@ -4992,6 +5000,7 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
|
|
4992
5000
|
DEFINITION_ID_FIELD_NUMBER: builtins.int
|
4993
5001
|
CLASS_PARAMETER_INFO_FIELD_NUMBER: builtins.int
|
4994
5002
|
METHOD_HANDLE_METADATA_FIELD_NUMBER: builtins.int
|
5003
|
+
FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
|
4995
5004
|
function_name: builtins.str
|
4996
5005
|
"""Should be a subset and use IDs/types from `Function` above"""
|
4997
5006
|
function_type: global___Function.FunctionType.ValueType
|
@@ -5007,6 +5016,8 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
|
|
5007
5016
|
@property
|
5008
5017
|
def method_handle_metadata(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___FunctionHandleMetadata]:
|
5009
5018
|
"""Mapping of method names to their metadata, only non-empty for class service functions"""
|
5019
|
+
@property
|
5020
|
+
def function_schema(self) -> global___FunctionSchema: ...
|
5010
5021
|
def __init__(
|
5011
5022
|
self,
|
5012
5023
|
*,
|
@@ -5019,9 +5030,10 @@ class FunctionHandleMetadata(google.protobuf.message.Message):
|
|
5019
5030
|
definition_id: builtins.str = ...,
|
5020
5031
|
class_parameter_info: global___ClassParameterInfo | None = ...,
|
5021
5032
|
method_handle_metadata: collections.abc.Mapping[builtins.str, global___FunctionHandleMetadata] | None = ...,
|
5033
|
+
function_schema: global___FunctionSchema | None = ...,
|
5022
5034
|
) -> None: ...
|
5023
|
-
def HasField(self, field_name: typing_extensions.Literal["class_parameter_info", b"class_parameter_info"]) -> builtins.bool: ...
|
5024
|
-
def ClearField(self, field_name: typing_extensions.Literal["class_parameter_info", b"class_parameter_info", "definition_id", b"definition_id", "function_name", b"function_name", "function_type", b"function_type", "is_method", b"is_method", "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: ...
|
5035
|
+
def HasField(self, field_name: typing_extensions.Literal["class_parameter_info", b"class_parameter_info", "function_schema", b"function_schema"]) -> builtins.bool: ...
|
5036
|
+
def ClearField(self, field_name: typing_extensions.Literal["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", "is_method", b"is_method", "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: ...
|
5025
5037
|
|
5026
5038
|
global___FunctionHandleMetadata = FunctionHandleMetadata
|
5027
5039
|
|
@@ -5216,6 +5228,7 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
|
|
5216
5228
|
USE_FUNCTION_ID_FIELD_NUMBER: builtins.int
|
5217
5229
|
USE_METHOD_NAME_FIELD_NUMBER: builtins.int
|
5218
5230
|
METHOD_DEFINITIONS_FIELD_NUMBER: builtins.int
|
5231
|
+
FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
|
5219
5232
|
app_id: builtins.str
|
5220
5233
|
function_name: builtins.str
|
5221
5234
|
existing_function_id: builtins.str
|
@@ -5229,6 +5242,8 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
|
|
5229
5242
|
@property
|
5230
5243
|
def method_definitions(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___MethodDefinition]:
|
5231
5244
|
"""Mapping of method names to method definitions, only non-empty for class service functions"""
|
5245
|
+
@property
|
5246
|
+
def function_schema(self) -> global___FunctionSchema: ...
|
5232
5247
|
def __init__(
|
5233
5248
|
self,
|
5234
5249
|
*,
|
@@ -5240,9 +5255,10 @@ class FunctionPrecreateRequest(google.protobuf.message.Message):
|
|
5240
5255
|
use_function_id: builtins.str = ...,
|
5241
5256
|
use_method_name: builtins.str = ...,
|
5242
5257
|
method_definitions: collections.abc.Mapping[builtins.str, global___MethodDefinition] | None = ...,
|
5258
|
+
function_schema: global___FunctionSchema | None = ...,
|
5243
5259
|
) -> None: ...
|
5244
|
-
def HasField(self, field_name: typing_extensions.Literal["webhook_config", b"webhook_config"]) -> builtins.bool: ...
|
5245
|
-
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_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: ...
|
5260
|
+
def HasField(self, field_name: typing_extensions.Literal["function_schema", b"function_schema", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
|
5261
|
+
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: ...
|
5246
5262
|
|
5247
5263
|
global___FunctionPrecreateRequest = FunctionPrecreateRequest
|
5248
5264
|
|
@@ -5470,6 +5486,43 @@ class FunctionRetryPolicy(google.protobuf.message.Message):
|
|
5470
5486
|
|
5471
5487
|
global___FunctionRetryPolicy = FunctionRetryPolicy
|
5472
5488
|
|
5489
|
+
class FunctionSchema(google.protobuf.message.Message):
|
5490
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
5491
|
+
|
5492
|
+
class _FunctionSchemaType:
|
5493
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
5494
|
+
V: typing_extensions.TypeAlias = ValueType
|
5495
|
+
|
5496
|
+
class _FunctionSchemaTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FunctionSchema._FunctionSchemaType.ValueType], builtins.type): # noqa: F821
|
5497
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
5498
|
+
FUNCTION_SCHEMA_UNSPECIFIED: FunctionSchema._FunctionSchemaType.ValueType # 0
|
5499
|
+
FUNCTION_SCHEMA_V1: FunctionSchema._FunctionSchemaType.ValueType # 1
|
5500
|
+
|
5501
|
+
class FunctionSchemaType(_FunctionSchemaType, metaclass=_FunctionSchemaTypeEnumTypeWrapper): ...
|
5502
|
+
FUNCTION_SCHEMA_UNSPECIFIED: FunctionSchema.FunctionSchemaType.ValueType # 0
|
5503
|
+
FUNCTION_SCHEMA_V1: FunctionSchema.FunctionSchemaType.ValueType # 1
|
5504
|
+
|
5505
|
+
SCHEMA_TYPE_FIELD_NUMBER: builtins.int
|
5506
|
+
ARGUMENTS_FIELD_NUMBER: builtins.int
|
5507
|
+
RETURN_TYPE_FIELD_NUMBER: builtins.int
|
5508
|
+
schema_type: global___FunctionSchema.FunctionSchemaType.ValueType
|
5509
|
+
"""allows easy disambiguation between empty schema and no schema collection etc."""
|
5510
|
+
@property
|
5511
|
+
def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ClassParameterSpec]: ...
|
5512
|
+
@property
|
5513
|
+
def return_type(self) -> global___GenericPayloadType: ...
|
5514
|
+
def __init__(
|
5515
|
+
self,
|
5516
|
+
*,
|
5517
|
+
schema_type: global___FunctionSchema.FunctionSchemaType.ValueType = ...,
|
5518
|
+
arguments: collections.abc.Iterable[global___ClassParameterSpec] | None = ...,
|
5519
|
+
return_type: global___GenericPayloadType | None = ...,
|
5520
|
+
) -> None: ...
|
5521
|
+
def HasField(self, field_name: typing_extensions.Literal["return_type", b"return_type"]) -> builtins.bool: ...
|
5522
|
+
def ClearField(self, field_name: typing_extensions.Literal["arguments", b"arguments", "return_type", b"return_type", "schema_type", b"schema_type"]) -> None: ...
|
5523
|
+
|
5524
|
+
global___FunctionSchema = FunctionSchema
|
5525
|
+
|
5473
5526
|
class FunctionStats(google.protobuf.message.Message):
|
5474
5527
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
5475
5528
|
|
@@ -6039,6 +6092,7 @@ class MethodDefinition(google.protobuf.message.Message):
|
|
6039
6092
|
WEB_URL_FIELD_NUMBER: builtins.int
|
6040
6093
|
WEB_URL_INFO_FIELD_NUMBER: builtins.int
|
6041
6094
|
CUSTOM_DOMAIN_INFO_FIELD_NUMBER: builtins.int
|
6095
|
+
FUNCTION_SCHEMA_FIELD_NUMBER: builtins.int
|
6042
6096
|
function_name: builtins.str
|
6043
6097
|
function_type: global___Function.FunctionType.ValueType
|
6044
6098
|
@property
|
@@ -6048,6 +6102,8 @@ class MethodDefinition(google.protobuf.message.Message):
|
|
6048
6102
|
def web_url_info(self) -> global___WebUrlInfo: ...
|
6049
6103
|
@property
|
6050
6104
|
def custom_domain_info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CustomDomainInfo]: ...
|
6105
|
+
@property
|
6106
|
+
def function_schema(self) -> global___FunctionSchema: ...
|
6051
6107
|
def __init__(
|
6052
6108
|
self,
|
6053
6109
|
*,
|
@@ -6057,9 +6113,10 @@ class MethodDefinition(google.protobuf.message.Message):
|
|
6057
6113
|
web_url: builtins.str = ...,
|
6058
6114
|
web_url_info: global___WebUrlInfo | None = ...,
|
6059
6115
|
custom_domain_info: collections.abc.Iterable[global___CustomDomainInfo] | None = ...,
|
6116
|
+
function_schema: global___FunctionSchema | None = ...,
|
6060
6117
|
) -> None: ...
|
6061
|
-
def HasField(self, field_name: typing_extensions.Literal["web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
|
6062
|
-
def ClearField(self, field_name: typing_extensions.Literal["custom_domain_info", b"custom_domain_info", "function_name", b"function_name", "function_type", b"function_type", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> None: ...
|
6118
|
+
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: ...
|
6119
|
+
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: ...
|
6063
6120
|
|
6064
6121
|
global___MethodDefinition = MethodDefinition
|
6065
6122
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|