cribl-control-plane 0.0.31__py3-none-any.whl → 0.0.33__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 +4 -4
  2. cribl_control_plane/branches.py +6 -6
  3. cribl_control_plane/commits.py +36 -36
  4. cribl_control_plane/commits_files.py +16 -16
  5. cribl_control_plane/cribl.py +513 -0
  6. cribl_control_plane/destinations.py +21 -21
  7. cribl_control_plane/destinations_pq.py +10 -10
  8. cribl_control_plane/{samples.py → destinations_samples.py} +11 -11
  9. cribl_control_plane/hectokens.py +10 -10
  10. cribl_control_plane/lakedatasets.py +36 -36
  11. cribl_control_plane/models/__init__.py +342 -0
  12. cribl_control_plane/models/authconfig.py +43 -0
  13. cribl_control_plane/models/commonservicelimitconfigs.py +14 -0
  14. cribl_control_plane/models/createcribllakedatasetbylakeidop.py +2 -2
  15. cribl_control_plane/models/createinputhectokenbyidop.py +2 -2
  16. cribl_control_plane/models/createoutputtestbyidop.py +2 -2
  17. cribl_control_plane/models/createversionundoop.py +2 -2
  18. cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +4 -4
  19. cribl_control_plane/models/deleteinputbyidop.py +2 -2
  20. cribl_control_plane/models/deleteoutputbyidop.py +2 -2
  21. cribl_control_plane/models/deleteoutputpqbyidop.py +2 -2
  22. cribl_control_plane/models/deletepacksbyidop.py +2 -2
  23. cribl_control_plane/models/edgeheartbeatmetricsmode.py +11 -0
  24. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +3 -3
  25. cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +4 -4
  26. cribl_control_plane/models/getcribllakedatasetbylakeidop.py +2 -2
  27. cribl_control_plane/models/getinputbyidop.py +2 -2
  28. cribl_control_plane/models/getmasterworkerentryop.py +2 -2
  29. cribl_control_plane/models/getoutputbyidop.py +2 -2
  30. cribl_control_plane/models/getoutputpqbyidop.py +2 -2
  31. cribl_control_plane/models/getoutputsamplesbyidop.py +2 -2
  32. cribl_control_plane/models/getpacksop.py +2 -2
  33. cribl_control_plane/models/getsummaryop.py +3 -3
  34. cribl_control_plane/models/getsystemsettingsauthop.py +24 -0
  35. cribl_control_plane/models/getsystemsettingsconfop.py +24 -0
  36. cribl_control_plane/models/getsystemsettingsgitsettingsop.py +24 -0
  37. cribl_control_plane/models/getversioncountop.py +4 -4
  38. cribl_control_plane/models/getversiondiffop.py +8 -8
  39. cribl_control_plane/models/getversionfilesop.py +4 -4
  40. cribl_control_plane/models/getversionshowop.py +8 -8
  41. cribl_control_plane/models/getversionstatusop.py +2 -2
  42. cribl_control_plane/models/gitopstype.py +10 -0
  43. cribl_control_plane/models/gitsettings.py +70 -0
  44. cribl_control_plane/models/jobsettings.py +83 -0
  45. cribl_control_plane/models/limits.py +127 -0
  46. cribl_control_plane/models/listmasterworkerentryop.py +23 -23
  47. cribl_control_plane/models/rediscachelimits.py +38 -0
  48. cribl_control_plane/models/redisconnectionlimits.py +20 -0
  49. cribl_control_plane/models/redislimits.py +14 -0
  50. cribl_control_plane/models/searchsettings.py +71 -0
  51. cribl_control_plane/models/serviceslimits.py +23 -0
  52. cribl_control_plane/models/systemsettings.py +358 -0
  53. cribl_control_plane/models/systemsettingsconf.py +311 -0
  54. cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +4 -4
  55. cribl_control_plane/models/updateinputbyidop.py +2 -2
  56. cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +4 -4
  57. cribl_control_plane/models/updateoutputbyidop.py +2 -2
  58. cribl_control_plane/models/updatepacksbyidop.py +2 -2
  59. cribl_control_plane/models/updatesystemsettingsauthop.py +24 -0
  60. cribl_control_plane/models/updatesystemsettingsconfop.py +24 -0
  61. cribl_control_plane/models/updatesystemsettingsgitsettingsop.py +24 -0
  62. cribl_control_plane/models/upgradegroupsettings.py +24 -0
  63. cribl_control_plane/models/upgradepackageurls.py +20 -0
  64. cribl_control_plane/models/upgradesettings.py +36 -0
  65. cribl_control_plane/nodes.py +30 -30
  66. cribl_control_plane/packs.py +16 -16
  67. cribl_control_plane/sdk.py +3 -0
  68. cribl_control_plane/settings.py +23 -0
  69. cribl_control_plane/settings_auth.py +339 -0
  70. cribl_control_plane/settings_git.py +339 -0
  71. cribl_control_plane/sources.py +18 -18
  72. cribl_control_plane/statuses.py +6 -6
  73. cribl_control_plane/summaries.py +6 -6
  74. cribl_control_plane/system_sdk.py +17 -0
  75. cribl_control_plane/teams.py +2 -2
  76. cribl_control_plane/versions_configs.py +4 -4
  77. {cribl_control_plane-0.0.31.dist-info → cribl_control_plane-0.0.33.dist-info}/METADATA +41 -25
  78. {cribl_control_plane-0.0.31.dist-info → cribl_control_plane-0.0.33.dist-info}/RECORD +79 -51
  79. {cribl_control_plane-0.0.31.dist-info → cribl_control_plane-0.0.33.dist-info}/WHEEL +0 -0
