cribl-control-plane 0.0.18__py3-none-any.whl → 0.0.20__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 (70) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/distributed.py +187 -0
  3. cribl_control_plane/errors/healthstatus_error.py +1 -1
  4. cribl_control_plane/groups_sdk.py +1291 -0
  5. cribl_control_plane/lake.py +1141 -0
  6. cribl_control_plane/models/__init__.py +672 -3
  7. cribl_control_plane/models/appmode.py +13 -0
  8. cribl_control_plane/models/cacheconnection.py +44 -0
  9. cribl_control_plane/models/cacheconnectionbackfillstatus.py +12 -0
  10. cribl_control_plane/models/cloudprovider.py +9 -0
  11. cribl_control_plane/models/commit.py +30 -0
  12. cribl_control_plane/models/configgroup.py +116 -0
  13. cribl_control_plane/models/configgroupcloud.py +48 -0
  14. cribl_control_plane/models/configgrouplookups.py +34 -0
  15. cribl_control_plane/models/createcribllakedatasetbylakeidop.py +48 -0
  16. cribl_control_plane/models/createpacksop.py +24 -0
  17. cribl_control_plane/models/createproductsgroupsbyproductop.py +54 -0
  18. cribl_control_plane/models/cribllakedataset.py +74 -0
  19. cribl_control_plane/models/datasetmetadata.py +39 -0
  20. cribl_control_plane/models/datasetmetadataruninfo.py +28 -0
  21. cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +47 -0
  22. cribl_control_plane/models/deletepacksbyidop.py +37 -0
  23. cribl_control_plane/models/deployrequest.py +18 -0
  24. cribl_control_plane/models/deployrequestlookups.py +28 -0
  25. cribl_control_plane/models/distributedsummary.py +63 -0
  26. cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +47 -0
  27. cribl_control_plane/models/getcribllakedatasetbylakeidop.py +40 -0
  28. cribl_control_plane/models/getgroupsaclbyidop.py +63 -0
  29. cribl_control_plane/models/getgroupsbyidop.py +49 -0
  30. cribl_control_plane/models/getgroupsconfigversionbyidop.py +36 -0
  31. cribl_control_plane/models/getpacksop.py +40 -0
  32. cribl_control_plane/models/getproductsgroupsaclteamsbyproductandidop.py +78 -0
  33. cribl_control_plane/models/getproductsgroupsbyproductop.py +58 -0
  34. cribl_control_plane/models/getsummaryop.py +46 -0
  35. cribl_control_plane/models/getsummaryworkersop.py +39 -0
  36. cribl_control_plane/models/getworkersop.py +82 -0
  37. cribl_control_plane/models/hbcriblinfo.py +80 -0
  38. cribl_control_plane/models/hbleaderinfo.py +23 -0
  39. cribl_control_plane/models/healthstatus.py +3 -3
  40. cribl_control_plane/models/heartbeatmetadata.py +122 -0
  41. cribl_control_plane/models/lakedatasetsearchconfig.py +18 -0
  42. cribl_control_plane/models/lakehouseconnectiontype.py +9 -0
  43. cribl_control_plane/models/lookupversions.py +13 -0
  44. cribl_control_plane/models/masterworkerentry.py +84 -0
  45. cribl_control_plane/models/nodeactiveupgradestatus.py +10 -0
  46. cribl_control_plane/models/nodefailedupgradestatus.py +9 -0
  47. cribl_control_plane/models/nodeprovidedinfo.py +184 -0
  48. cribl_control_plane/models/nodeskippedupgradestatus.py +11 -0
  49. cribl_control_plane/models/nodeupgradestate.py +11 -0
  50. cribl_control_plane/models/nodeupgradestatus.py +30 -0
  51. cribl_control_plane/models/packinfo.py +73 -0
  52. cribl_control_plane/models/packinstallinfo.py +76 -0
  53. cribl_control_plane/models/packrequestbody.py +75 -0
  54. cribl_control_plane/models/rbacresource.py +14 -0
  55. cribl_control_plane/models/resourcepolicy.py +24 -0
  56. cribl_control_plane/models/restartresponse.py +26 -0
  57. cribl_control_plane/models/teamaccesscontrollist.py +18 -0
  58. cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +57 -0
  59. cribl_control_plane/models/updategroupsdeploybyidop.py +46 -0
  60. cribl_control_plane/models/updatepacksbyidop.py +65 -0
  61. cribl_control_plane/models/updatepacksop.py +37 -0
  62. cribl_control_plane/models/updateworkersrestartop.py +24 -0
  63. cribl_control_plane/models/useraccesscontrollist.py +18 -0
  64. cribl_control_plane/packs.py +989 -0
  65. cribl_control_plane/sdk.py +24 -0
  66. cribl_control_plane/teams.py +203 -0
  67. cribl_control_plane/workers_sdk.py +555 -0
  68. {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.20.dist-info}/METADATA +47 -8
  69. {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.20.dist-info}/RECORD +70 -8
  70. {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.20.dist-info}/WHEEL +0 -0
