qontract-reconcile 0.10.2.dev167__py3-none-any.whl → 0.10.2.dev169__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.
@@ -0,0 +1,82 @@
1
+ """
2
+ Generated by qenerate plugin=pydantic_v1. DO NOT MODIFY MANUALLY!
3
+ """
4
+ from collections.abc import Callable # noqa: F401 # pylint: disable=W0611
5
+ from datetime import datetime # noqa: F401 # pylint: disable=W0611
6
+ from enum import Enum # noqa: F401 # pylint: disable=W0611
7
+ from typing import ( # noqa: F401 # pylint: disable=W0611
8
+ Any,
9
+ Optional,
10
+ Union,
11
+ )
12
+
13
+ from pydantic import ( # noqa: F401 # pylint: disable=W0611
14
+ BaseModel,
15
+ Extra,
16
+ Field,
17
+ Json,
18
+ )
19
+
20
+ from reconcile.gql_definitions.fragments.vault_secret import VaultSecret
21
+
22
+
23
+ class ConfiguredBaseModel(BaseModel):
24
+ class Config:
25
+ smart_union=True
26
+ extra=Extra.forbid
27
+
28
+
29
+ class SLOExternalPrometheusAccessV1(ConfiguredBaseModel):
30
+ url: str = Field(..., alias="url")
31
+ username: Optional[VaultSecret] = Field(..., alias="username")
32
+ password: Optional[VaultSecret] = Field(..., alias="password")
33
+
34
+
35
+ class AppV1(ConfiguredBaseModel):
36
+ name: str = Field(..., alias="name")
37
+
38
+
39
+ class ClusterSpecV1(ConfiguredBaseModel):
40
+ private: bool = Field(..., alias="private")
41
+
42
+
43
+ class ClusterV1(ConfiguredBaseModel):
44
+ name: str = Field(..., alias="name")
45
+ automation_token: Optional[VaultSecret] = Field(..., alias="automationToken")
46
+ prometheus_url: str = Field(..., alias="prometheusUrl")
47
+ spec: Optional[ClusterSpecV1] = Field(..., alias="spec")
48
+
49
+
50
+ class NamespaceV1(ConfiguredBaseModel):
51
+ name: str = Field(..., alias="name")
52
+ app: AppV1 = Field(..., alias="app")
53
+ cluster: ClusterV1 = Field(..., alias="cluster")
54
+
55
+
56
+ class SLONamespacesV1_NamespaceV1(ConfiguredBaseModel):
57
+ name: str = Field(..., alias="name")
58
+
59
+
60
+ class SLONamespacesV1(ConfiguredBaseModel):
61
+ prometheus_access: Optional[SLOExternalPrometheusAccessV1] = Field(..., alias="prometheusAccess")
62
+ namespace: NamespaceV1 = Field(..., alias="namespace")
63
+ slo_namespace: Optional[SLONamespacesV1_NamespaceV1] = Field(..., alias="SLONamespace")
64
+
65
+
66
+ class SLODocumentSLOSLOParametersV1(ConfiguredBaseModel):
67
+ window: str = Field(..., alias="window")
68
+
69
+
70
+ class SLODocumentSLOV1(ConfiguredBaseModel):
71
+ name: str = Field(..., alias="name")
72
+ expr: str = Field(..., alias="expr")
73
+ sli_type: str = Field(..., alias="SLIType")
74
+ slo_parameters: SLODocumentSLOSLOParametersV1 = Field(..., alias="SLOParameters")
75
+ slo_target: float = Field(..., alias="SLOTarget")
76
+ slo_target_unit: str = Field(..., alias="SLOTargetUnit")
77
+
78
+
79
+ class SLODocument(ConfiguredBaseModel):
80
+ name: str = Field(..., alias="name")
81
+ namespaces: list[SLONamespacesV1] = Field(..., alias="namespaces")
82
+ slos: Optional[list[SLODocumentSLOV1]] = Field(..., alias="slos")