cribl-control-plane 0.0.28__py3-none-any.whl → 0.0.30__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 (36) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/acl.py +30 -20
  3. cribl_control_plane/branches.py +4 -8
  4. cribl_control_plane/configs_versions.py +22 -16
  5. cribl_control_plane/groups_sdk.py +464 -428
  6. cribl_control_plane/models/__init__.py +204 -177
  7. cribl_control_plane/models/{createproductsgroupsbyproductop.py → createconfiggroupbyproductop.py} +10 -10
  8. cribl_control_plane/models/currentbranchresult.py +13 -0
  9. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +53 -0
  10. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +78 -0
  11. cribl_control_plane/models/{getproductsgroupsaclteamsbyproductandidop.py → getconfiggroupaclteamsbyproductandidop.py} +15 -15
  12. cribl_control_plane/models/getconfiggroupbyproductandidop.py +65 -0
  13. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +52 -0
  14. cribl_control_plane/models/{getsummaryworkersop.py → getmasterworkerentryop.py} +4 -4
  15. cribl_control_plane/models/gitcommitsummary.py +3 -3
  16. cribl_control_plane/models/gitstatusresult.py +0 -3
  17. cribl_control_plane/models/input.py +30 -30
  18. cribl_control_plane/models/inputcribllakehttp.py +63 -0
  19. cribl_control_plane/models/inputcrowdstrike.py +7 -0
  20. cribl_control_plane/models/inputs3.py +7 -0
  21. cribl_control_plane/models/inputs3inventory.py +7 -0
  22. cribl_control_plane/models/inputsecuritylake.py +7 -0
  23. cribl_control_plane/models/{getproductsgroupsbyproductop.py → listconfiggroupbyproductop.py} +12 -12
  24. cribl_control_plane/models/{getworkersop.py → listmasterworkerentryop.py} +4 -4
  25. cribl_control_plane/models/{updategroupsbyidop.py → updateconfiggroupbyproductandidop.py} +22 -6
  26. cribl_control_plane/models/{updategroupsdeploybyidop.py → updateconfiggroupdeploybyproductandidop.py} +22 -6
  27. cribl_control_plane/nodes.py +70 -62
  28. cribl_control_plane/teams.py +20 -20
  29. {cribl_control_plane-0.0.28.dist-info → cribl_control_plane-0.0.30.dist-info}/METADATA +8 -8
  30. {cribl_control_plane-0.0.28.dist-info → cribl_control_plane-0.0.30.dist-info}/RECORD +31 -31
  31. cribl_control_plane/models/deletegroupsbyidop.py +0 -37
  32. cribl_control_plane/models/getgroupsaclbyidop.py +0 -63
  33. cribl_control_plane/models/getgroupsbyidop.py +0 -49
  34. cribl_control_plane/models/getgroupsconfigversionbyidop.py +0 -36
  35. cribl_control_plane/models/getversioncurrentbranchop.py +0 -23
  36. {cribl_control_plane-0.0.28.dist-info → cribl_control_plane-0.0.30.dist-info}/WHEEL +0 -0
@@ -27,364 +27,22 @@ class GroupsSDK(BaseSDK):
27
27
  self.configs = GroupsConfigs(self.sdk_configuration)
28
28
  self.acl = ACL(self.sdk_configuration)
29
29
 
