mergetbapi 1.3.37__tar.gz → 1.3.40__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.37 → mergetbapi-1.3.40}/PKG-INFO +1 -1
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/portal/v1/__init__.py +117 -29
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi.egg-info/PKG-INFO +1 -1
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/LICENSE.md +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/README.md +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/google/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/google/api/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/grpc/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/grpc/gateway/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/options/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/portal/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/reconcile/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/validator/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi/xir/__init__.py +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi.egg-info/SOURCES.txt +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi.egg-info/dependency_links.txt +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi.egg-info/not-zip-safe +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi.egg-info/requires.txt +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/mergetbapi.egg-info/top_level.txt +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/setup.cfg +0 -0
- {mergetbapi-1.3.37 → mergetbapi-1.3.40}/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/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/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
|
|
@@ -153,6 +153,11 @@ class ArtifactGetDetail(betterproto.Enum):
|
|
|
153
153
|
MetaOnly = 2
|
|
154
154
|
|
|
155
155
|
|
|
156
|
+
class PortalDurationCode(betterproto.Enum):
|
|
157
|
+
given = 0
|
|
158
|
+
never = 1
|
|
159
|
+
|
|
160
|
+
|
|
156
161
|
class DiagnosticLevel(betterproto.Enum):
|
|
157
162
|
DiagUnspec = 0
|
|
158
163
|
Error = 1
|
|
@@ -168,11 +173,6 @@ class NodeRealizationKind(betterproto.Enum):
|
|
|
168
173
|
VirtualMachine = 2
|
|
169
174
|
|
|
170
175
|
|
|
171
|
-
class ReservationDurationCode(betterproto.Enum):
|
|
172
|
-
given = 0
|
|
173
|
-
never = 1
|
|
174
|
-
|
|
175
|
-
|
|
176
176
|
class RealizeResponseCode(betterproto.Enum):
|
|
177
177
|
Ok = 0
|
|
178
178
|
BadXir = 1
|
|
@@ -621,6 +621,11 @@ class UpdateUserRequest(betterproto.Message):
|
|
|
621
621
|
country: str = betterproto.string_field(12)
|
|
622
622
|
email: str = betterproto.string_field(13)
|
|
623
623
|
usstate: str = betterproto.string_field(14)
|
|
624
|
+
toggle_email_valid: bool = betterproto.bool_field(15)
|
|
625
|
+
"""
|
|
626
|
+
Set the user email as validated or not. If true will toggle the state.
|
|
627
|
+
(Only useful if your portal supports email validation.)
|
|
628
|
+
"""
|
|
624
629
|
|
|
625
630
|
|
|
626
631
|
@dataclass(eq=False, repr=False)
|
|
@@ -1831,6 +1836,26 @@ class GetUserSshCertResponse(betterproto.Message):
|
|
|
1831
1836
|
cert: "SshCert" = betterproto.message_field(1)
|
|
1832
1837
|
|
|
1833
1838
|
|
|
1839
|
+
@dataclass(eq=False, repr=False)
|
|
1840
|
+
class VerifiableAddress(betterproto.Message):
|
|
1841
|
+
value: str = betterproto.string_field(1)
|
|
1842
|
+
status: str = betterproto.string_field(2)
|
|
1843
|
+
verified: bool = betterproto.bool_field(3)
|
|
1844
|
+
via: str = betterproto.string_field(4)
|
|
1845
|
+
created_at: datetime = betterproto.message_field(5)
|
|
1846
|
+
updated_at: datetime = betterproto.message_field(6)
|
|
1847
|
+
verified_at: datetime = betterproto.message_field(7)
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
@dataclass(eq=False, repr=False)
|
|
1851
|
+
class RecoveryAddress(betterproto.Message):
|
|
1852
|
+
value: str = betterproto.string_field(1)
|
|
1853
|
+
status: str = betterproto.string_field(2)
|
|
1854
|
+
via: str = betterproto.string_field(3)
|
|
1855
|
+
created_at: datetime = betterproto.message_field(4)
|
|
1856
|
+
updated_at: datetime = betterproto.message_field(5)
|
|
1857
|
+
|
|
1858
|
+
|
|
1834
1859
|
@dataclass(eq=False, repr=False)
|
|
1835
1860
|
class IdentityInfo(betterproto.Message):
|
|
1836
1861
|
username: str = betterproto.string_field(1)
|
|
@@ -1847,6 +1872,13 @@ class IdentityInfo(betterproto.Message):
|
|
|
1847
1872
|
traits: Dict[str, str] = betterproto.map_field(
|
|
1848
1873
|
4, betterproto.TYPE_STRING, betterproto.TYPE_STRING
|
|
1849
1874
|
)
|
|
1875
|
+
verifiable_addresses: List["VerifiableAddress"] = betterproto.message_field(5)
|
|
1876
|
+
"""List of verified email addresses for the identity."""
|
|
1877
|
+
|
|
1878
|
+
recovery_addresses: List["RecoveryAddress"] = betterproto.message_field(6)
|
|
1879
|
+
"""
|
|
1880
|
+
List of email addresses that can be used to recover an identity account.
|
|
1881
|
+
"""
|
|
1850
1882
|
|
|
1851
1883
|
def __post_init__(self) -> None:
|
|
1852
1884
|
super().__post_init__()
|
|
@@ -1988,12 +2020,36 @@ class UpdateIdentityRequest(betterproto.Message):
|
|
|
1988
2020
|
emailaddress: str = betterproto.string_field(3)
|
|
1989
2021
|
"""The user's email address."""
|
|
1990
2022
|
|
|
2023
|
+
toggle_email_valid: bool = betterproto.bool_field(4)
|
|
2024
|
+
"""If true toggle the validity of the user's verifiable addresses."""
|
|
2025
|
+
|
|
1991
2026
|
|
|
1992
2027
|
@dataclass(eq=False, repr=False)
|
|
1993
2028
|
class UpdateIdentityResponse(betterproto.Message):
|
|
1994
2029
|
pass
|
|
1995
2030
|
|
|
1996
2031
|
|
|
2032
|
+
@dataclass(eq=False, repr=False)
|
|
2033
|
+
class PortalDuration(betterproto.Message):
|
|
2034
|
+
when: "PortalDurationCode" = betterproto.enum_field(1)
|
|
2035
|
+
duration: str = betterproto.string_field(2)
|
|
2036
|
+
"""
|
|
2037
|
+
How long to reserve the resources of the realization. After the duration
|
|
2038
|
+
ends the realization is available to be forcibly relinquished to free
|
|
2039
|
+
reserved resources.
|
|
2040
|
+
|
|
2041
|
+
The format of the duration follows the golang time.ParseDuration with
|
|
2042
|
+
extra fields for weeks and days prepending the golang duration.
|
|
2043
|
+
|
|
2044
|
+
Example: 2 weeks, 3 days, 4 hours, 5 seconds is "2w3d4h5s".
|
|
2045
|
+
|
|
2046
|
+
Any field may be absent. "2w4h" is 2 weeks for hours.
|
|
2047
|
+
A day is 24 hours. A week is 7 days.
|
|
2048
|
+
|
|
2049
|
+
Only used if "when" is "given".
|
|
2050
|
+
"""
|
|
2051
|
+
|
|
2052
|
+
|
|
1997
2053
|
@dataclass(eq=False, repr=False)
|
|
1998
2054
|
class CountSet(betterproto.Message):
|
|
1999
2055
|
name: str = betterproto.string_field(1)
|
|
@@ -2404,28 +2460,7 @@ class RealizeRequest(betterproto.Message):
|
|
|
2404
2460
|
Only one of revision, tag, or branch is allowed.
|
|
2405
2461
|
"""
|
|
2406
2462
|
|
|
2407
|
-
duration: "
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
@dataclass(eq=False, repr=False)
|
|
2411
|
-
class ReservationDuration(betterproto.Message):
|
|
2412
|
-
when: "ReservationDurationCode" = betterproto.enum_field(1)
|
|
2413
|
-
duration: str = betterproto.string_field(2)
|
|
2414
|
-
"""
|
|
2415
|
-
How long to reserve the resources of the realization. After the duration
|
|
2416
|
-
ends the realization is available to be forcibly relinquished to free
|
|
2417
|
-
reserved resources.
|
|
2418
|
-
|
|
2419
|
-
The format of the duration follows the golang time.ParseDuration with
|
|
2420
|
-
extra fields for weeks and days prepending the golang duration.
|
|
2421
|
-
|
|
2422
|
-
Example: 2 weeks, 3 days, 4 hours, 5 seconds is "2w3d4h5s".
|
|
2423
|
-
|
|
2424
|
-
Any field may be absent. "2w4h" is 2 weeks for hours.
|
|
2425
|
-
A day is 24 hours. A week is 7 days.
|
|
2426
|
-
|
|
2427
|
-
Only used if "when" is "given".
|
|
2428
|
-
"""
|
|
2463
|
+
duration: "PortalDuration" = betterproto.message_field(10)
|
|
2429
2464
|
|
|
2430
2465
|
|
|
2431
2466
|
@dataclass(eq=False, repr=False)
|
|
@@ -2485,7 +2520,7 @@ class UpdateRealizationRequest(betterproto.Message):
|
|
|
2485
2520
|
project: str = betterproto.string_field(1)
|
|
2486
2521
|
experiment: str = betterproto.string_field(2)
|
|
2487
2522
|
realization: str = betterproto.string_field(3)
|
|
2488
|
-
duration: "
|
|
2523
|
+
duration: "PortalDuration" = betterproto.message_field(4)
|
|
2489
2524
|
|
|
2490
2525
|
|
|
2491
2526
|
@dataclass(eq=False, repr=False)
|
|
@@ -2868,6 +2903,8 @@ class XdcStorage(betterproto.Message):
|
|
|
2868
2903
|
"""
|
|
2869
2904
|
|
|
2870
2905
|
type: "XdcType" = betterproto.enum_field(11)
|
|
2906
|
+
expires: datetime = betterproto.message_field(13)
|
|
2907
|
+
"""When this XDC expires and will be deleted."""
|
|
2871
2908
|
|
|
2872
2909
|
|
|
2873
2910
|
@dataclass(eq=False, repr=False)
|
|
@@ -2881,6 +2918,7 @@ class XdcInfo(betterproto.Message):
|
|
|
2881
2918
|
image: str = betterproto.string_field(7)
|
|
2882
2919
|
materialization: str = betterproto.string_field(8)
|
|
2883
2920
|
type: "XdcType" = betterproto.enum_field(9)
|
|
2921
|
+
expires: datetime = betterproto.message_field(10)
|
|
2884
2922
|
|
|
2885
2923
|
|
|
2886
2924
|
@dataclass(eq=False, repr=False)
|
|
@@ -2914,6 +2952,7 @@ class CreateXdcRequest(betterproto.Message):
|
|
|
2914
2952
|
memlimit: int = betterproto.int32_field(4)
|
|
2915
2953
|
cpulimit: int = betterproto.int32_field(5)
|
|
2916
2954
|
type: "XdcType" = betterproto.enum_field(6)
|
|
2955
|
+
duration: "PortalDuration" = betterproto.message_field(7)
|
|
2917
2956
|
|
|
2918
2957
|
|
|
2919
2958
|
@dataclass(eq=False, repr=False)
|
|
@@ -2978,6 +3017,20 @@ class XdcTunnelGatewayResponse(betterproto.Message):
|
|
|
2978
3017
|
gateways: List["XdcTunnelGateway"] = betterproto.message_field(1)
|
|
2979
3018
|
|
|
2980
3019
|
|
|
3020
|
+
@dataclass(eq=False, repr=False)
|
|
3021
|
+
class UpdateXdcRequest(betterproto.Message):
|
|
3022
|
+
xdc: str = betterproto.string_field(1)
|
|
3023
|
+
project: str = betterproto.string_field(2)
|
|
3024
|
+
"""part of the xdc name <xdc>.<project>"""
|
|
3025
|
+
|
|
3026
|
+
expires: "PortalDuration" = betterproto.message_field(3)
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
@dataclass(eq=False, repr=False)
|
|
3030
|
+
class UpdateXdcResponse(betterproto.Message):
|
|
3031
|
+
pass
|
|
3032
|
+
|
|
3033
|
+
|
|
2981
3034
|
@dataclass(eq=False, repr=False)
|
|
2982
3035
|
class GetXdcJumpHostsRequest(betterproto.Message):
|
|
2983
3036
|
pass
|
|
@@ -5109,6 +5162,23 @@ class XdcStub(betterproto.ServiceStub):
|
|
|
5109
5162
|
metadata=metadata,
|
|
5110
5163
|
)
|
|
5111
5164
|
|
|
5165
|
+
async def update_xdc(
|
|
5166
|
+
self,
|
|
5167
|
+
update_xdc_request: "UpdateXdcRequest",
|
|
5168
|
+
*,
|
|
5169
|
+
timeout: Optional[float] = None,
|
|
5170
|
+
deadline: Optional["Deadline"] = None,
|
|
5171
|
+
metadata: Optional["MetadataLike"] = None
|
|
5172
|
+
) -> "UpdateXdcResponse":
|
|
5173
|
+
return await self._unary_unary(
|
|
5174
|
+
"/portal.v1.XDC/UpdateXDC",
|
|
5175
|
+
update_xdc_request,
|
|
5176
|
+
UpdateXdcResponse,
|
|
5177
|
+
timeout=timeout,
|
|
5178
|
+
deadline=deadline,
|
|
5179
|
+
metadata=metadata,
|
|
5180
|
+
)
|
|
5181
|
+
|
|
5112
5182
|
async def get_xdc_jump_hosts(
|
|
5113
5183
|
self,
|
|
5114
5184
|
get_xdc_jump_hosts_request: "GetXdcJumpHostsRequest",
|
|
@@ -7662,6 +7732,11 @@ class XdcBase(ServiceBase):
|
|
|
7662
7732
|
) -> "DetachXdcResponse":
|
|
7663
7733
|
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
7664
7734
|
|
|
7735
|
+
async def update_xdc(
|
|
7736
|
+
self, update_xdc_request: "UpdateXdcRequest"
|
|
7737
|
+
) -> "UpdateXdcResponse":
|
|
7738
|
+
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
7739
|
+
|
|
7665
7740
|
async def get_xdc_jump_hosts(
|
|
7666
7741
|
self, get_xdc_jump_hosts_request: "GetXdcJumpHostsRequest"
|
|
7667
7742
|
) -> "GetXdcJumpHostsResponse":
|
|
@@ -7709,6 +7784,13 @@ class XdcBase(ServiceBase):
|
|
|
7709
7784
|
response = await self.detach_xdc(request)
|
|
7710
7785
|
await stream.send_message(response)
|
|
7711
7786
|
|
|
7787
|
+
async def __rpc_update_xdc(
|
|
7788
|
+
self, stream: "grpclib.server.Stream[UpdateXdcRequest, UpdateXdcResponse]"
|
|
7789
|
+
) -> None:
|
|
7790
|
+
request = await stream.recv_message()
|
|
7791
|
+
response = await self.update_xdc(request)
|
|
7792
|
+
await stream.send_message(response)
|
|
7793
|
+
|
|
7712
7794
|
async def __rpc_get_xdc_jump_hosts(
|
|
7713
7795
|
self,
|
|
7714
7796
|
stream: "grpclib.server.Stream[GetXdcJumpHostsRequest, GetXdcJumpHostsResponse]",
|
|
@@ -7755,6 +7837,12 @@ class XdcBase(ServiceBase):
|
|
|
7755
7837
|
DetachXdcRequest,
|
|
7756
7838
|
DetachXdcResponse,
|
|
7757
7839
|
),
|
|
7840
|
+
"/portal.v1.XDC/UpdateXDC": grpclib.const.Handler(
|
|
7841
|
+
self.__rpc_update_xdc,
|
|
7842
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
7843
|
+
UpdateXdcRequest,
|
|
7844
|
+
UpdateXdcResponse,
|
|
7845
|
+
),
|
|
7758
7846
|
"/portal.v1.XDC/GetXDCJumpHosts": grpclib.const.Handler(
|
|
7759
7847
|
self.__rpc_get_xdc_jump_hosts,
|
|
7760
7848
|
grpclib.const.Cardinality.UNARY_UNARY,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mergetbapi-1.3.37 → mergetbapi-1.3.40}/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
|