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.

Files changed (65) 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 +479 -0
  6. cribl_control_plane/models/__init__.py +602 -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/deployrequest.py +18 -0
  22. cribl_control_plane/models/deployrequestlookups.py +28 -0
  23. cribl_control_plane/models/distributedsummary.py +63 -0
  24. cribl_control_plane/models/getcribllakedatasetbylakeidop.py +40 -0
  25. cribl_control_plane/models/getgroupsaclbyidop.py +63 -0
  26. cribl_control_plane/models/getgroupsbyidop.py +49 -0
  27. cribl_control_plane/models/getgroupsconfigversionbyidop.py +36 -0
  28. cribl_control_plane/models/getpacksop.py +40 -0
  29. cribl_control_plane/models/getproductsgroupsaclteamsbyproductandidop.py +78 -0
  30. cribl_control_plane/models/getproductsgroupsbyproductop.py +58 -0
  31. cribl_control_plane/models/getsummaryop.py +46 -0
  32. cribl_control_plane/models/getsummaryworkersop.py +39 -0
  33. cribl_control_plane/models/getworkersop.py +82 -0
  34. cribl_control_plane/models/hbcriblinfo.py +80 -0
  35. cribl_control_plane/models/hbleaderinfo.py +23 -0
  36. cribl_control_plane/models/healthstatus.py +3 -3
  37. cribl_control_plane/models/heartbeatmetadata.py +122 -0
  38. cribl_control_plane/models/lakedatasetsearchconfig.py +18 -0
  39. cribl_control_plane/models/lakehouseconnectiontype.py +9 -0
  40. cribl_control_plane/models/lookupversions.py +13 -0
  41. cribl_control_plane/models/masterworkerentry.py +84 -0
  42. cribl_control_plane/models/nodeactiveupgradestatus.py +10 -0
  43. cribl_control_plane/models/nodefailedupgradestatus.py +9 -0
  44. cribl_control_plane/models/nodeprovidedinfo.py +184 -0
  45. cribl_control_plane/models/nodeskippedupgradestatus.py +11 -0
  46. cribl_control_plane/models/nodeupgradestate.py +11 -0
  47. cribl_control_plane/models/nodeupgradestatus.py +30 -0
  48. cribl_control_plane/models/packinfo.py +73 -0
  49. cribl_control_plane/models/packinstallinfo.py +76 -0
  50. cribl_control_plane/models/packrequestbody.py +75 -0
  51. cribl_control_plane/models/rbacresource.py +14 -0
  52. cribl_control_plane/models/resourcepolicy.py +24 -0
  53. cribl_control_plane/models/restartresponse.py +26 -0
  54. cribl_control_plane/models/teamaccesscontrollist.py +18 -0
  55. cribl_control_plane/models/updategroupsdeploybyidop.py +46 -0
  56. cribl_control_plane/models/updatepacksop.py +37 -0
  57. cribl_control_plane/models/updateworkersrestartop.py +24 -0
  58. cribl_control_plane/models/useraccesscontrollist.py +18 -0
  59. cribl_control_plane/packs.py +623 -0
  60. cribl_control_plane/sdk.py +24 -0
  61. cribl_control_plane/teams.py +203 -0
  62. cribl_control_plane/workers_sdk.py +555 -0
  63. {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.dist-info}/METADATA +42 -8
  64. {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.dist-info}/RECORD +65 -8
  65. {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.19.dist-info}/WHEEL +0 -0
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "cribl-control-plane"
6
- __version__: str = "0.0.18"
7
- __openapi_doc_version__: str = "4.14.0-alpha.1753735749224-0a5d0b46"
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.18 2.660.0 4.14.0-alpha.1753735749224-0a5d0b46 cribl-control-plane"
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)
@@ -11,7 +11,7 @@ from typing_extensions import Annotated
11
11
 
12
12
 
13
13
  class HealthStatusErrorData(BaseModel):
14
- status: models_healthstatus.Status
14
+ status: models_healthstatus.HealthStatusStatus
15
15
 
16
16
  start_time: Annotated[float, pydantic.Field(alias="startTime")]
17
17