cribl-control-plane 0.0.18__py3-none-any.whl → 0.0.19__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/distributed.py +187 -0
- cribl_control_plane/errors/healthstatus_error.py +1 -1
- cribl_control_plane/groups_sdk.py +1291 -0
- cribl_control_plane/lake.py +479 -0
- cribl_control_plane/models/__init__.py +602 -3
- cribl_control_plane/models/appmode.py +13 -0
- cribl_control_plane/models/cacheconnection.py +44 -0
- cribl_control_plane/models/cacheconnectionbackfillstatus.py +12 -0
- cribl_control_plane/models/cloudprovider.py +9 -0
- cribl_control_plane/models/commit.py +30 -0
- cribl_control_plane/models/configgroup.py +116 -0
- cribl_control_plane/models/configgroupcloud.py +48 -0
- cribl_control_plane/models/configgrouplookups.py +34 -0
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +48 -0
- cribl_control_plane/models/createpacksop.py +24 -0
- cribl_control_plane/models/createproductsgroupsbyproductop.py +54 -0
- cribl_control_plane/models/cribllakedataset.py +74 -0
- cribl_control_plane/models/datasetmetadata.py +39 -0
- cribl_control_plane/models/datasetmetadataruninfo.py +28 -0
- cribl_control_plane/models/deployrequest.py +18 -0
- cribl_control_plane/models/deployrequestlookups.py +28 -0
- cribl_control_plane/models/distributedsummary.py +63 -0
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +40 -0
- cribl_control_plane/models/getgroupsaclbyidop.py +63 -0
- cribl_control_plane/models/getgroupsbyidop.py +49 -0
- cribl_control_plane/models/getgroupsconfigversionbyidop.py +36 -0
- cribl_control_plane/models/getpacksop.py +40 -0
- cribl_control_plane/models/getproductsgroupsaclteamsbyproductandidop.py +78 -0
- cribl_control_plane/models/getproductsgroupsbyproductop.py +58 -0
- cribl_control_plane/models/getsummaryop.py +46 -0
- cribl_control_plane/models/getsummaryworkersop.py +39 -0
- cribl_control_plane/models/getworkersop.py +82 -0
- cribl_control_plane/models/hbcriblinfo.py +80 -0
- cribl_control_plane/models/hbleaderinfo.py +23 -0
- cribl_control_plane/models/healthstatus.py +3 -3
- cribl_control_plane/models/heartbeatmetadata.py +122 -0
- cribl_control_plane/models/lakedatasetsearchconfig.py +18 -0
- cribl_control_plane/models/lakehouseconnectiontype.py +9 -0
- cribl_control_plane/models/lookupversions.py +13 -0
- cribl_control_plane/models/masterworkerentry.py +84 -0
- cribl_control_plane/models/nodeactiveupgradestatus.py +10 -0
- cribl_control_plane/models/nodefailedupgradestatus.py +9 -0
- cribl_control_plane/models/nodeprovidedinfo.py +184 -0
- cribl_control_plane/models/nodeskippedupgradestatus.py +11 -0
- cribl_control_plane/models/nodeupgradestate.py +11 -0
- cribl_control_plane/models/nodeupgradestatus.py +30 -0
- cribl_control_plane/models/packinfo.py +73 -0
- cribl_control_plane/models/packinstallinfo.py +76 -0
- cribl_control_plane/models/packrequestbody.py +75 -0
- cribl_control_plane/models/rbacresource.py +14 -0
- cribl_control_plane/models/resourcepolicy.py +24 -0
- cribl_control_plane/models/restartresponse.py +26 -0
- cribl_control_plane/models/teamaccesscontrollist.py +18 -0
- cribl_control_plane/models/updategroupsdeploybyidop.py +46 -0
- cribl_control_plane/models/updatepacksop.py +37 -0
- cribl_control_plane/models/updateworkersrestartop.py +24 -0
- cribl_control_plane/models/useraccesscontrollist.py +18 -0
- cribl_control_plane/packs.py +623 -0
- cribl_control_plane/sdk.py +24 -0
- cribl_control_plane/teams.py +203 -0
- cribl_control_plane/workers_sdk.py +555 -0
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.dist-info}/METADATA +42 -8
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.dist-info}/RECORD +65 -8
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.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.19"
|
|
7
|
+
__openapi_doc_version__: str = "4.14.0-alpha.1753854543129-e0f06d67"
|
|
8
8
|
__gen_version__: str = "2.660.0"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.0.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.0.19 2.660.0 4.14.0-alpha.1753854543129-e0f06d67 cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -0,0 +1,187 @@
|
|
|
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 Distributed(BaseSDK):
|
|
13
|
+
r"""Actions related to Distributed"""
|
|
14
|
+
|
|
15
|
+
def get_summary(
|
|
16
|
+
self,
|
|
17
|
+
*,
|
|
18
|
+
mode: Optional[models.GetSummaryMode] = None,
|
|
19
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
20
|
+
server_url: Optional[str] = None,
|
|
21
|
+
timeout_ms: Optional[int] = None,
|
|
22
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
23
|
+
) -> models.GetSummaryResponse:
|
|
24
|
+
r"""Get summary of Distributed deployment
|
|
25
|
+
|
|
26
|
+
Get summary of Distributed deployment
|
|
27
|
+
|
|
28
|
+
:param mode: product filter
|
|
29
|
+
:param retries: Override the default retry configuration for this method
|
|
30
|
+
:param server_url: Override the default server URL for this method
|
|
31
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
32
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
33
|
+
"""
|
|
34
|
+
base_url = None
|
|
35
|
+
url_variables = None
|
|
36
|
+
if timeout_ms is None:
|
|
37
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
38
|
+
|
|
39
|
+
if server_url is not None:
|
|
40
|
+
base_url = server_url
|
|
41
|
+
else:
|
|
42
|
+
base_url = self._get_url(base_url, url_variables)
|
|
43
|
+
|
|
44
|
+
request = models.GetSummaryRequest(
|
|
45
|
+
mode=mode,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
req = self._build_request(
|
|
49
|
+
method="GET",
|
|
50
|
+
path="/master/summary",
|
|
51
|
+
base_url=base_url,
|
|
52
|
+
url_variables=url_variables,
|
|
53
|
+
request=request,
|
|
54
|
+
request_body_required=False,
|
|
55
|
+
request_has_path_params=False,
|
|
56
|
+
request_has_query_params=True,
|
|
57
|
+
user_agent_header="user-agent",
|
|
58
|
+
accept_header_value="application/json",
|
|
59
|
+
http_headers=http_headers,
|
|
60
|
+
security=self.sdk_configuration.security,
|
|
61
|
+
timeout_ms=timeout_ms,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
if retries == UNSET:
|
|
65
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
66
|
+
retries = self.sdk_configuration.retry_config
|
|
67
|
+
|
|
68
|
+
retry_config = None
|
|
69
|
+
if isinstance(retries, utils.RetryConfig):
|
|
70
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
71
|
+
|
|
72
|
+
http_res = self.do_request(
|
|
73
|
+
hook_ctx=HookContext(
|
|
74
|
+
config=self.sdk_configuration,
|
|
75
|
+
base_url=base_url or "",
|
|
76
|
+
operation_id="getSummary",
|
|
77
|
+
oauth2_scopes=[],
|
|
78
|
+
security_source=get_security_from_env(
|
|
79
|
+
self.sdk_configuration.security, models.Security
|
|
80
|
+
),
|
|
81
|
+
),
|
|
82
|
+
request=req,
|
|
83
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
84
|
+
retry_config=retry_config,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
response_data: Any = None
|
|
88
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
89
|
+
return unmarshal_json_response(models.GetSummaryResponse, http_res)
|
|
90
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
91
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
92
|
+
raise errors.Error(response_data, http_res)
|
|
93
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
94
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
95
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
96
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
97
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
98
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
99
|
+
|
|
100
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
101
|
+
|
|
102
|
+
async def get_summary_async(
|
|
103
|
+
self,
|
|
104
|
+
*,
|
|
105
|
+
mode: Optional[models.GetSummaryMode] = None,
|
|
106
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
107
|
+
server_url: Optional[str] = None,
|
|
108
|
+
timeout_ms: Optional[int] = None,
|
|
109
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
110
|
+
) -> models.GetSummaryResponse:
|
|
111
|
+
r"""Get summary of Distributed deployment
|
|
112
|
+
|
|
113
|
+
Get summary of Distributed deployment
|
|
114
|
+
|
|
115
|
+
:param mode: product filter
|
|
116
|
+
:param retries: Override the default retry configuration for this method
|
|
117
|
+
:param server_url: Override the default server URL for this method
|
|
118
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
119
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
120
|
+
"""
|
|
121
|
+
base_url = None
|
|
122
|
+
url_variables = None
|
|
123
|
+
if timeout_ms is None:
|
|
124
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
125
|
+
|
|
126
|
+
if server_url is not None:
|
|
127
|
+
base_url = server_url
|
|
128
|
+
else:
|
|
129
|
+
base_url = self._get_url(base_url, url_variables)
|
|
130
|
+
|
|
131
|
+
request = models.GetSummaryRequest(
|
|
132
|
+
mode=mode,
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
req = self._build_request_async(
|
|
136
|
+
method="GET",
|
|
137
|
+
path="/master/summary",
|
|
138
|
+
base_url=base_url,
|
|
139
|
+
url_variables=url_variables,
|
|
140
|
+
request=request,
|
|
141
|
+
request_body_required=False,
|
|
142
|
+
request_has_path_params=False,
|
|
143
|
+
request_has_query_params=True,
|
|
144
|
+
user_agent_header="user-agent",
|
|
145
|
+
accept_header_value="application/json",
|
|
146
|
+
http_headers=http_headers,
|
|
147
|
+
security=self.sdk_configuration.security,
|
|
148
|
+
timeout_ms=timeout_ms,
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
if retries == UNSET:
|
|
152
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
153
|
+
retries = self.sdk_configuration.retry_config
|
|
154
|
+
|
|
155
|
+
retry_config = None
|
|
156
|
+
if isinstance(retries, utils.RetryConfig):
|
|
157
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
158
|
+
|
|
159
|
+
http_res = await self.do_request_async(
|
|
160
|
+
hook_ctx=HookContext(
|
|
161
|
+
config=self.sdk_configuration,
|
|
162
|
+
base_url=base_url or "",
|
|
163
|
+
operation_id="getSummary",
|
|
164
|
+
oauth2_scopes=[],
|
|
165
|
+
security_source=get_security_from_env(
|
|
166
|
+
self.sdk_configuration.security, models.Security
|
|
167
|
+
),
|
|
168
|
+
),
|
|
169
|
+
request=req,
|
|
170
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
171
|
+
retry_config=retry_config,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
response_data: Any = None
|
|
175
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
176
|
+
return unmarshal_json_response(models.GetSummaryResponse, http_res)
|
|
177
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
178
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
179
|
+
raise errors.Error(response_data, http_res)
|
|
180
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
181
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
182
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
183
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
184
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
185
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
186
|
+
|
|
187
|
+
raise errors.APIError("Unexpected response received", http_res)
|