@@ -16,16 +16,24 @@ import weakref
16
16
  if TYPE_CHECKING:
17
17
  from cribl_control_plane.auth_sdk import AuthSDK
18
18
  from cribl_control_plane.destinations import Destinations
19
+ from cribl_control_plane.distributed import Distributed
20
+ from cribl_control_plane.groups_sdk import GroupsSDK
19
21
  from cribl_control_plane.health import Health
22
+ from cribl_control_plane.lake import Lake
23
+ from cribl_control_plane.packs import Packs
20
24
  from cribl_control_plane.pipelines import Pipelines
21
25
  from cribl_control_plane.routes_sdk import RoutesSDK
22
26
  from cribl_control_plane.sources import Sources
27
+ from cribl_control_plane.teams import Teams
23
28
  from cribl_control_plane.versioning import Versioning
29
+ from cribl_control_plane.workers_sdk import WorkersSDK
24
30
 
25
31
 
26
32
  class CriblControlPlane(BaseSDK):
27
33
  r"""Cribl API Reference: This API Reference lists available REST endpoints, along with their supported operations for accessing, creating, updating, or deleting resources. See our complementary product documentation at [docs.cribl.io](http://docs.cribl.io)."""
28
34
 
35
+ lake: "Lake"
36
+ r"""Actions related to Lake"""
29
37
  sources: "Sources"
30
38
  destinations: "Destinations"
31
39
  pipelines: "Pipelines"
@@ -34,18 +42,34 @@ class CriblControlPlane(BaseSDK):
34
42
  r"""Actions related to Routes"""
35
43
  auth: "AuthSDK"
36
44
  r"""Actions related to authentication. Do not use the /auth endpoints in Cribl.Cloud deployments. Instead, follow the instructions at https://docs.cribl.io/stream/api-tutorials/#criblcloud to authenticate for Cribl.Cloud."""
45
+ workers: "WorkersSDK"
46
+ r"""Actions related to Workers"""
47
+ distributed: "Distributed"
48
+ r"""Actions related to Distributed"""
37
49
  health: "Health"
38
50
  r"""Actions related to REST server health"""
51
+ packs: "Packs"
52
+ r"""Actions related to Packs"""
39
53
  versioning: "Versioning"
40
54
  r"""Actions related to Versioning"""
55
+ groups: "GroupsSDK"
56
+ r"""Actions related to Groups"""
57
+ teams: "Teams"
58
+ r"""Actions related to Teams"""
41
59
  _sub_sdk_map = {
60
+ "lake": ("cribl_control_plane.lake", "Lake"),
42
61
  "sources": ("cribl_control_plane.sources", "Sources"),
43
62
  "destinations": ("cribl_control_plane.destinations", "Destinations"),
44
63
  "pipelines": ("cribl_control_plane.pipelines", "Pipelines"),
45
64
  "routes": ("cribl_control_plane.routes_sdk", "RoutesSDK"),
46
65
  "auth": ("cribl_control_plane.auth_sdk", "AuthSDK"),
66
+ "workers": ("cribl_control_plane.workers_sdk", "WorkersSDK"),
67
+ "distributed": ("cribl_control_plane.distributed", "Distributed"),
47
68
  "health": ("cribl_control_plane.health", "Health"),
69
+ "packs": ("cribl_control_plane.packs", "Packs"),
48
70
  "versioning": ("cribl_control_plane.versioning", "Versioning"),
71
+ "groups": ("cribl_control_plane.groups_sdk", "GroupsSDK"),
72
+ "teams": ("cribl_control_plane.teams", "Teams"),
49
73
  }
