modal 1.1.5.dev10__py3-none-any.whl → 1.1.5.dev11__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/client.pyi +2 -2
- {modal-1.1.5.dev10.dist-info → modal-1.1.5.dev11.dist-info}/METADATA +1 -1
- {modal-1.1.5.dev10.dist-info → modal-1.1.5.dev11.dist-info}/RECORD +15 -15
- modal_proto/api.proto +11 -0
- modal_proto/api_grpc.py +16 -0
- modal_proto/api_pb2.py +341 -321
- modal_proto/api_pb2.pyi +34 -0
- modal_proto/api_pb2_grpc.py +33 -0
- modal_proto/api_pb2_grpc.pyi +10 -0
- modal_proto/modal_api_grpc.py +1 -0
- modal_version/__init__.py +1 -1
- {modal-1.1.5.dev10.dist-info → modal-1.1.5.dev11.dist-info}/WHEEL +0 -0
- {modal-1.1.5.dev10.dist-info → modal-1.1.5.dev11.dist-info}/entry_points.txt +0 -0
- {modal-1.1.5.dev10.dist-info → modal-1.1.5.dev11.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.5.dev10.dist-info → modal-1.1.5.dev11.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -8568,6 +8568,40 @@ class Sandbox(google.protobuf.message.Message):
|
|
8568
8568
|
|
8569
8569
|
global___Sandbox = Sandbox
|
8570
8570
|
|
8571
|
+
class SandboxCreateConnectCredentialsRequest(google.protobuf.message.Message):
|
8572
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8573
|
+
|
8574
|
+
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
8575
|
+
METADATA_FIELD_NUMBER: builtins.int
|
8576
|
+
sandbox_id: builtins.str
|
8577
|
+
metadata: builtins.str
|
8578
|
+
def __init__(
|
8579
|
+
self,
|
8580
|
+
*,
|
8581
|
+
sandbox_id: builtins.str = ...,
|
8582
|
+
metadata: builtins.str = ...,
|
8583
|
+
) -> None: ...
|
8584
|
+
def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "sandbox_id", b"sandbox_id"]) -> None: ...
|
8585
|
+
|
8586
|
+
global___SandboxCreateConnectCredentialsRequest = SandboxCreateConnectCredentialsRequest
|
8587
|
+
|
8588
|
+
class SandboxCreateConnectCredentialsResponse(google.protobuf.message.Message):
|
8589
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8590
|
+
|
8591
|
+
URL_FIELD_NUMBER: builtins.int
|
8592
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
8593
|
+
url: builtins.str
|
8594
|
+
token: builtins.str
|
8595
|
+
def __init__(
|
8596
|
+
self,
|
8597
|
+
*,
|
8598
|
+
url: builtins.str = ...,
|
8599
|
+
token: builtins.str = ...,
|
8600
|
+
) -> None: ...
|
8601
|
+
def ClearField(self, field_name: typing_extensions.Literal["token", b"token", "url", b"url"]) -> None: ...
|
8602
|
+
|
8603
|
+
global___SandboxCreateConnectCredentialsResponse = SandboxCreateConnectCredentialsResponse
|
8604
|
+
|
8571
8605
|
class SandboxCreateRequest(google.protobuf.message.Message):
|
8572
8606
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
8573
8607
|
|
modal_proto/api_pb2_grpc.py
CHANGED
@@ -575,6 +575,11 @@ class ModalClientStub(object):
|
|
575
575
|
request_serializer=modal__proto_dot_api__pb2.SandboxCreateRequest.SerializeToString,
|
576
576
|
response_deserializer=modal__proto_dot_api__pb2.SandboxCreateResponse.FromString,
|
577
577
|
)
|
578
|
+
self.SandboxCreateConnectCredentials = channel.unary_unary(
|
579
|
+
'/modal.client.ModalClient/SandboxCreateConnectCredentials',
|
580
|
+
request_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.SerializeToString,
|
581
|
+
response_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.FromString,
|
582
|
+
)
|
578
583
|
self.SandboxGetFromName = channel.unary_unary(
|
579
584
|
'/modal.client.ModalClient/SandboxGetFromName',
|
580
585
|
request_serializer=modal__proto_dot_api__pb2.SandboxGetFromNameRequest.SerializeToString,
|
@@ -1556,6 +1561,12 @@ class ModalClientServicer(object):
|
|
1556
1561
|
context.set_details('Method not implemented!')
|
1557
1562
|
raise NotImplementedError('Method not implemented!')
|
1558
1563
|
|
1564
|
+
def SandboxCreateConnectCredentials(self, request, context):
|
1565
|
+
"""Missing associated documentation comment in .proto file."""
|
1566
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
1567
|
+
context.set_details('Method not implemented!')
|
1568
|
+
raise NotImplementedError('Method not implemented!')
|
1569
|
+
|
1559
1570
|
def SandboxGetFromName(self, request, context):
|
1560
1571
|
"""Missing associated documentation comment in .proto file."""
|
1561
1572
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -2464,6 +2475,11 @@ def add_ModalClientServicer_to_server(servicer, server):
|
|
2464
2475
|
request_deserializer=modal__proto_dot_api__pb2.SandboxCreateRequest.FromString,
|
2465
2476
|
response_serializer=modal__proto_dot_api__pb2.SandboxCreateResponse.SerializeToString,
|
2466
2477
|
),
|
2478
|
+
'SandboxCreateConnectCredentials': grpc.unary_unary_rpc_method_handler(
|
2479
|
+
servicer.SandboxCreateConnectCredentials,
|
2480
|
+
request_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.FromString,
|
2481
|
+
response_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.SerializeToString,
|
2482
|
+
),
|
2467
2483
|
'SandboxGetFromName': grpc.unary_unary_rpc_method_handler(
|
2468
2484
|
servicer.SandboxGetFromName,
|
2469
2485
|
request_deserializer=modal__proto_dot_api__pb2.SandboxGetFromNameRequest.FromString,
|
@@ -4658,6 +4674,23 @@ class ModalClient(object):
|
|
4658
4674
|
options, channel_credentials,
|
4659
4675
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4660
4676
|
|
4677
|
+
@staticmethod
|
4678
|
+
def SandboxCreateConnectCredentials(request,
|
4679
|
+
target,
|
4680
|
+
options=(),
|
4681
|
+
channel_credentials=None,
|
4682
|
+
call_credentials=None,
|
4683
|
+
insecure=False,
|
4684
|
+
compression=None,
|
4685
|
+
wait_for_ready=None,
|
4686
|
+
timeout=None,
|
4687
|
+
metadata=None):
|
4688
|
+
return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxCreateConnectCredentials',
|
4689
|
+
modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.SerializeToString,
|
4690
|
+
modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.FromString,
|
4691
|
+
options, channel_credentials,
|
4692
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
4693
|
+
|
4661
4694
|
@staticmethod
|
4662
4695
|
def SandboxGetFromName(request,
|
4663
4696
|
target,
|
modal_proto/api_pb2_grpc.pyi
CHANGED
@@ -482,6 +482,10 @@ class ModalClientStub:
|
|
482
482
|
modal_proto.api_pb2.SandboxCreateResponse,
|
483
483
|
]
|
484
484
|
"""Sandboxes"""
|
485
|
+
SandboxCreateConnectCredentials: grpc.UnaryUnaryMultiCallable[
|
486
|
+
modal_proto.api_pb2.SandboxCreateConnectCredentialsRequest,
|
487
|
+
modal_proto.api_pb2.SandboxCreateConnectCredentialsResponse,
|
488
|
+
]
|
485
489
|
SandboxGetFromName: grpc.UnaryUnaryMultiCallable[
|
486
490
|
modal_proto.api_pb2.SandboxGetFromNameRequest,
|
487
491
|
modal_proto.api_pb2.SandboxGetFromNameResponse,
|
@@ -1414,6 +1418,12 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
|
|
1414
1418
|
) -> modal_proto.api_pb2.SandboxCreateResponse:
|
1415
1419
|
"""Sandboxes"""
|
1416
1420
|
@abc.abstractmethod
|
1421
|
+
def SandboxCreateConnectCredentials(
|
1422
|
+
self,
|
1423
|
+
request: modal_proto.api_pb2.SandboxCreateConnectCredentialsRequest,
|
1424
|
+
context: grpc.ServicerContext,
|
1425
|
+
) -> modal_proto.api_pb2.SandboxCreateConnectCredentialsResponse: ...
|
1426
|
+
@abc.abstractmethod
|
1417
1427
|
def SandboxGetFromName(
|
1418
1428
|
self,
|
1419
1429
|
request: modal_proto.api_pb2.SandboxGetFromNameRequest,
|
modal_proto/modal_api_grpc.py
CHANGED
@@ -130,6 +130,7 @@ class ModalClientModal:
|
|
130
130
|
self.QueueNextItems = modal.client.UnaryUnaryWrapper(grpclib_stub.QueueNextItems, client, server_url)
|
131
131
|
self.QueuePut = modal.client.UnaryUnaryWrapper(grpclib_stub.QueuePut, client, server_url)
|
132
132
|
self.SandboxCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreate, client, server_url)
|
133
|
+
self.SandboxCreateConnectCredentials = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreateConnectCredentials, client, server_url)
|
133
134
|
self.SandboxGetFromName = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetFromName, client, server_url)
|
134
135
|
self.SandboxGetLogs = modal.client.UnaryStreamWrapper(grpclib_stub.SandboxGetLogs, client, server_url)
|
135
136
|
self.SandboxGetResourceUsage = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetResourceUsage, client, server_url)
|
modal_version/__init__.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|