cribl-control-plane 0.0.25__py3-none-any.whl → 0.0.26__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/destinations.py +10 -8
- cribl_control_plane/errors/healthstatus_error.py +1 -1
- cribl_control_plane/groups_sdk.py +10 -10
- cribl_control_plane/{healthinfo.py → health.py} +3 -1
- cribl_control_plane/models/__init__.py +3 -27
- cribl_control_plane/models/healthstatus.py +3 -3
- cribl_control_plane/models/inputappscope.py +5 -5
- cribl_control_plane/models/inputcollection.py +2 -2
- cribl_control_plane/models/inputconfluentcloud.py +3 -3
- cribl_control_plane/models/inputcribl.py +5 -5
- cribl_control_plane/models/inputcriblhttp.py +3 -3
- cribl_control_plane/models/inputcribllakehttp.py +3 -3
- cribl_control_plane/models/inputcriblmetrics.py +5 -5
- cribl_control_plane/models/inputcribltcp.py +3 -3
- cribl_control_plane/models/inputdatadogagent.py +3 -3
- cribl_control_plane/models/inputedgeprometheus.py +3 -3
- cribl_control_plane/models/inputelastic.py +3 -3
- cribl_control_plane/models/inputeventhub.py +3 -3
- cribl_control_plane/models/inputfile.py +5 -5
- cribl_control_plane/models/inputfirehose.py +3 -3
- cribl_control_plane/models/inputgooglepubsub.py +3 -3
- cribl_control_plane/models/inputgrafana.py +6 -6
- cribl_control_plane/models/inputhttp.py +3 -3
- cribl_control_plane/models/inputhttpraw.py +3 -3
- cribl_control_plane/models/inputjournalfiles.py +3 -3
- cribl_control_plane/models/inputkafka.py +3 -3
- cribl_control_plane/models/inputkinesis.py +3 -3
- cribl_control_plane/models/inputkubeevents.py +5 -5
- cribl_control_plane/models/inputkubelogs.py +5 -5
- cribl_control_plane/models/inputkubemetrics.py +5 -5
- cribl_control_plane/models/inputloki.py +3 -3
- cribl_control_plane/models/inputmodeldriventelemetry.py +3 -3
- cribl_control_plane/models/inputmsk.py +3 -3
- cribl_control_plane/models/inputnetflow.py +3 -3
- cribl_control_plane/models/inputoffice365mgmt.py +3 -3
- cribl_control_plane/models/inputoffice365msgtrace.py +3 -3
- cribl_control_plane/models/inputoffice365service.py +3 -3
- cribl_control_plane/models/inputopentelemetry.py +3 -3
- cribl_control_plane/models/inputprometheus.py +3 -3
- cribl_control_plane/models/inputprometheusrw.py +3 -3
- cribl_control_plane/models/inputrawudp.py +3 -3
- cribl_control_plane/models/inputsnmp.py +3 -3
- cribl_control_plane/models/inputsplunk.py +3 -3
- cribl_control_plane/models/inputsplunkhec.py +3 -3
- cribl_control_plane/models/inputsplunksearch.py +3 -3
- cribl_control_plane/models/inputsqs.py +3 -3
- cribl_control_plane/models/inputsystemmetrics.py +5 -5
- cribl_control_plane/models/inputsystemstate.py +5 -5
- cribl_control_plane/models/inputtcp.py +3 -3
- cribl_control_plane/models/inputtcpjson.py +3 -3
- cribl_control_plane/models/inputwef.py +3 -3
- cribl_control_plane/models/inputwindowsmetrics.py +5 -5
- cribl_control_plane/models/inputwiz.py +3 -3
- cribl_control_plane/models/inputzscalerhec.py +3 -3
- cribl_control_plane/models/outputazureblob.py +3 -3
- cribl_control_plane/models/outputazuredataexplorer.py +3 -3
- cribl_control_plane/models/outputazureeventhub.py +3 -3
- cribl_control_plane/models/outputclickhouse.py +3 -3
- cribl_control_plane/models/outputcloudwatch.py +3 -3
- cribl_control_plane/models/outputconfluentcloud.py +3 -3
- cribl_control_plane/models/outputcriblhttp.py +5 -5
- cribl_control_plane/models/outputcribllake.py +5 -5
- cribl_control_plane/models/outputcribltcp.py +5 -5
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +3 -3
- cribl_control_plane/models/outputdatadog.py +5 -5
- cribl_control_plane/models/outputdataset.py +5 -5
- cribl_control_plane/models/outputdevnull.py +5 -5
- cribl_control_plane/models/outputdiskspool.py +5 -5
- cribl_control_plane/models/outputdls3.py +3 -3
- cribl_control_plane/models/outputdynatracehttp.py +3 -3
- cribl_control_plane/models/outputdynatraceotlp.py +3 -3
- cribl_control_plane/models/outputelasticcloud.py +3 -3
- cribl_control_plane/models/outputexabeam.py +3 -3
- cribl_control_plane/models/outputgooglecloudlogging.py +3 -3
- cribl_control_plane/models/outputgooglecloudstorage.py +3 -3
- cribl_control_plane/models/outputgrafanacloud.py +10 -10
- cribl_control_plane/models/outputgraphite.py +3 -3
- cribl_control_plane/models/outputhumiohec.py +3 -3
- cribl_control_plane/models/outputkafka.py +3 -3
- cribl_control_plane/models/outputkinesis.py +3 -3
- cribl_control_plane/models/outputminio.py +3 -3
- cribl_control_plane/models/outputmsk.py +3 -3
- cribl_control_plane/models/outputnewrelic.py +5 -5
- cribl_control_plane/models/outputnewrelicevents.py +3 -3
- cribl_control_plane/models/outputring.py +5 -5
- cribl_control_plane/models/outputs3.py +3 -3
- cribl_control_plane/models/outputsecuritylake.py +3 -3
- cribl_control_plane/models/outputsentinel.py +3 -3
- cribl_control_plane/models/outputsentineloneaisiem.py +3 -3
- cribl_control_plane/models/outputservicenow.py +3 -3
- cribl_control_plane/models/outputsns.py +3 -3
- cribl_control_plane/models/outputsplunk.py +3 -3
- cribl_control_plane/models/outputsplunkhec.py +5 -5
- cribl_control_plane/models/outputsqs.py +3 -3
- cribl_control_plane/models/outputstatsd.py +3 -3
- cribl_control_plane/models/outputstatsdext.py +3 -3
- cribl_control_plane/models/outputsyslog.py +5 -5
- cribl_control_plane/models/outputtcpjson.py +5 -5
- cribl_control_plane/models/outputwebhook.py +5 -5
- cribl_control_plane/models/outputxsiam.py +5 -5
- cribl_control_plane/nodes.py +252 -68
- cribl_control_plane/sdk.py +8 -12
- cribl_control_plane/sources.py +2 -0
- cribl_control_plane/versioning.py +10 -10
- {cribl_control_plane-0.0.25.dist-info → cribl_control_plane-0.0.26.dist-info}/METADATA +20 -27
- {cribl_control_plane-0.0.25.dist-info → cribl_control_plane-0.0.26.dist-info}/RECORD +108 -112
- cribl_control_plane/deployments.py +0 -185
- cribl_control_plane/models/restartresponse.py +0 -26
- cribl_control_plane/models/updateworkersrestartop.py +0 -24
- cribl_control_plane/workers_sdk.py +0 -187
- {cribl_control_plane-0.0.25.dist-info → cribl_control_plane-0.0.26.dist-info}/WHEEL +0 -0
cribl_control_plane/nodes.py
CHANGED
|
@@ -10,30 +10,194 @@ from typing import Any, Mapping, Optional
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Nodes(BaseSDK):
|
|
13
|
-
def
|
|
13
|
+
def get_summary(
|
|
14
|
+
self,
|
|
15
|
+
*,
|
|
16
|
+
mode: Optional[models.GetSummaryMode] = None,
|
|
17
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
18
|
+
server_url: Optional[str] = None,
|
|
19
|
+
timeout_ms: Optional[int] = None,
|
|
20
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
21
|
+
) -> models.GetSummaryResponse:
|
|
22
|
+
r"""Retrieve a summary of the Distributed deployment
|
|
23
|
+
|
|
24
|
+
Get summary of Distributed deployment
|
|
25
|
+
|
|
26
|
+
:param mode: product filter
|
|
27
|
+
:param retries: Override the default retry configuration for this method
|
|
28
|
+
:param server_url: Override the default server URL for this method
|
|
29
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
30
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
31
|
+
"""
|
|
32
|
+
base_url = None
|
|
33
|
+
url_variables = None
|
|
34
|
+
if timeout_ms is None:
|
|
35
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
36
|
+
|
|
37
|
+
if server_url is not None:
|
|
38
|
+
base_url = server_url
|
|
39
|
+
else:
|
|
40
|
+
base_url = self._get_url(base_url, url_variables)
|
|
41
|
+
|
|
42
|
+
request = models.GetSummaryRequest(
|
|
43
|
+
mode=mode,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
req = self._build_request(
|
|
47
|
+
method="GET",
|
|
48
|
+
path="/master/summary",
|
|
49
|
+
base_url=base_url,
|
|
50
|
+
url_variables=url_variables,
|
|
51
|
+
request=request,
|
|
52
|
+
request_body_required=False,
|
|
53
|
+
request_has_path_params=False,
|
|
54
|
+
request_has_query_params=True,
|
|
55
|
+
user_agent_header="user-agent",
|
|
56
|
+
accept_header_value="application/json",
|
|
57
|
+
http_headers=http_headers,
|
|
58
|
+
security=self.sdk_configuration.security,
|
|
59
|
+
timeout_ms=timeout_ms,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
if retries == UNSET:
|
|
63
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
64
|
+
retries = self.sdk_configuration.retry_config
|
|
65
|
+
|
|
66
|
+
retry_config = None
|
|
67
|
+
if isinstance(retries, utils.RetryConfig):
|
|
68
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
69
|
+
|
|
70
|
+
http_res = self.do_request(
|
|
71
|
+
hook_ctx=HookContext(
|
|
72
|
+
config=self.sdk_configuration,
|
|
73
|
+
base_url=base_url or "",
|
|
74
|
+
operation_id="getSummary",
|
|
75
|
+
oauth2_scopes=[],
|
|
76
|
+
security_source=get_security_from_env(
|
|
77
|
+
self.sdk_configuration.security, models.Security
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
request=req,
|
|
81
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
82
|
+
retry_config=retry_config,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
response_data: Any = None
|
|
86
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
87
|
+
return unmarshal_json_response(models.GetSummaryResponse, http_res)
|
|
88
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
89
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
90
|
+
raise errors.Error(response_data, http_res)
|
|
91
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
92
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
93
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
94
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
95
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
96
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
97
|
+
|
|
98
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
99
|
+
|
|
100
|
+
async def get_summary_async(
|
|
101
|
+
self,
|
|
102
|
+
*,
|
|
103
|
+
mode: Optional[models.GetSummaryMode] = None,
|
|
104
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
105
|
+
server_url: Optional[str] = None,
|
|
106
|
+
timeout_ms: Optional[int] = None,
|
|
107
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
108
|
+
) -> models.GetSummaryResponse:
|
|
109
|
+
r"""Retrieve a summary of the Distributed deployment
|
|
110
|
+
|
|
111
|
+
Get summary of Distributed deployment
|
|
112
|
+
|
|
113
|
+
:param mode: product filter
|
|
114
|
+
:param retries: Override the default retry configuration for this method
|
|
115
|
+
:param server_url: Override the default server URL for this method
|
|
116
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
117
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
118
|
+
"""
|
|
119
|
+
base_url = None
|
|
120
|
+
url_variables = None
|
|
121
|
+
if timeout_ms is None:
|
|
122
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
123
|
+
|
|
124
|
+
if server_url is not None:
|
|
125
|
+
base_url = server_url
|
|
126
|
+
else:
|
|
127
|
+
base_url = self._get_url(base_url, url_variables)
|
|
128
|
+
|
|
129
|
+
request = models.GetSummaryRequest(
|
|
130
|
+
mode=mode,
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
req = self._build_request_async(
|
|
134
|
+
method="GET",
|
|
135
|
+
path="/master/summary",
|
|
136
|
+
base_url=base_url,
|
|
137
|
+
url_variables=url_variables,
|
|
138
|
+
request=request,
|
|
139
|
+
request_body_required=False,
|
|
140
|
+
request_has_path_params=False,
|
|
141
|
+
request_has_query_params=True,
|
|
142
|
+
user_agent_header="user-agent",
|
|
143
|
+
accept_header_value="application/json",
|
|
144
|
+
http_headers=http_headers,
|
|
145
|
+
security=self.sdk_configuration.security,
|
|
146
|
+
timeout_ms=timeout_ms,
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
if retries == UNSET:
|
|
150
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
151
|
+
retries = self.sdk_configuration.retry_config
|
|
152
|
+
|
|
153
|
+
retry_config = None
|
|
154
|
+
if isinstance(retries, utils.RetryConfig):
|
|
155
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
156
|
+
|
|
157
|
+
http_res = await self.do_request_async(
|
|
158
|
+
hook_ctx=HookContext(
|
|
159
|
+
config=self.sdk_configuration,
|
|
160
|
+
base_url=base_url or "",
|
|
161
|
+
operation_id="getSummary",
|
|
162
|
+
oauth2_scopes=[],
|
|
163
|
+
security_source=get_security_from_env(
|
|
164
|
+
self.sdk_configuration.security, models.Security
|
|
165
|
+
),
|
|
166
|
+
),
|
|
167
|
+
request=req,
|
|
168
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
169
|
+
retry_config=retry_config,
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
response_data: Any = None
|
|
173
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
174
|
+
return unmarshal_json_response(models.GetSummaryResponse, http_res)
|
|
175
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
176
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
177
|
+
raise errors.Error(response_data, http_res)
|
|
178
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
179
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
180
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
181
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
182
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
183
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
184
|
+
|
|
185
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
186
|
+
|
|
187
|
+
def count(
|
|
14
188
|
self,
|
|
15
189
|
*,
|
|
16
190
|
filter_exp: Optional[str] = None,
|
|
17
|
-
sort: Optional[str] = None,
|
|
18
|
-
sort_exp: Optional[str] = None,
|
|
19
|
-
limit: Optional[int] = None,
|
|
20
|
-
offset: Optional[int] = None,
|
|
21
|
-
filter_: Optional[str] = None,
|
|
22
191
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
23
192
|
server_url: Optional[str] = None,
|
|
24
193
|
timeout_ms: Optional[int] = None,
|
|
25
194
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
26
|
-
) -> models.
|
|
27
|
-
r"""Retrieve
|
|
195
|
+
) -> models.GetSummaryWorkersResponse:
|
|
196
|
+
r"""Retrieve a count of Worker and Edge Nodes
|
|
28
197
|
|
|
29
|
-
get worker and edge nodes
|
|
198
|
+
get worker and edge nodes count
|
|
30
199
|
|
|
31
200
|
:param filter_exp: Filter expression evaluated against nodes
|
|
32
|
-
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
33
|
-
:param sort_exp: Sorting expression evaluated against nodes
|
|
34
|
-
:param limit: Maximum number of nodes to return
|
|
35
|
-
:param offset: Pagination offset
|
|
36
|
-
:param filter_: Filter object (JSON stringified) to select nodes
|
|
37
201
|
:param retries: Override the default retry configuration for this method
|
|
38
202
|
:param server_url: Override the default server URL for this method
|
|
39
203
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -49,18 +213,13 @@ class Nodes(BaseSDK):
|
|
|
49
213
|
else:
|
|
50
214
|
base_url = self._get_url(base_url, url_variables)
|
|
51
215
|
|
|
52
|
-
request = models.
|
|
216
|
+
request = models.GetSummaryWorkersRequest(
|
|
53
217
|
filter_exp=filter_exp,
|
|
54
|
-
sort=sort,
|
|
55
|
-
sort_exp=sort_exp,
|
|
56
|
-
limit=limit,
|
|
57
|
-
offset=offset,
|
|
58
|
-
filter_=filter_,
|
|
59
218
|
)
|
|
60
219
|
|
|
61
220
|
req = self._build_request(
|
|
62
221
|
method="GET",
|
|
63
|
-
path="/master/workers",
|
|
222
|
+
path="/master/summary/workers",
|
|
64
223
|
base_url=base_url,
|
|
65
224
|
url_variables=url_variables,
|
|
66
225
|
request=request,
|
|
@@ -86,7 +245,7 @@ class Nodes(BaseSDK):
|
|
|
86
245
|
hook_ctx=HookContext(
|
|
87
246
|
config=self.sdk_configuration,
|
|
88
247
|
base_url=base_url or "",
|
|
89
|
-
operation_id="
|
|
248
|
+
operation_id="getSummaryWorkers",
|
|
90
249
|
oauth2_scopes=[],
|
|
91
250
|
security_source=get_security_from_env(
|
|
92
251
|
self.sdk_configuration.security, models.Security
|
|
@@ -99,7 +258,7 @@ class Nodes(BaseSDK):
|
|
|
99
258
|
|
|
100
259
|
response_data: Any = None
|
|
101
260
|
if utils.match_response(http_res, "200", "application/json"):
|
|
102
|
-
return unmarshal_json_response(models.
|
|
261
|
+
return unmarshal_json_response(models.GetSummaryWorkersResponse, http_res)
|
|
103
262
|
if utils.match_response(http_res, "500", "application/json"):
|
|
104
263
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
105
264
|
raise errors.Error(response_data, http_res)
|
|
@@ -112,30 +271,20 @@ class Nodes(BaseSDK):
|
|
|
112
271
|
|
|
113
272
|
raise errors.APIError("Unexpected response received", http_res)
|
|
114
273
|
|
|
115
|
-
async def
|
|
274
|
+
async def count_async(
|
|
116
275
|
self,
|
|
117
276
|
*,
|
|
118
277
|
filter_exp: Optional[str] = None,
|
|
119
|
-
sort: Optional[str] = None,
|
|
120
|
-
sort_exp: Optional[str] = None,
|
|
121
|
-
limit: Optional[int] = None,
|
|
122
|
-
offset: Optional[int] = None,
|
|
123
|
-
filter_: Optional[str] = None,
|
|
124
278
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
125
279
|
server_url: Optional[str] = None,
|
|
126
280
|
timeout_ms: Optional[int] = None,
|
|
127
281
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
128
|
-
) -> models.
|
|
129
|
-
r"""Retrieve
|
|
282
|
+
) -> models.GetSummaryWorkersResponse:
|
|
283
|
+
r"""Retrieve a count of Worker and Edge Nodes
|
|
130
284
|
|
|
131
|
-
get worker and edge nodes
|
|
285
|
+
get worker and edge nodes count
|
|
132
286
|
|
|
133
287
|
:param filter_exp: Filter expression evaluated against nodes
|
|
134
|
-
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
135
|
-
:param sort_exp: Sorting expression evaluated against nodes
|
|
136
|
-
:param limit: Maximum number of nodes to return
|
|
137
|
-
:param offset: Pagination offset
|
|
138
|
-
:param filter_: Filter object (JSON stringified) to select nodes
|
|
139
288
|
:param retries: Override the default retry configuration for this method
|
|
140
289
|
:param server_url: Override the default server URL for this method
|
|
141
290
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -151,18 +300,13 @@ class Nodes(BaseSDK):
|
|
|
151
300
|
else:
|
|
152
301
|
base_url = self._get_url(base_url, url_variables)
|
|
153
302
|
|
|
154
|
-
request = models.
|
|
303
|
+
request = models.GetSummaryWorkersRequest(
|
|
155
304
|
filter_exp=filter_exp,
|
|
156
|
-
sort=sort,
|
|
157
|
-
sort_exp=sort_exp,
|
|
158
|
-
limit=limit,
|
|
159
|
-
offset=offset,
|
|
160
|
-
filter_=filter_,
|
|
161
305
|
)
|
|
162
306
|
|
|
163
307
|
req = self._build_request_async(
|
|
164
308
|
method="GET",
|
|
165
|
-
path="/master/workers",
|
|
309
|
+
path="/master/summary/workers",
|
|
166
310
|
base_url=base_url,
|
|
167
311
|
url_variables=url_variables,
|
|
168
312
|
request=request,
|
|
@@ -188,7 +332,7 @@ class Nodes(BaseSDK):
|
|
|
188
332
|
hook_ctx=HookContext(
|
|
189
333
|
config=self.sdk_configuration,
|
|
190
334
|
base_url=base_url or "",
|
|
191
|
-
operation_id="
|
|
335
|
+
operation_id="getSummaryWorkers",
|
|
192
336
|
oauth2_scopes=[],
|
|
193
337
|
security_source=get_security_from_env(
|
|
194
338
|
self.sdk_configuration.security, models.Security
|
|
@@ -201,7 +345,7 @@ class Nodes(BaseSDK):
|
|
|
201
345
|
|
|
202
346
|
response_data: Any = None
|
|
203
347
|
if utils.match_response(http_res, "200", "application/json"):
|
|
204
|
-
return unmarshal_json_response(models.
|
|
348
|
+
return unmarshal_json_response(models.GetSummaryWorkersResponse, http_res)
|
|
205
349
|
if utils.match_response(http_res, "500", "application/json"):
|
|
206
350
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
207
351
|
raise errors.Error(response_data, http_res)
|
|
@@ -214,18 +358,30 @@ class Nodes(BaseSDK):
|
|
|
214
358
|
|
|
215
359
|
raise errors.APIError("Unexpected response received", http_res)
|
|
216
360
|
|
|
217
|
-
def
|
|
361
|
+
def list(
|
|
218
362
|
self,
|
|
219
363
|
*,
|
|
364
|
+
filter_exp: Optional[str] = None,
|
|
365
|
+
sort: Optional[str] = None,
|
|
366
|
+
sort_exp: Optional[str] = None,
|
|
367
|
+
limit: Optional[int] = None,
|
|
368
|
+
offset: Optional[int] = None,
|
|
369
|
+
filter_: Optional[str] = None,
|
|
220
370
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
221
371
|
server_url: Optional[str] = None,
|
|
222
372
|
timeout_ms: Optional[int] = None,
|
|
223
373
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
224
|
-
) -> models.
|
|
225
|
-
r"""
|
|
374
|
+
) -> models.GetWorkersResponse:
|
|
375
|
+
r"""Retrieve detailed metadata for Worker and Edge Nodes
|
|
226
376
|
|
|
227
|
-
|
|
377
|
+
get worker and edge nodes
|
|
228
378
|
|
|
379
|
+
:param filter_exp: Filter expression evaluated against nodes
|
|
380
|
+
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
381
|
+
:param sort_exp: Sorting expression evaluated against nodes
|
|
382
|
+
:param limit: Maximum number of nodes to return
|
|
383
|
+
:param offset: Pagination offset
|
|
384
|
+
:param filter_: Filter object (JSON stringified) to select nodes
|
|
229
385
|
:param retries: Override the default retry configuration for this method
|
|
230
386
|
:param server_url: Override the default server URL for this method
|
|
231
387
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -240,12 +396,22 @@ class Nodes(BaseSDK):
|
|
|
240
396
|
base_url = server_url
|
|
241
397
|
else:
|
|
242
398
|
base_url = self._get_url(base_url, url_variables)
|
|
399
|
+
|
|
400
|
+
request = models.GetWorkersRequest(
|
|
401
|
+
filter_exp=filter_exp,
|
|
402
|
+
sort=sort,
|
|
403
|
+
sort_exp=sort_exp,
|
|
404
|
+
limit=limit,
|
|
405
|
+
offset=offset,
|
|
406
|
+
filter_=filter_,
|
|
407
|
+
)
|
|
408
|
+
|
|
243
409
|
req = self._build_request(
|
|
244
|
-
method="
|
|
245
|
-
path="/master/workers
|
|
410
|
+
method="GET",
|
|
411
|
+
path="/master/workers",
|
|
246
412
|
base_url=base_url,
|
|
247
413
|
url_variables=url_variables,
|
|
248
|
-
request=
|
|
414
|
+
request=request,
|
|
249
415
|
request_body_required=False,
|
|
250
416
|
request_has_path_params=False,
|
|
251
417
|
request_has_query_params=True,
|
|
@@ -268,7 +434,7 @@ class Nodes(BaseSDK):
|
|
|
268
434
|
hook_ctx=HookContext(
|
|
269
435
|
config=self.sdk_configuration,
|
|
270
436
|
base_url=base_url or "",
|
|
271
|
-
operation_id="
|
|
437
|
+
operation_id="getWorkers",
|
|
272
438
|
oauth2_scopes=[],
|
|
273
439
|
security_source=get_security_from_env(
|
|
274
440
|
self.sdk_configuration.security, models.Security
|
|
@@ -281,9 +447,7 @@ class Nodes(BaseSDK):
|
|
|
281
447
|
|
|
282
448
|
response_data: Any = None
|
|
283
449
|
if utils.match_response(http_res, "200", "application/json"):
|
|
284
|
-
return unmarshal_json_response(
|
|
285
|
-
models.UpdateWorkersRestartResponse, http_res
|
|
286
|
-
)
|
|
450
|
+
return unmarshal_json_response(models.GetWorkersResponse, http_res)
|
|
287
451
|
if utils.match_response(http_res, "500", "application/json"):
|
|
288
452
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
289
453
|
raise errors.Error(response_data, http_res)
|
|
@@ -296,18 +460,30 @@ class Nodes(BaseSDK):
|
|
|
296
460
|
|
|
297
461
|
raise errors.APIError("Unexpected response received", http_res)
|
|
298
462
|
|
|
299
|
-
async def
|
|
463
|
+
async def list_async(
|
|
300
464
|
self,
|
|
301
465
|
*,
|
|
466
|
+
filter_exp: Optional[str] = None,
|
|
467
|
+
sort: Optional[str] = None,
|
|
468
|
+
sort_exp: Optional[str] = None,
|
|
469
|
+
limit: Optional[int] = None,
|
|
470
|
+
offset: Optional[int] = None,
|
|
471
|
+
filter_: Optional[str] = None,
|
|
302
472
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
303
473
|
server_url: Optional[str] = None,
|
|
304
474
|
timeout_ms: Optional[int] = None,
|
|
305
475
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
306
|
-
) -> models.
|
|
307
|
-
r"""
|
|
476
|
+
) -> models.GetWorkersResponse:
|
|
477
|
+
r"""Retrieve detailed metadata for Worker and Edge Nodes
|
|
308
478
|
|
|
309
|
-
|
|
479
|
+
get worker and edge nodes
|
|
310
480
|
|
|
481
|
+
:param filter_exp: Filter expression evaluated against nodes
|
|
482
|
+
:param sort: Sorting object (JSON stringified) expression evaluated against nodes
|
|
483
|
+
:param sort_exp: Sorting expression evaluated against nodes
|
|
484
|
+
:param limit: Maximum number of nodes to return
|
|
485
|
+
:param offset: Pagination offset
|
|
486
|
+
:param filter_: Filter object (JSON stringified) to select nodes
|
|
311
487
|
:param retries: Override the default retry configuration for this method
|
|
312
488
|
:param server_url: Override the default server URL for this method
|
|
313
489
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -322,12 +498,22 @@ class Nodes(BaseSDK):
|
|
|
322
498
|
base_url = server_url
|
|
323
499
|
else:
|
|
324
500
|
base_url = self._get_url(base_url, url_variables)
|
|
501
|
+
|
|
502
|
+
request = models.GetWorkersRequest(
|
|
503
|
+
filter_exp=filter_exp,
|
|
504
|
+
sort=sort,
|
|
505
|
+
sort_exp=sort_exp,
|
|
506
|
+
limit=limit,
|
|
507
|
+
offset=offset,
|
|
508
|
+
filter_=filter_,
|
|
509
|
+
)
|
|
510
|
+
|
|
325
511
|
req = self._build_request_async(
|
|
326
|
-
method="
|
|
327
|
-
path="/master/workers
|
|
512
|
+
method="GET",
|
|
513
|
+
path="/master/workers",
|
|
328
514
|
base_url=base_url,
|
|
329
515
|
url_variables=url_variables,
|
|
330
|
-
request=
|
|
516
|
+
request=request,
|
|
331
517
|
request_body_required=False,
|
|
332
518
|
request_has_path_params=False,
|
|
333
519
|
request_has_query_params=True,
|
|
@@ -350,7 +536,7 @@ class Nodes(BaseSDK):
|
|
|
350
536
|
hook_ctx=HookContext(
|
|
351
537
|
config=self.sdk_configuration,
|
|
352
538
|
base_url=base_url or "",
|
|
353
|
-
operation_id="
|
|
539
|
+
operation_id="getWorkers",
|
|
354
540
|
oauth2_scopes=[],
|
|
355
541
|
security_source=get_security_from_env(
|
|
356
542
|
self.sdk_configuration.security, models.Security
|
|
@@ -363,9 +549,7 @@ class Nodes(BaseSDK):
|
|
|
363
549
|
|
|
364
550
|
response_data: Any = None
|
|
365
551
|
if utils.match_response(http_res, "200", "application/json"):
|
|
366
|
-
return unmarshal_json_response(
|
|
367
|
-
models.UpdateWorkersRestartResponse, http_res
|
|
368
|
-
)
|
|
552
|
+
return unmarshal_json_response(models.GetWorkersResponse, http_res)
|
|
369
553
|
if utils.match_response(http_res, "500", "application/json"):
|
|
370
554
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
371
555
|
raise errors.Error(response_data, http_res)
|
cribl_control_plane/sdk.py
CHANGED
|
@@ -15,10 +15,9 @@ import weakref
|
|
|
15
15
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
17
|
from cribl_control_plane.auth_sdk import AuthSDK
|
|
18
|
-
from cribl_control_plane.deployments import Deployments
|
|
19
18
|
from cribl_control_plane.destinations import Destinations
|
|
20
19
|
from cribl_control_plane.groups_sdk import GroupsSDK
|
|
21
|
-
from cribl_control_plane.
|
|
20
|
+
from cribl_control_plane.health import Health
|
|
22
21
|
from cribl_control_plane.lakedatasets import LakeDatasets
|
|
23
22
|
from cribl_control_plane.nodes import Nodes
|
|
24
23
|
from cribl_control_plane.packs import Packs
|
|
@@ -26,7 +25,6 @@ if TYPE_CHECKING:
|
|
|
26
25
|
from cribl_control_plane.routes_sdk import RoutesSDK
|
|
27
26
|
from cribl_control_plane.sources import Sources
|
|
28
27
|
from cribl_control_plane.versioning import Versioning
|
|
29
|
-
from cribl_control_plane.workers_sdk import WorkersSDK
|
|
30
28
|
|
|
31
29
|
|
|
32
30
|
class CriblControlPlane(BaseSDK):
|
|
@@ -34,22 +32,22 @@ class CriblControlPlane(BaseSDK):
|
|
|
34
32
|
|
|
35
33
|
lake_datasets: "LakeDatasets"
|
|
36
34
|
sources: "Sources"
|
|
35
|
+
r"""Actions related to Sources"""
|
|
37
36
|
destinations: "Destinations"
|
|
37
|
+
r"""Actions related to Destinations"""
|
|
38
38
|
pipelines: "Pipelines"
|
|
39
39
|
r"""Actions related to Pipelines"""
|
|
40
40
|
routes: "RoutesSDK"
|
|
41
41
|
r"""Actions related to Routes"""
|
|
42
42
|
auth: "AuthSDK"
|
|
43
43
|
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."""
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
nodes: "Nodes"
|
|
45
|
+
health: "Health"
|
|
46
|
+
r"""Actions related to REST server health"""
|
|
46
47
|
packs: "Packs"
|
|
47
48
|
r"""Actions related to Packs"""
|
|
48
49
|
versioning: "Versioning"
|
|
49
50
|
r"""Actions related to Versioning"""
|
|
50
|
-
workers: "WorkersSDK"
|
|
51
|
-
r"""Actions related to Workers"""
|
|
52
|
-
nodes: "Nodes"
|
|
53
51
|
groups: "GroupsSDK"
|
|
54
52
|
r"""Actions related to Groups"""
|
|
55
53
|
_sub_sdk_map = {
|
|
@@ -59,12 +57,10 @@ class CriblControlPlane(BaseSDK):
|
|
|
59
57
|
"pipelines": ("cribl_control_plane.pipelines", "Pipelines"),
|
|
60
58
|
"routes": ("cribl_control_plane.routes_sdk", "RoutesSDK"),
|
|
61
59
|
"auth": ("cribl_control_plane.auth_sdk", "AuthSDK"),
|
|
62
|
-
"
|
|
63
|
-
"
|
|
60
|
+
"nodes": ("cribl_control_plane.nodes", "Nodes"),
|
|
61
|
+
"health": ("cribl_control_plane.health", "Health"),
|
|
64
62
|
"packs": ("cribl_control_plane.packs", "Packs"),
|
|
65
63
|
"versioning": ("cribl_control_plane.versioning", "Versioning"),
|
|
66
|
-
"workers": ("cribl_control_plane.workers_sdk", "WorkersSDK"),
|
|
67
|
-
"nodes": ("cribl_control_plane.nodes", "Nodes"),
|
|
68
64
|
"groups": ("cribl_control_plane.groups_sdk", "GroupsSDK"),
|
|
69
65
|
}
|
|
70
66
|
|
cribl_control_plane/sources.py
CHANGED
|
@@ -12,7 +12,7 @@ from typing import Any, List, Mapping, Optional
|
|
|
12
12
|
class Versioning(BaseSDK):
|
|
13
13
|
r"""Actions related to Versioning"""
|
|
14
14
|
|
|
15
|
-
def
|
|
15
|
+
def list_branches(
|
|
16
16
|
self,
|
|
17
17
|
*,
|
|
18
18
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -92,7 +92,7 @@ class Versioning(BaseSDK):
|
|
|
92
92
|
|
|
93
93
|
raise errors.APIError("Unexpected response received", http_res)
|
|
94
94
|
|
|
95
|
-
async def
|
|
95
|
+
async def list_branches_async(
|
|
96
96
|
self,
|
|
97
97
|
*,
|
|
98
98
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -550,7 +550,7 @@ class Versioning(BaseSDK):
|
|
|
550
550
|
|
|
551
551
|
raise errors.APIError("Unexpected response received", http_res)
|
|
552
552
|
|
|
553
|
-
def
|
|
553
|
+
def get_branch(
|
|
554
554
|
self,
|
|
555
555
|
*,
|
|
556
556
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -632,7 +632,7 @@ class Versioning(BaseSDK):
|
|
|
632
632
|
|
|
633
633
|
raise errors.APIError("Unexpected response received", http_res)
|
|
634
634
|
|
|
635
|
-
async def
|
|
635
|
+
async def get_branch_async(
|
|
636
636
|
self,
|
|
637
637
|
*,
|
|
638
638
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -906,7 +906,7 @@ class Versioning(BaseSDK):
|
|
|
906
906
|
|
|
907
907
|
raise errors.APIError("Unexpected response received", http_res)
|
|
908
908
|
|
|
909
|
-
def
|
|
909
|
+
def list_files(
|
|
910
910
|
self,
|
|
911
911
|
*,
|
|
912
912
|
group: Optional[str] = None,
|
|
@@ -996,7 +996,7 @@ class Versioning(BaseSDK):
|
|
|
996
996
|
|
|
997
997
|
raise errors.APIError("Unexpected response received", http_res)
|
|
998
998
|
|
|
999
|
-
async def
|
|
999
|
+
async def list_files_async(
|
|
1000
1000
|
self,
|
|
1001
1001
|
*,
|
|
1002
1002
|
group: Optional[str] = None,
|
|
@@ -1608,7 +1608,7 @@ class Versioning(BaseSDK):
|
|
|
1608
1608
|
|
|
1609
1609
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1610
1610
|
|
|
1611
|
-
def
|
|
1611
|
+
def get_commit(
|
|
1612
1612
|
self,
|
|
1613
1613
|
*,
|
|
1614
1614
|
commit: Optional[str] = None,
|
|
@@ -1704,7 +1704,7 @@ class Versioning(BaseSDK):
|
|
|
1704
1704
|
|
|
1705
1705
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1706
1706
|
|
|
1707
|
-
async def
|
|
1707
|
+
async def get_commit_async(
|
|
1708
1708
|
self,
|
|
1709
1709
|
*,
|
|
1710
1710
|
commit: Optional[str] = None,
|
|
@@ -2134,7 +2134,7 @@ class Versioning(BaseSDK):
|
|
|
2134
2134
|
|
|
2135
2135
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2136
2136
|
|
|
2137
|
-
def
|
|
2137
|
+
def undo(
|
|
2138
2138
|
self,
|
|
2139
2139
|
*,
|
|
2140
2140
|
group: Optional[str] = None,
|
|
@@ -2221,7 +2221,7 @@ class Versioning(BaseSDK):
|
|
|
2221
2221
|
|
|
2222
2222
|
raise errors.APIError("Unexpected response received", http_res)
|
|
2223
2223
|
|
|
2224
|
-
async def
|
|
2224
|
+
async def undo_async(
|
|
2225
2225
|
self,
|
|
2226
2226
|
*,
|
|
2227
2227
|
group: Optional[str] = None,
|