50
74
 
51
75
  def __init__(
@@ -0,0 +1,203 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from .basesdk import BaseSDK
4
+ from cribl_control_plane import errors, models, utils
5
+ from cribl_control_plane._hooks import HookContext
6
+ from cribl_control_plane.types import OptionalNullable, UNSET
7
+ from cribl_control_plane.utils import get_security_from_env
8
+ from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
9
+ from typing import Any, Mapping, Optional
10
+
11
+
12
+ class Teams(BaseSDK):
13
+ r"""Actions related to Teams"""
14
+
15
+ def get_products_groups_acl_teams_by_product_and_id(
16
+ self,
17
+ *,
18
+ product: models.GetProductsGroupsACLTeamsByProductAndIDProduct,
19
+ id: str,
20
+ type_: Optional[models.GetProductsGroupsACLTeamsByProductAndIDType] = None,
21
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
22
+ server_url: Optional[str] = None,
23
+ timeout_ms: Optional[int] = None,
24
+ http_headers: Optional[Mapping[str, str]] = None,
25
+ ) -> models.GetProductsGroupsACLTeamsByProductAndIDResponse:
26
+ r"""ACL of team with permissions for resources in this Group
27
+
28
+ ACL of team with permissions for resources in this Group
29
+
30
+ :param product: Cribl Product
31
+ :param id: Group ID
32
+ :param type: resource type by which to filter access levels
33
+ :param retries: Override the default retry configuration for this method
34
+ :param server_url: Override the default server URL for this method
35
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
36
+ :param http_headers: Additional headers to set or replace on requests.
37
+ """
38
+ base_url = None
39
+ url_variables = None
40
+ if timeout_ms is None:
41
+ timeout_ms = self.sdk_configuration.timeout_ms
42
+
43
+ if server_url is not None:
44
+ base_url = server_url
45
+ else:
46
+ base_url = self._get_url(base_url, url_variables)
47
+
48
+ request = models.GetProductsGroupsACLTeamsByProductAndIDRequest(
49
+ product=product,
50
+ id=id,
51
+ type=type_,
52
+ )
53
+
54
+ req = self._build_request(
55
+ method="GET",
56
+ path="/products/{product}/groups/{id}/acl/teams",
57
+ base_url=base_url,
58
+ url_variables=url_variables,
59
+ request=request,
60
+ request_body_required=False,
61
+ request_has_path_params=True,
62
+ request_has_query_params=True,
63
+ user_agent_header="user-agent",
64
+ accept_header_value="application/json",
65
+ http_headers=http_headers,
66
+ security=self.sdk_configuration.security,
67
+ timeout_ms=timeout_ms,
68
+ )
69
+
70
+ if retries == UNSET:
71
+ if self.sdk_configuration.retry_config is not UNSET:
72
+ retries = self.sdk_configuration.retry_config
73
+
74
+ retry_config = None
75
+ if isinstance(retries, utils.RetryConfig):
76
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
77
+
78
+ http_res = self.do_request(
79
+ hook_ctx=HookContext(
80
+ config=self.sdk_configuration,
81
+ base_url=base_url or "",
82
+ operation_id="getProductsGroupsAclTeamsByProductAndId",
83
+ oauth2_scopes=[],
84
+ security_source=get_security_from_env(
85
+ self.sdk_configuration.security, models.Security
86
+ ),
87
+ ),
88
+ request=req,
89
+ error_status_codes=["401", "4XX", "500", "5XX"],
90
+ retry_config=retry_config,
91
+ )
92
+
93
+ response_data: Any = None
94
+ if utils.match_response(http_res, "200", "application/json"):
95
+ return unmarshal_json_response(
96
+ models.GetProductsGroupsACLTeamsByProductAndIDResponse, http_res
97
+ )
98
+ if utils.match_response(http_res, "500", "application/json"):
99
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
100
+ raise errors.Error(response_data, http_res)
101
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
102
+ http_res_text = utils.stream_to_text(http_res)
103
+ raise errors.APIError("API error occurred", http_res, http_res_text)
104
+ if utils.match_response(http_res, "5XX", "*"):
105
+ http_res_text = utils.stream_to_text(http_res)
106
+ raise errors.APIError("API error occurred", http_res, http_res_text)
107
+
108
+ raise errors.APIError("Unexpected response received", http_res)
109
+
110
+ async def get_products_groups_acl_teams_by_product_and_id_async(
111
+ self,
112
+ *,
113
+ product: models.GetProductsGroupsACLTeamsByProductAndIDProduct,
114
+ id: str,
115
+ type_: Optional[models.GetProductsGroupsACLTeamsByProductAndIDType] = None,
116
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
117
+ server_url: Optional[str] = None,
118
+ timeout_ms: Optional[int] = None,
119
+ http_headers: Optional[Mapping[str, str]] = None,
120
+ ) -> models.GetProductsGroupsACLTeamsByProductAndIDResponse:
121
+ r"""ACL of team with permissions for resources in this Group
122
+
123
+ ACL of team with permissions for resources in this Group
124
+
125
+ :param product: Cribl Product
126
+ :param id: Group ID
127
+ :param type: resource type by which to filter access levels
128
+ :param retries: Override the default retry configuration for this method
129
+ :param server_url: Override the default server URL for this method
130
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
131
+ :param http_headers: Additional headers to set or replace on requests.
132
+ """
133
+ base_url = None
134
+ url_variables = None
135
+ if timeout_ms is None:
136
+ timeout_ms = self.sdk_configuration.timeout_ms
137
+
138
+ if server_url is not None:
139
+ base_url = server_url
140
+ else:
141
+ base_url = self._get_url(base_url, url_variables)
142
+
143
+ request = models.GetProductsGroupsACLTeamsByProductAndIDRequest(
144
+ product=product,
145
+ id=id,
146
+ type=type_,
147
+ )
148
+
149
+ req = self._build_request_async(
150
+ method="GET",
151
+ path="/products/{product}/groups/{id}/acl/teams",
152
+ base_url=base_url,
153
+ url_variables=url_variables,
154
+ request=request,
155
+ request_body_required=False,
156
+ request_has_path_params=True,
157
+ request_has_query_params=True,
158
+ user_agent_header="user-agent",
159
+ accept_header_value="application/json",
160
+ http_headers=http_headers,
161
+ security=self.sdk_configuration.security,
162
+ timeout_ms=timeout_ms,
163
+ )
164
+
165
+ if retries == UNSET:
166
+ if self.sdk_configuration.retry_config is not UNSET:
167
+ retries = self.sdk_configuration.retry_config
168
+
169
+ retry_config = None
170
+ if isinstance(retries, utils.RetryConfig):
171
+ retry_config = (retries, ["429", "500", "502", "503", "504"])
172
+
173
+ http_res = await self.do_request_async(
174
+ hook_ctx=HookContext(
175
+ config=self.sdk_configuration,
176
+ base_url=base_url or "",
177
+ operation_id="getProductsGroupsAclTeamsByProductAndId",
178
+ oauth2_scopes=[],
179
+ security_source=get_security_from_env(
180
+ self.sdk_configuration.security, models.Security
181
+ ),
182
+ ),
183
+ request=req,
184
+ error_status_codes=["401", "4XX", "500", "5XX"],
185
+ retry_config=retry_config,
186
+ )
187
+
188
+ response_data: Any = None
189
+ if utils.match_response(http_res, "200", "application/json"):
190
+ return unmarshal_json_response(
191
+ models.GetProductsGroupsACLTeamsByProductAndIDResponse, http_res
192
+ )
193
+ if utils.match_response(http_res, "500", "application/json"):
194
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
195
+ raise errors.Error(response_data, http_res)
196
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
197
+ http_res_text = await utils.stream_to_text_async(http_res)
198
+ raise errors.APIError("API error occurred", http_res, http_res_text)
199
+ if utils.match_response(http_res, "5XX", "*"):
200
+ http_res_text = await utils.stream_to_text_async(http_res)
201
+ raise errors.APIError("API error occurred", http_res, http_res_text)
202
+
203
+ raise errors.APIError("Unexpected response received", http_res)