mergetbapi 1.3.40__tar.gz → 1.3.41__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.40 → mergetbapi-1.3.41}/PKG-INFO +1 -1
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/portal/v1/__init__.py +99 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/xir/__init__.py +9 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi.egg-info/PKG-INFO +1 -1
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/LICENSE.md +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/README.md +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/google/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/google/api/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/grpc/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/grpc/gateway/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/options/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/portal/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/reconcile/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi/validator/__init__.py +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi.egg-info/SOURCES.txt +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi.egg-info/dependency_links.txt +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi.egg-info/not-zip-safe +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi.egg-info/requires.txt +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/mergetbapi.egg-info/top_level.txt +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/setup.cfg +0 -0
- {mergetbapi-1.3.40 → mergetbapi-1.3.41}/setup.py +0 -0
|
@@ -1449,6 +1449,47 @@ class ArtifactId(betterproto.Message):
|
|
|
1449
1449
|
uuid: str = betterproto.string_field(1)
|
|
1450
1450
|
|
|
1451
1451
|
|
|
1452
|
+
@dataclass(eq=False, repr=False)
|
|
1453
|
+
class ArtifactVersion(betterproto.Message):
|
|
1454
|
+
vers: str = betterproto.string_field(1)
|
|
1455
|
+
uuid: str = betterproto.string_field(2)
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
@dataclass(eq=False, repr=False)
|
|
1459
|
+
class ArtifactLinks(betterproto.Message):
|
|
1460
|
+
versions: Dict[str, str] = betterproto.map_field(
|
|
1461
|
+
1, betterproto.TYPE_STRING, betterproto.TYPE_STRING
|
|
1462
|
+
)
|
|
1463
|
+
"""
|
|
1464
|
+
Other versions of this artifact by version string, versioning can be done by those who
|
|
1465
|
+
can update the artifact
|
|
1466
|
+
key: version, value: uuid; for a single version, it can be assigned with self uuid
|
|
1467
|
+
"""
|
|
1468
|
+
|
|
1469
|
+
extends: str = betterproto.string_field(2)
|
|
1470
|
+
"""
|
|
1471
|
+
An artifact with this uuid "extends", i.e. adds some functionality
|
|
1472
|
+
extenders must have read access to the target
|
|
1473
|
+
"""
|
|
1474
|
+
|
|
1475
|
+
supplements: str = betterproto.string_field(3)
|
|
1476
|
+
"""
|
|
1477
|
+
An artifact with this uuid "supplements", i.e. meant to be used together with this one
|
|
1478
|
+
supplementers must have read access to the target
|
|
1479
|
+
"""
|
|
1480
|
+
|
|
1481
|
+
version_of: "ArtifactVersion" = betterproto.message_field(4)
|
|
1482
|
+
"""
|
|
1483
|
+
a reverse of "Versions" .Uuid is the artifact uuid I'm a .Vers version of
|
|
1484
|
+
"""
|
|
1485
|
+
|
|
1486
|
+
extended_by: List[str] = betterproto.string_field(5)
|
|
1487
|
+
"""a reverse of "Extends", uuids"""
|
|
1488
|
+
|
|
1489
|
+
supplemented_by: List[str] = betterproto.string_field(6)
|
|
1490
|
+
"""a reverse of "Supplements", uuids"""
|
|
1491
|
+
|
|
1492
|
+
|
|
1452
1493
|
@dataclass(eq=False, repr=False)
|
|
1453
1494
|
class ArtifactMetadata(betterproto.Message):
|
|
1454
1495
|
id: "ArtifactId" = betterproto.message_field(1)
|
|
@@ -1463,6 +1504,12 @@ class ArtifactMetadata(betterproto.Message):
|
|
|
1463
1504
|
organization: str = betterproto.string_field(10)
|
|
1464
1505
|
blob_name: str = betterproto.string_field(11)
|
|
1465
1506
|
keywords: List[str] = betterproto.string_field(12)
|
|
1507
|
+
links: "ArtifactLinks" = betterproto.message_field(13)
|
|
1508
|
+
topology: str = betterproto.string_field(14)
|
|
1509
|
+
installation_script: str = betterproto.string_field(15)
|
|
1510
|
+
origin_url: str = betterproto.string_field(16)
|
|
1511
|
+
license_url: str = betterproto.string_field(17)
|
|
1512
|
+
citation: str = betterproto.string_field(18)
|
|
1466
1513
|
|
|
1467
1514
|
|
|
1468
1515
|
@dataclass(eq=False, repr=False)
|
|
@@ -1516,6 +1563,23 @@ class ArtifactDelResponse(betterproto.Message):
|
|
|
1516
1563
|
pass
|
|
1517
1564
|
|
|
1518
1565
|
|
|
1566
|
+
@dataclass(eq=False, repr=False)
|
|
1567
|
+
class ArtifactLinkRequest(betterproto.Message):
|
|
1568
|
+
id: "ArtifactId" = betterproto.message_field(1)
|
|
1569
|
+
"""Id of the artifact being linked"""
|
|
1570
|
+
|
|
1571
|
+
version: "ArtifactVersion" = betterproto.message_field(2)
|
|
1572
|
+
extends: "ArtifactId" = betterproto.message_field(3)
|
|
1573
|
+
supplements: "ArtifactId" = betterproto.message_field(4)
|
|
1574
|
+
unlink: bool = betterproto.bool_field(5)
|
|
1575
|
+
force: bool = betterproto.bool_field(6)
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
@dataclass(eq=False, repr=False)
|
|
1579
|
+
class ArtifactLinkResponse(betterproto.Message):
|
|
1580
|
+
pass
|
|
1581
|
+
|
|
1582
|
+
|
|
1519
1583
|
@dataclass(eq=False, repr=False)
|
|
1520
1584
|
class ArtifactFsDeployRequest(betterproto.Message):
|
|
1521
1585
|
id: "ArtifactId" = betterproto.message_field(1)
|
|
@@ -5446,6 +5510,23 @@ class ArtifactStub(betterproto.ServiceStub):
|
|
|
5446
5510
|
metadata=metadata,
|
|
5447
5511
|
)
|
|
5448
5512
|
|
|
5513
|
+
async def artifact_link(
|
|
5514
|
+
self,
|
|
5515
|
+
artifact_link_request: "ArtifactLinkRequest",
|
|
5516
|
+
*,
|
|
5517
|
+
timeout: Optional[float] = None,
|
|
5518
|
+
deadline: Optional["Deadline"] = None,
|
|
5519
|
+
metadata: Optional["MetadataLike"] = None
|
|
5520
|
+
) -> "ArtifactLinkResponse":
|
|
5521
|
+
return await self._unary_unary(
|
|
5522
|
+
"/portal.v1.Artifact/ArtifactLink",
|
|
5523
|
+
artifact_link_request,
|
|
5524
|
+
ArtifactLinkResponse,
|
|
5525
|
+
timeout=timeout,
|
|
5526
|
+
deadline=deadline,
|
|
5527
|
+
metadata=metadata,
|
|
5528
|
+
)
|
|
5529
|
+
|
|
5449
5530
|
async def artifact_delete(
|
|
5450
5531
|
self,
|
|
5451
5532
|
artifact_del_request: "ArtifactDelRequest",
|
|
@@ -8077,6 +8158,11 @@ class ArtifactBase(ServiceBase):
|
|
|
8077
8158
|
) -> "ArtifactPutResponse":
|
|
8078
8159
|
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
8079
8160
|
|
|
8161
|
+
async def artifact_link(
|
|
8162
|
+
self, artifact_link_request: "ArtifactLinkRequest"
|
|
8163
|
+
) -> "ArtifactLinkResponse":
|
|
8164
|
+
raise grpclib.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
8165
|
+
|
|
8080
8166
|
async def artifact_delete(
|
|
8081
8167
|
self, artifact_del_request: "ArtifactDelRequest"
|
|
8082
8168
|
) -> "ArtifactDelResponse":
|
|
@@ -8133,6 +8219,13 @@ class ArtifactBase(ServiceBase):
|
|
|
8133
8219
|
response = await self.artifact_update_metadata(request)
|
|
8134
8220
|
await stream.send_message(response)
|
|
8135
8221
|
|
|
8222
|
+
async def __rpc_artifact_link(
|
|
8223
|
+
self, stream: "grpclib.server.Stream[ArtifactLinkRequest, ArtifactLinkResponse]"
|
|
8224
|
+
) -> None:
|
|
8225
|
+
request = await stream.recv_message()
|
|
8226
|
+
response = await self.artifact_link(request)
|
|
8227
|
+
await stream.send_message(response)
|
|
8228
|
+
|
|
8136
8229
|
async def __rpc_artifact_delete(
|
|
8137
8230
|
self, stream: "grpclib.server.Stream[ArtifactDelRequest, ArtifactDelResponse]"
|
|
8138
8231
|
) -> None:
|
|
@@ -8198,6 +8291,12 @@ class ArtifactBase(ServiceBase):
|
|
|
8198
8291
|
ArtifactPutRequest,
|
|
8199
8292
|
ArtifactPutResponse,
|
|
8200
8293
|
),
|
|
8294
|
+
"/portal.v1.Artifact/ArtifactLink": grpclib.const.Handler(
|
|
8295
|
+
self.__rpc_artifact_link,
|
|
8296
|
+
grpclib.const.Cardinality.UNARY_UNARY,
|
|
8297
|
+
ArtifactLinkRequest,
|
|
8298
|
+
ArtifactLinkResponse,
|
|
8299
|
+
),
|
|
8201
8300
|
"/portal.v1.Artifact/ArtifactDelete": grpclib.const.Handler(
|
|
8202
8301
|
self.__rpc_artifact_delete,
|
|
8203
8302
|
grpclib.const.Cardinality.UNARY_UNARY,
|
|
@@ -362,6 +362,14 @@ class RelayBoardKind(betterproto.Enum):
|
|
|
362
362
|
|
|
363
363
|
class PowerDistributionUnitKind(betterproto.Enum):
|
|
364
364
|
APC = 0
|
|
365
|
+
EATON = 1
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
class PowerDistributionUnitMethod(betterproto.Enum):
|
|
369
|
+
Unkown = 0
|
|
370
|
+
SNMPv1 = 1
|
|
371
|
+
SNMPv2 = 2
|
|
372
|
+
SNMPv3 = 3
|
|
365
373
|
|
|
366
374
|
|
|
367
375
|
class FirmwareKind(betterproto.Enum):
|
|
@@ -594,6 +602,7 @@ class PowerDistributionUnit(betterproto.Message):
|
|
|
594
602
|
host: str = betterproto.string_field(1)
|
|
595
603
|
outlets: List[int] = betterproto.uint32_field(2)
|
|
596
604
|
kind: "PowerDistributionUnitKind" = betterproto.enum_field(3)
|
|
605
|
+
method: "PowerDistributionUnitMethod" = betterproto.enum_field(4)
|
|
597
606
|
|
|
598
607
|
|
|
599
608
|
@dataclass(eq=False, repr=False)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mergetbapi-1.3.40 → mergetbapi-1.3.41}/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
|