@@ -0,0 +1,513 @@
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, Union
10
+
11
+
12
+ class Cribl(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.GetSystemSettingsConfResponse:
21
+ r"""Get Cribl system settings
22
+
23
+ Get Cribl system 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/conf",
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="getSystemSettingsConf",
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.GetSystemSettingsConfResponse, 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.GetSystemSettingsConfResponse:
103
+ r"""Get Cribl system settings
104
+
105
+ Get Cribl system 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/conf",
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="getSystemSettingsConf",
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.GetSystemSettingsConfResponse, 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
+ api: Union[models.SystemSettingsConfAPI, models.SystemSettingsConfAPITypedDict],
181
+ backups: Union[
182
+ models.SystemSettingsConfBackups, models.SystemSettingsConfBackupsTypedDict
183
+ ],
184
+ custom_logo: Union[
185
+ models.SystemSettingsConfCustomLogo,
186
+ models.SystemSettingsConfCustomLogoTypedDict,
187
+ ],
188
+ pii: Union[models.SystemSettingsConfPii, models.SystemSettingsConfPiiTypedDict],
189
+ proxy: Union[
190
+ models.SystemSettingsConfProxy, models.SystemSettingsConfProxyTypedDict
191
+ ],
192
+ rollback: Union[
193
+ models.SystemSettingsConfRollback,
194
+ models.SystemSettingsConfRollbackTypedDict,
195
+ ],
196
+ shutdown: Union[
197
+ models.SystemSettingsConfShutdown,
198
+ models.SystemSettingsConfShutdownTypedDict,
199
+ ],
200
+ sni: Union[models.SystemSettingsConfSni, models.SystemSettingsConfSniTypedDict],
201
+ system: Union[
202
+ models.SystemSettingsConfSystem, models.SystemSettingsConfSystemTypedDict
203
+ ],
204
+ tls: Union[models.SystemSettingsConfTLS, models.SystemSettingsConfTLSTypedDict],
205
+ upgrade_group_settings: Union[
206
+ models.UpgradeGroupSettings, models.UpgradeGroupSettingsTypedDict
207
+ ],
208
+ upgrade_settings: Union[
209
+ models.UpgradeSettings, models.UpgradeSettingsTypedDict
210
+ ],
211
+ workers: Union[
212
+ models.SystemSettingsConfWorkers, models.SystemSettingsConfWorkersTypedDict
213
+ ],
214
+ sockets: Optional[
215
+ Union[
216
+ models.SystemSettingsConfSockets,
217
+ models.SystemSettingsConfSocketsTypedDict,
218
+ ]
219
+ ] = None,
220
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
221
+ server_url: Optional[str] = None,
222
+ timeout_ms: Optional[int] = None,
223
+ http_headers: Optional[Mapping[str, str]] = None,
224
+ ) -> models.UpdateSystemSettingsConfResponse:
225
+ r"""Update Cribl system settings
226
+
227
+ Update Cribl system settings
228
+
229
+ :param api:
230
+ :param backups:
231
+ :param custom_logo:
232
+ :param pii:
233
+ :param proxy:
234
+ :param rollback:
235
+ :param shutdown:
236
+ :param sni:
237
+ :param system:
238
+ :param tls:
239
+ :param upgrade_group_settings:
240
+ :param upgrade_settings:
241
+ :param workers:
242
+ :param sockets:
243
+ :param retries: Override the default retry configuration for this method
244
+ :param server_url: Override the default server URL for this method
245
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
246
+ :param http_headers: Additional headers to set or replace on requests.
247
+ """
248
+ base_url = None
249
+ url_variables = None
250
+ if timeout_ms is None:
251
+ timeout_ms = self.sdk_configuration.timeout_ms
252
+
253
+ if server_url is not None:
254
+ base_url = server_url
255
+ else:
256
+ base_url = self._get_url(base_url, url_variables)
257
+
258
+ request = models.SystemSettingsConf(
259
+ api=utils.get_pydantic_model(api, models.SystemSettingsConfAPI),
260
+ backups=utils.get_pydantic_model(backups, models.SystemSettingsConfBackups),
261
+ custom_logo=utils.get_pydantic_model(
262
+ custom_logo, models.SystemSettingsConfCustomLogo
263
+ ),
264
+ pii=utils.get_pydantic_model(pii, models.SystemSettingsConfPii),
265
+ proxy=utils.get_pydantic_model(proxy, models.SystemSettingsConfProxy),
266
+ rollback=utils.get_pydantic_model(
267
+ rollback, models.SystemSettingsConfRollback
268
+ ),
269
+ shutdown=utils.get_pydantic_model(
270
+ shutdown, models.SystemSettingsConfShutdown
271
+ ),
272
+ sni=utils.get_pydantic_model(sni, models.SystemSettingsConfSni),
273
+ sockets=utils.get_pydantic_model(
274
+ sockets, Optional[models.SystemSettingsConfSockets]
275
+ ),
276
+ system=utils.get_pydantic_model(system, models.SystemSettingsConfSystem),
277
+ tls=utils.get_pydantic_model(tls, models.SystemSettingsConfTLS),
278
+ upgrade_group_settings=utils.get_pydantic_model(
279
+ upgrade_group_settings, models.UpgradeGroupSettings
280
+ ),
281
+ upgrade_settings=utils.get_pydantic_model(
282
+ upgrade_settings, models.UpgradeSettings
283
+ ),
284
+ workers=utils.get_pydantic_model(workers, models.SystemSettingsConfWorkers),
285
+ )
286
+
287
+ req = self._build_request(
288
+ method="PATCH",
289
+ path="/system/settings/conf",
290
+ base_url=base_url,
291
+ url_variables=url_variables,
292
+ request=request,
293
+ request_body_required=True,
294
+ request_has_path_params=False,
295
+ request_has_query_params=True,
296
+ user_agent_header="user-agent",
297
+ accept_header_value="application/json",
298
+ http_headers=http_headers,
299
+ security=self.sdk_configuration.security,
300
+ get_serialized_body=lambda: utils.serialize_request_body(
301
+ request, False, False, "json", models.SystemSettingsConf
302
+ ),
303
+ timeout_ms=timeout_ms,
304
+ )
305
+
306
+ if retries == UNSET:
307
+ if self.sdk_configuration.retry_config is not UNSET:
308
+ retries = self.sdk_configuration.retry_config
309
+
310
+ retry_config = None
311
+ if isinstance(retries, utils.RetryConfig):
312
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
313
+
314
+ http_res = self.do_request(
315
+ hook_ctx=HookContext(
316
+ config=self.sdk_configuration,
317
+ base_url=base_url or "",
318
+ operation_id="updateSystemSettingsConf",
319
+ oauth2_scopes=[],
320
+ security_source=get_security_from_env(
321
+ self.sdk_configuration.security, models.Security
322
+ ),
323
+ ),
324
+ request=req,
325
+ error_status_codes=["401", "4XX", "500", "5XX"],
326
+ retry_config=retry_config,
327
+ )
328
+
329
+ response_data: Any = None
330
+ if utils.match_response(http_res, "200", "application/json"):
331
+ return unmarshal_json_response(
332
+ models.UpdateSystemSettingsConfResponse, http_res
333
+ )
334
+ if utils.match_response(http_res, "500", "application/json"):
335
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
336
+ raise errors.Error(response_data, http_res)
337
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
338
+ http_res_text = utils.stream_to_text(http_res)
339
+ raise errors.APIError("API error occurred", http_res, http_res_text)
340
+ if utils.match_response(http_res, "5XX", "*"):
341
+ http_res_text = utils.stream_to_text(http_res)
342
+ raise errors.APIError("API error occurred", http_res, http_res_text)
343
+
344
+ raise errors.APIError("Unexpected response received", http_res)
345
+
346
+ async def update_async(
347
+ self,
348
+ *,
349
+ api: Union[models.SystemSettingsConfAPI, models.SystemSettingsConfAPITypedDict],
350
+ backups: Union[
351
+ models.SystemSettingsConfBackups, models.SystemSettingsConfBackupsTypedDict
352
+ ],
353
+ custom_logo: Union[
354
+ models.SystemSettingsConfCustomLogo,
355
+ models.SystemSettingsConfCustomLogoTypedDict,
356
+ ],
357
+ pii: Union[models.SystemSettingsConfPii, models.SystemSettingsConfPiiTypedDict],
358
+ proxy: Union[
359
+ models.SystemSettingsConfProxy, models.SystemSettingsConfProxyTypedDict
360
+ ],
361
+ rollback: Union[
362
+ models.SystemSettingsConfRollback,
363
+ models.SystemSettingsConfRollbackTypedDict,
364
+ ],
365
+ shutdown: Union[
366
+ models.SystemSettingsConfShutdown,
367
+ models.SystemSettingsConfShutdownTypedDict,
368
+ ],
369
+ sni: Union[models.SystemSettingsConfSni, models.SystemSettingsConfSniTypedDict],
370
+ system: Union[
371
+ models.SystemSettingsConfSystem, models.SystemSettingsConfSystemTypedDict
372
+ ],
373
+ tls: Union[models.SystemSettingsConfTLS, models.SystemSettingsConfTLSTypedDict],
374
+ upgrade_group_settings: Union[
375
+ models.UpgradeGroupSettings, models.UpgradeGroupSettingsTypedDict
376
+ ],
377
+ upgrade_settings: Union[
378
+ models.UpgradeSettings, models.UpgradeSettingsTypedDict
379
+ ],
380
+ workers: Union[
381
+ models.SystemSettingsConfWorkers, models.SystemSettingsConfWorkersTypedDict
382
+ ],
383
+ sockets: Optional[
384
+ Union[
385
+ models.SystemSettingsConfSockets,
386
+ models.SystemSettingsConfSocketsTypedDict,
387
+ ]
388
+ ] = None,
389
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
390
+ server_url: Optional[str] = None,
391
+ timeout_ms: Optional[int] = None,
392
+ http_headers: Optional[Mapping[str, str]] = None,
393
+ ) -> models.UpdateSystemSettingsConfResponse:
394
+ r"""Update Cribl system settings
395
+
396
+ Update Cribl system settings
397
+
398
+ :param api:
399
+ :param backups:
400
+ :param custom_logo:
401
+ :param pii:
402
+ :param proxy:
403
+ :param rollback:
404
+ :param shutdown:
405
+ :param sni:
406
+ :param system:
407
+ :param tls:
408
+ :param upgrade_group_settings:
409
+ :param upgrade_settings:
410
+ :param workers:
411
+ :param sockets:
412
+ :param retries: Override the default retry configuration for this method
413
+ :param server_url: Override the default server URL for this method
414
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
415
+ :param http_headers: Additional headers to set or replace on requests.
416
+ """
417
+ base_url = None
418
+ url_variables = None
419
+ if timeout_ms is None:
420
+ timeout_ms = self.sdk_configuration.timeout_ms
421
+
422
+ if server_url is not None:
423
+ base_url = server_url
424
+ else:
425
+ base_url = self._get_url(base_url, url_variables)
426
+
427
+ request = models.SystemSettingsConf(
428
+ api=utils.get_pydantic_model(api, models.SystemSettingsConfAPI),
429
+ backups=utils.get_pydantic_model(backups, models.SystemSettingsConfBackups),
430
+ custom_logo=utils.get_pydantic_model(
431
+ custom_logo, models.SystemSettingsConfCustomLogo
432
+ ),
433
+ pii=utils.get_pydantic_model(pii, models.SystemSettingsConfPii),
434
+ proxy=utils.get_pydantic_model(proxy, models.SystemSettingsConfProxy),
435
+ rollback=utils.get_pydantic_model(
436
+ rollback, models.SystemSettingsConfRollback
437
+ ),
438
+ shutdown=utils.get_pydantic_model(
439
+ shutdown, models.SystemSettingsConfShutdown
440
+ ),
441
+ sni=utils.get_pydantic_model(sni, models.SystemSettingsConfSni),
442
+ sockets=utils.get_pydantic_model(
443
+ sockets, Optional[models.SystemSettingsConfSockets]
444
+ ),
445
+ system=utils.get_pydantic_model(system, models.SystemSettingsConfSystem),
446
+ tls=utils.get_pydantic_model(tls, models.SystemSettingsConfTLS),
447
+ upgrade_group_settings=utils.get_pydantic_model(
448
+ upgrade_group_settings, models.UpgradeGroupSettings
449
+ ),
450
+ upgrade_settings=utils.get_pydantic_model(
451
+ upgrade_settings, models.UpgradeSettings
452
+ ),
453
+ workers=utils.get_pydantic_model(workers, models.SystemSettingsConfWorkers),
454
+ )
455
+
456
+ req = self._build_request_async(
457
+ method="PATCH",
458
+ path="/system/settings/conf",
459
+ base_url=base_url,
460
+ url_variables=url_variables,
461
+ request=request,
462
+ request_body_required=True,
463
+ request_has_path_params=False,
464
+ request_has_query_params=True,
465
+ user_agent_header="user-agent",
466
+ accept_header_value="application/json",
467
+ http_headers=http_headers,
468
+ security=self.sdk_configuration.security,
469
+ get_serialized_body=lambda: utils.serialize_request_body(
470
+ request, False, False, "json", models.SystemSettingsConf
471
+ ),
472
+ timeout_ms=timeout_ms,
473
+ )
474
+
475
+ if retries == UNSET:
476
+ if self.sdk_configuration.retry_config is not UNSET:
477
+ retries = self.sdk_configuration.retry_config
478
+
479
+ retry_config = None
480
+ if isinstance(retries, utils.RetryConfig):
481
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
482
+
483
+ http_res = await self.do_request_async(
484
+ hook_ctx=HookContext(
485
+ config=self.sdk_configuration,
486
+ base_url=base_url or "",
487
+ operation_id="updateSystemSettingsConf",
488
+ oauth2_scopes=[],
489
+ security_source=get_security_from_env(
490
+ self.sdk_configuration.security, models.Security
491
+ ),
492
+ ),
493
+ request=req,
494
+ error_status_codes=["401", "4XX", "500", "5XX"],
495
+ retry_config=retry_config,
496
+ )
497
+
498
+ response_data: Any = None
499
+ if utils.match_response(http_res, "200", "application/json"):
500
+ return unmarshal_json_response(
501
+ models.UpdateSystemSettingsConfResponse, http_res
502
+ )
503
+ if utils.match_response(http_res, "500", "application/json"):
504
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
505
+ raise errors.Error(response_data, http_res)
506
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
507
+ http_res_text = await utils.stream_to_text_async(http_res)
508
+ raise errors.APIError("API error occurred", http_res, http_res_text)
509
+ if utils.match_response(http_res, "5XX", "*"):
510
+ http_res_text = await utils.stream_to_text_async(http_res)
511
+ raise errors.APIError("API error occurred", http_res, http_res_text)
512
+
513
+ raise errors.APIError("Unexpected response received", http_res)
@@ -5,7 +5,7 @@ from .sdkconfiguration import SDKConfiguration
5
5
  from cribl_control_plane import errors, models, utils
