infrahub-server 1.7.0__py3-none-any.whl → 1.7.0rc0__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.
- infrahub/core/migrations/schema/attribute_kind_update.py +4 -5
- infrahub/core/schema/attribute_parameters.py +1 -28
- infrahub/core/schema/attribute_schema.py +2 -9
- infrahub/core/validators/attribute/kind.py +2 -5
- infrahub/graphql/manager.py +2 -8
- infrahub/lock.py +0 -7
- infrahub/services/adapters/cache/redis.py +0 -7
- infrahub_sdk/analyzer.py +2 -2
- infrahub_sdk/branch.py +39 -12
- infrahub_sdk/checks.py +4 -4
- infrahub_sdk/client.py +0 -36
- infrahub_sdk/ctl/cli_commands.py +1 -2
- infrahub_sdk/ctl/graphql.py +4 -15
- infrahub_sdk/ctl/utils.py +2 -2
- infrahub_sdk/graphql/renderers.py +0 -21
- infrahub_sdk/graphql/utils.py +0 -85
- infrahub_sdk/node/attribute.py +2 -12
- infrahub_sdk/node/constants.py +0 -11
- infrahub_sdk/node/node.py +14 -65
- infrahub_sdk/node/property.py +0 -3
- infrahub_sdk/node/related_node.py +1 -24
- infrahub_sdk/node/relationship.py +1 -10
- infrahub_sdk/operation.py +2 -2
- infrahub_sdk/schema/repository.py +2 -1
- infrahub_sdk/transforms.py +2 -2
- infrahub_sdk/types.py +2 -18
- {infrahub_server-1.7.0.dist-info → infrahub_server-1.7.0rc0.dist-info}/METADATA +1 -1
- {infrahub_server-1.7.0.dist-info → infrahub_server-1.7.0rc0.dist-info}/RECORD +32 -34
- infrahub_testcontainers/performance_test.py +1 -1
- infrahub_sdk/enums.py +0 -6
- infrahub_sdk/node/metadata.py +0 -69
- {infrahub_server-1.7.0.dist-info → infrahub_server-1.7.0rc0.dist-info}/WHEEL +0 -0
- {infrahub_server-1.7.0.dist-info → infrahub_server-1.7.0rc0.dist-info}/entry_points.txt +0 -0
- {infrahub_server-1.7.0.dist-info → infrahub_server-1.7.0rc0.dist-info}/licenses/LICENSE.txt +0 -0
infrahub_sdk/operation.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import os
|
|
4
4
|
from typing import TYPE_CHECKING
|
|
5
5
|
|
|
6
6
|
from .repository import GitRepoManager
|
|
@@ -22,7 +22,7 @@ class InfrahubOperation:
|
|
|
22
22
|
) -> None:
|
|
23
23
|
self.branch = branch
|
|
24
24
|
self.convert_query_response = convert_query_response
|
|
25
|
-
self.root_directory = root_directory or
|
|
25
|
+
self.root_directory = root_directory or os.getcwd()
|
|
26
26
|
self.infrahub_node = infrahub_node
|
|
27
27
|
self._nodes: list[InfrahubNode] = []
|
|
28
28
|
self._related_nodes: list[InfrahubNode] = []
|
|
@@ -151,7 +151,8 @@ class InfrahubRepositoryGraphQLConfig(InfrahubRepositoryConfigElement):
|
|
|
151
151
|
|
|
152
152
|
def load_query(self, relative_path: str = ".") -> str:
|
|
153
153
|
file_name = Path(f"{relative_path}/{self.file_path}")
|
|
154
|
-
|
|
154
|
+
with file_name.open("r", encoding="UTF-8") as file:
|
|
155
|
+
return file.read()
|
|
155
156
|
|
|
156
157
|
|
|
157
158
|
class InfrahubObjectConfig(InfrahubRepositoryConfigElement):
|
infrahub_sdk/transforms.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import asyncio
|
|
4
4
|
import os
|
|
5
5
|
from abc import abstractmethod
|
|
6
6
|
from typing import TYPE_CHECKING, Any
|
|
@@ -75,7 +75,7 @@ class InfrahubTransform(InfrahubOperation):
|
|
|
75
75
|
unpacked = data.get("data") or data
|
|
76
76
|
await self.process_nodes(data=unpacked)
|
|
77
77
|
|
|
78
|
-
if
|
|
78
|
+
if asyncio.iscoroutinefunction(self.transform):
|
|
79
79
|
return await self.transform(data=unpacked)
|
|
80
80
|
|
|
81
81
|
return self.transform(data=unpacked)
|
infrahub_sdk/types.py
CHANGED
|
@@ -4,9 +4,7 @@ import enum
|
|
|
4
4
|
from logging import Logger
|
|
5
5
|
from typing import TYPE_CHECKING, Any, Protocol, runtime_checkable
|
|
6
6
|
|
|
7
|
-
from pydantic import BaseModel
|
|
8
|
-
|
|
9
|
-
from infrahub_sdk.enums import OrderDirection # noqa: TC001
|
|
7
|
+
from pydantic import BaseModel
|
|
10
8
|
|
|
11
9
|
if TYPE_CHECKING:
|
|
12
10
|
import httpx
|
|
@@ -70,19 +68,5 @@ class InfrahubLogger(Protocol):
|
|
|
70
68
|
InfrahubLoggers = InfrahubLogger | Logger
|
|
71
69
|
|
|
72
70
|
|
|
73
|
-
class NodeMetaOrder(BaseModel):
|
|
74
|
-
created_at: OrderDirection | None = None
|
|
75
|
-
updated_at: OrderDirection | None = None
|
|
76
|
-
|
|
77
|
-
@model_validator(mode="after")
|
|
78
|
-
def validate_selection(self) -> NodeMetaOrder:
|
|
79
|
-
if self.created_at and self.updated_at:
|
|
80
|
-
raise ValueError("'created_at' and 'updated_at' are mutually exclusive")
|
|
81
|
-
return self
|
|
82
|
-
|
|
83
|
-
|
|
84
71
|
class Order(BaseModel):
|
|
85
|
-
disable: bool | None =
|
|
86
|
-
default=None, description="Disable default ordering, can be used to improve performance"
|
|
87
|
-
)
|
|
88
|
-
node_metadata: NodeMetaOrder | None = Field(default=None, description="Order by node meta fields")
|
|
72
|
+
disable: bool | None = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: infrahub-server
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.0rc0
|
|
4
4
|
Summary: Infrahub is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run.
|
|
5
5
|
Project-URL: Homepage, https://opsmill.com
|
|
6
6
|
Project-URL: Repository, https://github.com/opsmill/infrahub
|
|
@@ -6,7 +6,7 @@ infrahub/config.py,sha256=bNUd3LPv063uu0PATskEhKzlwmSr2JYCJ_oqY0rqZsU,41808
|
|
|
6
6
|
infrahub/context.py,sha256=8SZRKSECkkcsNNzDaKEUJ7Nyr0EzUfToAy969LXjQVk,1554
|
|
7
7
|
infrahub/exceptions.py,sha256=cbM-f_2U-5ZFVZ_MaaXgs64k4M7uJ7fqDU2iCRoWlYY,11861
|
|
8
8
|
infrahub/helpers.py,sha256=KchbQqgipU4VjfwnDbzCGjnEv-4espw_g63Zw4KAhbo,251
|
|
9
|
-
infrahub/lock.py,sha256=
|
|
9
|
+
infrahub/lock.py,sha256=rHBMLaHTGyY3GlJCzL7RiTj01QKhBi7V1e5Yx517x9Q,11002
|
|
10
10
|
infrahub/log.py,sha256=0PFE4CF5ID3xSNqZvzkCvK87H8_3cZCljgTmPijW68M,2819
|
|
11
11
|
infrahub/middleware.py,sha256=Su129MXkXazE9ODlIZ_KtuRHOakMsOHbVKIx15NKXpU,1547
|
|
12
12
|
infrahub/models.py,sha256=QmwJwo3hNCta8BXM7eLsD9qv1S73Rj0cC_crLpadHTc,715
|
|
@@ -258,7 +258,7 @@ infrahub/core/migrations/query/node_duplicate.py,sha256=ef0-VVDvcuhActRods-bZRsG
|
|
|
258
258
|
infrahub/core/migrations/query/relationship_duplicate.py,sha256=hjUFjNqhaFc2tEg79BXR2xDr_4Wdmu9fVF02cTEICTk,7319
|
|
259
259
|
infrahub/core/migrations/query/schema_attribute_update.py,sha256=yFTpHhy3LYhRwPGjFFP5kXHVj5kCtZaXeO6fvhURCFk,3390
|
|
260
260
|
infrahub/core/migrations/schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
261
|
-
infrahub/core/migrations/schema/attribute_kind_update.py,sha256=
|
|
261
|
+
infrahub/core/migrations/schema/attribute_kind_update.py,sha256=h4T7EQqW1SejWVmglufX47zKSA8dGPVtyuPquwO1rkI,7047
|
|
262
262
|
infrahub/core/migrations/schema/attribute_name_update.py,sha256=YgGg01F5_3vDoCkCERJy4RgopasI_Zou2l3cm0IbpCU,1603
|
|
263
263
|
infrahub/core/migrations/schema/attribute_supports_profile.py,sha256=Lw5-G1HNn5MJuUieYlWu1K6Pjz44lkbFqpYWEMl2d_4,3588
|
|
264
264
|
infrahub/core/migrations/schema/models.py,sha256=DqEgIeUpdk1qtzifmELI4hzQjbhUV5fpPdmdDRrbnaU,1479
|
|
@@ -311,8 +311,8 @@ infrahub/core/relationship/constraints/peer_relatives.py,sha256=8jw1tT7qKZU7DGC6
|
|
|
311
311
|
infrahub/core/relationship/constraints/profiles_kind.py,sha256=SrOfR8ME4jMZjAdBoWn06eihxKy-I43cSZNLLj-0Glo,2472
|
|
312
312
|
infrahub/core/relationship/constraints/profiles_removal.py,sha256=P1fD2tYpduDqt5Y9k9W7cz6aVubSn5dN_P1Fbsbj93Y,7842
|
|
313
313
|
infrahub/core/schema/__init__.py,sha256=_vOy96uKjAxj8nvTR0qzHcnIYUzdVAAcUIk2kyUKjCQ,6641
|
|
314
|
-
infrahub/core/schema/attribute_parameters.py,sha256=
|
|
315
|
-
infrahub/core/schema/attribute_schema.py,sha256=
|
|
314
|
+
infrahub/core/schema/attribute_parameters.py,sha256=ABL1GEsOl4_CcDvK9_NucGMaF6LUeOjAxbDQVm_G7eg,6516
|
|
315
|
+
infrahub/core/schema/attribute_schema.py,sha256=2gbkWjEC8_D4nxcaBbs50fF1-kzVxVKqG0tPVnqQ848,9691
|
|
316
316
|
infrahub/core/schema/basenode_schema.py,sha256=m9SWsxHgufHYsEiJ7CAgF6OL-whwDCQV-OulLcfF798,29860
|
|
317
317
|
infrahub/core/schema/computed_attribute.py,sha256=9rznZJpGqX8fxLx0EguPmww8LoHsadMtQQUKaMoJPcI,1809
|
|
318
318
|
infrahub/core/schema/constants.py,sha256=KtFrvwNckyKZSGIMD4XfxI5eFTZqBRiw54R7BE5h39Q,374
|
|
@@ -369,7 +369,7 @@ infrahub/core/validators/tasks.py,sha256=Qb9q2l55NKhvWXCrZclVWvJhzsN3yniN7nsYqUL
|
|
|
369
369
|
infrahub/core/validators/attribute/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
370
370
|
infrahub/core/validators/attribute/choices.py,sha256=UV0L6PsqQzseKrTZC_JZSjgq48memY4JIKwgF01dgyY,5388
|
|
371
371
|
infrahub/core/validators/attribute/enum.py,sha256=SnCw-8lV1x9gU-EjVOxNXoCQSvOi7H4PtVyrRVUXZ1Y,4169
|
|
372
|
-
infrahub/core/validators/attribute/kind.py,sha256=
|
|
372
|
+
infrahub/core/validators/attribute/kind.py,sha256=IRpN-TBfUd5KWMnTjo4n4_s7LP0-SPRNPGwXKMB-lzQ,4619
|
|
373
373
|
infrahub/core/validators/attribute/length.py,sha256=KwX85EKJHaNVBRdtt39vLYJrD206mVkLIIVDV5xQiz0,4534
|
|
374
374
|
infrahub/core/validators/attribute/min_max.py,sha256=mxwshXSPEEntRsS3RwwONFhD8ya6NiiP0Z6gnUrhBpo,5669
|
|
375
375
|
infrahub/core/validators/attribute/number_pool.py,sha256=Uvz9yBjYqFB5Wz9oMt9Tle9xCy3bZrbpx7TmMTPh-Kc,4717
|
|
@@ -507,7 +507,7 @@ infrahub/graphql/directives.py,sha256=wyIkJFp7l0J4JqNl1Lqu7YfKXP7glrewlQFMDTUAPc
|
|
|
507
507
|
infrahub/graphql/enums.py,sha256=9F0XWfjQpC__0YRccYG1T-3qL1V8_PmlRlVpU1-n7nQ,820
|
|
508
508
|
infrahub/graphql/field_extractor.py,sha256=S0eeTF-vnfry73NbYSLi4KNCyeZS1lAS82r5Tde2tts,3135
|
|
509
509
|
infrahub/graphql/initialization.py,sha256=G-eHsJhNbCrTXzxSkqXi_1v2NycrIltN5pSKDTJ8EuA,4998
|
|
510
|
-
infrahub/graphql/manager.py,sha256=
|
|
510
|
+
infrahub/graphql/manager.py,sha256=O4ORoSemGCp5urQZz6TFiSnhpojSNmAjoxVlh63MjtU,57996
|
|
511
511
|
infrahub/graphql/metadata.py,sha256=8P3KMGb5ybNQ3abWz8E7hsfsTTwU2SuJEH47zGoEDro,3856
|
|
512
512
|
infrahub/graphql/metrics.py,sha256=viq_M57mDYd4DDK7suUttf1FJTgzQ3U50yOuSw_Nd-s,2267
|
|
513
513
|
infrahub/graphql/middleware.py,sha256=za8Aba-63_mVgc2j8us8giucwIXweR6c7_XN0-VEus4,604
|
|
@@ -710,7 +710,7 @@ infrahub/services/scheduler.py,sha256=TbKg74oBINScHJYtV8_lOuQR2RjxqS6IfU_slyjpNY
|
|
|
710
710
|
infrahub/services/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
711
711
|
infrahub/services/adapters/cache/__init__.py,sha256=WsEthxQbcyCOA2M_FzfQr0Cymo4hprCq0m6Vg55uMXo,1919
|
|
712
712
|
infrahub/services/adapters/cache/nats.py,sha256=kt8XPR07uSIF07o6GHAWbuQPqIWuYSMP8vcpdBZv-YM,5705
|
|
713
|
-
infrahub/services/adapters/cache/redis.py,sha256=
|
|
713
|
+
infrahub/services/adapters/cache/redis.py,sha256=PKFdPncLI59w-KUaHSwgQm9VSJkO2h7xMh9xl-aID7I,2115
|
|
714
714
|
infrahub/services/adapters/event/__init__.py,sha256=KUA6mW-9JF1haFu4D0G8CTETcR7y_yvpTg7avbQ0wgM,1372
|
|
715
715
|
infrahub/services/adapters/http/__init__.py,sha256=_IZUvukHSSd8TdgslW5hLGwQ6GNPYanpPX7aClSh3zM,686
|
|
716
716
|
infrahub/services/adapters/http/httpx.py,sha256=jUPbxnjYZzWxk7fnFt2D4eSbd4JmiAGZFPk0Tz-Eyo0,3652
|
|
@@ -770,25 +770,24 @@ infrahub/workflows/models.py,sha256=5yx6ZHCVMcYd4uEvxLREEBZDHHyHzQ_PuAh7z2fJV7k,
|
|
|
770
770
|
infrahub/workflows/utils.py,sha256=nJ0K3FtIy-MG0O33h_p5ggU7rxF3Fdj5fIWJ1D7Jl7A,2833
|
|
771
771
|
infrahub_sdk/__init__.py,sha256=weZAa06Ar0NO5IOKLQICtCceHUCKQxbkBxHebqQGJ1o,401
|
|
772
772
|
infrahub_sdk/_importer.py,sha256=8oHTMxa_AMO_qbfb3UXNfjSr31S5YJTcqe-YMrixY_E,2257
|
|
773
|
-
infrahub_sdk/analyzer.py,sha256=
|
|
773
|
+
infrahub_sdk/analyzer.py,sha256=F4D6SSkdd7Z9ItUWInMqeHWNe6b1zVRpCxQROcW4m6Q,4156
|
|
774
774
|
infrahub_sdk/async_typer.py,sha256=gCE-ouMJa-qqf3eze6_z8Wi6mkc6ZeoJFm0vsz0JXaU,919
|
|
775
775
|
infrahub_sdk/batch.py,sha256=ScRlNyU2OWuflqk0NjSghtdWigxFSLXZFfH_YX3qnak,3811
|
|
776
|
-
infrahub_sdk/branch.py,sha256=
|
|
777
|
-
infrahub_sdk/checks.py,sha256=
|
|
778
|
-
infrahub_sdk/client.py,sha256=
|
|
776
|
+
infrahub_sdk/branch.py,sha256=Bub4CT4J52uBK3U7k5RqJENGKWw66d74XaqVkf_rpsg,13057
|
|
777
|
+
infrahub_sdk/checks.py,sha256=aJ4aCde9rMdCK4nl-fSF2rM__I1MkCVBcyiqlgRwDTw,5715
|
|
778
|
+
infrahub_sdk/client.py,sha256=_gb6ytKaBiix33iGzfWCsihOOpjYPCif6FHb2qpM7UA,114097
|
|
779
779
|
infrahub_sdk/config.py,sha256=jcDEQFoCPjxDOvpR6bKiTc8MZK6XTTGWmaRvpBT-BNw,8882
|
|
780
780
|
infrahub_sdk/constants.py,sha256=Ca66r09eDzpmMhfFAspKFSehSxOmoflVongP-UuBDc4,138
|
|
781
781
|
infrahub_sdk/context.py,sha256=QgXZvtUrKolp6ML8TguVK87Wuu-3KyizZVV_N2F4oCw,400
|
|
782
782
|
infrahub_sdk/convert_object_type.py,sha256=HPwhlQhmPUSLtfC1RqFo9fsCvfdBgJyVrvgjkSOf5MM,2383
|
|
783
783
|
infrahub_sdk/data.py,sha256=4d8Fd1s7lTeOu8JWXsK2m2BM8t_5HG0Z73fnCZGc7Pc,841
|
|
784
784
|
infrahub_sdk/diff.py,sha256=WtzmmZxgM8_JdE49W39A8-9hxytZ-_Iw0l2f51jyZEs,6380
|
|
785
|
-
infrahub_sdk/enums.py,sha256=saKB7XnbdN--12SgkuiBLuKKDIuiX6nDJ3OsY2zOEsk,91
|
|
786
785
|
infrahub_sdk/exceptions.py,sha256=wDSzuhySINDrWHS0qpxUhYEu7YUlTfrOOIRxZkm2jgI,5970
|
|
787
786
|
infrahub_sdk/generator.py,sha256=Sr8Ar1dM08SqmxqFYOrM0DPJmBxKhb_2WHR4SOnMZdE,3710
|
|
788
787
|
infrahub_sdk/groups.py,sha256=GL14ByW4GHrkqOLJ-_vGhu6bkYDxljqPtkErcQVehv0,711
|
|
789
788
|
infrahub_sdk/jinja2.py,sha256=lTfV9E_P5gApaX6RW9M8U8oixQi-0H3U8wcs8fdGVaU,1150
|
|
790
789
|
infrahub_sdk/object_store.py,sha256=hL3WgpQewrhAZJ7iCRWQoseP18y80NtljBNLSHId6HI,4315
|
|
791
|
-
infrahub_sdk/operation.py,sha256
|
|
790
|
+
infrahub_sdk/operation.py,sha256=-GszX7cfPHrw4SJbBs4KN0cGOtPdE1APNWxlbgMaHuQ,2747
|
|
792
791
|
infrahub_sdk/playback.py,sha256=obAPYDO_3v6EN0aBDllI0T_5lPnCv_Mo3GYHR4Eczs8,1878
|
|
793
792
|
infrahub_sdk/protocols.py,sha256=-tMWGEQCyd7aC16OV1vhZJvLJ29LizuYSSICuWeI6h0,25381
|
|
794
793
|
infrahub_sdk/protocols_base.py,sha256=kF8RxX9FVv2RSmpoj8rdePg5YuD1YmJnn9hYDIaNfqw,5588
|
|
@@ -799,8 +798,8 @@ infrahub_sdk/repository.py,sha256=B9KWx2lVkMIZ-3RaVO9J9Sc8LXmVPxUVbBoL-jeMyXE,98
|
|
|
799
798
|
infrahub_sdk/store.py,sha256=rmTNiAZFebi3I_NOnErhZswZPMrUJrkfu81PHf5aOlE,14091
|
|
800
799
|
infrahub_sdk/timestamp.py,sha256=PqzBiMdPXnbbpTRinhDnm_JG3sgWpu-D1uJ9mJ5mTuo,6445
|
|
801
800
|
infrahub_sdk/topological_sort.py,sha256=RqIGYxHlqOUHvMSAxbq6658TYLaEIdrFP4wyK3Hva5w,2456
|
|
802
|
-
infrahub_sdk/transforms.py,sha256=
|
|
803
|
-
infrahub_sdk/types.py,sha256=
|
|
801
|
+
infrahub_sdk/transforms.py,sha256=rClBQnaSuozz2bS-d5iJgnAjQF1FqYfX3Yc6iTH3b3Q,2348
|
|
802
|
+
infrahub_sdk/types.py,sha256=PIHTtI4MxgiAHHml_gCRyanLb5x7O4HK1pACRC3b88Q,1713
|
|
804
803
|
infrahub_sdk/utils.py,sha256=PwmAMe7CLQH6dIudrq4ZiLuOgqxn-Au2rNj0ZAU1Fwo,11924
|
|
805
804
|
infrahub_sdk/uuidt.py,sha256=Tz-4nHkJwbi39UT3gaIe2wJeZNAoBqf6tm3sw7LZbXc,2155
|
|
806
805
|
infrahub_sdk/yaml.py,sha256=PRsS7BEM-Xn5wRLAAG-YLTGRBEJy5Dnyim2YskFfe8I,5539
|
|
@@ -809,13 +808,13 @@ infrahub_sdk/ctl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
809
808
|
infrahub_sdk/ctl/branch.py,sha256=nENLPHGAhnWLV_TLO9N_cD5evkA6Z8-C_oab1upYEYw,11420
|
|
810
809
|
infrahub_sdk/ctl/check.py,sha256=SDsPdM8oesfbwCiYG_60zFgtZMamEtgZkmvW2MxH408,7874
|
|
811
810
|
infrahub_sdk/ctl/cli.py,sha256=ufJwB4XacU2hnaZtGp9hcyf_heYx-dtowFE4eUzw2qE,293
|
|
812
|
-
infrahub_sdk/ctl/cli_commands.py,sha256=
|
|
811
|
+
infrahub_sdk/ctl/cli_commands.py,sha256=up6V_nrIya5grK2fXFrV92W3AxzEmLW31RaXYo4cdjA,18840
|
|
813
812
|
infrahub_sdk/ctl/client.py,sha256=6bmXmQta9qQCJ8HybQwt2uSF2X1Em91xNFpwiKFujxs,2083
|
|
814
813
|
infrahub_sdk/ctl/config.py,sha256=aZ_Dhe5uxH1AzTWUz3EN645I2fflRsqAULJr20E3Ki8,3176
|
|
815
814
|
infrahub_sdk/ctl/exceptions.py,sha256=02qfqdck_TP8CHZe4z8XNEIXMoDmJ0KjF_f0_7HYDrg,280
|
|
816
815
|
infrahub_sdk/ctl/exporter.py,sha256=CmqyKpf7q5Pu5Wfo_2HktiF12iD_3rJ9Ifb48BIoJdU,1876
|
|
817
816
|
infrahub_sdk/ctl/generator.py,sha256=S3yM_Ur8xs8_f3CUMOIOOItnHTgPLfwEVAWHGtf1Kl8,4592
|
|
818
|
-
infrahub_sdk/ctl/graphql.py,sha256=
|
|
817
|
+
infrahub_sdk/ctl/graphql.py,sha256=E2jO8wrGN-1fuP_V0yJXHc5LA3UQZNr-1Iw7lzd4SfA,6648
|
|
819
818
|
infrahub_sdk/ctl/importer.py,sha256=BO8uMNz57HfWRZqO9rnvhPXyOcSJ97Uj0qH-L4UuY2Y,1871
|
|
820
819
|
infrahub_sdk/ctl/menu.py,sha256=A0NHvu48qbo9aWYNc3nGMNMeXr4LnOr_HNKL5arBWNA,2690
|
|
821
820
|
infrahub_sdk/ctl/object.py,sha256=OEbAx0Yb0zbXxS2ZnXedZRZDHITQd3iAk_cWUlTHLvg,2706
|
|
@@ -825,23 +824,22 @@ infrahub_sdk/ctl/repository.py,sha256=l-VeO4K0nKC6Wxd0f5x_dwKJGv6HeBBC4-CRPXO5Ng
|
|
|
825
824
|
infrahub_sdk/ctl/schema.py,sha256=CAq9OSkR1sMRSb-GclFR-dpbyxyRn8qfVeec2gqtc1Q,8099
|
|
826
825
|
infrahub_sdk/ctl/task.py,sha256=tpNA1zf73qKxfCzchcvK9TJrLvVP84Wb_xrvryTM6FU,3376
|
|
827
826
|
infrahub_sdk/ctl/transform.py,sha256=5qRqiKeEefs0rda6RAFAAj1jkCKdbPYE_t8O-n436LQ,414
|
|
828
|
-
infrahub_sdk/ctl/utils.py,sha256=
|
|
827
|
+
infrahub_sdk/ctl/utils.py,sha256=OB9YTPM0W7Dx5ZTh0OH6Jn1yNYbYfP2wEIEKnGktcCs,7515
|
|
829
828
|
infrahub_sdk/ctl/validate.py,sha256=r8b84oWJJVS3ipzDsjyAx1B3U_1509ReK3QTSXkG9pw,3910
|
|
830
829
|
infrahub_sdk/graphql/__init__.py,sha256=cviPynthQYVJb3eMca2avfRWYYlIBMKYi7-Tn9c0cQI,329
|
|
831
830
|
infrahub_sdk/graphql/constants.py,sha256=VcPJDeQh3r2AX3a5W-Vji6tRBtCqkEClUvQUtBoRPXk,323
|
|
832
831
|
infrahub_sdk/graphql/plugin.py,sha256=0-lR88aPa798lvVPGmqKKc9mrKR3otaxyPMhwlgwoK4,3161
|
|
833
832
|
infrahub_sdk/graphql/query.py,sha256=UtakHUwenYIUEioBtEKHAXKnExfLIsuuLMdtEpCOAN8,2267
|
|
834
|
-
infrahub_sdk/graphql/renderers.py,sha256=
|
|
835
|
-
infrahub_sdk/graphql/utils.py,sha256=
|
|
833
|
+
infrahub_sdk/graphql/renderers.py,sha256=1TZJaqfv-eD6WYxx6ATcKmKEmHTlmFXf89G49uRVTd8,8681
|
|
834
|
+
infrahub_sdk/graphql/utils.py,sha256=eS6Sg0n7DsS4DZ3Lcfy7ytmd9Dy7AWkNXIdSICV0kGQ,1460
|
|
836
835
|
infrahub_sdk/node/__init__.py,sha256=clAUZ9lNVPFguelR5Sg9PzklAZruTKEm2xk-BaO68l8,1262
|
|
837
|
-
infrahub_sdk/node/attribute.py,sha256=
|
|
838
|
-
infrahub_sdk/node/constants.py,sha256=
|
|
839
|
-
infrahub_sdk/node/
|
|
840
|
-
infrahub_sdk/node/node.py,sha256=qj-vUFMbiLi9UyiAklLZ24F2fvB9vHLbCAVyz7SXAQI,92366
|
|
836
|
+
infrahub_sdk/node/attribute.py,sha256=m2DZGSNgjTGiquItVy0timLOa3dUv5Z0lY1M7lMFWy8,4572
|
|
837
|
+
infrahub_sdk/node/constants.py,sha256=lBWgoVGum9SfOH9JFj56JFfMtlLUTX2qvxTNzKfFbBc,882
|
|
838
|
+
infrahub_sdk/node/node.py,sha256=MOEkIeK0o1n3MtBXfsyOg-hDZFqqX14EZojduqd7Nu0,89781
|
|
841
839
|
infrahub_sdk/node/parsers.py,sha256=sLDdT6neoYSZIjOCmq8Bgd0LK8FFoasjvJLuSz0whSU,543
|
|
842
|
-
infrahub_sdk/node/property.py,sha256=
|
|
843
|
-
infrahub_sdk/node/related_node.py,sha256=
|
|
844
|
-
infrahub_sdk/node/relationship.py,sha256=
|
|
840
|
+
infrahub_sdk/node/property.py,sha256=IjMQH4zCX1Y_bg0_H6X0PJwQb5VMJLuaOnqARmesCho,736
|
|
841
|
+
infrahub_sdk/node/related_node.py,sha256=r-0UkEjR2jYnjN89DvBatrax7fXYqjfNfLYZJEiPQLA,10635
|
|
842
|
+
infrahub_sdk/node/relationship.py,sha256=YIELvhSJqEnncN6BAcQAguNDNTr66PHmJjl7gIlAPKM,13595
|
|
845
843
|
infrahub_sdk/protocols_generator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
846
844
|
infrahub_sdk/protocols_generator/constants.py,sha256=8y5L7aqxhez6_10Cl2zUfNlHJCCosIVnxrOPKrwNVEw,820
|
|
847
845
|
infrahub_sdk/protocols_generator/generator.py,sha256=-VeWwZeqkhlg7aUnRkjGGqNHMrDandH0jHwVO6sNepg,5272
|
|
@@ -861,7 +859,7 @@ infrahub_sdk/pytest_plugin/items/jinja2_transform.py,sha256=sHP_cGJ2wXeDT1nQLFv6
|
|
|
861
859
|
infrahub_sdk/pytest_plugin/items/python_transform.py,sha256=Qe5QcCeeXzSoKs6C20XVdgYRvm9ide5lFTCShzJDTVo,4183
|
|
862
860
|
infrahub_sdk/schema/__init__.py,sha256=tX_Pq6L2dAsTWmEomoXtFj8NE-arSetBFx8BvtQ8Q0k,31132
|
|
863
861
|
infrahub_sdk/schema/main.py,sha256=Qz3J82G0tBwFwcvLul_Wn-75g3PFNYKCHpkp4I_lJuQ,12206
|
|
864
|
-
infrahub_sdk/schema/repository.py,sha256=
|
|
862
|
+
infrahub_sdk/schema/repository.py,sha256=3rFNlFqlUebnSaDSBiR2058DrEjnpvbrII46VIDkQyc,12568
|
|
865
863
|
infrahub_sdk/spec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
866
864
|
infrahub_sdk/spec/menu.py,sha256=KG8KpDYqlVWsCQXCUlAX7P7Jbw3bB60hlTMRs0cohOk,1078
|
|
867
865
|
infrahub_sdk/spec/models.py,sha256=BU0cyIn67KOhN3N3NB9T06NrK4fS7yFiCoL_Jpjtqsc,143
|
|
@@ -906,11 +904,11 @@ infrahub_testcontainers/helpers.py,sha256=7Cat-Q4bcblg5oLvMW1lwMZ7fxxc5Ba9Q2pvAT
|
|
|
906
904
|
infrahub_testcontainers/host.py,sha256=Z4_gGoGKKeM_HGVS7SdYL1FTNGyLBk8wzicdSKHpfmM,1486
|
|
907
905
|
infrahub_testcontainers/measurements.py,sha256=gR-uTasSIFCXrwvnNpIpfsQIopKftT7pBiarCgIShaQ,2214
|
|
908
906
|
infrahub_testcontainers/models.py,sha256=rEOe8SLcWV65U6pFT-5wl8NXdtGCPq9OtGzXcOnCOis,990
|
|
909
|
-
infrahub_testcontainers/performance_test.py,sha256=
|
|
907
|
+
infrahub_testcontainers/performance_test.py,sha256=_nf7Uk15mHwqpN4y7XUfI4JI54-UaXW-Yu4uwMIx21w,6185
|
|
910
908
|
infrahub_testcontainers/plugin.py,sha256=I3RuZQ0dARyKHuqCf0y1Yj731P2Mwf3BJUehRJKeWrs,5645
|
|
911
909
|
infrahub_testcontainers/prometheus.yml,sha256=610xQEyj3xuVJMzPkC4m1fRnCrjGpiRBrXA2ytCLa54,599
|
|
912
|
-
infrahub_server-1.7.
|
|
913
|
-
infrahub_server-1.7.
|
|
914
|
-
infrahub_server-1.7.
|
|
915
|
-
infrahub_server-1.7.
|
|
916
|
-
infrahub_server-1.7.
|
|
910
|
+
infrahub_server-1.7.0rc0.dist-info/METADATA,sha256=CFIHt2dxlTp-Pk06a37o2PuD9cfP01Fg_S5NYhGJ5Wk,5939
|
|
911
|
+
infrahub_server-1.7.0rc0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
912
|
+
infrahub_server-1.7.0rc0.dist-info/entry_points.txt,sha256=_xSAw1Wp-GslD95j4FESCxU1H7G7B9b42zp8-LAmC8Q,406
|
|
913
|
+
infrahub_server-1.7.0rc0.dist-info/licenses/LICENSE.txt,sha256=7GQO7kxVoQYnZtFrjZBKLRXbrGwwwimHPPOJtqXsozQ,11340
|
|
914
|
+
infrahub_server-1.7.0rc0.dist-info/RECORD,,
|
infrahub_sdk/enums.py
DELETED
infrahub_sdk/node/metadata.py
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from .property import NodeProperty
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class NodeMetadata:
|
|
7
|
-
"""Represents metadata about a node (created_at, created_by, updated_at, updated_by)."""
|
|
8
|
-
|
|
9
|
-
def __init__(self, data: dict | None = None) -> None:
|
|
10
|
-
"""
|
|
11
|
-
Args:
|
|
12
|
-
data: Data containing the metadata fields from the GraphQL response.
|
|
13
|
-
"""
|
|
14
|
-
self.created_at: str | None = None
|
|
15
|
-
self.created_by: NodeProperty | None = None
|
|
16
|
-
self.updated_at: str | None = None
|
|
17
|
-
self.updated_by: NodeProperty | None = None
|
|
18
|
-
|
|
19
|
-
if data:
|
|
20
|
-
self.created_at = data.get("created_at")
|
|
21
|
-
self.updated_at = data.get("updated_at")
|
|
22
|
-
if data.get("created_by"):
|
|
23
|
-
self.created_by = NodeProperty(data["created_by"])
|
|
24
|
-
if data.get("updated_by"):
|
|
25
|
-
self.updated_by = NodeProperty(data["updated_by"])
|
|
26
|
-
|
|
27
|
-
def __repr__(self) -> str:
|
|
28
|
-
return (
|
|
29
|
-
f"NodeMetadata(created_at={self.created_at!r}, created_by={self.created_by!r}, "
|
|
30
|
-
f"updated_at={self.updated_at!r}, updated_by={self.updated_by!r})"
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
@classmethod
|
|
34
|
-
def _generate_query_data(cls) -> dict:
|
|
35
|
-
"""Generate the query structure for node_metadata fields."""
|
|
36
|
-
return {
|
|
37
|
-
"created_at": None,
|
|
38
|
-
"created_by": {"id": None, "__typename": None, "display_label": None},
|
|
39
|
-
"updated_at": None,
|
|
40
|
-
"updated_by": {"id": None, "__typename": None, "display_label": None},
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class RelationshipMetadata:
|
|
45
|
-
"""Represents metadata about a relationship edge (updated_at, updated_by)."""
|
|
46
|
-
|
|
47
|
-
def __init__(self, data: dict | None = None) -> None:
|
|
48
|
-
"""
|
|
49
|
-
Args:
|
|
50
|
-
data: Data containing the metadata fields from the GraphQL response.
|
|
51
|
-
"""
|
|
52
|
-
self.updated_at: str | None = None
|
|
53
|
-
self.updated_by: NodeProperty | None = None
|
|
54
|
-
|
|
55
|
-
if data:
|
|
56
|
-
self.updated_at = data.get("updated_at")
|
|
57
|
-
if data.get("updated_by"):
|
|
58
|
-
self.updated_by = NodeProperty(data["updated_by"])
|
|
59
|
-
|
|
60
|
-
def __repr__(self) -> str:
|
|
61
|
-
return f"RelationshipMetadata(updated_at={self.updated_at!r}, updated_by={self.updated_by!r})"
|
|
62
|
-
|
|
63
|
-
@classmethod
|
|
64
|
-
def _generate_query_data(cls) -> dict:
|
|
65
|
-
"""Generate the query structure for relationship_metadata fields."""
|
|
66
|
-
return {
|
|
67
|
-
"updated_at": None,
|
|
68
|
-
"updated_by": {"id": None, "__typename": None, "display_label": None},
|
|
69
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|