qontract-reconcile 0.10.1rc974__py3-none-any.whl → 0.10.1rc976__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc974
3
+ Version: 0.10.1rc976
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Home-page: https://github.com/app-sre/qontract-reconcile
6
6
  Author: Red Hat App-SRE Team
@@ -739,8 +739,8 @@ reconcile/utils/clusterhealth/telemeter.py,sha256=plZ2xInKJ1ZzgZGPMJzPYmPAWCG2YU
739
739
  reconcile/utils/dynatrace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
740
740
  reconcile/utils/dynatrace/client.py,sha256=CsjhxyCxum2X_cl8bAe701rUvVu6PflAwIR0nBEQ2yU,1697
741
741
  reconcile/utils/glitchtip/__init__.py,sha256=FT6iBhGqoe7KExFdbgL8AYUb64iW_4snF5__Dcl7yt0,258
742
- reconcile/utils/glitchtip/client.py,sha256=EXJVIc0aUqkfApU4IIDoc89841XgUL7jJNyb0gLDpMI,7736
743
- reconcile/utils/glitchtip/models.py,sha256=i3DsGoRJkAeOVsdCEqjlMRjJcYBMXf9Qtx5VpG9xgdA,6391
742
+ reconcile/utils/glitchtip/client.py,sha256=ovh4tx-ajlihjvcq6nyY4chulbuMJYvzDPv9j9CuAKM,7867
743
+ reconcile/utils/glitchtip/models.py,sha256=uHbCK9-RWgxNYUAkEHXRAZRDDZW7jkOFFt9MdlqN4bU,6481
744
744
  reconcile/utils/internal_groups/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
745
745
  reconcile/utils/internal_groups/client.py,sha256=RL-fNDtMGfpD7pNjCEmrj_0PV3ClCtUg6Su70exlhps,4521
746
746
  reconcile/utils/internal_groups/models.py,sha256=y_IqBVqfGqNXiu0VudvBWFrm_-uafVm5KgLG-ca8XAs,2281
@@ -851,8 +851,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
851
851
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
852
852
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
853
853
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
854
- qontract_reconcile-0.10.1rc974.dist-info/METADATA,sha256=94eluuqiBo17X4lkF_9R7aWCwxh250QExPnHgaFnazU,2262
855
- qontract_reconcile-0.10.1rc974.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
856
- qontract_reconcile-0.10.1rc974.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
857
- qontract_reconcile-0.10.1rc974.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
858
- qontract_reconcile-0.10.1rc974.dist-info/RECORD,,
854
+ qontract_reconcile-0.10.1rc976.dist-info/METADATA,sha256=1Lu3BdbBvw3vl6Aih6ex-DDwS8waWUUfoYk7G_w_NXI,2262
855
+ qontract_reconcile-0.10.1rc976.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
856
+ qontract_reconcile-0.10.1rc976.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
857
+ qontract_reconcile-0.10.1rc976.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
858
+ qontract_reconcile-0.10.1rc976.dist-info/RECORD,,
@@ -181,7 +181,12 @@ class GlitchtipClient(ApiBase):
181
181
  return User(
182
182
  **self._post(
183
183
  f"/api/0/organizations/{organization_slug}/members/",
184
- data={"email": email, "role": role, "teams": []},
184
+ data={
185
+ "email": email,
186
+ "send_invite": False,
187
+ "orgRole": role,
188
+ "teamRoles": [],
189
+ },
185
190
  )
186
191
  )
187
192
 
@@ -194,7 +199,7 @@ class GlitchtipClient(ApiBase):
194
199
  return User(
195
200
  **self._put(
196
201
  f"/api/0/organizations/{organization_slug}/members/{pk}/",
197
- data={"role": role},
202
+ data={"orgRole": role},
198
203
  )
199
204
  )
200
205
 
@@ -86,7 +86,7 @@ class RecipientType(Enum):
86
86
 
87
87
 
88
88
  class ProjectAlertRecipient(BaseModel):
89
- pk: int | None
89
+ pk: int | None = Field(None, alias="id")
90
90
  recipient_type: RecipientType = Field(..., alias="recipientType")
91
91
  url: str = ""
92
92
 
@@ -115,9 +115,9 @@ class ProjectAlertRecipient(BaseModel):
115
115
 
116
116
 
117
117
  class ProjectAlert(BaseModel):
118
- pk: int | None
118
+ pk: int | None = Field(None, alias="id")
119
119
  name: str
120
- timespan_minutes: int
120
+ timespan_minutes: int = Field(..., alias="timespanMinutes")
121
121
  quantity: int
122
122
  recipients: list[ProjectAlertRecipient] = Field([], alias="alertRecipients")
123
123