6
6
  from cribl_control_plane._hooks import HookContext
7
7
  from cribl_control_plane.destinations_pq import DestinationsPq
8
- from cribl_control_plane.samples import Samples
8
+ from cribl_control_plane.destinations_samples import DestinationsSamples
9
9
  from cribl_control_plane.types import BaseModel, OptionalNullable, UNSET
10
10
  from cribl_control_plane.utils import get_security_from_env
11
11
  from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
@@ -16,7 +16,7 @@ class Destinations(BaseSDK):
16
16
  r"""Actions related to Destinations"""
17
17
 
18
18
  pq: DestinationsPq
19
- samples: Samples
19
+ samples: DestinationsSamples
20
20
 
21
21
  def __init__(self, sdk_config: SDKConfiguration) -> None:
22
22
  BaseSDK.__init__(self, sdk_config)
@@ -25,7 +25,7 @@ class Destinations(BaseSDK):
25
25
 
26
26
  def _init_sdks(self):
27
27
  self.pq = DestinationsPq(self.sdk_configuration)
28
- self.samples = Samples(self.sdk_configuration)
28
+ self.samples = DestinationsSamples(self.sdk_configuration)
29
29
 
30
30
  def list(
31
31
  self,
@@ -37,7 +37,7 @@ class Destinations(BaseSDK):
37
37
  ) -> models.ListOutputResponse:
