cribl-control-plane 0.0.29__py3-none-any.whl → 0.0.31__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.
- cribl_control_plane/_version.py +3 -3
- cribl_control_plane/acl.py +30 -20
- cribl_control_plane/commits.py +180 -0
- cribl_control_plane/configs_versions.py +22 -16
- cribl_control_plane/groups_sdk.py +464 -428
- cribl_control_plane/models/__init__.py +206 -169
- cribl_control_plane/models/{createproductsgroupsbyproductop.py → createconfiggroupbyproductop.py} +10 -10
- cribl_control_plane/models/createroutesappendbyidop.py +6 -5
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +53 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +78 -0
- cribl_control_plane/models/{getproductsgroupsaclteamsbyproductandidop.py → getconfiggroupaclteamsbyproductandidop.py} +15 -15
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +65 -0
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +52 -0
- cribl_control_plane/models/{getsummaryworkersop.py → getmasterworkerentryop.py} +4 -4
- cribl_control_plane/models/getversionop.py +46 -0
- cribl_control_plane/models/gitcommitsummary.py +3 -3
- cribl_control_plane/models/gitlogresult.py +33 -0
- cribl_control_plane/models/{getproductsgroupsbyproductop.py → listconfiggroupbyproductop.py} +12 -12
- cribl_control_plane/models/{getworkersop.py → listmasterworkerentryop.py} +4 -4
- cribl_control_plane/models/{updategroupsbyidop.py → updateconfiggroupbyproductandidop.py} +22 -6
- cribl_control_plane/models/{updategroupsdeploybyidop.py → updateconfiggroupdeploybyproductandidop.py} +22 -6
- cribl_control_plane/nodes.py +70 -62
- cribl_control_plane/teams.py +20 -20
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.31.dist-info}/METADATA +10 -9
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.31.dist-info}/RECORD +26 -24
- cribl_control_plane/models/deletegroupsbyidop.py +0 -37
- cribl_control_plane/models/getgroupsaclbyidop.py +0 -63
- cribl_control_plane/models/getgroupsbyidop.py +0 -49
- cribl_control_plane/models/getgroupsconfigversionbyidop.py +0 -36
- {cribl_control_plane-0.0.29.dist-info → cribl_control_plane-0.0.31.dist-info}/WHEEL +0 -0
cribl_control_plane/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "cribl-control-plane"
|
|
6
|
-
__version__: str = "0.0.
|
|
7
|
-
__openapi_doc_version__: str = "4.14.0-alpha.
|
|
6
|
+
__version__: str = "0.0.31"
|
|
7
|
+
__openapi_doc_version__: str = "4.14.0-alpha.1755671365329-001b451c"
|
|
8
8
|
__gen_version__: str = "2.684.0"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.0.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.0.31 2.684.0 4.14.0-alpha.1755671365329-001b451c cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
cribl_control_plane/acl.py
CHANGED
|
@@ -25,19 +25,21 @@ class ACL(BaseSDK):
|
|
|
25
25
|
def get(
|
|
26
26
|
self,
|
|
27
27
|
*,
|
|
28
|
+
product: models.GetConfigGroupACLByProductAndIDProduct,
|
|
28
29
|
id: str,
|
|
29
|
-
type_: Optional[models.
|
|
30
|
+
type_: Optional[models.GetConfigGroupACLByProductAndIDType] = None,
|
|
30
31
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
31
32
|
server_url: Optional[str] = None,
|
|
32
33
|
timeout_ms: Optional[int] = None,
|
|
33
34
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
34
|
-
) -> models.
|
|
35
|
-
r"""
|
|
35
|
+
) -> models.GetConfigGroupACLByProductAndIDResponse:
|
|
36
|
+
r"""Get the Access Control List for a Worker Group or Edge Fleet
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
Get the Access Control List (ACL) for the specified Worker Group or Edge Fleet.
|
|
38
39
|
|
|
39
|
-
:param
|
|
40
|
-
:param
|
|
40
|
+
:param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
|
|
41
|
+
:param id: The <code>id</code> of the Worker Group or Edge Fleet to get the ACL for.
|
|
42
|
+
:param type: Filter for limiting the response to ACL entries for the specified RBAC resource type.
|
|
41
43
|
:param retries: Override the default retry configuration for this method
|
|
42
44
|
:param server_url: Override the default server URL for this method
|
|
43
45
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -53,14 +55,15 @@ class ACL(BaseSDK):
|
|
|
53
55
|
else:
|
|
54
56
|
base_url = self._get_url(base_url, url_variables)
|
|
55
57
|
|
|
56
|
-
request = models.
|
|
58
|
+
request = models.GetConfigGroupACLByProductAndIDRequest(
|
|
59
|
+
product=product,
|
|
57
60
|
id=id,
|
|
58
61
|
type=type_,
|
|
59
62
|
)
|
|
60
63
|
|
|
61
64
|
req = self._build_request(
|
|
62
65
|
method="GET",
|
|
63
|
-
path="/
|
|
66
|
+
path="/products/{product}/groups/{id}/acl",
|
|
64
67
|
base_url=base_url,
|
|
65
68
|
url_variables=url_variables,
|
|
66
69
|
request=request,
|
|
@@ -86,7 +89,7 @@ class ACL(BaseSDK):
|
|
|
86
89
|
hook_ctx=HookContext(
|
|
87
90
|
config=self.sdk_configuration,
|
|
88
91
|
base_url=base_url or "",
|
|
89
|
-
operation_id="
|
|
92
|
+
operation_id="getConfigGroupAclByProductAndId",
|
|
90
93
|
oauth2_scopes=[],
|
|
91
94
|
security_source=get_security_from_env(
|
|
92
95
|
self.sdk_configuration.security, models.Security
|
|
@@ -99,7 +102,9 @@ class ACL(BaseSDK):
|
|
|
99
102
|
|
|
100
103
|
response_data: Any = None
|
|
101
104
|
if utils.match_response(http_res, "200", "application/json"):
|
|
102
|
-
return unmarshal_json_response(
|
|
105
|
+
return unmarshal_json_response(
|
|
106
|
+
models.GetConfigGroupACLByProductAndIDResponse, http_res
|
|
107
|
+
)
|
|
103
108
|
if utils.match_response(http_res, "500", "application/json"):
|
|
104
109
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
105
110
|
raise errors.Error(response_data, http_res)
|
|
@@ -115,19 +120,21 @@ class ACL(BaseSDK):
|
|
|
115
120
|
async def get_async(
|
|
116
121
|
self,
|
|
117
122
|
*,
|
|
123
|
+
product: models.GetConfigGroupACLByProductAndIDProduct,
|
|
118
124
|
id: str,
|
|
119
|
-
type_: Optional[models.
|
|
125
|
+
type_: Optional[models.GetConfigGroupACLByProductAndIDType] = None,
|
|
120
126
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
121
127
|
server_url: Optional[str] = None,
|
|
122
128
|
timeout_ms: Optional[int] = None,
|
|
123
129
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
124
|
-
) -> models.
|
|
125
|
-
r"""
|
|
130
|
+
) -> models.GetConfigGroupACLByProductAndIDResponse:
|
|
131
|
+
r"""Get the Access Control List for a Worker Group or Edge Fleet
|
|
126
132
|
|
|
127
|
-
|
|
133
|
+
Get the Access Control List (ACL) for the specified Worker Group or Edge Fleet.
|
|
128
134
|
|
|
129
|
-
:param
|
|
130
|
-
:param
|
|
135
|
+
:param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
|
|
136
|
+
:param id: The <code>id</code> of the Worker Group or Edge Fleet to get the ACL for.
|
|
137
|
+
:param type: Filter for limiting the response to ACL entries for the specified RBAC resource type.
|
|
131
138
|
:param retries: Override the default retry configuration for this method
|
|
132
139
|
:param server_url: Override the default server URL for this method
|
|
133
140
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -143,14 +150,15 @@ class ACL(BaseSDK):
|
|
|
143
150
|
else:
|
|
144
151
|
base_url = self._get_url(base_url, url_variables)
|
|
145
152
|
|
|
146
|
-
request = models.
|
|
153
|
+
request = models.GetConfigGroupACLByProductAndIDRequest(
|
|
154
|
+
product=product,
|
|
147
155
|
id=id,
|
|
148
156
|
type=type_,
|
|
149
157
|
)
|
|
150
158
|
|
|
151
159
|
req = self._build_request_async(
|
|
152
160
|
method="GET",
|
|
153
|
-
path="/
|
|
161
|
+
path="/products/{product}/groups/{id}/acl",
|
|
154
162
|
base_url=base_url,
|
|
155
163
|
url_variables=url_variables,
|
|
156
164
|
request=request,
|
|
@@ -176,7 +184,7 @@ class ACL(BaseSDK):
|
|
|
176
184
|
hook_ctx=HookContext(
|
|
177
185
|
config=self.sdk_configuration,
|
|
178
186
|
base_url=base_url or "",
|
|
179
|
-
operation_id="
|
|
187
|
+
operation_id="getConfigGroupAclByProductAndId",
|
|
180
188
|
oauth2_scopes=[],
|
|
181
189
|
security_source=get_security_from_env(
|
|
182
190
|
self.sdk_configuration.security, models.Security
|
|
@@ -189,7 +197,9 @@ class ACL(BaseSDK):
|
|
|
189
197
|
|
|
190
198
|
response_data: Any = None
|
|
191
199
|
if utils.match_response(http_res, "200", "application/json"):
|
|
192
|
-
return unmarshal_json_response(
|
|
200
|
+
return unmarshal_json_response(
|
|
201
|
+
models.GetConfigGroupACLByProductAndIDResponse, http_res
|
|
202
|
+
)
|
|
193
203
|
if utils.match_response(http_res, "500", "application/json"):
|
|
194
204
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
195
205
|
raise errors.Error(response_data, http_res)
|
cribl_control_plane/commits.py
CHANGED
|
@@ -412,6 +412,186 @@ class Commits(BaseSDK):
|
|
|
412
412
|
|
|
413
413
|
raise errors.APIError("Unexpected response received", http_res)
|
|
414
414
|
|
|
415
|
+
def list(
|
|
416
|
+
self,
|
|
417
|
+
*,
|
|
418
|
+
group: Optional[str] = None,
|
|
419
|
+
count: Optional[float] = None,
|
|
420
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
421
|
+
server_url: Optional[str] = None,
|
|
422
|
+
timeout_ms: Optional[int] = None,
|
|
423
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
424
|
+
) -> models.GetVersionResponse:
|
|
425
|
+
r"""Get the commit history
|
|
426
|
+
|
|
427
|
+
Get the commit history
|
|
428
|
+
|
|
429
|
+
:param group: Group ID
|
|
430
|
+
:param count: Maximum number of commits to return
|
|
431
|
+
:param retries: Override the default retry configuration for this method
|
|
432
|
+
:param server_url: Override the default server URL for this method
|
|
433
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
434
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
435
|
+
"""
|
|
436
|
+
base_url = None
|
|
437
|
+
url_variables = None
|
|
438
|
+
if timeout_ms is None:
|
|
439
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
440
|
+
|
|
441
|
+
if server_url is not None:
|
|
442
|
+
base_url = server_url
|
|
443
|
+
else:
|
|
444
|
+
base_url = self._get_url(base_url, url_variables)
|
|
445
|
+
|
|
446
|
+
request = models.GetVersionRequest(
|
|
447
|
+
group=group,
|
|
448
|
+
count=count,
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
req = self._build_request(
|
|
452
|
+
method="GET",
|
|
453
|
+
path="/version",
|
|
454
|
+
base_url=base_url,
|
|
455
|
+
url_variables=url_variables,
|
|
456
|
+
request=request,
|
|
457
|
+
request_body_required=False,
|
|
458
|
+
request_has_path_params=False,
|
|
459
|
+
request_has_query_params=True,
|
|
460
|
+
user_agent_header="user-agent",
|
|
461
|
+
accept_header_value="application/json",
|
|
462
|
+
http_headers=http_headers,
|
|
463
|
+
security=self.sdk_configuration.security,
|
|
464
|
+
timeout_ms=timeout_ms,
|
|
465
|
+
)
|
|
466
|
+
|
|
467
|
+
if retries == UNSET:
|
|
468
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
469
|
+
retries = self.sdk_configuration.retry_config
|
|
470
|
+
|
|
471
|
+
retry_config = None
|
|
472
|
+
if isinstance(retries, utils.RetryConfig):
|
|
473
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
474
|
+
|
|
475
|
+
http_res = self.do_request(
|
|
476
|
+
hook_ctx=HookContext(
|
|
477
|
+
config=self.sdk_configuration,
|
|
478
|
+
base_url=base_url or "",
|
|
479
|
+
operation_id="getVersion",
|
|
480
|
+
oauth2_scopes=[],
|
|
481
|
+
security_source=get_security_from_env(
|
|
482
|
+
self.sdk_configuration.security, models.Security
|
|
483
|
+
),
|
|
484
|
+
),
|
|
485
|
+
request=req,
|
|
486
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
487
|
+
retry_config=retry_config,
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
response_data: Any = None
|
|
491
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
492
|
+
return unmarshal_json_response(models.GetVersionResponse, http_res)
|
|
493
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
494
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
495
|
+
raise errors.Error(response_data, http_res)
|
|
496
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
497
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
498
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
499
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
500
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
501
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
502
|
+
|
|
503
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
504
|
+
|
|
505
|
+
async def list_async(
|
|
506
|
+
self,
|
|
507
|
+
*,
|
|
508
|
+
group: Optional[str] = None,
|
|
509
|
+
count: Optional[float] = None,
|
|
510
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
511
|
+
server_url: Optional[str] = None,
|
|
512
|
+
timeout_ms: Optional[int] = None,
|
|
513
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
514
|
+
) -> models.GetVersionResponse:
|
|
515
|
+
r"""Get the commit history
|
|
516
|
+
|
|
517
|
+
Get the commit history
|
|
518
|
+
|
|
519
|
+
:param group: Group ID
|
|
520
|
+
:param count: Maximum number of commits to return
|
|
521
|
+
:param retries: Override the default retry configuration for this method
|
|
522
|
+
:param server_url: Override the default server URL for this method
|
|
523
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
524
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
525
|
+
"""
|
|
526
|
+
base_url = None
|
|
527
|
+
url_variables = None
|
|
528
|
+
if timeout_ms is None:
|
|
529
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
530
|
+
|
|
531
|
+
if server_url is not None:
|
|
532
|
+
base_url = server_url
|
|
533
|
+
else:
|
|
534
|
+
base_url = self._get_url(base_url, url_variables)
|
|
535
|
+
|
|
536
|
+
request = models.GetVersionRequest(
|
|
537
|
+
group=group,
|
|
538
|
+
count=count,
|
|
539
|
+
)
|
|
540
|
+
|
|
541
|
+
req = self._build_request_async(
|
|
542
|
+
method="GET",
|
|
543
|
+
path="/version",
|
|
544
|
+
base_url=base_url,
|
|
545
|
+
url_variables=url_variables,
|
|
546
|
+
request=request,
|
|
547
|
+
request_body_required=False,
|
|
548
|
+
request_has_path_params=False,
|
|
549
|
+
request_has_query_params=True,
|
|
550
|
+
user_agent_header="user-agent",
|
|
551
|
+
accept_header_value="application/json",
|
|
552
|
+
http_headers=http_headers,
|
|
553
|
+
security=self.sdk_configuration.security,
|
|
554
|
+
timeout_ms=timeout_ms,
|
|
555
|
+
)
|
|
556
|
+
|
|
557
|
+
if retries == UNSET:
|
|
558
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
559
|
+
retries = self.sdk_configuration.retry_config
|
|
560
|
+
|
|
561
|
+
retry_config = None
|
|
562
|
+
if isinstance(retries, utils.RetryConfig):
|
|
563
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
564
|
+
|
|
565
|
+
http_res = await self.do_request_async(
|
|
566
|
+
hook_ctx=HookContext(
|
|
567
|
+
config=self.sdk_configuration,
|
|
568
|
+
base_url=base_url or "",
|
|
569
|
+
operation_id="getVersion",
|
|
570
|
+
oauth2_scopes=[],
|
|
571
|
+
security_source=get_security_from_env(
|
|
572
|
+
self.sdk_configuration.security, models.Security
|
|
573
|
+
),
|
|
574
|
+
),
|
|
575
|
+
request=req,
|
|
576
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
577
|
+
retry_config=retry_config,
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
response_data: Any = None
|
|
581
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
582
|
+
return unmarshal_json_response(models.GetVersionResponse, http_res)
|
|
583
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
584
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
585
|
+
raise errors.Error(response_data, http_res)
|
|
586
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
587
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
588
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
589
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
590
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
591
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
592
|
+
|
|
593
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
594
|
+
|
|
415
595
|
def push(
|
|
416
596
|
self,
|
|
417
597
|
*,
|
|
@@ -13,17 +13,19 @@ class ConfigsVersions(BaseSDK):
|
|
|
13
13
|
def get(
|
|
14
14
|
self,
|
|
15
15
|
*,
|
|
16
|
+
product: models.GetConfigGroupConfigVersionByProductAndIDProduct,
|
|
16
17
|
id: str,
|
|
17
18
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
18
19
|
server_url: Optional[str] = None,
|
|
19
20
|
timeout_ms: Optional[int] = None,
|
|
20
21
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
21
|
-
) -> models.
|
|
22
|
-
r"""
|
|
22
|
+
) -> models.GetConfigGroupConfigVersionByProductAndIDResponse:
|
|
23
|
+
r"""Get the configuration version for a Worker Group or Edge Fleet
|
|
23
24
|
|
|
24
|
-
Get
|
|
25
|
+
Get the configuration version for the specified Worker Group or Edge Fleet.
|
|
25
26
|
|
|
26
|
-
:param
|
|
27
|
+
:param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
|
|
28
|
+
:param id: The <code>id</code> of the Worker Group or Edge Fleet to get the configuration version for.
|
|
27
29
|
:param retries: Override the default retry configuration for this method
|
|
28
30
|
:param server_url: Override the default server URL for this method
|
|
29
31
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -39,13 +41,14 @@ class ConfigsVersions(BaseSDK):
|
|
|
39
41
|
else:
|
|
40
42
|
base_url = self._get_url(base_url, url_variables)
|
|
41
43
|
|
|
42
|
-
request = models.
|
|
44
|
+
request = models.GetConfigGroupConfigVersionByProductAndIDRequest(
|
|
45
|
+
product=product,
|
|
43
46
|
id=id,
|
|
44
47
|
)
|
|
45
48
|
|
|
46
49
|
req = self._build_request(
|
|
47
50
|
method="GET",
|
|
48
|
-
path="/
|
|
51
|
+
path="/products/{product}/groups/{id}/configVersion",
|
|
49
52
|
base_url=base_url,
|
|
50
53
|
url_variables=url_variables,
|
|
51
54
|
request=request,
|
|
@@ -71,7 +74,7 @@ class ConfigsVersions(BaseSDK):
|
|
|
71
74
|
hook_ctx=HookContext(
|
|
72
75
|
config=self.sdk_configuration,
|
|
73
76
|
base_url=base_url or "",
|
|
74
|
-
operation_id="
|
|
77
|
+
operation_id="getConfigGroupConfigVersionByProductAndId",
|
|
75
78
|
oauth2_scopes=[],
|
|
76
79
|
security_source=get_security_from_env(
|
|
77
80
|
self.sdk_configuration.security, models.Security
|
|
@@ -85,7 +88,7 @@ class ConfigsVersions(BaseSDK):
|
|
|
85
88
|
response_data: Any = None
|
|
86
89
|
if utils.match_response(http_res, "200", "application/json"):
|
|
87
90
|
return unmarshal_json_response(
|
|
88
|
-
models.
|
|
91
|
+
models.GetConfigGroupConfigVersionByProductAndIDResponse, http_res
|
|
89
92
|
)
|
|
90
93
|
if utils.match_response(http_res, "500", "application/json"):
|
|
91
94
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
@@ -102,17 +105,19 @@ class ConfigsVersions(BaseSDK):
|
|
|
102
105
|
async def get_async(
|
|
103
106
|
self,
|
|
104
107
|
*,
|
|
108
|
+
product: models.GetConfigGroupConfigVersionByProductAndIDProduct,
|
|
105
109
|
id: str,
|
|
106
110
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
107
111
|
server_url: Optional[str] = None,
|
|
108
112
|
timeout_ms: Optional[int] = None,
|
|
109
113
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
110
|
-
) -> models.
|
|
111
|
-
r"""
|
|
114
|
+
) -> models.GetConfigGroupConfigVersionByProductAndIDResponse:
|
|
115
|
+
r"""Get the configuration version for a Worker Group or Edge Fleet
|
|
112
116
|
|
|
113
|
-
Get
|
|
117
|
+
Get the configuration version for the specified Worker Group or Edge Fleet.
|
|
114
118
|
|
|
115
|
-
:param
|
|
119
|
+
:param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
|
|
120
|
+
:param id: The <code>id</code> of the Worker Group or Edge Fleet to get the configuration version for.
|
|
116
121
|
:param retries: Override the default retry configuration for this method
|
|
117
122
|
:param server_url: Override the default server URL for this method
|
|
118
123
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -128,13 +133,14 @@ class ConfigsVersions(BaseSDK):
|
|
|
128
133
|
else:
|
|
129
134
|
base_url = self._get_url(base_url, url_variables)
|
|
130
135
|
|
|
131
|
-
request = models.
|
|
136
|
+
request = models.GetConfigGroupConfigVersionByProductAndIDRequest(
|
|
137
|
+
product=product,
|
|
132
138
|
id=id,
|
|
133
139
|
)
|
|
134
140
|
|
|
135
141
|
req = self._build_request_async(
|
|
136
142
|
method="GET",
|
|
137
|
-
path="/
|
|
143
|
+
path="/products/{product}/groups/{id}/configVersion",
|
|
138
144
|
base_url=base_url,
|
|
139
145
|
url_variables=url_variables,
|
|
140
146
|
request=request,
|
|
@@ -160,7 +166,7 @@ class ConfigsVersions(BaseSDK):
|
|
|
160
166
|
hook_ctx=HookContext(
|
|
161
167
|
config=self.sdk_configuration,
|
|
162
168
|
base_url=base_url or "",
|
|
163
|
-
operation_id="
|
|
169
|
+
operation_id="getConfigGroupConfigVersionByProductAndId",
|
|
164
170
|
oauth2_scopes=[],
|
|
165
171
|
security_source=get_security_from_env(
|
|
166
172
|
self.sdk_configuration.security, models.Security
|
|
@@ -174,7 +180,7 @@ class ConfigsVersions(BaseSDK):
|
|
|
174
180
|
response_data: Any = None
|
|
175
181
|
if utils.match_response(http_res, "200", "application/json"):
|
|
176
182
|
return unmarshal_json_response(
|
|
177
|
-
models.
|
|
183
|
+
models.GetConfigGroupConfigVersionByProductAndIDResponse, http_res
|
|
178
184
|
)
|
|
179
185
|
if utils.match_response(http_res, "500", "application/json"):
|
|
180
186
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|