cribl-control-plane 0.0.23__py3-none-any.whl → 0.0.24__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/auth_sdk.py +4 -4
- cribl_control_plane/{distributed.py → deployments.py} +3 -5
- cribl_control_plane/destinations.py +36 -36
- cribl_control_plane/groups_sdk.py +222 -32
- cribl_control_plane/{health.py → healthinfo.py} +5 -7
- cribl_control_plane/{lake.py → lakedatasets.py} +21 -23
- cribl_control_plane/models/createpipelineop.py +2 -2
- cribl_control_plane/models/updatepipelinebyidop.py +2 -2
- cribl_control_plane/models/updateroutesbyidop.py +2 -2
- cribl_control_plane/{workers_sdk.py → nodes.py} +13 -15
- cribl_control_plane/packs.py +16 -16
- cribl_control_plane/pipelines.py +10 -10
- cribl_control_plane/routes_sdk.py +10 -10
- cribl_control_plane/sdk.py +12 -20
- cribl_control_plane/sources.py +28 -28
- cribl_control_plane/versioning.py +52 -52
- {cribl_control_plane-0.0.23.dist-info → cribl_control_plane-0.0.24.dist-info}/METADATA +73 -76
- {cribl_control_plane-0.0.23.dist-info → cribl_control_plane-0.0.24.dist-info}/RECORD +20 -21
- cribl_control_plane/teams.py +0 -203
- {cribl_control_plane-0.0.23.dist-info → cribl_control_plane-0.0.24.dist-info}/WHEEL +0 -0
|
@@ -12,7 +12,7 @@ from typing import Any, List, Mapping, Optional, Union
|
|
|
12
12
|
class GroupsSDK(BaseSDK):
|
|
13
13
|
r"""Actions related to Groups"""
|
|
14
14
|
|
|
15
|
-
def
|
|
15
|
+
def get_config_version(
|
|
16
16
|
self,
|
|
17
17
|
*,
|
|
18
18
|
id: str,
|
|
@@ -21,7 +21,7 @@ class GroupsSDK(BaseSDK):
|
|
|
21
21
|
timeout_ms: Optional[int] = None,
|
|
22
22
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
23
23
|
) -> models.GetGroupsConfigVersionByIDResponse:
|
|
24
|
-
r"""
|
|
24
|
+
r"""Retrieve the configuration version for a Worker Group or Edge Fleet
|
|
25
25
|
|
|
26
26
|
Get effective bundle version for given Group
|
|
27
27
|
|
|
@@ -101,7 +101,7 @@ class GroupsSDK(BaseSDK):
|
|
|
101
101
|
|
|
102
102
|
raise errors.APIError("Unexpected response received", http_res)
|
|
103
103
|
|
|
104
|
-
async def
|
|
104
|
+
async def get_config_version_async(
|
|
105
105
|
self,
|
|
106
106
|
*,
|
|
107
107
|
id: str,
|
|
@@ -110,7 +110,7 @@ class GroupsSDK(BaseSDK):
|
|
|
110
110
|
timeout_ms: Optional[int] = None,
|
|
111
111
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
112
112
|
) -> models.GetGroupsConfigVersionByIDResponse:
|
|
113
|
-
r"""
|
|
113
|
+
r"""Retrieve the configuration version for a Worker Group or Edge Fleet
|
|
114
114
|
|
|
115
115
|
Get effective bundle version for given Group
|
|
116
116
|
|
|
@@ -190,7 +190,7 @@ class GroupsSDK(BaseSDK):
|
|
|
190
190
|
|
|
191
191
|
raise errors.APIError("Unexpected response received", http_res)
|
|
192
192
|
|
|
193
|
-
def
|
|
193
|
+
def create_by_product(
|
|
194
194
|
self,
|
|
195
195
|
*,
|
|
196
196
|
product: models.CreateProductsGroupsByProductProduct,
|
|
@@ -228,7 +228,7 @@ class GroupsSDK(BaseSDK):
|
|
|
228
228
|
timeout_ms: Optional[int] = None,
|
|
229
229
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
230
230
|
) -> models.CreateProductsGroupsByProductResponse:
|
|
231
|
-
r"""Create a
|
|
231
|
+
r"""Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
232
232
|
|
|
233
233
|
Create a Fleet or Worker Group
|
|
234
234
|
|
|
@@ -361,7 +361,7 @@ class GroupsSDK(BaseSDK):
|
|
|
361
361
|
|
|
362
362
|
raise errors.APIError("Unexpected response received", http_res)
|
|
363
363
|
|
|
364
|
-
async def
|
|
364
|
+
async def create_by_product_async(
|
|
365
365
|
self,
|
|
366
366
|
*,
|
|
367
367
|
product: models.CreateProductsGroupsByProductProduct,
|
|
@@ -399,7 +399,7 @@ class GroupsSDK(BaseSDK):
|
|
|
399
399
|
timeout_ms: Optional[int] = None,
|
|
400
400
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
401
401
|
) -> models.CreateProductsGroupsByProductResponse:
|
|
402
|
-
r"""Create a
|
|
402
|
+
r"""Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
403
403
|
|
|
404
404
|
Create a Fleet or Worker Group
|
|
405
405
|
|
|
@@ -532,7 +532,7 @@ class GroupsSDK(BaseSDK):
|
|
|
532
532
|
|
|
533
533
|
raise errors.APIError("Unexpected response received", http_res)
|
|
534
534
|
|
|
535
|
-
def
|
|
535
|
+
def get_by_product(
|
|
536
536
|
self,
|
|
537
537
|
*,
|
|
538
538
|
product: models.GetProductsGroupsByProductProduct,
|
|
@@ -542,7 +542,7 @@ class GroupsSDK(BaseSDK):
|
|
|
542
542
|
timeout_ms: Optional[int] = None,
|
|
543
543
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
544
544
|
) -> models.GetProductsGroupsByProductResponse:
|
|
545
|
-
r"""
|
|
545
|
+
r"""List all Worker Groups or Edge Fleets for the specified Cribl product
|
|
546
546
|
|
|
547
547
|
Get a list of ConfigGroup objects
|
|
548
548
|
|
|
@@ -624,7 +624,7 @@ class GroupsSDK(BaseSDK):
|
|
|
624
624
|
|
|
625
625
|
raise errors.APIError("Unexpected response received", http_res)
|
|
626
626
|
|
|
627
|
-
async def
|
|
627
|
+
async def get_by_product_async(
|
|
628
628
|
self,
|
|
629
629
|
*,
|
|
630
630
|
product: models.GetProductsGroupsByProductProduct,
|
|
@@ -634,7 +634,7 @@ class GroupsSDK(BaseSDK):
|
|
|
634
634
|
timeout_ms: Optional[int] = None,
|
|
635
635
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
636
636
|
) -> models.GetProductsGroupsByProductResponse:
|
|
637
|
-
r"""
|
|
637
|
+
r"""List all Worker Groups or Edge Fleets for the specified Cribl product
|
|
638
638
|
|
|
639
639
|
Get a list of ConfigGroup objects
|
|
640
640
|
|
|
@@ -716,7 +716,7 @@ class GroupsSDK(BaseSDK):
|
|
|
716
716
|
|
|
717
717
|
raise errors.APIError("Unexpected response received", http_res)
|
|
718
718
|
|
|
719
|
-
def
|
|
719
|
+
def delete(
|
|
720
720
|
self,
|
|
721
721
|
*,
|
|
722
722
|
id: str,
|
|
@@ -725,7 +725,7 @@ class GroupsSDK(BaseSDK):
|
|
|
725
725
|
timeout_ms: Optional[int] = None,
|
|
726
726
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
727
727
|
) -> models.DeleteGroupsByIDResponse:
|
|
728
|
-
r"""Delete a
|
|
728
|
+
r"""Delete a Worker Group or Edge Fleet
|
|
729
729
|
|
|
730
730
|
Delete a Fleet or Worker Group
|
|
731
731
|
|
|
@@ -803,7 +803,7 @@ class GroupsSDK(BaseSDK):
|
|
|
803
803
|
|
|
804
804
|
raise errors.APIError("Unexpected response received", http_res)
|
|
805
805
|
|
|
806
|
-
async def
|
|
806
|
+
async def delete_async(
|
|
807
807
|
self,
|
|
808
808
|
*,
|
|
809
809
|
id: str,
|
|
@@ -812,7 +812,7 @@ class GroupsSDK(BaseSDK):
|
|
|
812
812
|
timeout_ms: Optional[int] = None,
|
|
813
813
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
814
814
|
) -> models.DeleteGroupsByIDResponse:
|
|
815
|
-
r"""Delete a
|
|
815
|
+
r"""Delete a Worker Group or Edge Fleet
|
|
816
816
|
|
|
817
817
|
Delete a Fleet or Worker Group
|
|
818
818
|
|
|
@@ -890,7 +890,7 @@ class GroupsSDK(BaseSDK):
|
|
|
890
890
|
|
|
891
891
|
raise errors.APIError("Unexpected response received", http_res)
|
|
892
892
|
|
|
893
|
-
def
|
|
893
|
+
def get(
|
|
894
894
|
self,
|
|
895
895
|
*,
|
|
896
896
|
id: str,
|
|
@@ -900,7 +900,7 @@ class GroupsSDK(BaseSDK):
|
|
|
900
900
|
timeout_ms: Optional[int] = None,
|
|
901
901
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
902
902
|
) -> models.GetGroupsByIDResponse:
|
|
903
|
-
r"""
|
|
903
|
+
r"""Retrieve a Worker Group or Edge Fleet
|
|
904
904
|
|
|
905
905
|
Get a specific ConfigGroup object
|
|
906
906
|
|
|
@@ -980,7 +980,7 @@ class GroupsSDK(BaseSDK):
|
|
|
980
980
|
|
|
981
981
|
raise errors.APIError("Unexpected response received", http_res)
|
|
982
982
|
|
|
983
|
-
async def
|
|
983
|
+
async def get_async(
|
|
984
984
|
self,
|
|
985
985
|
*,
|
|
986
986
|
id: str,
|
|
@@ -990,7 +990,7 @@ class GroupsSDK(BaseSDK):
|
|
|
990
990
|
timeout_ms: Optional[int] = None,
|
|
991
991
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
992
992
|
) -> models.GetGroupsByIDResponse:
|
|
993
|
-
r"""
|
|
993
|
+
r"""Retrieve a Worker Group or Edge Fleet
|
|
994
994
|
|
|
995
995
|
Get a specific ConfigGroup object
|
|
996
996
|
|
|
@@ -1070,7 +1070,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1070
1070
|
|
|
1071
1071
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1072
1072
|
|
|
1073
|
-
def
|
|
1073
|
+
def update(
|
|
1074
1074
|
self,
|
|
1075
1075
|
*,
|
|
1076
1076
|
id_param: str,
|
|
@@ -1108,7 +1108,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1108
1108
|
timeout_ms: Optional[int] = None,
|
|
1109
1109
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1110
1110
|
) -> models.UpdateGroupsByIDResponse:
|
|
1111
|
-
r"""Update a
|
|
1111
|
+
r"""Update a Worker Group or Edge Fleet
|
|
1112
1112
|
|
|
1113
1113
|
Update a Fleet or Worker Group
|
|
1114
1114
|
|
|
@@ -1239,7 +1239,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1239
1239
|
|
|
1240
1240
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1241
1241
|
|
|
1242
|
-
async def
|
|
1242
|
+
async def update_async(
|
|
1243
1243
|
self,
|
|
1244
1244
|
*,
|
|
1245
1245
|
id_param: str,
|
|
@@ -1277,7 +1277,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1277
1277
|
timeout_ms: Optional[int] = None,
|
|
1278
1278
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1279
1279
|
) -> models.UpdateGroupsByIDResponse:
|
|
1280
|
-
r"""Update a
|
|
1280
|
+
r"""Update a Worker Group or Edge Fleet
|
|
1281
1281
|
|
|
1282
1282
|
Update a Fleet or Worker Group
|
|
1283
1283
|
|
|
@@ -1408,7 +1408,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1408
1408
|
|
|
1409
1409
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1410
1410
|
|
|
1411
|
-
def
|
|
1411
|
+
def deploy_commits(
|
|
1412
1412
|
self,
|
|
1413
1413
|
*,
|
|
1414
1414
|
id: str,
|
|
@@ -1424,7 +1424,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1424
1424
|
timeout_ms: Optional[int] = None,
|
|
1425
1425
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1426
1426
|
) -> models.UpdateGroupsDeployByIDResponse:
|
|
1427
|
-
r"""Deploy commits
|
|
1427
|
+
r"""Deploy commits to a Worker Group or Edge Fleet
|
|
1428
1428
|
|
|
1429
1429
|
Deploy commits for a Fleet or Worker Group
|
|
1430
1430
|
|
|
@@ -1515,7 +1515,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1515
1515
|
|
|
1516
1516
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1517
1517
|
|
|
1518
|
-
async def
|
|
1518
|
+
async def deploy_commits_async(
|
|
1519
1519
|
self,
|
|
1520
1520
|
*,
|
|
1521
1521
|
id: str,
|
|
@@ -1531,7 +1531,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1531
1531
|
timeout_ms: Optional[int] = None,
|
|
1532
1532
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1533
1533
|
) -> models.UpdateGroupsDeployByIDResponse:
|
|
1534
|
-
r"""Deploy commits
|
|
1534
|
+
r"""Deploy commits to a Worker Group or Edge Fleet
|
|
1535
1535
|
|
|
1536
1536
|
Deploy commits for a Fleet or Worker Group
|
|
1537
1537
|
|
|
@@ -1622,7 +1622,197 @@ class GroupsSDK(BaseSDK):
|
|
|
1622
1622
|
|
|
1623
1623
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1624
1624
|
|
|
1625
|
-
def
|
|
1625
|
+
def get_team_access_control_list_by_product(
|
|
1626
|
+
self,
|
|
1627
|
+
*,
|
|
1628
|
+
product: models.GetProductsGroupsACLTeamsByProductAndIDProduct,
|
|
1629
|
+
id: str,
|
|
1630
|
+
type_: Optional[models.GetProductsGroupsACLTeamsByProductAndIDType] = None,
|
|
1631
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1632
|
+
server_url: Optional[str] = None,
|
|
1633
|
+
timeout_ms: Optional[int] = None,
|
|
1634
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
1635
|
+
) -> models.GetProductsGroupsACLTeamsByProductAndIDResponse:
|
|
1636
|
+
r"""Retrieve the Access Control List (ACL) for teams with permissions on a Worker Group or Edge Fleet for the specified Cribl product
|
|
1637
|
+
|
|
1638
|
+
ACL of team with permissions for resources in this Group
|
|
1639
|
+
|
|
1640
|
+
:param product: Cribl Product
|
|
1641
|
+
:param id: Group ID
|
|
1642
|
+
:param type: resource type by which to filter access levels
|
|
1643
|
+
:param retries: Override the default retry configuration for this method
|
|
1644
|
+
:param server_url: Override the default server URL for this method
|
|
1645
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1646
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
1647
|
+
"""
|
|
1648
|
+
base_url = None
|
|
1649
|
+
url_variables = None
|
|
1650
|
+
if timeout_ms is None:
|
|
1651
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1652
|
+
|
|
1653
|
+
if server_url is not None:
|
|
1654
|
+
base_url = server_url
|
|
1655
|
+
else:
|
|
1656
|
+
base_url = self._get_url(base_url, url_variables)
|
|
1657
|
+
|
|
1658
|
+
request = models.GetProductsGroupsACLTeamsByProductAndIDRequest(
|
|
1659
|
+
product=product,
|
|
1660
|
+
id=id,
|
|
1661
|
+
type=type_,
|
|
1662
|
+
)
|
|
1663
|
+
|
|
1664
|
+
req = self._build_request(
|
|
1665
|
+
method="GET",
|
|
1666
|
+
path="/products/{product}/groups/{id}/acl/teams",
|
|
1667
|
+
base_url=base_url,
|
|
1668
|
+
url_variables=url_variables,
|
|
1669
|
+
request=request,
|
|
1670
|
+
request_body_required=False,
|
|
1671
|
+
request_has_path_params=True,
|
|
1672
|
+
request_has_query_params=True,
|
|
1673
|
+
user_agent_header="user-agent",
|
|
1674
|
+
accept_header_value="application/json",
|
|
1675
|
+
http_headers=http_headers,
|
|
1676
|
+
security=self.sdk_configuration.security,
|
|
1677
|
+
timeout_ms=timeout_ms,
|
|
1678
|
+
)
|
|
1679
|
+
|
|
1680
|
+
if retries == UNSET:
|
|
1681
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
1682
|
+
retries = self.sdk_configuration.retry_config
|
|
1683
|
+
|
|
1684
|
+
retry_config = None
|
|
1685
|
+
if isinstance(retries, utils.RetryConfig):
|
|
1686
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1687
|
+
|
|
1688
|
+
http_res = self.do_request(
|
|
1689
|
+
hook_ctx=HookContext(
|
|
1690
|
+
config=self.sdk_configuration,
|
|
1691
|
+
base_url=base_url or "",
|
|
1692
|
+
operation_id="getProductsGroupsAclTeamsByProductAndId",
|
|
1693
|
+
oauth2_scopes=[],
|
|
1694
|
+
security_source=get_security_from_env(
|
|
1695
|
+
self.sdk_configuration.security, models.Security
|
|
1696
|
+
),
|
|
1697
|
+
),
|
|
1698
|
+
request=req,
|
|
1699
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1700
|
+
retry_config=retry_config,
|
|
1701
|
+
)
|
|
1702
|
+
|
|
1703
|
+
response_data: Any = None
|
|
1704
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
1705
|
+
return unmarshal_json_response(
|
|
1706
|
+
models.GetProductsGroupsACLTeamsByProductAndIDResponse, http_res
|
|
1707
|
+
)
|
|
1708
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
1709
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1710
|
+
raise errors.Error(response_data, http_res)
|
|
1711
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1712
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1713
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1714
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
1715
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1716
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1717
|
+
|
|
1718
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
1719
|
+
|
|
1720
|
+
async def get_team_access_control_list_by_product_async(
|
|
1721
|
+
self,
|
|
1722
|
+
*,
|
|
1723
|
+
product: models.GetProductsGroupsACLTeamsByProductAndIDProduct,
|
|
1724
|
+
id: str,
|
|
1725
|
+
type_: Optional[models.GetProductsGroupsACLTeamsByProductAndIDType] = None,
|
|
1726
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1727
|
+
server_url: Optional[str] = None,
|
|
1728
|
+
timeout_ms: Optional[int] = None,
|
|
1729
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
1730
|
+
) -> models.GetProductsGroupsACLTeamsByProductAndIDResponse:
|
|
1731
|
+
r"""Retrieve the Access Control List (ACL) for teams with permissions on a Worker Group or Edge Fleet for the specified Cribl product
|
|
1732
|
+
|
|
1733
|
+
ACL of team with permissions for resources in this Group
|
|
1734
|
+
|
|
1735
|
+
:param product: Cribl Product
|
|
1736
|
+
:param id: Group ID
|
|
1737
|
+
:param type: resource type by which to filter access levels
|
|
1738
|
+
:param retries: Override the default retry configuration for this method
|
|
1739
|
+
:param server_url: Override the default server URL for this method
|
|
1740
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1741
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
1742
|
+
"""
|
|
1743
|
+
base_url = None
|
|
1744
|
+
url_variables = None
|
|
1745
|
+
if timeout_ms is None:
|
|
1746
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1747
|
+
|
|
1748
|
+
if server_url is not None:
|
|
1749
|
+
base_url = server_url
|
|
1750
|
+
else:
|
|
1751
|
+
base_url = self._get_url(base_url, url_variables)
|
|
1752
|
+
|
|
1753
|
+
request = models.GetProductsGroupsACLTeamsByProductAndIDRequest(
|
|
1754
|
+
product=product,
|
|
1755
|
+
id=id,
|
|
1756
|
+
type=type_,
|
|
1757
|
+
)
|
|
1758
|
+
|
|
1759
|
+
req = self._build_request_async(
|
|
1760
|
+
method="GET",
|
|
1761
|
+
path="/products/{product}/groups/{id}/acl/teams",
|
|
1762
|
+
base_url=base_url,
|
|
1763
|
+
url_variables=url_variables,
|
|
1764
|
+
request=request,
|
|
1765
|
+
request_body_required=False,
|
|
1766
|
+
request_has_path_params=True,
|
|
1767
|
+
request_has_query_params=True,
|
|
1768
|
+
user_agent_header="user-agent",
|
|
1769
|
+
accept_header_value="application/json",
|
|
1770
|
+
http_headers=http_headers,
|
|
1771
|
+
security=self.sdk_configuration.security,
|
|
1772
|
+
timeout_ms=timeout_ms,
|
|
1773
|
+
)
|
|
1774
|
+
|
|
1775
|
+
if retries == UNSET:
|
|
1776
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
1777
|
+
retries = self.sdk_configuration.retry_config
|
|
1778
|
+
|
|
1779
|
+
retry_config = None
|
|
1780
|
+
if isinstance(retries, utils.RetryConfig):
|
|
1781
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1782
|
+
|
|
1783
|
+
http_res = await self.do_request_async(
|
|
1784
|
+
hook_ctx=HookContext(
|
|
1785
|
+
config=self.sdk_configuration,
|
|
1786
|
+
base_url=base_url or "",
|
|
1787
|
+
operation_id="getProductsGroupsAclTeamsByProductAndId",
|
|
1788
|
+
oauth2_scopes=[],
|
|
1789
|
+
security_source=get_security_from_env(
|
|
1790
|
+
self.sdk_configuration.security, models.Security
|
|
1791
|
+
),
|
|
1792
|
+
),
|
|
1793
|
+
request=req,
|
|
1794
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1795
|
+
retry_config=retry_config,
|
|
1796
|
+
)
|
|
1797
|
+
|
|
1798
|
+
response_data: Any = None
|
|
1799
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
1800
|
+
return unmarshal_json_response(
|
|
1801
|
+
models.GetProductsGroupsACLTeamsByProductAndIDResponse, http_res
|
|
1802
|
+
)
|
|
1803
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
1804
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1805
|
+
raise errors.Error(response_data, http_res)
|
|
1806
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1807
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1808
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1809
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
1810
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1811
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1812
|
+
|
|
1813
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
1814
|
+
|
|
1815
|
+
def get_access_control_list(
|
|
1626
1816
|
self,
|
|
1627
1817
|
*,
|
|
1628
1818
|
id: str,
|
|
@@ -1632,7 +1822,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1632
1822
|
timeout_ms: Optional[int] = None,
|
|
1633
1823
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1634
1824
|
) -> models.GetGroupsACLByIDResponse:
|
|
1635
|
-
r"""
|
|
1825
|
+
r"""Retrieve the Access Control List (ACL) for a Worker Group or Edge Fleet
|
|
1636
1826
|
|
|
1637
1827
|
ACL of members with permissions for resources in this Group
|
|
1638
1828
|
|
|
@@ -1712,7 +1902,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1712
1902
|
|
|
1713
1903
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1714
1904
|
|
|
1715
|
-
async def
|
|
1905
|
+
async def get_access_control_list_async(
|
|
1716
1906
|
self,
|
|
1717
1907
|
*,
|
|
1718
1908
|
id: str,
|
|
@@ -1722,7 +1912,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1722
1912
|
timeout_ms: Optional[int] = None,
|
|
1723
1913
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1724
1914
|
) -> models.GetGroupsACLByIDResponse:
|
|
1725
|
-
r"""
|
|
1915
|
+
r"""Retrieve the Access Control List (ACL) for a Worker Group or Edge Fleet
|
|
1726
1916
|
|
|
1727
1917
|
ACL of members with permissions for resources in this Group
|
|
1728
1918
|
|
|
@@ -8,10 +8,8 @@ from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_res
|
|
|
8
8
|
from typing import Any, Mapping, Optional
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
def get_health_info(
|
|
11
|
+
class HealthInfo(BaseSDK):
|
|
12
|
+
def get(
|
|
15
13
|
self,
|
|
16
14
|
*,
|
|
17
15
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -19,7 +17,7 @@ class Health(BaseSDK):
|
|
|
19
17
|
timeout_ms: Optional[int] = None,
|
|
20
18
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
21
19
|
) -> models.HealthStatus:
|
|
22
|
-
r"""
|
|
20
|
+
r"""Retrieve health status of the server
|
|
23
21
|
|
|
24
22
|
:param retries: Override the default retry configuration for this method
|
|
25
23
|
:param server_url: Override the default server URL for this method
|
|
@@ -88,7 +86,7 @@ class Health(BaseSDK):
|
|
|
88
86
|
|
|
89
87
|
raise errors.APIError("Unexpected response received", http_res)
|
|
90
88
|
|
|
91
|
-
async def
|
|
89
|
+
async def get_async(
|
|
92
90
|
self,
|
|
93
91
|
*,
|
|
94
92
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -96,7 +94,7 @@ class Health(BaseSDK):
|
|
|
96
94
|
timeout_ms: Optional[int] = None,
|
|
97
95
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
98
96
|
) -> models.HealthStatus:
|
|
99
|
-
r"""
|
|
97
|
+
r"""Retrieve health status of the server
|
|
100
98
|
|
|
101
99
|
:param retries: Override the default retry configuration for this method
|
|
102
100
|
:param server_url: Override the default server URL for this method
|
|
@@ -9,10 +9,8 @@ from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_res
|
|
|
9
9
|
from typing import Any, List, Mapping, Optional, Union
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
def create_cribl_lake_dataset_by_lake_id(
|
|
12
|
+
class LakeDatasets(BaseSDK):
|
|
13
|
+
def create(
|
|
16
14
|
self,
|
|
17
15
|
*,
|
|
18
16
|
lake_id: str,
|
|
@@ -39,7 +37,7 @@ class Lake(BaseSDK):
|
|
|
39
37
|
timeout_ms: Optional[int] = None,
|
|
40
38
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
41
39
|
) -> models.CreateCriblLakeDatasetByLakeIDResponse:
|
|
42
|
-
r"""Create a Dataset in the specified Lake
|
|
40
|
+
r"""Create a Lake Dataset in the specified Lake
|
|
43
41
|
|
|
44
42
|
Create a Dataset in the specified Lake
|
|
45
43
|
|
|
@@ -156,7 +154,7 @@ class Lake(BaseSDK):
|
|
|
156
154
|
|
|
157
155
|
raise errors.APIError("Unexpected response received", http_res)
|
|
158
156
|
|
|
159
|
-
async def
|
|
157
|
+
async def create_async(
|
|
160
158
|
self,
|
|
161
159
|
*,
|
|
162
160
|
lake_id: str,
|
|
@@ -183,7 +181,7 @@ class Lake(BaseSDK):
|
|
|
183
181
|
timeout_ms: Optional[int] = None,
|
|
184
182
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
185
183
|
) -> models.CreateCriblLakeDatasetByLakeIDResponse:
|
|
186
|
-
r"""Create a Dataset in the specified Lake
|
|
184
|
+
r"""Create a Lake Dataset in the specified Lake
|
|
187
185
|
|
|
188
186
|
Create a Dataset in the specified Lake
|
|
189
187
|
|
|
@@ -300,7 +298,7 @@ class Lake(BaseSDK):
|
|
|
300
298
|
|
|
301
299
|
raise errors.APIError("Unexpected response received", http_res)
|
|
302
300
|
|
|
303
|
-
def
|
|
301
|
+
def list(
|
|
304
302
|
self,
|
|
305
303
|
*,
|
|
306
304
|
lake_id: str,
|
|
@@ -309,7 +307,7 @@ class Lake(BaseSDK):
|
|
|
309
307
|
timeout_ms: Optional[int] = None,
|
|
310
308
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
311
309
|
) -> models.GetCriblLakeDatasetByLakeIDResponse:
|
|
312
|
-
r"""
|
|
310
|
+
r"""List all Lake Datasets in the specified Lake
|
|
313
311
|
|
|
314
312
|
Get the list of Dataset contained in the specified Lake
|
|
315
313
|
|
|
@@ -389,7 +387,7 @@ class Lake(BaseSDK):
|
|
|
389
387
|
|
|
390
388
|
raise errors.APIError("Unexpected response received", http_res)
|
|
391
389
|
|
|
392
|
-
async def
|
|
390
|
+
async def list_async(
|
|
393
391
|
self,
|
|
394
392
|
*,
|
|
395
393
|
lake_id: str,
|
|
@@ -398,7 +396,7 @@ class Lake(BaseSDK):
|
|
|
398
396
|
timeout_ms: Optional[int] = None,
|
|
399
397
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
400
398
|
) -> models.GetCriblLakeDatasetByLakeIDResponse:
|
|
401
|
-
r"""
|
|
399
|
+
r"""List all Lake Datasets in the specified Lake
|
|
402
400
|
|
|
403
401
|
Get the list of Dataset contained in the specified Lake
|
|
404
402
|
|
|
@@ -478,7 +476,7 @@ class Lake(BaseSDK):
|
|
|
478
476
|
|
|
479
477
|
raise errors.APIError("Unexpected response received", http_res)
|
|
480
478
|
|
|
481
|
-
def
|
|
479
|
+
def delete(
|
|
482
480
|
self,
|
|
483
481
|
*,
|
|
484
482
|
lake_id: str,
|
|
@@ -488,7 +486,7 @@ class Lake(BaseSDK):
|
|
|
488
486
|
timeout_ms: Optional[int] = None,
|
|
489
487
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
490
488
|
) -> models.DeleteCriblLakeDatasetByLakeIDAndIDResponse:
|
|
491
|
-
r"""Delete a Dataset in the specified Lake
|
|
489
|
+
r"""Delete a Lake Dataset in the specified Lake
|
|
492
490
|
|
|
493
491
|
Delete a Dataset in the specified Lake
|
|
494
492
|
|
|
@@ -570,7 +568,7 @@ class Lake(BaseSDK):
|
|
|
570
568
|
|
|
571
569
|
raise errors.APIError("Unexpected response received", http_res)
|
|
572
570
|
|
|
573
|
-
async def
|
|
571
|
+
async def delete_async(
|
|
574
572
|
self,
|
|
575
573
|
*,
|
|
576
574
|
lake_id: str,
|
|
@@ -580,7 +578,7 @@ class Lake(BaseSDK):
|
|
|
580
578
|
timeout_ms: Optional[int] = None,
|
|
581
579
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
582
580
|
) -> models.DeleteCriblLakeDatasetByLakeIDAndIDResponse:
|
|
583
|
-
r"""Delete a Dataset in the specified Lake
|
|
581
|
+
r"""Delete a Lake Dataset in the specified Lake
|
|
584
582
|
|
|
585
583
|
Delete a Dataset in the specified Lake
|
|
586
584
|
|
|
@@ -662,7 +660,7 @@ class Lake(BaseSDK):
|
|
|
662
660
|
|
|
663
661
|
raise errors.APIError("Unexpected response received", http_res)
|
|
664
662
|
|
|
665
|
-
def
|
|
663
|
+
def get(
|
|
666
664
|
self,
|
|
667
665
|
*,
|
|
668
666
|
lake_id: str,
|
|
@@ -672,7 +670,7 @@ class Lake(BaseSDK):
|
|
|
672
670
|
timeout_ms: Optional[int] = None,
|
|
673
671
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
674
672
|
) -> models.GetCriblLakeDatasetByLakeIDAndIDResponse:
|
|
675
|
-
r"""
|
|
673
|
+
r"""Retrieve a Lake Dataset in the specified Lake
|
|
676
674
|
|
|
677
675
|
Get a Dataset in the specified Lake
|
|
678
676
|
|
|
@@ -754,7 +752,7 @@ class Lake(BaseSDK):
|
|
|
754
752
|
|
|
755
753
|
raise errors.APIError("Unexpected response received", http_res)
|
|
756
754
|
|
|
757
|
-
async def
|
|
755
|
+
async def get_async(
|
|
758
756
|
self,
|
|
759
757
|
*,
|
|
760
758
|
lake_id: str,
|
|
@@ -764,7 +762,7 @@ class Lake(BaseSDK):
|
|
|
764
762
|
timeout_ms: Optional[int] = None,
|
|
765
763
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
766
764
|
) -> models.GetCriblLakeDatasetByLakeIDAndIDResponse:
|
|
767
|
-
r"""
|
|
765
|
+
r"""Retrieve a Lake Dataset in the specified Lake
|
|
768
766
|
|
|
769
767
|
Get a Dataset in the specified Lake
|
|
770
768
|
|
|
@@ -846,7 +844,7 @@ class Lake(BaseSDK):
|
|
|
846
844
|
|
|
847
845
|
raise errors.APIError("Unexpected response received", http_res)
|
|
848
846
|
|
|
849
|
-
def
|
|
847
|
+
def update(
|
|
850
848
|
self,
|
|
851
849
|
*,
|
|
852
850
|
lake_id: str,
|
|
@@ -874,7 +872,7 @@ class Lake(BaseSDK):
|
|
|
874
872
|
timeout_ms: Optional[int] = None,
|
|
875
873
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
876
874
|
) -> models.UpdateCriblLakeDatasetByLakeIDAndIDResponse:
|
|
877
|
-
r"""Update a Dataset in the specified Lake
|
|
875
|
+
r"""Update a Lake Dataset in the specified Lake
|
|
878
876
|
|
|
879
877
|
Update a Dataset in the specified Lake
|
|
880
878
|
|
|
@@ -993,7 +991,7 @@ class Lake(BaseSDK):
|
|
|
993
991
|
|
|
994
992
|
raise errors.APIError("Unexpected response received", http_res)
|
|
995
993
|
|
|
996
|
-
async def
|
|
994
|
+
async def update_async(
|
|
997
995
|
self,
|
|
998
996
|
*,
|
|
999
997
|
lake_id: str,
|
|
@@ -1021,7 +1019,7 @@ class Lake(BaseSDK):
|
|
|
1021
1019
|
timeout_ms: Optional[int] = None,
|
|
1022
1020
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1023
1021
|
) -> models.UpdateCriblLakeDatasetByLakeIDAndIDResponse:
|
|
1024
|
-
r"""Update a Dataset in the specified Lake
|
|
1022
|
+
r"""Update a Lake Dataset in the specified Lake
|
|
1025
1023
|
|
|
1026
1024
|
Update a Dataset in the specified Lake
|
|
1027
1025
|
|