38
38
  r"""List all Destinations
39
39
 
40
- Get a list of Destination objects
40
+ Get a list of all Destinations.
41
41
 
42
42
  :param retries: Override the default retry configuration for this method
43
43
  :param server_url: Override the default server URL for this method
@@ -117,7 +117,7 @@ class Destinations(BaseSDK):
117
117
  ) -> models.ListOutputResponse:
118
118
  r"""List all Destinations
119
119
 
120
- Get a list of Destination objects
120
+ Get a list of all Destinations.
121
121
 
122
122
  :param retries: Override the default retry configuration for this method
123
123
  :param server_url: Override the default server URL for this method
@@ -198,7 +198,7 @@ class Destinations(BaseSDK):
198
198
  ) -> models.CreateOutputResponse:
199
199
  r"""Create a Destination
200
200
 
201
- Create Destination
201
+ Create a new Destination.
202
202
 
203
203
  :param request: The request object to send.
204
204
  :param retries: Override the default retry configuration for this method
@@ -288,7 +288,7 @@ class Destinations(BaseSDK):
288
288
  ) -> models.CreateOutputResponse:
289
289
  r"""Create a Destination
290
290
 
291
- Create Destination
291
+ Create a new Destination.
292
292
 
293
293
  :param request: The request object to send.
