modal 1.2.2.dev21__py3-none-any.whl → 1.2.2.dev30__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/_grpc_client.py +25 -2
- modal/_utils/function_utils.py +1 -2
- modal/client.pyi +2 -2
- modal/cloud_bucket_mount.py +2 -0
- modal/cloud_bucket_mount.pyi +4 -0
- modal/experimental/flash.py +2 -3
- modal/image.py +3 -3
- modal/image.pyi +9 -9
- modal/runner.py +13 -5
- modal/runner.pyi +2 -1
- modal/sandbox.py +3 -13
- modal/sandbox.pyi +0 -1
- {modal-1.2.2.dev21.dist-info → modal-1.2.2.dev30.dist-info}/METADATA +2 -2
- {modal-1.2.2.dev21.dist-info → modal-1.2.2.dev30.dist-info}/RECORD +22 -22
- modal_proto/api.proto +10 -0
- modal_proto/api_pb2.py +841 -838
- modal_proto/api_pb2.pyi +25 -2
- modal_version/__init__.py +1 -1
- {modal-1.2.2.dev21.dist-info → modal-1.2.2.dev30.dist-info}/WHEEL +0 -0
- {modal-1.2.2.dev21.dist-info → modal-1.2.2.dev30.dist-info}/entry_points.txt +0 -0
- {modal-1.2.2.dev21.dist-info → modal-1.2.2.dev30.dist-info}/licenses/LICENSE +0 -0
- {modal-1.2.2.dev21.dist-info → modal-1.2.2.dev30.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -2746,6 +2746,21 @@ class CloudBucketMount(google.protobuf.message.Message):
|
|
|
2746
2746
|
R2: CloudBucketMount.BucketType.ValueType # 2
|
|
2747
2747
|
GCP: CloudBucketMount.BucketType.ValueType # 3
|
|
2748
2748
|
|
|
2749
|
+
class _MetadataTTLType:
|
|
2750
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
2751
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
2752
|
+
|
|
2753
|
+
class _MetadataTTLTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CloudBucketMount._MetadataTTLType.ValueType], builtins.type): # noqa: F821
|
|
2754
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
2755
|
+
METADATA_TTL_TYPE_UNSPECIFIED: CloudBucketMount._MetadataTTLType.ValueType # 0
|
|
2756
|
+
METADATA_TTL_TYPE_MINIMAL: CloudBucketMount._MetadataTTLType.ValueType # 1
|
|
2757
|
+
METADATA_TTL_TYPE_INDEFINITE: CloudBucketMount._MetadataTTLType.ValueType # 2
|
|
2758
|
+
|
|
2759
|
+
class MetadataTTLType(_MetadataTTLType, metaclass=_MetadataTTLTypeEnumTypeWrapper): ...
|
|
2760
|
+
METADATA_TTL_TYPE_UNSPECIFIED: CloudBucketMount.MetadataTTLType.ValueType # 0
|
|
2761
|
+
METADATA_TTL_TYPE_MINIMAL: CloudBucketMount.MetadataTTLType.ValueType # 1
|
|
2762
|
+
METADATA_TTL_TYPE_INDEFINITE: CloudBucketMount.MetadataTTLType.ValueType # 2
|
|
2763
|
+
|
|
2749
2764
|
BUCKET_NAME_FIELD_NUMBER: builtins.int
|
|
2750
2765
|
MOUNT_PATH_FIELD_NUMBER: builtins.int
|
|
2751
2766
|
CREDENTIALS_SECRET_ID_FIELD_NUMBER: builtins.int
|
|
@@ -2756,6 +2771,8 @@ class CloudBucketMount(google.protobuf.message.Message):
|
|
|
2756
2771
|
KEY_PREFIX_FIELD_NUMBER: builtins.int
|
|
2757
2772
|
OIDC_AUTH_ROLE_ARN_FIELD_NUMBER: builtins.int
|
|
2758
2773
|
FORCE_PATH_STYLE_FIELD_NUMBER: builtins.int
|
|
2774
|
+
METADATA_TTL_TYPE_FIELD_NUMBER: builtins.int
|
|
2775
|
+
METADATA_TTL_SECONDS_FIELD_NUMBER: builtins.int
|
|
2759
2776
|
bucket_name: builtins.str
|
|
2760
2777
|
mount_path: builtins.str
|
|
2761
2778
|
credentials_secret_id: builtins.str
|
|
@@ -2766,6 +2783,8 @@ class CloudBucketMount(google.protobuf.message.Message):
|
|
|
2766
2783
|
key_prefix: builtins.str
|
|
2767
2784
|
oidc_auth_role_arn: builtins.str
|
|
2768
2785
|
force_path_style: builtins.bool
|
|
2786
|
+
metadata_ttl_type: global___CloudBucketMount.MetadataTTLType.ValueType
|
|
2787
|
+
metadata_ttl_seconds: builtins.int
|
|
2769
2788
|
def __init__(
|
|
2770
2789
|
self,
|
|
2771
2790
|
*,
|
|
@@ -2779,15 +2798,19 @@ class CloudBucketMount(google.protobuf.message.Message):
|
|
|
2779
2798
|
key_prefix: builtins.str | None = ...,
|
|
2780
2799
|
oidc_auth_role_arn: builtins.str | None = ...,
|
|
2781
2800
|
force_path_style: builtins.bool = ...,
|
|
2801
|
+
metadata_ttl_type: global___CloudBucketMount.MetadataTTLType.ValueType = ...,
|
|
2802
|
+
metadata_ttl_seconds: builtins.int = ...,
|
|
2782
2803
|
) -> None: ...
|
|
2783
|
-
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: ...
|
|
2784
|
-
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", "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: ...
|
|
2804
|
+
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: ...
|
|
2805
|
+
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: ...
|
|
2785
2806
|
@typing.overload
|
|
2786
2807
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_bucket_endpoint_url", b"_bucket_endpoint_url"]) -> typing_extensions.Literal["bucket_endpoint_url"] | None: ...
|
|
2787
2808
|
@typing.overload
|
|
2788
2809
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["_key_prefix", b"_key_prefix"]) -> typing_extensions.Literal["key_prefix"] | None: ...
|
|
2789
2810
|
@typing.overload
|
|
2790
2811
|
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: ...
|
|
2812
|
+
@typing.overload
|
|
2813
|
+
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: ...
|
|
2791
2814
|
|
|
2792
2815
|
global___CloudBucketMount = CloudBucketMount
|
|
2793
2816
|
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|