cribl-control-plane 0.0.38a1__py3-none-any.whl → 0.0.40a1__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.

Potentially problematic release.


This version of cribl-control-plane might be problematic. Click here for more details.

Files changed (79) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/commits.py +52 -42
  3. cribl_control_plane/commits_files.py +12 -12
  4. cribl_control_plane/destinations.py +3 -3
  5. cribl_control_plane/destinations_pq.py +2 -2
  6. cribl_control_plane/groups_sdk.py +8 -8
  7. cribl_control_plane/models/__init__.py +315 -368
  8. cribl_control_plane/models/branchinfo.py +13 -0
  9. cribl_control_plane/models/configgroup.py +5 -3
  10. cribl_control_plane/models/createversioncommitop.py +26 -1
  11. cribl_control_plane/models/createversionrevertop.py +4 -2
  12. cribl_control_plane/models/createversionundoop.py +4 -2
  13. cribl_control_plane/models/deleteoutputpqbyidop.py +5 -5
  14. cribl_control_plane/models/difffiles.py +171 -0
  15. cribl_control_plane/models/getoutputpqbyidop.py +6 -5
  16. cribl_control_plane/models/getversionbranchop.py +6 -5
  17. cribl_control_plane/models/getversioncountop.py +9 -7
  18. cribl_control_plane/models/getversiondiffop.py +9 -7
  19. cribl_control_plane/models/getversionfilesop.py +3 -2
  20. cribl_control_plane/models/getversionop.py +4 -2
  21. cribl_control_plane/models/getversionshowop.py +3 -2
  22. cribl_control_plane/models/getversionstatusop.py +4 -2
  23. cribl_control_plane/models/gitcountresult.py +13 -0
  24. cribl_control_plane/models/gitdiffresult.py +16 -0
  25. cribl_control_plane/models/inputcribllakehttp.py +5 -4
  26. cribl_control_plane/models/inputcrowdstrike.py +2 -2
  27. cribl_control_plane/models/inputs3.py +2 -2
  28. cribl_control_plane/models/inputs3inventory.py +2 -2
  29. cribl_control_plane/models/inputsecuritylake.py +2 -2
  30. cribl_control_plane/models/jobinfo.py +25 -0
  31. cribl_control_plane/models/jobstatus.py +17 -0
  32. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +1 -1
  33. cribl_control_plane/models/outputgooglepubsub.py +7 -28
  34. cribl_control_plane/models/outputsentineloneaisiem.py +3 -3
  35. cribl_control_plane/models/packinfo.py +5 -5
  36. cribl_control_plane/models/packinstallinfo.py +5 -5
  37. cribl_control_plane/models/packrequestbody_union.py +140 -0
  38. cribl_control_plane/models/packupgraderequest.py +26 -0
  39. cribl_control_plane/models/runnablejob.py +27 -0
  40. cribl_control_plane/models/runnablejobcollection.py +589 -0
  41. cribl_control_plane/models/runnablejobexecutor.py +336 -0
  42. cribl_control_plane/models/runnablejobscheduledsearch.py +267 -0
  43. cribl_control_plane/models/updatepacksbyidop.py +9 -28
  44. cribl_control_plane/packs.py +62 -116
  45. cribl_control_plane/{destinations_samples.py → samples.py} +1 -1
  46. cribl_control_plane/sdk.py +0 -3
  47. cribl_control_plane/statuses.py +6 -6
  48. {cribl_control_plane-0.0.38a1.dist-info → cribl_control_plane-0.0.40a1.dist-info}/METADATA +6 -22
  49. {cribl_control_plane-0.0.38a1.dist-info → cribl_control_plane-0.0.40a1.dist-info}/RECORD +50 -67
  50. cribl_control_plane/cribl.py +0 -513
  51. cribl_control_plane/models/authconfig.py +0 -43
  52. cribl_control_plane/models/commonservicelimitconfigs.py +0 -14
  53. cribl_control_plane/models/edgeheartbeatmetricsmode.py +0 -11
  54. cribl_control_plane/models/getsystemsettingsauthop.py +0 -24
  55. cribl_control_plane/models/getsystemsettingsconfop.py +0 -24
  56. cribl_control_plane/models/getsystemsettingsgitsettingsop.py +0 -24
  57. cribl_control_plane/models/gitopstype.py +0 -10
  58. cribl_control_plane/models/gitsettings.py +0 -70
  59. cribl_control_plane/models/jobsettings.py +0 -83
  60. cribl_control_plane/models/limits.py +0 -127
  61. cribl_control_plane/models/packrequestbody.py +0 -75
  62. cribl_control_plane/models/rediscachelimits.py +0 -38
  63. cribl_control_plane/models/redisconnectionlimits.py +0 -20
  64. cribl_control_plane/models/redislimits.py +0 -14
  65. cribl_control_plane/models/searchsettings.py +0 -71
  66. cribl_control_plane/models/serviceslimits.py +0 -23
  67. cribl_control_plane/models/systemsettings.py +0 -358
  68. cribl_control_plane/models/systemsettingsconf.py +0 -311
  69. cribl_control_plane/models/updatesystemsettingsauthop.py +0 -24
  70. cribl_control_plane/models/updatesystemsettingsconfop.py +0 -24
  71. cribl_control_plane/models/updatesystemsettingsgitsettingsop.py +0 -24
  72. cribl_control_plane/models/upgradegroupsettings.py +0 -24
  73. cribl_control_plane/models/upgradepackageurls.py +0 -20
  74. cribl_control_plane/models/upgradesettings.py +0 -36
  75. cribl_control_plane/settings.py +0 -23
  76. cribl_control_plane/settings_auth.py +0 -339
  77. cribl_control_plane/settings_git.py +0 -339
  78. cribl_control_plane/system_sdk.py +0 -17
  79. {cribl_control_plane-0.0.38a1.dist-info → cribl_control_plane-0.0.40a1.dist-info}/WHEEL +0 -0
@@ -1,24 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .gitsettings import GitSettings, GitSettingsTypedDict
5
- from cribl_control_plane.types import BaseModel
6
- from typing import List, Optional
7
- from typing_extensions import NotRequired, TypedDict
8
-
9
-
10
- class UpdateSystemSettingsGitSettingsResponseTypedDict(TypedDict):
11
- r"""a list of GitSettings objects"""
12
-
13
- count: NotRequired[int]
14
- r"""number of items present in the items array"""
15
- items: NotRequired[List[GitSettingsTypedDict]]
16
-
17
-
18
- class UpdateSystemSettingsGitSettingsResponse(BaseModel):
19
- r"""a list of GitSettings objects"""
20
-
21
- count: Optional[int] = None
22
- r"""number of items present in the items array"""
23
-
24
- items: Optional[List[GitSettings]] = None
@@ -1,24 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from cribl_control_plane.types import BaseModel
5
- import pydantic
6
- from typing import Optional
7
- from typing_extensions import Annotated, NotRequired, TypedDict
8
-
9
-
10
- class UpgradeGroupSettingsTypedDict(TypedDict):
11
- is_rolling: NotRequired[bool]
12
- quantity: NotRequired[float]
13
- retry_count: NotRequired[float]
14
- retry_delay: NotRequired[float]
15
-
16
-
17
- class UpgradeGroupSettings(BaseModel):
18
- is_rolling: Annotated[Optional[bool], pydantic.Field(alias="isRolling")] = None
19
-
20
- quantity: Optional[float] = None
21
-
22
- retry_count: Annotated[Optional[float], pydantic.Field(alias="retryCount")] = None
23
-
24
- retry_delay: Annotated[Optional[float], pydantic.Field(alias="retryDelay")] = None
@@ -1,20 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from cribl_control_plane.types import BaseModel
5
- import pydantic
6
- from typing import Optional
7
- from typing_extensions import Annotated, NotRequired, TypedDict
8
-
9
-
10
- class UpgradePackageUrlsTypedDict(TypedDict):
11
- package_url: str
12
- package_hash_url: NotRequired[str]
13
-
14
-
15
- class UpgradePackageUrls(BaseModel):
16
- package_url: Annotated[str, pydantic.Field(alias="packageUrl")]
17
-
18
- package_hash_url: Annotated[
19
- Optional[str], pydantic.Field(alias="packageHashUrl")
20
- ] = None
@@ -1,36 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .upgradepackageurls import UpgradePackageUrls, UpgradePackageUrlsTypedDict
5
- from cribl_control_plane.types import BaseModel
6
- import pydantic
7
- from typing import List, Optional
8
- from typing_extensions import Annotated, NotRequired, TypedDict
9
-
10
-
11
- class UpgradeSettingsTypedDict(TypedDict):
12
- disable_automatic_upgrade: bool
13
- enable_legacy_edge_upgrade: bool
14
- upgrade_source: str
15
- automatic_upgrade_check_period: NotRequired[str]
16
- package_urls: NotRequired[List[UpgradePackageUrlsTypedDict]]
17
-
18
-
19
- class UpgradeSettings(BaseModel):
20
- disable_automatic_upgrade: Annotated[
21
- bool, pydantic.Field(alias="disableAutomaticUpgrade")
22
- ]
23
-
24
- enable_legacy_edge_upgrade: Annotated[
25
- bool, pydantic.Field(alias="enableLegacyEdgeUpgrade")
26
- ]
27
-
28
- upgrade_source: Annotated[str, pydantic.Field(alias="upgradeSource")]
29
-
30
- automatic_upgrade_check_period: Annotated[
31
- Optional[str], pydantic.Field(alias="automaticUpgradeCheckPeriod")
32
- ] = None
33
-
34
- package_urls: Annotated[
35
- Optional[List[UpgradePackageUrls]], pydantic.Field(alias="packageUrls")
36
- ] = None
@@ -1,23 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from .basesdk import BaseSDK
4
- from .sdkconfiguration import SDKConfiguration
5
- from cribl_control_plane.cribl import Cribl
6
- from cribl_control_plane.settings_auth import SettingsAuth
7
- from cribl_control_plane.settings_git import SettingsGit
8
-
9
-
10
- class Settings(BaseSDK):
11
- auth: SettingsAuth
12
- cribl: Cribl
13
- git: SettingsGit
14
-
15
- def __init__(self, sdk_config: SDKConfiguration) -> None:
16
- BaseSDK.__init__(self, sdk_config)
17
- self.sdk_configuration = sdk_config
18
- self._init_sdks()
19
-
20
- def _init_sdks(self):
21
- self.auth = SettingsAuth(self.sdk_configuration)
22
- self.cribl = Cribl(self.sdk_configuration)
23
- self.git = SettingsGit(self.sdk_configuration)
@@ -1,339 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from .basesdk import BaseSDK
4
- from cribl_control_plane import errors, models, utils
5
- from cribl_control_plane._hooks import HookContext
6
- from cribl_control_plane.types import OptionalNullable, UNSET
7
- from cribl_control_plane.utils import get_security_from_env
8
- from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
9
- from typing import Any, Mapping, Optional
10
-
11
-
12
- class SettingsAuth(BaseSDK):
13
- def list(
14
- self,
15
- *,
16
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
17
- server_url: Optional[str] = None,
18
- timeout_ms: Optional[int] = None,
19
- http_headers: Optional[Mapping[str, str]] = None,
20
- ) -> models.GetSystemSettingsAuthResponse:
21
- r"""Get authentication settings
22
-
23
- Get authentication settings
24
-
25
- :param retries: Override the default retry configuration for this method
26
- :param server_url: Override the default server URL for this method
27
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
28
- :param http_headers: Additional headers to set or replace on requests.
29
- """
30
- base_url = None
31
- url_variables = None
32
- if timeout_ms is None:
33
- timeout_ms = self.sdk_configuration.timeout_ms
34
-
35
- if server_url is not None:
36
- base_url = server_url
37
- else:
38
- base_url = self._get_url(base_url, url_variables)
39
- req = self._build_request(
40
- method="GET",
41
- path="/system/settings/auth",
42
- base_url=base_url,
43
- url_variables=url_variables,
44
- request=None,
45
- request_body_required=False,
46
- request_has_path_params=False,
47
- request_has_query_params=True,
48
- user_agent_header="user-agent",
49
- accept_header_value="application/json",
50
- http_headers=http_headers,
51
- security=self.sdk_configuration.security,
52
- timeout_ms=timeout_ms,
53
- )
54
-
55
- if retries == UNSET:
56
- if self.sdk_configuration.retry_config is not UNSET:
57
- retries = self.sdk_configuration.retry_config
58
-
59
- retry_config = None
60
- if isinstance(retries, utils.RetryConfig):
61
- retry_config = (retries, ["429", "500", "502", "503", "504"])
62
-
63
- http_res = self.do_request(
64
- hook_ctx=HookContext(
65
- config=self.sdk_configuration,
66
- base_url=base_url or "",
67
- operation_id="getSystemSettingsAuth",
68
- oauth2_scopes=[],
69
- security_source=get_security_from_env(
70
- self.sdk_configuration.security, models.Security
71
- ),
72
- ),
73
- request=req,
74
- error_status_codes=["401", "4XX", "500", "5XX"],
75
- retry_config=retry_config,
76
- )
77
-
78
- response_data: Any = None
79
- if utils.match_response(http_res, "200", "application/json"):
80
- return unmarshal_json_response(
81
- models.GetSystemSettingsAuthResponse, http_res
82
- )
83
- if utils.match_response(http_res, "500", "application/json"):
84
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
85
- raise errors.Error(response_data, http_res)
86
- if utils.match_response(http_res, ["401", "4XX"], "*"):
87
- http_res_text = utils.stream_to_text(http_res)
88
- raise errors.APIError("API error occurred", http_res, http_res_text)
89
- if utils.match_response(http_res, "5XX", "*"):
90
- http_res_text = utils.stream_to_text(http_res)
91
- raise errors.APIError("API error occurred", http_res, http_res_text)
92
-
93
- raise errors.APIError("Unexpected response received", http_res)
94
-
95
- async def list_async(
96
- self,
97
- *,
98
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
99
- server_url: Optional[str] = None,
100
- timeout_ms: Optional[int] = None,
101
- http_headers: Optional[Mapping[str, str]] = None,
102
- ) -> models.GetSystemSettingsAuthResponse:
103
- r"""Get authentication settings
104
-
105
- Get authentication settings
106
-
107
- :param retries: Override the default retry configuration for this method
108
- :param server_url: Override the default server URL for this method
109
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
110
- :param http_headers: Additional headers to set or replace on requests.
111
- """
112
- base_url = None
113
- url_variables = None
114
- if timeout_ms is None:
115
- timeout_ms = self.sdk_configuration.timeout_ms
116
-
117
- if server_url is not None:
118
- base_url = server_url
119
- else:
120
- base_url = self._get_url(base_url, url_variables)
121
- req = self._build_request_async(
122
- method="GET",
123
- path="/system/settings/auth",
124
- base_url=base_url,
125
- url_variables=url_variables,
126
- request=None,
127
- request_body_required=False,
128
- request_has_path_params=False,
129
- request_has_query_params=True,
130
- user_agent_header="user-agent",
131
- accept_header_value="application/json",
132
- http_headers=http_headers,
133
- security=self.sdk_configuration.security,
134
- timeout_ms=timeout_ms,
135
- )
136
-
137
- if retries == UNSET:
138
- if self.sdk_configuration.retry_config is not UNSET:
139
- retries = self.sdk_configuration.retry_config
140
-
141
- retry_config = None
142
- if isinstance(retries, utils.RetryConfig):
143
- retry_config = (retries, ["429", "500", "502", "503", "504"])
144
-
145
- http_res = await self.do_request_async(
146
- hook_ctx=HookContext(
147
- config=self.sdk_configuration,
148
- base_url=base_url or "",
149
- operation_id="getSystemSettingsAuth",
150
- oauth2_scopes=[],
151
- security_source=get_security_from_env(
152
- self.sdk_configuration.security, models.Security
153
- ),
154
- ),
155
- request=req,
156
- error_status_codes=["401", "4XX", "500", "5XX"],
157
- retry_config=retry_config,
158
- )
159
-
160
- response_data: Any = None
161
- if utils.match_response(http_res, "200", "application/json"):
162
- return unmarshal_json_response(
163
- models.GetSystemSettingsAuthResponse, http_res
164
- )
165
- if utils.match_response(http_res, "500", "application/json"):
166
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
167
- raise errors.Error(response_data, http_res)
168
- if utils.match_response(http_res, ["401", "4XX"], "*"):
169
- http_res_text = await utils.stream_to_text_async(http_res)
170
- raise errors.APIError("API error occurred", http_res, http_res_text)
171
- if utils.match_response(http_res, "5XX", "*"):
172
- http_res_text = await utils.stream_to_text_async(http_res)
173
- raise errors.APIError("API error occurred", http_res, http_res_text)
174
-
175
- raise errors.APIError("Unexpected response received", http_res)
176
-
177
- def update(
178
- self,
179
- *,
180
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
181
- server_url: Optional[str] = None,
182
- timeout_ms: Optional[int] = None,
183
- http_headers: Optional[Mapping[str, str]] = None,
184
- ) -> models.UpdateSystemSettingsAuthResponse:
185
- r"""Update authentication settings
186
-
187
- Update authentication settings
188
-
189
- :param retries: Override the default retry configuration for this method
190
- :param server_url: Override the default server URL for this method
191
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
192
- :param http_headers: Additional headers to set or replace on requests.
193
- """
194
- base_url = None
195
- url_variables = None
196
- if timeout_ms is None:
197
- timeout_ms = self.sdk_configuration.timeout_ms
198
-
199
- if server_url is not None:
200
- base_url = server_url
201
- else:
202
- base_url = self._get_url(base_url, url_variables)
203
- req = self._build_request(
204
- method="PATCH",
205
- path="/system/settings/auth",
206
- base_url=base_url,
207
- url_variables=url_variables,
208
- request=None,
209
- request_body_required=False,
210
- request_has_path_params=False,
211
- request_has_query_params=True,
212
- user_agent_header="user-agent",
213
- accept_header_value="application/json",
214
- http_headers=http_headers,
215
- security=self.sdk_configuration.security,
216
- timeout_ms=timeout_ms,
217
- )
218
-
219
- if retries == UNSET:
220
- if self.sdk_configuration.retry_config is not UNSET:
221
- retries = self.sdk_configuration.retry_config
222
-
223
- retry_config = None
224
- if isinstance(retries, utils.RetryConfig):
225
- retry_config = (retries, ["429", "500", "502", "503", "504"])
226
-
227
- http_res = self.do_request(
228
- hook_ctx=HookContext(
229
- config=self.sdk_configuration,
230
- base_url=base_url or "",
231
- operation_id="updateSystemSettingsAuth",
232
- oauth2_scopes=[],
233
- security_source=get_security_from_env(
234
- self.sdk_configuration.security, models.Security
235
- ),
236
- ),
237
- request=req,
238
- error_status_codes=["401", "4XX", "500", "5XX"],
239
- retry_config=retry_config,
240
- )
241
-
242
- response_data: Any = None
243
- if utils.match_response(http_res, "200", "application/json"):
244
- return unmarshal_json_response(
245
- models.UpdateSystemSettingsAuthResponse, http_res
246
- )
247
- if utils.match_response(http_res, "500", "application/json"):
248
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
249
- raise errors.Error(response_data, http_res)
250
- if utils.match_response(http_res, ["401", "4XX"], "*"):
251
- http_res_text = utils.stream_to_text(http_res)
252
- raise errors.APIError("API error occurred", http_res, http_res_text)
253
- if utils.match_response(http_res, "5XX", "*"):
254
- http_res_text = utils.stream_to_text(http_res)
255
- raise errors.APIError("API error occurred", http_res, http_res_text)
256
-
257
- raise errors.APIError("Unexpected response received", http_res)
258
-
259
- async def update_async(
260
- self,
261
- *,
262
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
263
- server_url: Optional[str] = None,
264
- timeout_ms: Optional[int] = None,
265
- http_headers: Optional[Mapping[str, str]] = None,
266
- ) -> models.UpdateSystemSettingsAuthResponse:
267
- r"""Update authentication settings
268
-
269
- Update authentication settings
270
-
271
- :param retries: Override the default retry configuration for this method
272
- :param server_url: Override the default server URL for this method
273
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
274
- :param http_headers: Additional headers to set or replace on requests.
275
- """
276
- base_url = None
277
- url_variables = None
278
- if timeout_ms is None:
279
- timeout_ms = self.sdk_configuration.timeout_ms
280
-
281
- if server_url is not None:
282
- base_url = server_url
283
- else:
284
- base_url = self._get_url(base_url, url_variables)
285
- req = self._build_request_async(
286
- method="PATCH",
287
- path="/system/settings/auth",
288
- base_url=base_url,
289
- url_variables=url_variables,
290
- request=None,
291
- request_body_required=False,
292
- request_has_path_params=False,
293
- request_has_query_params=True,
294
- user_agent_header="user-agent",
295
- accept_header_value="application/json",
296
- http_headers=http_headers,
297
- security=self.sdk_configuration.security,
298
- timeout_ms=timeout_ms,
299
- )
300
-
301
- if retries == UNSET:
302
- if self.sdk_configuration.retry_config is not UNSET:
303
- retries = self.sdk_configuration.retry_config
304
-
305
- retry_config = None
306
- if isinstance(retries, utils.RetryConfig):
307
- retry_config = (retries, ["429", "500", "502", "503", "504"])
308
-
309
- http_res = await self.do_request_async(
310
- hook_ctx=HookContext(
311
- config=self.sdk_configuration,
312
- base_url=base_url or "",
313
- operation_id="updateSystemSettingsAuth",
314
- oauth2_scopes=[],
315
- security_source=get_security_from_env(
316
- self.sdk_configuration.security, models.Security
317
- ),
318
- ),
319
- request=req,
320
- error_status_codes=["401", "4XX", "500", "5XX"],
321
- retry_config=retry_config,
322
- )
323
-
324
- response_data: Any = None
325
- if utils.match_response(http_res, "200", "application/json"):
326
- return unmarshal_json_response(
327
- models.UpdateSystemSettingsAuthResponse, http_res
328
- )
329
- if utils.match_response(http_res, "500", "application/json"):
330
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
331
- raise errors.Error(response_data, http_res)
332
- if utils.match_response(http_res, ["401", "4XX"], "*"):
333
- http_res_text = await utils.stream_to_text_async(http_res)
334
- raise errors.APIError("API error occurred", http_res, http_res_text)
335
- if utils.match_response(http_res, "5XX", "*"):
336
- http_res_text = await utils.stream_to_text_async(http_res)
337
- raise errors.APIError("API error occurred", http_res, http_res_text)
338
-
339
- raise errors.APIError("Unexpected response received", http_res)