294
294
  :param retries: Override the default retry configuration for this method
@@ -376,11 +376,11 @@ class Destinations(BaseSDK):
376
376
  timeout_ms: Optional[int] = None,
377
377
  http_headers: Optional[Mapping[str, str]] = None,
378
378
  ) -> models.GetOutputByIDResponse:
379
- r"""Retrieve a Destination
379
+ r"""Get a Destination
380
380
 
381
- Get Destination by ID
381
+ Get the specified Destination.
382
382
 
383
- :param id: Unique ID to GET
383
+ :param id: The <code>id</code> of the Destination to get.
384
384
  :param retries: Override the default retry configuration for this method
385
385
  :param server_url: Override the default server URL for this method
386
386
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -463,11 +463,11 @@ class Destinations(BaseSDK):
463
463
  timeout_ms: Optional[int] = None,
464
464
  http_headers: Optional[Mapping[str, str]] = None,
465
465
  ) -> models.GetOutputByIDResponse:
466
- r"""Retrieve a Destination
466
+ r"""Get a Destination
467
467
 
468
- Get Destination by ID
468
+ Get the specified Destination.
469
469
 
470
- :param id: Unique ID to GET
470
+ :param id: The <code>id</code> of the Destination to get.
471
471
  :param retries: Override the default retry configuration for this method
