mergetbapi 1.3.50__tar.gz → 1.3.52__tar.gz
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.
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/PKG-INFO +1 -1
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/portal/v1/__init__.py +213 -1
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi.egg-info/PKG-INFO +1 -1
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/LICENSE.md +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/README.md +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/google/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/google/api/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/grpc/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/grpc/gateway/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/options/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/portal/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/reconcile/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/validator/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/xir/__init__.py +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi.egg-info/SOURCES.txt +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi.egg-info/dependency_links.txt +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi.egg-info/not-zip-safe +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi.egg-info/requires.txt +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi.egg-info/top_level.txt +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/setup.cfg +0 -0
- {mergetbapi-1.3.50 → mergetbapi-1.3.52}/setup.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
-
# sources: portal/v1/alloc_types.proto, portal/v1/artifact_types.proto, portal/v1/commission_types.proto, portal/v1/communications_types.proto, portal/v1/cred_types.proto, portal/v1/identity_types.proto, portal/v1/internal.proto, portal/v1/kv_types.proto, portal/v1/materialize_types.proto, portal/v1/model_types.proto, portal/v1/patch_types.proto, portal/v1/realize_types.proto, portal/v1/status_types.proto, portal/v1/time_types.proto, portal/v1/wg_types.proto, portal/v1/workspace_types.proto, portal/v1/xdc_types.proto, proto/portal/v1/portal.proto
|
|
2
|
+
# sources: portal/v1/alloc_types.proto, portal/v1/artifact_types.proto, portal/v1/commission_types.proto, portal/v1/communications_types.proto, portal/v1/cred_types.proto, portal/v1/deployment_types.proto, portal/v1/identity_types.proto, portal/v1/internal.proto, portal/v1/kv_types.proto, portal/v1/materialize_types.proto, portal/v1/model_types.proto, portal/v1/patch_types.proto, portal/v1/realize_types.proto, portal/v1/status_types.proto, portal/v1/time_types.proto, portal/v1/wg_types.proto, portal/v1/workspace_types.proto, portal/v1/xdc_types.proto, proto/portal/v1/portal.proto
|
|
3
3
|
# plugin: python-betterproto
|
|
4
4
|
# This file has been @generated
|
|
5
5
|
import warnings
|
|
@@ -545,6 +545,7 @@ class User(betterproto.Message):
|
|
|
545
545
|
country: str = betterproto.string_field(16)
|
|
546
546
|
usstate: str = betterproto.string_field(17)
|
|
547
547
|
created: datetime = betterproto.message_field(18)
|
|
548
|
+
demo_mode_expiration: datetime = betterproto.message_field(19)
|
|
548
549
|
|
|
549
550
|
|
|
550
551
|
@dataclass(eq=False, repr=False)
|
|
@@ -1993,6 +1994,64 @@ class GetUserSshCertResponse(betterproto.Message):
|
|
|
1993
1994
|
cert: "SshCert" = betterproto.message_field(1)
|
|
1994
1995
|
|
|
1995
1996
|
|
|
1997
|
+
@dataclass(eq=False, repr=False)
|
|
1998
|
+
class DeploymentId(betterproto.Message):
|
|
1999
|
+
realization: str = betterproto.string_field(1)
|
|
2000
|
+
experiment: str = betterproto.string_field(2)
|
|
2001
|
+
project: str = betterproto.string_field(3)
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
@dataclass(eq=False, repr=False)
|
|
2005
|
+
class CreateDeploymentRequest(betterproto.Message):
|
|
2006
|
+
dont_cleanup_on_fail: bool = betterproto.bool_field(1)
|
|
2007
|
+
model: str = betterproto.string_field(2)
|
|
2008
|
+
id: "DeploymentId" = betterproto.message_field(3)
|
|
2009
|
+
xdc: str = betterproto.string_field(4)
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
@dataclass(eq=False, repr=False)
|
|
2013
|
+
class CreateDeploymentResponse(betterproto.Message):
|
|
2014
|
+
id: "DeploymentId" = betterproto.message_field(1)
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
@dataclass(eq=False, repr=False)
|
|
2018
|
+
class CancelDeploymentRequest(betterproto.Message):
|
|
2019
|
+
id: "DeploymentId" = betterproto.message_field(1)
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
@dataclass(eq=False, repr=False)
|
|
2023
|
+
class CancelDeploymentResponse(betterproto.Message):
|
|
2024
|
+
pass
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
@dataclass(eq=False, repr=False)
|
|
2028
|
+
class DeploymentInfo(betterproto.Message):
|
|
2029
|
+
id: "DeploymentId" = betterproto.message_field(1)
|
|
2030
|
+
xdc: str = betterproto.string_field(2)
|
|
2031
|
+
status: str = betterproto.string_field(3)
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
@dataclass(eq=False, repr=False)
|
|
2035
|
+
class ListDeploymentsRequest(betterproto.Message):
|
|
2036
|
+
pass
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
@dataclass(eq=False, repr=False)
|
|
2040
|
+
class ListDeploymentsResponse(betterproto.Message):
|
|
2041
|
+
deployments: List["DeploymentInfo"] = betterproto.message_field(1)
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
@dataclass(eq=False, repr=False)
|
|
2045
|
+
class GetDeploymentStatusRequest(betterproto.Message):
|
|
2046
|
+
id: "DeploymentId" = betterproto.message_field(1)
|
|
2047
|
+
status_ms: int = betterproto.int32_field(2)
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
@dataclass(eq=False, repr=False)
|
|
2051
|
+
class GetDeploymentStatusResponse(betterproto.Message):
|
|
2052
|
+
status: "TaskTree" = betterproto.message_field(1)
|
|
2053
|
+
|
|
2054
|
+
|
|
1996
2055
|
@dataclass(eq=False, repr=False)
|
|
1997
2056
|
class VerifiableAddress(betterproto.Message):
|
|
1998
2057
|
value: str = betterproto.string_field(1)
|
|
@@ -5864,6 +5923,76 @@ class KeyValueStub(betterproto.ServiceStub):
|
|
|
5864
5923
|
)
|
|
5865
5924
|
|
|
5866
5925
|
|
|
5926
|
+
class DeployStub(betterproto.ServiceStub):
|
|
5927
|
+
async def create_deployment(
|
|
5928
|
+
self,
|
|
5929
|
+
create_deployment_request: "CreateDeploymentRequest",
|
|
5930
|
+
*,
|
|
5931
|
+
timeout: Optional[float] = None,
|
|
5932
|
+
deadline: Optional["Deadline"] = None,
|
|
5933
|
+
metadata: Optional["MetadataLike"] = None
|
|
5934
|
+
) -> "CreateDeploymentResponse":
|
|
5935
|
+
return await self._unary_unary(
|
|
5936
|
+
"/portal.v1.Deploy/CreateDeployment",
|
|
5937
|
+
create_deployment_request,
|
|
5938
|
+
CreateDeploymentResponse,
|
|
5939
|
+
timeout=timeout,
|
|
5940
|
+
deadline=deadline,
|
|
5941
|
+
metadata=metadata,
|
|
5942
|
+
)
|
|
5943
|
+
|
|
5944
|
+
async def get_deployment_status(
|
|
5945
|
+
self,
|
|
5946
|
+
get_deployment_status_request: "GetDeploymentStatusRequest",
|
|
5947
|
+
*,
|
|
5948
|
+
timeout: Optional[float] = None,
|
|
5949
|
+
deadline: Optional["Deadline"] = None,
|
|
5950
|
+
metadata: Optional["MetadataLike"] = None
|
|
5951
|
+
) -> "GetDeploymentStatusResponse":
|
|
5952
|
+
return await self._unary_unary(
|
|
5953
|
+
"/portal.v1.Deploy/GetDeploymentStatus",
|
|
5954
|
+
get_deployment_status_request,
|
|
5955
|
+
GetDeploymentStatusResponse,
|
|
5956
|
+
timeout=timeout,
|
|
5957
|
+
deadline=deadline,
|
|
5958
|
+
metadata=metadata,
|
|
5959
|
+
)
|
|
5960
|
+
|
|
5961
|
+
async def cancel_deployment(
|
|
5962
|
+
self,
|
|
5963
|
+
cancel_deployment_request: "CancelDeploymentRequest",
|
|
5964
|
+
*,
|
|
5965
|
+
timeout: Optional[float] = None,
|
|
5966
|
+
deadline: Optional["Deadline"] = None,
|
|
5967
|
+
metadata: Optional["MetadataLike"] = None
|
|
5968
|
+
) -> "CancelDeploymentResponse":
|
|
5969
|
+
return await self._unary_unary(
|
|
5970
|
+
"/portal.v1.Deploy/CancelDeployment",
|
|
5971
|
+
cancel_deployment_request,
|
|
5972
|
+
CancelDeploymentResponse,
|
|
5973
|
+
timeout=timeout,
|
|
5974
|
+
deadline=deadline,
|
|
5975
|
+
metadata=metadata,
|
|
5976
|
+
)
|
|
5977
|
+
|
|
5978
|
+
async def list_deployments(
|
|
5979
|
+
self,
|
|
5980
|
+
list_deployments_request: "ListDeploymentsRequest",
|
|
5981
|
+
*,
|
|
5982
|
+
timeout: Optional[float] = None,
|
|
5983
|
+
deadline: Optional["Deadline"] = None,
|
|
5984
|
+
metadata: Optional["MetadataLike"] = None
|
|
5985
|
+
) -> "ListDeploymentsResponse":
|
|
5986
|
+
return await self._unary_unary(
|
|
5987
|
+
"/portal.v1.Deploy/ListDeployments",
|
|
5988
|
+
list_deployments_request,
|
|
5989
|
+
ListDeploymentsResponse,
|
|
5990
|
+
timeout=timeout,
|
|
5991
|
+
deadline=deadline,
|
|
5992
|
+
metadata=metadata,
|
|
5993
|
+
)
|
|
5994
|
+
|
|
5995
|
+
|
|
5867
5996
|
class WorkspaceBase(ServiceBase):
|
|
5868
5997
|
|
|
5869
5998
|
async def activate_user(
|
|
@@ -8636,3 +8765,86 @@ class KeyValueBase(ServiceBase):
|
|
|
8636
8765
|
KvArtifactDeleteResponse,
|
|
8637
8766
|
),
|
|
8638
8767
|
}
|
|
8768
|
+
|
|
8769
|
+
|
|
8770
|
+
class DeployBase(ServiceBase):
|
|
8771
|
+
|
|
8772
|
+
async def create_deployment(
|
|
8773
|
+
self, create_deployment_request: "CreateDeploymentRequest"
|
|
8774
|
+
) -> "CreateDeploymentResponse":
|
|
8775
|
+
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
8776
|
+
|
|
8777
|
+
async def get_deployment_status(
|
|
8778
|
+
self, get_deployment_status_request: "GetDeploymentStatusRequest"
|
|
8779
|
+
) -> "GetDeploymentStatusResponse":
|
|
8780
|
+
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
8781
|
+
|
|
8782
|
+
async def cancel_deployment(
|
|
8783
|
+
self, cancel_deployment_request: "CancelDeploymentRequest"
|
|
8784
|
+
) -> "CancelDeploymentResponse":
|
|
8785
|
+
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
8786
|
+
|
|
8787
|
+
async def list_deployments(
|
|
8788
|
+
self, list_deployments_request: "ListDeploymentsRequest"
|
|
8789
|
+
) -> "ListDeploymentsResponse":
|
|
8790
|
+
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
8791
|
+
|
|
8792
|
+
async def __rpc_create_deployment(
|
|
8793
|
+
self,
|
|
8794
|
+
stream: "grpclib.server.Stream[CreateDeploymentRequest, CreateDeploymentResponse]",
|
|
8795
|
+
) -> None:
|
|
8796
|
+
request = await stream.recv_message()
|
|
8797
|
+
response = await self.create_deployment(request)
|
|
8798
|
+
await stream.send_message(response)
|
|
8799
|
+
|
|
8800
|
+
async def __rpc_get_deployment_status(
|
|
8801
|
+
self,
|
|
8802
|
+
stream: "grpclib.server.Stream[GetDeploymentStatusRequest, GetDeploymentStatusResponse]",
|
|
8803
|
+
) -> None:
|
|
8804
|
+
request = await stream.recv_message()
|
|
8805
|
+
response = await self.get_deployment_status(request)
|
|
8806
|
+
await stream.send_message(response)
|
|
8807
|
+
|
|
8808
|
+
async def __rpc_cancel_deployment(
|
|
8809
|
+
self,
|
|
8810
|
+
stream: "grpclib.server.Stream[CancelDeploymentRequest, CancelDeploymentResponse]",
|
|
8811
|
+
) -> None:
|
|
8812
|
+
request = await stream.recv_message()
|
|
8813
|
+
response = await self.cancel_deployment(request)
|
|
8814
|
+
await stream.send_message(response)
|
|
8815
|
+
|
|
8816
|
+
async def __rpc_list_deployments(
|
|
8817
|
+
self,
|
|
8818
|
+
stream: "grpclib.server.Stream[ListDeploymentsRequest, ListDeploymentsResponse]",
|
|
8819
|
+
) -> None:
|
|
8820
|
+
request = await stream.recv_message()
|
|
8821
|
+
response = await self.list_deployments(request)
|
|
8822
|
+
await stream.send_message(response)
|
|
8823
|
+
|
|
8824
|
+
def __mapping__(self) -> Dict[str, grpclib.const.Handler]:
|
|
8825
|
+
return {
|
|
8826
|
+
"/portal.v1.Deploy/CreateDeployment": grpclib.const.Handler(
|
|
8827
|
+
self.__rpc_create_deployment,
|
|
8828
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
8829
|
+
CreateDeploymentRequest,
|
|
8830
|
+
CreateDeploymentResponse,
|
|
8831
|
+
),
|
|
8832
|
+
"/portal.v1.Deploy/GetDeploymentStatus": grpclib.const.Handler(
|
|
8833
|
+
self.__rpc_get_deployment_status,
|
|
8834
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
8835
|
+
GetDeploymentStatusRequest,
|
|
8836
|
+
GetDeploymentStatusResponse,
|
|
8837
|
+
),
|
|
8838
|
+
"/portal.v1.Deploy/CancelDeployment": grpclib.const.Handler(
|
|
8839
|
+
self.__rpc_cancel_deployment,
|
|
8840
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
8841
|
+
CancelDeploymentRequest,
|
|
8842
|
+
CancelDeploymentResponse,
|
|
8843
|
+
),
|
|
8844
|
+
"/portal.v1.Deploy/ListDeployments": grpclib.const.Handler(
|
|
8845
|
+
self.__rpc_list_deployments,
|
|
8846
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
8847
|
+
ListDeploymentsRequest,
|
|
8848
|
+
ListDeploymentsResponse,
|
|
8849
|
+
),
|
|
8850
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mergetbapi-1.3.50 → mergetbapi-1.3.52}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|