30
- def create(
31
- self,
32
- *,
33
- product: models.CreateProductsGroupsByProductProduct,
34
- config_version: str,
35
- id: str,
36
- cloud: Optional[
37
- Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
38
- ] = None,
39
- deploying_worker_count: Optional[float] = None,
40
- description: Optional[str] = None,
41
- estimated_ingest_rate: Optional[float] = None,
42
- git: Optional[Union[models.Git, models.GitTypedDict]] = None,
43
- incompatible_worker_count: Optional[float] = None,
44
- inherits: Optional[str] = None,
45
- is_fleet: Optional[bool] = None,
46
- is_search: Optional[bool] = None,
47
- lookup_deployments: Optional[
48
- Union[
49
- List[models.ConfigGroupLookups],
50
- List[models.ConfigGroupLookupsTypedDict],
51
- ]
52
- ] = None,
53
- max_worker_age: Optional[str] = None,
54
- name: Optional[str] = None,
55
- on_prem: Optional[bool] = None,
56
- provisioned: Optional[bool] = None,
57
- streamtags: Optional[List[str]] = None,
58
- tags: Optional[str] = None,
59
- type_: Optional[models.ConfigGroupType] = None,
60
- upgrade_version: Optional[str] = None,
61
- worker_count: Optional[float] = None,
62
- worker_remote_access: Optional[bool] = None,
63
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
64
- server_url: Optional[str] = None,
65
- timeout_ms: Optional[int] = None,
66
- http_headers: Optional[Mapping[str, str]] = None,
67
- ) -> models.CreateProductsGroupsByProductResponse:
68
- r"""Create a Worker Group or Edge Fleet for the specified Cribl product
69
-
70
- Create a Fleet or Worker Group
71
-
72
- :param product: Cribl Product
73
- :param config_version:
74
- :param id:
75
- :param cloud:
76
- :param deploying_worker_count:
77
- :param description:
78
- :param estimated_ingest_rate:
79
- :param git:
80
- :param incompatible_worker_count:
81
- :param inherits:
82
- :param is_fleet:
83
- :param is_search:
84
- :param lookup_deployments:
85
- :param max_worker_age:
86
- :param name:
87
- :param on_prem:
88
- :param provisioned:
89
- :param streamtags:
90
- :param tags:
91
- :param type:
92
- :param upgrade_version:
93
- :param worker_count:
94
- :param worker_remote_access:
95
- :param retries: Override the default retry configuration for this method
96
- :param server_url: Override the default server URL for this method
97
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
98
- :param http_headers: Additional headers to set or replace on requests.
99
- """
100
- base_url = None
101
- url_variables = None
102
- if timeout_ms is None:
103
- timeout_ms = self.sdk_configuration.timeout_ms
104
-
105
- if server_url is not None:
106
- base_url = server_url
107
- else:
108
- base_url = self._get_url(base_url, url_variables)
109
-
110
- request = models.CreateProductsGroupsByProductRequest(
111
- product=product,
112
- config_group=models.ConfigGroup(
113
- cloud=utils.get_pydantic_model(
114
- cloud, Optional[models.ConfigGroupCloud]
115
- ),
116
- config_version=config_version,
117
- deploying_worker_count=deploying_worker_count,
118
- description=description,
119
- estimated_ingest_rate=estimated_ingest_rate,
120
- git=utils.get_pydantic_model(git, Optional[models.Git]),
121
- id=id,
122
- incompatible_worker_count=incompatible_worker_count,
123
- inherits=inherits,
124
- is_fleet=is_fleet,
125
- is_search=is_search,
126
- lookup_deployments=utils.get_pydantic_model(
127
- lookup_deployments, Optional[List[models.ConfigGroupLookups]]
128
- ),
129
- max_worker_age=max_worker_age,
130
- name=name,
131
- on_prem=on_prem,
132
- provisioned=provisioned,
133
- streamtags=streamtags,
134
- tags=tags,
135
- type=type_,
136
- upgrade_version=upgrade_version,
137
- worker_count=worker_count,
138
- worker_remote_access=worker_remote_access,
139
- ),
140
- )
141
-
142
- req = self._build_request(
143
- method="POST",
144
- path="/products/{product}/groups",
145
- base_url=base_url,
146
- url_variables=url_variables,
147
- request=request,
148
- request_body_required=True,
149
- request_has_path_params=True,
150
- request_has_query_params=True,
151
- user_agent_header="user-agent",
152
- accept_header_value="application/json",
153
- http_headers=http_headers,
154
- security=self.sdk_configuration.security,
155
- get_serialized_body=lambda: utils.serialize_request_body(
156
- request.config_group, False, False, "json", models.ConfigGroup
157
- ),
158
- timeout_ms=timeout_ms,
159
- )
160
-
161
- if retries == UNSET:
162
- if self.sdk_configuration.retry_config is not UNSET:
163
- retries = self.sdk_configuration.retry_config
164
-
165
- retry_config = None
166
- if isinstance(retries, utils.RetryConfig):
167
- retry_config = (retries, ["429", "500", "502", "503", "504"])
168
-
169
- http_res = self.do_request(
170
- hook_ctx=HookContext(
171
- config=self.sdk_configuration,
172
- base_url=base_url or "",
173
- operation_id="createProductsGroupsByProduct",
174
- oauth2_scopes=[],
175
- security_source=get_security_from_env(
176
- self.sdk_configuration.security, models.Security
177
- ),
178
- ),
179
- request=req,
180
- error_status_codes=["401", "4XX", "500", "5XX"],
181
- retry_config=retry_config,
182
- )
183
-
184
- response_data: Any = None
185
- if utils.match_response(http_res, "200", "application/json"):
186
- return unmarshal_json_response(
187
- models.CreateProductsGroupsByProductResponse, http_res
188
- )
189
- if utils.match_response(http_res, "500", "application/json"):
190
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
191
- raise errors.Error(response_data, http_res)
192
- if utils.match_response(http_res, ["401", "4XX"], "*"):
193
- http_res_text = utils.stream_to_text(http_res)
194
- raise errors.APIError("API error occurred", http_res, http_res_text)
195
- if utils.match_response(http_res, "5XX", "*"):
196
- http_res_text = utils.stream_to_text(http_res)
197
- raise errors.APIError("API error occurred", http_res, http_res_text)
198
-
199
- raise errors.APIError("Unexpected response received", http_res)
200
-
201
- async def create_async(
202
- self,
203
- *,
204
- product: models.CreateProductsGroupsByProductProduct,
205
- config_version: str,
206
- id: str,
207
- cloud: Optional[
208
- Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
209
- ] = None,
210
- deploying_worker_count: Optional[float] = None,
211
- description: Optional[str] = None,
212
- estimated_ingest_rate: Optional[float] = None,
213
- git: Optional[Union[models.Git, models.GitTypedDict]] = None,
214
- incompatible_worker_count: Optional[float] = None,
215
- inherits: Optional[str] = None,
216
- is_fleet: Optional[bool] = None,
217
- is_search: Optional[bool] = None,
218
- lookup_deployments: Optional[
219
- Union[
220
- List[models.ConfigGroupLookups],
221
- List[models.ConfigGroupLookupsTypedDict],
222
- ]
223
- ] = None,
224
- max_worker_age: Optional[str] = None,
225
- name: Optional[str] = None,
226
- on_prem: Optional[bool] = None,
227
- provisioned: Optional[bool] = None,
228
- streamtags: Optional[List[str]] = None,
229
- tags: Optional[str] = None,
230
- type_: Optional[models.ConfigGroupType] = None,
231
- upgrade_version: Optional[str] = None,
232
- worker_count: Optional[float] = None,
233
- worker_remote_access: Optional[bool] = None,
234
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
235
- server_url: Optional[str] = None,
236
- timeout_ms: Optional[int] = None,
237
- http_headers: Optional[Mapping[str, str]] = None,
238
- ) -> models.CreateProductsGroupsByProductResponse:
239
- r"""Create a Worker Group or Edge Fleet for the specified Cribl product
240
-
241
- Create a Fleet or Worker Group
242
-
243
- :param product: Cribl Product
244
- :param config_version:
245
- :param id:
246
- :param cloud:
247
- :param deploying_worker_count:
248
- :param description:
249
- :param estimated_ingest_rate:
250
- :param git:
251
- :param incompatible_worker_count:
252
- :param inherits:
253
- :param is_fleet:
254
- :param is_search:
255
- :param lookup_deployments:
256
- :param max_worker_age:
257
- :param name:
258
- :param on_prem:
259
- :param provisioned:
260
- :param streamtags:
261
- :param tags:
262
- :param type:
263
- :param upgrade_version:
264
- :param worker_count:
265
- :param worker_remote_access:
266
- :param retries: Override the default retry configuration for this method
267
- :param server_url: Override the default server URL for this method
268
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
269
- :param http_headers: Additional headers to set or replace on requests.
270
- """
271
- base_url = None
272
- url_variables = None
273
- if timeout_ms is None:
274
- timeout_ms = self.sdk_configuration.timeout_ms
275
-
276
- if server_url is not None:
277
- base_url = server_url
278
- else:
279
- base_url = self._get_url(base_url, url_variables)
280
-
281
- request = models.CreateProductsGroupsByProductRequest(
282
- product=product,
283
- config_group=models.ConfigGroup(
284
- cloud=utils.get_pydantic_model(
285
- cloud, Optional[models.ConfigGroupCloud]
286
- ),
287
- config_version=config_version,
288
- deploying_worker_count=deploying_worker_count,
289
- description=description,
290
- estimated_ingest_rate=estimated_ingest_rate,
291
- git=utils.get_pydantic_model(git, Optional[models.Git]),
292
- id=id,
293
- incompatible_worker_count=incompatible_worker_count,
294
- inherits=inherits,
295
- is_fleet=is_fleet,
296
- is_search=is_search,
297
- lookup_deployments=utils.get_pydantic_model(
298
- lookup_deployments, Optional[List[models.ConfigGroupLookups]]
299
- ),
300
- max_worker_age=max_worker_age,
301
- name=name,
302
- on_prem=on_prem,
303
- provisioned=provisioned,
304
- streamtags=streamtags,
305
- tags=tags,
306
- type=type_,
307
- upgrade_version=upgrade_version,
308
- worker_count=worker_count,
309
- worker_remote_access=worker_remote_access,
310
- ),
311
- )
312
-
313
- req = self._build_request_async(
314
- method="POST",
315
- path="/products/{product}/groups",
316
- base_url=base_url,
317
- url_variables=url_variables,
318
- request=request,
319
- request_body_required=True,
320
- request_has_path_params=True,
321
- request_has_query_params=True,
322
- user_agent_header="user-agent",
323
- accept_header_value="application/json",
324
- http_headers=http_headers,
325
- security=self.sdk_configuration.security,
326
- get_serialized_body=lambda: utils.serialize_request_body(
327
- request.config_group, False, False, "json", models.ConfigGroup
328
- ),
329
- timeout_ms=timeout_ms,
330
- )
331
-
332
- if retries == UNSET:
333
- if self.sdk_configuration.retry_config is not UNSET:
334
- retries = self.sdk_configuration.retry_config
335
-
336
- retry_config = None
337
- if isinstance(retries, utils.RetryConfig):
338
- retry_config = (retries, ["429", "500", "502", "503", "504"])
339
-
340
- http_res = await self.do_request_async(
341
- hook_ctx=HookContext(
342
- config=self.sdk_configuration,
343
- base_url=base_url or "",
344
- operation_id="createProductsGroupsByProduct",
345
- oauth2_scopes=[],
346
- security_source=get_security_from_env(
347
- self.sdk_configuration.security, models.Security
348
- ),
349
- ),
350
- request=req,
351
- error_status_codes=["401", "4XX", "500", "5XX"],
352
- retry_config=retry_config,
353
- )
354
-
355
- response_data: Any = None
356
- if utils.match_response(http_res, "200", "application/json"):
357
- return unmarshal_json_response(
358
- models.CreateProductsGroupsByProductResponse, http_res
359
- )
360
- if utils.match_response(http_res, "500", "application/json"):
361
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
362
- raise errors.Error(response_data, http_res)
363
- if utils.match_response(http_res, ["401", "4XX"], "*"):
364
- http_res_text = await utils.stream_to_text_async(http_res)
365
- raise errors.APIError("API error occurred", http_res, http_res_text)
366
- if utils.match_response(http_res, "5XX", "*"):
367
- http_res_text = await utils.stream_to_text_async(http_res)
368
- raise errors.APIError("API error occurred", http_res, http_res_text)
369
-
370
- raise errors.APIError("Unexpected response received", http_res)
371
-
372
30
  def list(
373
31
  self,
374
32
  *,
375
- product: models.GetProductsGroupsByProductProduct,
33
+ product: models.ListConfigGroupByProductProduct,
376
34
  fields: Optional[str] = None,
377
35
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
378
36
  server_url: Optional[str] = None,
379
37
  timeout_ms: Optional[int] = None,
380
38
  http_headers: Optional[Mapping[str, str]] = None,
381
- ) -> models.GetProductsGroupsByProductResponse:
39
+ ) -> models.ListConfigGroupByProductResponse:
382
40
  r"""List all Worker Groups or Edge Fleets for the specified Cribl product
383
41
 
384
- Get a list of ConfigGroup objects
42
+ Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
385
43
 
386
- :param product: Cribl Product
387
- :param fields: fields to add to results: git.commit, git.localChanges, git.log
44
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
45
+ :param fields: Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>.
388
46
  :param retries: Override the default retry configuration for this method
389
47
  :param server_url: Override the default server URL for this method
390
48
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -400,7 +58,7 @@ class GroupsSDK(BaseSDK):
400
58
  else:
401
59
  base_url = self._get_url(base_url, url_variables)
402
60
 
403
- request = models.GetProductsGroupsByProductRequest(
61
+ request = models.ListConfigGroupByProductRequest(
404
62
  fields=fields,
405
63
  product=product,
406
64
  )
@@ -433,7 +91,7 @@ class GroupsSDK(BaseSDK):
433
91
  hook_ctx=HookContext(
434
92
  config=self.sdk_configuration,
435
93
  base_url=base_url or "",
436
- operation_id="getProductsGroupsByProduct",
94
+ operation_id="listConfigGroupByProduct",
437
95
  oauth2_scopes=[],
438
96
  security_source=get_security_from_env(
439
97
  self.sdk_configuration.security, models.Security
@@ -447,7 +105,7 @@ class GroupsSDK(BaseSDK):
447
105
  response_data: Any = None
448
106
  if utils.match_response(http_res, "200", "application/json"):
449
107
  return unmarshal_json_response(
450
- models.GetProductsGroupsByProductResponse, http_res
108
+ models.ListConfigGroupByProductResponse, http_res
451
109
  )
452
110
  if utils.match_response(http_res, "500", "application/json"):
453
111
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
@@ -464,19 +122,19 @@ class GroupsSDK(BaseSDK):
464
122
  async def list_async(
465
123
  self,
466
124
  *,
467
- product: models.GetProductsGroupsByProductProduct,
125
+ product: models.ListConfigGroupByProductProduct,
468
126
  fields: Optional[str] = None,
469
127
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
470
128
  server_url: Optional[str] = None,
471
129
  timeout_ms: Optional[int] = None,
472
130
  http_headers: Optional[Mapping[str, str]] = None,
473
- ) -> models.GetProductsGroupsByProductResponse:
131
+ ) -> models.ListConfigGroupByProductResponse:
474
132
  r"""List all Worker Groups or Edge Fleets for the specified Cribl product
475
133
 
476
- Get a list of ConfigGroup objects
134
+ Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
477
135
 
478
- :param product: Cribl Product
479
- :param fields: fields to add to results: git.commit, git.localChanges, git.log
136
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
137
+ :param fields: Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>.
480
138
  :param retries: Override the default retry configuration for this method
481
139
  :param server_url: Override the default server URL for this method
482
140
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -492,7 +150,7 @@ class GroupsSDK(BaseSDK):
492
150
  else:
493
151
  base_url = self._get_url(base_url, url_variables)
494
152
 
495
- request = models.GetProductsGroupsByProductRequest(
153
+ request = models.ListConfigGroupByProductRequest(
496
154
  fields=fields,
497
155
  product=product,
498
156
  )
@@ -525,7 +183,7 @@ class GroupsSDK(BaseSDK):
525
183
  hook_ctx=HookContext(
526
184
  config=self.sdk_configuration,
527
185
  base_url=base_url or "",
528
- operation_id="getProductsGroupsByProduct",
186
+ operation_id="listConfigGroupByProduct",
529
187
  oauth2_scopes=[],
530
188
  security_source=get_security_from_env(
531
189
  self.sdk_configuration.security, models.Security
@@ -539,7 +197,7 @@ class GroupsSDK(BaseSDK):
539
197
  response_data: Any = None
540
198
  if utils.match_response(http_res, "200", "application/json"):
541
199
  return unmarshal_json_response(
542
- models.GetProductsGroupsByProductResponse, http_res
200
+ models.ListConfigGroupByProductResponse, http_res
543
201
  )
544
202
  if utils.match_response(http_res, "500", "application/json"):
545
203
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
@@ -553,20 +211,71 @@ class GroupsSDK(BaseSDK):
553
211
 
554
212
  raise errors.APIError("Unexpected response received", http_res)
555
213
 
556
- def delete(
214
+ def create(
557
215
  self,
558
216
  *,
217
+ product: models.CreateConfigGroupByProductProduct,
218
+ config_version: str,
559
219
  id: str,
220
+ cloud: Optional[
221
+ Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
222
+ ] = None,
223
+ deploying_worker_count: Optional[float] = None,
224
+ description: Optional[str] = None,
225
+ estimated_ingest_rate: Optional[float] = None,
226
+ git: Optional[Union[models.Git, models.GitTypedDict]] = None,
227
+ incompatible_worker_count: Optional[float] = None,
228
+ inherits: Optional[str] = None,
229
+ is_fleet: Optional[bool] = None,
230
+ is_search: Optional[bool] = None,
231
+ lookup_deployments: Optional[
232
+ Union[
233
+ List[models.ConfigGroupLookups],
234
+ List[models.ConfigGroupLookupsTypedDict],
235
+ ]
236
+ ] = None,
237
+ max_worker_age: Optional[str] = None,
238
+ name: Optional[str] = None,
239
+ on_prem: Optional[bool] = None,
240
+ provisioned: Optional[bool] = None,
241
+ streamtags: Optional[List[str]] = None,
242
+ tags: Optional[str] = None,
243
+ type_: Optional[models.ConfigGroupType] = None,
244
+ upgrade_version: Optional[str] = None,
245
+ worker_count: Optional[float] = None,
246
+ worker_remote_access: Optional[bool] = None,
560
247
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
561
248
  server_url: Optional[str] = None,
562
249
  timeout_ms: Optional[int] = None,
563
250
  http_headers: Optional[Mapping[str, str]] = None,
564
- ) -> models.DeleteGroupsByIDResponse:
565
- r"""Delete a Worker Group or Edge Fleet
251
+ ) -> models.CreateConfigGroupByProductResponse:
252
+ r"""Create a Worker Group or Edge Fleet for the specified Cribl product
566
253
 
567
- Delete a Fleet or Worker Group
254
+ Create a new Worker Group or Edge Fleet for the specified Cribl product.
568
255
 
569
- :param id: Group ID
256
+ :param product: Name of the Cribl product to add the Worker Group or Edge Fleet to.
257
+ :param config_version:
258
+ :param id:
259
+ :param cloud:
260
+ :param deploying_worker_count:
261
+ :param description:
262
+ :param estimated_ingest_rate:
263
+ :param git:
264
+ :param incompatible_worker_count:
265
+ :param inherits:
266
+ :param is_fleet:
267
+ :param is_search:
268
+ :param lookup_deployments:
269
+ :param max_worker_age:
270
+ :param name:
271
+ :param on_prem:
272
+ :param provisioned:
273
+ :param streamtags:
274
+ :param tags:
275
+ :param type:
276
+ :param upgrade_version:
277
+ :param worker_count:
278
+ :param worker_remote_access:
570
279
  :param retries: Override the default retry configuration for this method
571
280
  :param server_url: Override the default server URL for this method
572
281
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -582,23 +291,54 @@ class GroupsSDK(BaseSDK):
582
291
  else:
583
292
  base_url = self._get_url(base_url, url_variables)
584
293
 
585
- request = models.DeleteGroupsByIDRequest(
586
- id=id,
294
+ request = models.CreateConfigGroupByProductRequest(
295
+ product=product,
296
+ config_group=models.ConfigGroup(
297
+ cloud=utils.get_pydantic_model(
298
+ cloud, Optional[models.ConfigGroupCloud]
299
+ ),
300
+ config_version=config_version,
301
+ deploying_worker_count=deploying_worker_count,
302
+ description=description,
303
+ estimated_ingest_rate=estimated_ingest_rate,
304
+ git=utils.get_pydantic_model(git, Optional[models.Git]),
305
+ id=id,
306
+ incompatible_worker_count=incompatible_worker_count,
307
+ inherits=inherits,
308
+ is_fleet=is_fleet,
309
+ is_search=is_search,
310
+ lookup_deployments=utils.get_pydantic_model(
311
+ lookup_deployments, Optional[List[models.ConfigGroupLookups]]
312
+ ),
313
+ max_worker_age=max_worker_age,
314
+ name=name,
315
+ on_prem=on_prem,
316
+ provisioned=provisioned,
317
+ streamtags=streamtags,
318
+ tags=tags,
319
+ type=type_,
320
+ upgrade_version=upgrade_version,
321
+ worker_count=worker_count,
322
+ worker_remote_access=worker_remote_access,
323
+ ),
587
324
  )
588
325
 
589
326
  req = self._build_request(
590
- method="DELETE",
591
- path="/master/groups/{id}",
327
+ method="POST",
328
+ path="/products/{product}/groups",
592
329
  base_url=base_url,
593
330
  url_variables=url_variables,
594
331
  request=request,
595
- request_body_required=False,
332
+ request_body_required=True,
596
333
  request_has_path_params=True,
597
334
  request_has_query_params=True,
598
335
  user_agent_header="user-agent",
599
336
  accept_header_value="application/json",
600
337
  http_headers=http_headers,
601
338
  security=self.sdk_configuration.security,
339
+ get_serialized_body=lambda: utils.serialize_request_body(
340
+ request.config_group, False, False, "json", models.ConfigGroup
341
+ ),
602
342
  timeout_ms=timeout_ms,
603
343
  )
604
344
 
@@ -614,7 +354,7 @@ class GroupsSDK(BaseSDK):
614
354
  hook_ctx=HookContext(
615
355
  config=self.sdk_configuration,
616
356
  base_url=base_url or "",
617
- operation_id="deleteGroupsById",
357
+ operation_id="createConfigGroupByProduct",
618
358
  oauth2_scopes=[],
619
359
  security_source=get_security_from_env(
620
360
  self.sdk_configuration.security, models.Security
@@ -627,7 +367,9 @@ class GroupsSDK(BaseSDK):
627
367
 
628
368
  response_data: Any = None
629
369
  if utils.match_response(http_res, "200", "application/json"):
630
- return unmarshal_json_response(models.DeleteGroupsByIDResponse, http_res)
370
+ return unmarshal_json_response(
371
+ models.CreateConfigGroupByProductResponse, http_res
372
+ )
631
373
  if utils.match_response(http_res, "500", "application/json"):
632
374
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
633
375
  raise errors.Error(response_data, http_res)
@@ -640,20 +382,71 @@ class GroupsSDK(BaseSDK):
640
382
 
641
383
  raise errors.APIError("Unexpected response received", http_res)
642
384
 
643
- async def delete_async(
385
+ async def create_async(
644
386
  self,
645
387
  *,
388
+ product: models.CreateConfigGroupByProductProduct,
389
+ config_version: str,
646
390
  id: str,
391
+ cloud: Optional[
392
+ Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
393
+ ] = None,
394
+ deploying_worker_count: Optional[float] = None,
395
+ description: Optional[str] = None,
396
+ estimated_ingest_rate: Optional[float] = None,
397
+ git: Optional[Union[models.Git, models.GitTypedDict]] = None,
398
+ incompatible_worker_count: Optional[float] = None,
399
+ inherits: Optional[str] = None,
400
+ is_fleet: Optional[bool] = None,
401
+ is_search: Optional[bool] = None,
402
+ lookup_deployments: Optional[
403
+ Union[
404
+ List[models.ConfigGroupLookups],
405
+ List[models.ConfigGroupLookupsTypedDict],
406
+ ]
407
+ ] = None,
408
+ max_worker_age: Optional[str] = None,
409
+ name: Optional[str] = None,
410
+ on_prem: Optional[bool] = None,
411
+ provisioned: Optional[bool] = None,
412
+ streamtags: Optional[List[str]] = None,
413
+ tags: Optional[str] = None,
414
+ type_: Optional[models.ConfigGroupType] = None,
415
+ upgrade_version: Optional[str] = None,
416
+ worker_count: Optional[float] = None,
417
+ worker_remote_access: Optional[bool] = None,
647
418
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
648
419
  server_url: Optional[str] = None,
649
420
  timeout_ms: Optional[int] = None,
650
421
  http_headers: Optional[Mapping[str, str]] = None,
651
- ) -> models.DeleteGroupsByIDResponse:
652
- r"""Delete a Worker Group or Edge Fleet
422
+ ) -> models.CreateConfigGroupByProductResponse:
423
+ r"""Create a Worker Group or Edge Fleet for the specified Cribl product
653
424
 
654
- Delete a Fleet or Worker Group
425
+ Create a new Worker Group or Edge Fleet for the specified Cribl product.
655
426
 
656
- :param id: Group ID
427
+ :param product: Name of the Cribl product to add the Worker Group or Edge Fleet to.
428
+ :param config_version:
429
+ :param id:
430
+ :param cloud:
431
+ :param deploying_worker_count:
432
+ :param description:
433
+ :param estimated_ingest_rate:
434
+ :param git:
435
+ :param incompatible_worker_count:
436
+ :param inherits:
437
+ :param is_fleet:
438
+ :param is_search:
439
+ :param lookup_deployments:
440
+ :param max_worker_age:
441
+ :param name:
442
+ :param on_prem:
443
+ :param provisioned:
444
+ :param streamtags:
445
+ :param tags:
446
+ :param type:
447
+ :param upgrade_version:
448
+ :param worker_count:
449
+ :param worker_remote_access:
657
450
  :param retries: Override the default retry configuration for this method
658
451
  :param server_url: Override the default server URL for this method
659
452
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -669,23 +462,54 @@ class GroupsSDK(BaseSDK):
669
462
  else:
670
463
  base_url = self._get_url(base_url, url_variables)
671
464
 
672
- request = models.DeleteGroupsByIDRequest(
673
- id=id,
465
+ request = models.CreateConfigGroupByProductRequest(
466
+ product=product,
467
+ config_group=models.ConfigGroup(
468
+ cloud=utils.get_pydantic_model(
469
+ cloud, Optional[models.ConfigGroupCloud]
470
+ ),
471
+ config_version=config_version,
472
+ deploying_worker_count=deploying_worker_count,
473
+ description=description,
474
+ estimated_ingest_rate=estimated_ingest_rate,
475
+ git=utils.get_pydantic_model(git, Optional[models.Git]),
476
+ id=id,
477
+ incompatible_worker_count=incompatible_worker_count,
478
+ inherits=inherits,
479
+ is_fleet=is_fleet,
480
+ is_search=is_search,
481
+ lookup_deployments=utils.get_pydantic_model(
482
+ lookup_deployments, Optional[List[models.ConfigGroupLookups]]
483
+ ),
484
+ max_worker_age=max_worker_age,
485
+ name=name,
486
+ on_prem=on_prem,
487
+ provisioned=provisioned,
488
+ streamtags=streamtags,
489
+ tags=tags,
490
+ type=type_,
491
+ upgrade_version=upgrade_version,
492
+ worker_count=worker_count,
493
+ worker_remote_access=worker_remote_access,
494
+ ),
674
495
  )
675
496
 
676
497
  req = self._build_request_async(
677
- method="DELETE",
678
- path="/master/groups/{id}",
498
+ method="POST",
499
+ path="/products/{product}/groups",
679
500
  base_url=base_url,
680
501
  url_variables=url_variables,
681
502
  request=request,
682
- request_body_required=False,
503
+ request_body_required=True,
683
504
  request_has_path_params=True,
684
505
  request_has_query_params=True,
685
506
  user_agent_header="user-agent",
686
507
  accept_header_value="application/json",
687
508
  http_headers=http_headers,
688
509
  security=self.sdk_configuration.security,
510
+ get_serialized_body=lambda: utils.serialize_request_body(
511
+ request.config_group, False, False, "json", models.ConfigGroup
512
+ ),
689
513
  timeout_ms=timeout_ms,
690
514
  )
691
515
 
@@ -701,7 +525,7 @@ class GroupsSDK(BaseSDK):
701
525
  hook_ctx=HookContext(
702
526
  config=self.sdk_configuration,
703
527
  base_url=base_url or "",
704
- operation_id="deleteGroupsById",
528
+ operation_id="createConfigGroupByProduct",
705
529
  oauth2_scopes=[],
706
530
  security_source=get_security_from_env(
707
531
  self.sdk_configuration.security, models.Security
@@ -714,7 +538,9 @@ class GroupsSDK(BaseSDK):
714
538
 
715
539
  response_data: Any = None
716
540
  if utils.match_response(http_res, "200", "application/json"):
717
- return unmarshal_json_response(models.DeleteGroupsByIDResponse, http_res)
541
+ return unmarshal_json_response(
542
+ models.CreateConfigGroupByProductResponse, http_res
543
+ )
718
544
  if utils.match_response(http_res, "500", "application/json"):
719
545
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
720
546
  raise errors.Error(response_data, http_res)
@@ -730,19 +556,21 @@ class GroupsSDK(BaseSDK):
730
556
  def get(
731
557
  self,
732
558
  *,
559
+ product: models.GetConfigGroupByProductAndIDProduct,
733
560
  id: str,
734
561
  fields: Optional[str] = None,
735
562
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
736
563
  server_url: Optional[str] = None,
737
564
  timeout_ms: Optional[int] = None,
738
565
  http_headers: Optional[Mapping[str, str]] = None,
739
- ) -> models.GetGroupsByIDResponse:
740
- r"""Retrieve a Worker Group or Edge Fleet
566
+ ) -> models.GetConfigGroupByProductAndIDResponse:
567
+ r"""Get a Worker Group or Edge Fleet
741
568
 
742
- Get a specific ConfigGroup object
569
+ Get the specified Worker Group or Edge Fleet.
743
570
 
744
- :param id: Group id
745
- :param fields: fields to add to results: git.commit, git.localChanges, git.log
571
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
572
+ :param id: The <code>id</code> of the Worker Group or Edge Fleet to get.
573
+ :param fields: Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>.
746
574
  :param retries: Override the default retry configuration for this method
747
575
  :param server_url: Override the default server URL for this method
748
576
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -758,14 +586,15 @@ class GroupsSDK(BaseSDK):
758
586
  else:
759
587
  base_url = self._get_url(base_url, url_variables)
760
588
 
761
- request = models.GetGroupsByIDRequest(
589
+ request = models.GetConfigGroupByProductAndIDRequest(
590
+ product=product,
762
591
  id=id,
763
592
  fields=fields,
764
593
  )
765
594
 
766
595
  req = self._build_request(
767
596
  method="GET",
768
- path="/master/groups/{id}",
597
+ path="/products/{product}/groups/{id}",
769
598
  base_url=base_url,
770
599
  url_variables=url_variables,
771
600
  request=request,
@@ -791,7 +620,7 @@ class GroupsSDK(BaseSDK):
791
620
  hook_ctx=HookContext(
792
621
  config=self.sdk_configuration,
793
622
  base_url=base_url or "",
794
- operation_id="getGroupsById",
623
+ operation_id="getConfigGroupByProductAndId",
795
624
  oauth2_scopes=[],
796
625
  security_source=get_security_from_env(
797
626
  self.sdk_configuration.security, models.Security
@@ -804,7 +633,9 @@ class GroupsSDK(BaseSDK):
804
633
 
805
634
  response_data: Any = None
806
635
  if utils.match_response(http_res, "200", "application/json"):
807
- return unmarshal_json_response(models.GetGroupsByIDResponse, http_res)
636
+ return unmarshal_json_response(
637
+ models.GetConfigGroupByProductAndIDResponse, http_res
638
+ )
808
639
  if utils.match_response(http_res, "500", "application/json"):
809
640
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
810
641
  raise errors.Error(response_data, http_res)
@@ -820,19 +651,21 @@ class GroupsSDK(BaseSDK):
820
651
  async def get_async(
821
652
  self,
822
653
  *,
654
+ product: models.GetConfigGroupByProductAndIDProduct,
823
655
  id: str,
824
656
  fields: Optional[str] = None,
825
657
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
826
658
  server_url: Optional[str] = None,
827
659
  timeout_ms: Optional[int] = None,
828
660
  http_headers: Optional[Mapping[str, str]] = None,
829
- ) -> models.GetGroupsByIDResponse:
830
- r"""Retrieve a Worker Group or Edge Fleet
661
+ ) -> models.GetConfigGroupByProductAndIDResponse:
662
+ r"""Get a Worker Group or Edge Fleet
831
663
 
832
- Get a specific ConfigGroup object
664
+ Get the specified Worker Group or Edge Fleet.
833
665
 
834
- :param id: Group id
835
- :param fields: fields to add to results: git.commit, git.localChanges, git.log
666
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
667
+ :param id: The <code>id</code> of the Worker Group or Edge Fleet to get.
668
+ :param fields: Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>.
836
669
  :param retries: Override the default retry configuration for this method
837
670
  :param server_url: Override the default server URL for this method
838
671
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -848,14 +681,15 @@ class GroupsSDK(BaseSDK):
848
681
  else:
849
682
  base_url = self._get_url(base_url, url_variables)
850
683
 
851
- request = models.GetGroupsByIDRequest(
684
+ request = models.GetConfigGroupByProductAndIDRequest(
685
+ product=product,
852
686
  id=id,
853
687
  fields=fields,
854
688
  )
855
689
 
856
690
  req = self._build_request_async(
857
691
  method="GET",
858
- path="/master/groups/{id}",
692
+ path="/products/{product}/groups/{id}",
859
693
  base_url=base_url,
860
694
  url_variables=url_variables,
861
695
  request=request,
@@ -881,7 +715,7 @@ class GroupsSDK(BaseSDK):
881
715
  hook_ctx=HookContext(
882
716
  config=self.sdk_configuration,
883
717
  base_url=base_url or "",
884
- operation_id="getGroupsById",
718
+ operation_id="getConfigGroupByProductAndId",
885
719
  oauth2_scopes=[],
886
720
  security_source=get_security_from_env(
887
721
  self.sdk_configuration.security, models.Security
@@ -894,7 +728,9 @@ class GroupsSDK(BaseSDK):
894
728
 
895
729
  response_data: Any = None
896
730
  if utils.match_response(http_res, "200", "application/json"):
897
- return unmarshal_json_response(models.GetGroupsByIDResponse, http_res)
731
+ return unmarshal_json_response(
732
+ models.GetConfigGroupByProductAndIDResponse, http_res
733
+ )
898
734
  if utils.match_response(http_res, "500", "application/json"):
899
735
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
900
736
  raise errors.Error(response_data, http_res)
@@ -910,6 +746,7 @@ class GroupsSDK(BaseSDK):
910
746
  def update(
911
747
  self,
912
748
  *,
749
+ product: models.UpdateConfigGroupByProductAndIDProduct,
913
750
  id_param: str,
914
751
  config_version: str,
915
752
  id: str,
@@ -944,12 +781,13 @@ class GroupsSDK(BaseSDK):
944
781
  server_url: Optional[str] = None,
945
782
  timeout_ms: Optional[int] = None,
946
783
  http_headers: Optional[Mapping[str, str]] = None,
947
- ) -> models.UpdateGroupsByIDResponse:
784
+ ) -> models.UpdateConfigGroupByProductAndIDResponse:
948
785
  r"""Update a Worker Group or Edge Fleet
949
786
 
950
- Update a Fleet or Worker Group
787
+ Update the specified Worker Group or Edge Fleet.
951
788
 
952
- :param id_param: Group ID
789
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
790
+ :param id_param: The <code>id</code> of the Worker Group or Edge Fleet to update.
953
791
  :param config_version:
954
792
  :param id:
955
793
  :param cloud:
@@ -987,7 +825,8 @@ class GroupsSDK(BaseSDK):
987
825
  else:
988
826
  base_url = self._get_url(base_url, url_variables)
989
827
 
990
- request = models.UpdateGroupsByIDRequest(
828
+ request = models.UpdateConfigGroupByProductAndIDRequest(
829
+ product=product,
991
830
  id_param=id_param,
992
831
  config_group=models.ConfigGroup(
993
832
  cloud=utils.get_pydantic_model(
@@ -1021,7 +860,7 @@ class GroupsSDK(BaseSDK):
1021
860
 
1022
861
  req = self._build_request(
1023
862
  method="PATCH",
1024
- path="/master/groups/{id}",
863
+ path="/products/{product}/groups/{id}",
1025
864
  base_url=base_url,
1026
865
  url_variables=url_variables,
1027
866
  request=request,
@@ -1050,7 +889,7 @@ class GroupsSDK(BaseSDK):
1050
889
  hook_ctx=HookContext(
1051
890
  config=self.sdk_configuration,
1052
891
  base_url=base_url or "",
1053
- operation_id="updateGroupsById",
892
+ operation_id="updateConfigGroupByProductAndId",
1054
893
  oauth2_scopes=[],
1055
894
  security_source=get_security_from_env(
1056
895
  self.sdk_configuration.security, models.Security
@@ -1063,7 +902,9 @@ class GroupsSDK(BaseSDK):
1063
902
 
1064
903
  response_data: Any = None
1065
904
  if utils.match_response(http_res, "200", "application/json"):
1066
- return unmarshal_json_response(models.UpdateGroupsByIDResponse, http_res)
905
+ return unmarshal_json_response(
906
+ models.UpdateConfigGroupByProductAndIDResponse, http_res
907
+ )
1067
908
  if utils.match_response(http_res, "500", "application/json"):
1068
909
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1069
910
  raise errors.Error(response_data, http_res)
@@ -1079,6 +920,7 @@ class GroupsSDK(BaseSDK):
1079
920
  async def update_async(
1080
921
  self,
1081
922
  *,
923
+ product: models.UpdateConfigGroupByProductAndIDProduct,
1082
924
  id_param: str,
1083
925
  config_version: str,
1084
926
  id: str,
@@ -1113,12 +955,13 @@ class GroupsSDK(BaseSDK):
1113
955
  server_url: Optional[str] = None,
1114
956
  timeout_ms: Optional[int] = None,
1115
957
  http_headers: Optional[Mapping[str, str]] = None,
1116
- ) -> models.UpdateGroupsByIDResponse:
958
+ ) -> models.UpdateConfigGroupByProductAndIDResponse:
1117
959
  r"""Update a Worker Group or Edge Fleet
1118
960
 
1119
- Update a Fleet or Worker Group
961
+ Update the specified Worker Group or Edge Fleet.
1120
962
 
1121
- :param id_param: Group ID
963
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
964
+ :param id_param: The <code>id</code> of the Worker Group or Edge Fleet to update.
1122
965
  :param config_version:
1123
966
  :param id:
1124
967
  :param cloud:
@@ -1156,7 +999,8 @@ class GroupsSDK(BaseSDK):
1156
999
  else:
1157
1000
  base_url = self._get_url(base_url, url_variables)
1158
1001
 
1159
- request = models.UpdateGroupsByIDRequest(
1002
+ request = models.UpdateConfigGroupByProductAndIDRequest(
1003
+ product=product,
1160
1004
  id_param=id_param,
1161
1005
  config_group=models.ConfigGroup(
1162
1006
  cloud=utils.get_pydantic_model(
@@ -1190,7 +1034,7 @@ class GroupsSDK(BaseSDK):
1190
1034
 
1191
1035
  req = self._build_request_async(
1192
1036
  method="PATCH",
1193
- path="/master/groups/{id}",
1037
+ path="/products/{product}/groups/{id}",
1194
1038
  base_url=base_url,
1195
1039
  url_variables=url_variables,
1196
1040
  request=request,
@@ -1219,7 +1063,191 @@ class GroupsSDK(BaseSDK):
1219
1063
  hook_ctx=HookContext(
1220
1064
  config=self.sdk_configuration,
1221
1065
  base_url=base_url or "",
1222
- operation_id="updateGroupsById",
1066
+ operation_id="updateConfigGroupByProductAndId",
1067
+ oauth2_scopes=[],
1068
+ security_source=get_security_from_env(
1069
+ self.sdk_configuration.security, models.Security
1070
+ ),
1071
+ ),
1072
+ request=req,
1073
+ error_status_codes=["401", "4XX", "500", "5XX"],
1074
+ retry_config=retry_config,
1075
+ )
1076
+
1077
+ response_data: Any = None
1078
+ if utils.match_response(http_res, "200", "application/json"):
1079
+ return unmarshal_json_response(
1080
+ models.UpdateConfigGroupByProductAndIDResponse, http_res
1081
+ )
1082
+ if utils.match_response(http_res, "500", "application/json"):
1083
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
1084
+ raise errors.Error(response_data, http_res)
1085
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
1086
+ http_res_text = await utils.stream_to_text_async(http_res)
1087
+ raise errors.APIError("API error occurred", http_res, http_res_text)
1088
+ if utils.match_response(http_res, "5XX", "*"):
1089
+ http_res_text = await utils.stream_to_text_async(http_res)
1090
+ raise errors.APIError("API error occurred", http_res, http_res_text)
1091
+
1092
+ raise errors.APIError("Unexpected response received", http_res)
1093
+
1094
+ def delete(
1095
+ self,
1096
+ *,
1097
+ product: models.DeleteConfigGroupByProductAndIDProduct,
1098
+ id: str,
1099
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
1100
+ server_url: Optional[str] = None,
1101
+ timeout_ms: Optional[int] = None,
1102
+ http_headers: Optional[Mapping[str, str]] = None,
1103
+ ) -> models.DeleteConfigGroupByProductAndIDResponse:
1104
+ r"""Delete a Worker Group or Edge Fleet
1105
+
1106
+ Delete the specified Worker Group or Edge Fleet.
1107
+
1108
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1109
+ :param id: The <code>id</code> of the Worker Group or Edge Fleet to delete.
1110
+ :param retries: Override the default retry configuration for this method
1111
+ :param server_url: Override the default server URL for this method
1112
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1113
+ :param http_headers: Additional headers to set or replace on requests.
1114
+ """
1115
+ base_url = None
1116
+ url_variables = None
1117
+ if timeout_ms is None:
1118
+ timeout_ms = self.sdk_configuration.timeout_ms
1119
+
1120
+ if server_url is not None:
1121
+ base_url = server_url
1122
+ else:
1123
+ base_url = self._get_url(base_url, url_variables)
1124
+
1125
+ request = models.DeleteConfigGroupByProductAndIDRequest(
1126
+ product=product,
1127
+ id=id,
1128
+ )
1129
+
1130
+ req = self._build_request(
1131
+ method="DELETE",
1132
+ path="/products/{product}/groups/{id}",
1133
+ base_url=base_url,
1134
+ url_variables=url_variables,
1135
+ request=request,
1136
+ request_body_required=False,
1137
+ request_has_path_params=True,
1138
+ request_has_query_params=True,
1139
+ user_agent_header="user-agent",
1140
+ accept_header_value="application/json",
1141
+ http_headers=http_headers,
1142
+ security=self.sdk_configuration.security,
1143
+ timeout_ms=timeout_ms,
1144
+ )
1145
+
1146
+ if retries == UNSET:
1147
+ if self.sdk_configuration.retry_config is not UNSET:
1148
+ retries = self.sdk_configuration.retry_config
1149
+
1150
+ retry_config = None
1151
+ if isinstance(retries, utils.RetryConfig):
1152
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
1153
+
1154
+ http_res = self.do_request(
1155
+ hook_ctx=HookContext(
1156
+ config=self.sdk_configuration,
1157
+ base_url=base_url or "",
1158
+ operation_id="deleteConfigGroupByProductAndId",
1159
+ oauth2_scopes=[],
1160
+ security_source=get_security_from_env(
1161
+ self.sdk_configuration.security, models.Security
1162
+ ),
1163
+ ),
1164
+ request=req,
1165
+ error_status_codes=["401", "4XX", "500", "5XX"],
1166
+ retry_config=retry_config,
1167
+ )
1168
+
1169
+ response_data: Any = None
1170
+ if utils.match_response(http_res, "200", "application/json"):
1171
+ return unmarshal_json_response(
1172
+ models.DeleteConfigGroupByProductAndIDResponse, http_res
1173
+ )
1174
+ if utils.match_response(http_res, "500", "application/json"):
1175
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
1176
+ raise errors.Error(response_data, http_res)
1177
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
1178
+ http_res_text = utils.stream_to_text(http_res)
1179
+ raise errors.APIError("API error occurred", http_res, http_res_text)
1180
+ if utils.match_response(http_res, "5XX", "*"):
1181
+ http_res_text = utils.stream_to_text(http_res)
1182
+ raise errors.APIError("API error occurred", http_res, http_res_text)
1183
+
1184
+ raise errors.APIError("Unexpected response received", http_res)
1185
+
1186
+ async def delete_async(
1187
+ self,
1188
+ *,
1189
+ product: models.DeleteConfigGroupByProductAndIDProduct,
1190
+ id: str,
1191
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
1192
+ server_url: Optional[str] = None,
1193
+ timeout_ms: Optional[int] = None,
1194
+ http_headers: Optional[Mapping[str, str]] = None,
1195
+ ) -> models.DeleteConfigGroupByProductAndIDResponse:
1196
+ r"""Delete a Worker Group or Edge Fleet
1197
+
1198
+ Delete the specified Worker Group or Edge Fleet.
1199
+
1200
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1201
+ :param id: The <code>id</code> of the Worker Group or Edge Fleet to delete.
1202
+ :param retries: Override the default retry configuration for this method
1203
+ :param server_url: Override the default server URL for this method
1204
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1205
+ :param http_headers: Additional headers to set or replace on requests.
1206
+ """
1207
+ base_url = None
1208
+ url_variables = None
1209
+ if timeout_ms is None:
1210
+ timeout_ms = self.sdk_configuration.timeout_ms
1211
+
1212
+ if server_url is not None:
1213
+ base_url = server_url
1214
+ else:
1215
+ base_url = self._get_url(base_url, url_variables)
1216
+
1217
+ request = models.DeleteConfigGroupByProductAndIDRequest(
1218
+ product=product,
1219
+ id=id,
1220
+ )
1221
+
1222
+ req = self._build_request_async(
1223
+ method="DELETE",
1224
+ path="/products/{product}/groups/{id}",
1225
+ base_url=base_url,
1226
+ url_variables=url_variables,
1227
+ request=request,
1228
+ request_body_required=False,
1229
+ request_has_path_params=True,
1230
+ request_has_query_params=True,
1231
+ user_agent_header="user-agent",
1232
+ accept_header_value="application/json",
1233
+ http_headers=http_headers,
1234
+ security=self.sdk_configuration.security,
1235
+ timeout_ms=timeout_ms,
1236
+ )
1237
+
1238
+ if retries == UNSET:
1239
+ if self.sdk_configuration.retry_config is not UNSET:
1240
+ retries = self.sdk_configuration.retry_config
1241
+
1242
+ retry_config = None
1243
+ if isinstance(retries, utils.RetryConfig):
1244
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
1245
+
1246
+ http_res = await self.do_request_async(
1247
+ hook_ctx=HookContext(
1248
+ config=self.sdk_configuration,
1249
+ base_url=base_url or "",
1250
+ operation_id="deleteConfigGroupByProductAndId",
1223
1251
  oauth2_scopes=[],
1224
1252
  security_source=get_security_from_env(
1225
1253
  self.sdk_configuration.security, models.Security
@@ -1232,7 +1260,9 @@ class GroupsSDK(BaseSDK):
1232
1260
 
1233
1261
  response_data: Any = None
1234
1262
  if utils.match_response(http_res, "200", "application/json"):
1235
- return unmarshal_json_response(models.UpdateGroupsByIDResponse, http_res)
1263
+ return unmarshal_json_response(
1264
+ models.DeleteConfigGroupByProductAndIDResponse, http_res
1265
+ )
1236
1266
  if utils.match_response(http_res, "500", "application/json"):
1237
1267
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1238
1268
  raise errors.Error(response_data, http_res)
@@ -1248,6 +1278,7 @@ class GroupsSDK(BaseSDK):
1248
1278
  def deploy(
1249
1279
  self,
1250
1280
  *,
1281
+ product: models.UpdateConfigGroupDeployByProductAndIDProduct,
1251
1282
  id: str,
1252
1283
  version: str,
1253
1284
  lookups: Optional[
@@ -1260,12 +1291,13 @@ class GroupsSDK(BaseSDK):
1260
1291
  server_url: Optional[str] = None,
1261
1292
  timeout_ms: Optional[int] = None,
1262
1293
  http_headers: Optional[Mapping[str, str]] = None,
1263
- ) -> models.UpdateGroupsDeployByIDResponse:
1294
+ ) -> models.UpdateConfigGroupDeployByProductAndIDResponse:
1264
1295
  r"""Deploy commits to a Worker Group or Edge Fleet
1265
1296
 
1266
- Deploy commits for a Fleet or Worker Group
1297
+ Deploy commits to the specified Worker Group or Edge Fleet.
1267
1298
 
1268
- :param id: Group ID
1299
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1300
+ :param id: The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment.
1269
1301
  :param version:
1270
1302
  :param lookups:
1271
1303
  :param retries: Override the default retry configuration for this method
@@ -1283,7 +1315,8 @@ class GroupsSDK(BaseSDK):
1283
1315
  else:
1284
1316
  base_url = self._get_url(base_url, url_variables)
1285
1317
 
1286
- request = models.UpdateGroupsDeployByIDRequest(
1318
+ request = models.UpdateConfigGroupDeployByProductAndIDRequest(
1319
+ product=product,
1287
1320
  id=id,
1288
1321
  deploy_request=models.DeployRequest(
1289
1322
  lookups=utils.get_pydantic_model(
@@ -1295,7 +1328,7 @@ class GroupsSDK(BaseSDK):
1295
1328
 
1296
1329
  req = self._build_request(
1297
1330
  method="PATCH",
1298
- path="/master/groups/{id}/deploy",
1331
+ path="/products/{product}/groups/{id}/deploy",
1299
1332
  base_url=base_url,
1300
1333
  url_variables=url_variables,
1301
1334
  request=request,
@@ -1324,7 +1357,7 @@ class GroupsSDK(BaseSDK):
1324
1357
  hook_ctx=HookContext(
1325
1358
  config=self.sdk_configuration,
1326
1359
  base_url=base_url or "",
1327
- operation_id="updateGroupsDeployById",
1360
+ operation_id="updateConfigGroupDeployByProductAndId",
1328
1361
  oauth2_scopes=[],
1329
1362
  security_source=get_security_from_env(
1330
1363
  self.sdk_configuration.security, models.Security
@@ -1338,7 +1371,7 @@ class GroupsSDK(BaseSDK):
1338
1371
  response_data: Any = None
1339
1372
  if utils.match_response(http_res, "200", "application/json"):
1340
1373
  return unmarshal_json_response(
1341
- models.UpdateGroupsDeployByIDResponse, http_res
1374
+ models.UpdateConfigGroupDeployByProductAndIDResponse, http_res
1342
1375
  )
1343
1376
  if utils.match_response(http_res, "500", "application/json"):
1344
1377
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
@@ -1355,6 +1388,7 @@ class GroupsSDK(BaseSDK):
1355
1388
  async def deploy_async(
1356
1389
  self,
1357
1390
  *,
1391
+ product: models.UpdateConfigGroupDeployByProductAndIDProduct,
1358
1392
  id: str,
1359
1393
  version: str,
1360
1394
  lookups: Optional[
@@ -1367,12 +1401,13 @@ class GroupsSDK(BaseSDK):
1367
1401
  server_url: Optional[str] = None,
1368
1402
  timeout_ms: Optional[int] = None,
1369
1403
  http_headers: Optional[Mapping[str, str]] = None,
1370
- ) -> models.UpdateGroupsDeployByIDResponse:
1404
+ ) -> models.UpdateConfigGroupDeployByProductAndIDResponse:
1371
1405
  r"""Deploy commits to a Worker Group or Edge Fleet
1372
1406
 
1373
- Deploy commits for a Fleet or Worker Group
1407
+ Deploy commits to the specified Worker Group or Edge Fleet.
1374
1408
 
1375
- :param id: Group ID
1409
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1410
+ :param id: The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment.
1376
1411
  :param version:
1377
1412
  :param lookups:
1378
1413
  :param retries: Override the default retry configuration for this method
@@ -1390,7 +1425,8 @@ class GroupsSDK(BaseSDK):
1390
1425
  else:
1391
1426
  base_url = self._get_url(base_url, url_variables)
1392
1427
 
1393
- request = models.UpdateGroupsDeployByIDRequest(
1428
+ request = models.UpdateConfigGroupDeployByProductAndIDRequest(
1429
+ product=product,
1394
1430
  id=id,
1395
1431
  deploy_request=models.DeployRequest(
1396
1432
  lookups=utils.get_pydantic_model(
@@ -1402,7 +1438,7 @@ class GroupsSDK(BaseSDK):
1402
1438
 
1403
1439
  req = self._build_request_async(
1404
1440
  method="PATCH",
1405
- path="/master/groups/{id}/deploy",
1441
+ path="/products/{product}/groups/{id}/deploy",
1406
1442
  base_url=base_url,
1407
1443
  url_variables=url_variables,
1408
1444
  request=request,
@@ -1431,7 +1467,7 @@ class GroupsSDK(BaseSDK):
1431
1467
  hook_ctx=HookContext(
1432
1468
  config=self.sdk_configuration,
1433
1469
  base_url=base_url or "",
1434
- operation_id="updateGroupsDeployById",
1470
+ operation_id="updateConfigGroupDeployByProductAndId",
1435
1471
  oauth2_scopes=[],
1436
1472
  security_source=get_security_from_env(
1437
1473
  self.sdk_configuration.security, models.Security
@@ -1445,7 +1481,7 @@ class GroupsSDK(BaseSDK):
1445
1481
  response_data: Any = None
1446
1482
  if utils.match_response(http_res, "200", "application/json"):
1447
1483
  return unmarshal_json_response(
1448
- models.UpdateGroupsDeployByIDResponse, http_res
1484
+ models.UpdateConfigGroupDeployByProductAndIDResponse, http_res
1449
1485
  )
1450
1486
  if utils.match_response(http_res, "500", "application/json"):
1451
1487
  response_data = unmarshal_json_response(errors.ErrorData, http_res)