472
472
  :param server_url: Override the default server URL for this method
473
473
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -553,9 +553,9 @@ class Destinations(BaseSDK):
553
553
  ) -> models.UpdateOutputByIDResponse:
554
554
  r"""Update a Destination
555
555
 
556
- Update Destination
556
+ Update the specified Destination.</br></br>Provide a complete representation of the Destination that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Destination.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Destination might not function as expected.
557
557
 
558
- :param id: Unique ID to PATCH
558
+ :param id: The <code>id</code> of the Destination to update.
559
559
  :param output: Output object
560
560
  :param retries: Override the default retry configuration for this method
561
561
  :param server_url: Override the default server URL for this method
@@ -646,9 +646,9 @@ class Destinations(BaseSDK):
646
646
  ) -> models.UpdateOutputByIDResponse:
647
647
  r"""Update a Destination
648
648
 
649
- Update Destination
649
+ Update the specified Destination.</br></br>Provide a complete representation of the Destination that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Destination.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Destination might not function as expected.
650
650
 
651
- :param id: Unique ID to PATCH
651
+ :param id: The <code>id</code> of the Destination to update.
652
652
  :param output: Output object
653
653
  :param retries: Override the default retry configuration for this method
654
654
  :param server_url: Override the default server URL for this method
@@ -738,9 +738,9 @@ class Destinations(BaseSDK):
738
738
  ) -> models.DeleteOutputByIDResponse:
739
739
  r"""Delete a Destination
740
740
 
741
- Delete Destination
741
+ Delete the specified Destination.
742
742
 
743
- :param id: Unique ID to DELETE
743
+ :param id: The <code>id</code> of the Destination to delete.
744
744
  :param retries: Override the default retry configuration for this method
745
745
  :param server_url: Override the default server URL for this method
746
746
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -825,9 +825,9 @@ class Destinations(BaseSDK):
825
825
  ) -> models.DeleteOutputByIDResponse:
826
826
  r"""Delete a Destination
827
827
 
828
- Delete Destination
828
+ Delete the specified Destination.
829
829
 
830
- :param id: Unique ID to DELETE
830
+ :param id: The <code>id</code> of the Destination to delete.
831
831
  :param retries: Override the default retry configuration for this method
832
832
  :param server_url: Override the default server URL for this method
833
833
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds