cribl-control-plane 0.0.26a1__py3-none-any.whl → 0.0.27__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/acl.py +203 -0
- cribl_control_plane/auth_sdk.py +9 -176
- cribl_control_plane/branches.py +335 -0
- cribl_control_plane/commits.py +1141 -0
- cribl_control_plane/commits_files.py +371 -0
- cribl_control_plane/configs_versions.py +189 -0
- cribl_control_plane/destinations.py +18 -729
- cribl_control_plane/destinations_pq.py +359 -0
- cribl_control_plane/errors/healthstatus_error.py +1 -1
- cribl_control_plane/groups_configs.py +17 -0
- cribl_control_plane/groups_sdk.py +18 -551
- cribl_control_plane/{healthinfo.py → health.py} +3 -1
- cribl_control_plane/hectokens.py +479 -0
- cribl_control_plane/models/__init__.py +3 -35
- 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 +90 -68
- cribl_control_plane/samples.py +391 -0
- cribl_control_plane/sdk.py +11 -17
- cribl_control_plane/sources.py +15 -469
- cribl_control_plane/{workers_sdk.py → statuses.py} +23 -25
- cribl_control_plane/{deployments.py → summaries.py} +3 -3
- cribl_control_plane/teams.py +201 -0
- cribl_control_plane/tokens.py +182 -0
- cribl_control_plane/versions.py +26 -0
- cribl_control_plane/versions_configs.py +171 -0
- {cribl_control_plane-0.0.26a1.dist-info → cribl_control_plane-0.0.27.dist-info}/METADATA +67 -36
- {cribl_control_plane-0.0.26a1.dist-info → cribl_control_plane-0.0.27.dist-info}/RECORD +123 -114
- cribl_control_plane/models/createversionsyncop.py +0 -23
- cribl_control_plane/models/restartresponse.py +0 -26
- cribl_control_plane/models/updateworkersrestartop.py +0 -24
- cribl_control_plane/versioning.py +0 -2309
- {cribl_control_plane-0.0.26a1.dist-info → cribl_control_plane-0.0.27.dist-info}/WHEEL +0 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
+
from .sdkconfiguration import SDKConfiguration
|
|
4
5
|
from cribl_control_plane import errors, models, utils
|
|
5
6
|
from cribl_control_plane._hooks import HookContext
|
|
7
|
+
from cribl_control_plane.acl import ACL
|
|
8
|
+
from cribl_control_plane.groups_configs import GroupsConfigs
|
|
6
9
|
from cribl_control_plane.types import OptionalNullable, UNSET
|
|
7
10
|
from cribl_control_plane.utils import get_security_from_env
|
|
8
11
|
from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
|
|
@@ -12,185 +15,19 @@ from typing import Any, List, Mapping, Optional, Union
|
|
|
12
15
|
class GroupsSDK(BaseSDK):
|
|
13
16
|
r"""Actions related to Groups"""
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*,
|
|
18
|
-
id: str,
|
|
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.GetGroupsConfigVersionByIDResponse:
|
|
24
|
-
r"""Retrieve the configuration version for a Worker Group or Edge Fleet
|
|
25
|
-
|
|
26
|
-
Get effective bundle version for given Group
|
|
27
|
-
|
|
28
|
-
:param id: Group ID
|
|
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.GetGroupsConfigVersionByIDRequest(
|
|
45
|
-
id=id,
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
req = self._build_request(
|
|
49
|
-
method="GET",
|
|
50
|
-
path="/master/groups/{id}/configVersion",
|
|
51
|
-
base_url=base_url,
|
|
52
|
-
url_variables=url_variables,
|
|
53
|
-
request=request,
|
|
54
|
-
request_body_required=False,
|
|
55
|
-
request_has_path_params=True,
|
|
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="getGroupsConfigVersionById",
|
|
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(
|
|
90
|
-
models.GetGroupsConfigVersionByIDResponse, http_res
|
|
91
|
-
)
|
|
92
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
93
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
94
|
-
raise errors.Error(response_data, http_res)
|
|
95
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
96
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
97
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
98
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
99
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
100
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
101
|
-
|
|
102
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
103
|
-
|
|
104
|
-
async def get_config_version_async(
|
|
105
|
-
self,
|
|
106
|
-
*,
|
|
107
|
-
id: str,
|
|
108
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
109
|
-
server_url: Optional[str] = None,
|
|
110
|
-
timeout_ms: Optional[int] = None,
|
|
111
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
112
|
-
) -> models.GetGroupsConfigVersionByIDResponse:
|
|
113
|
-
r"""Retrieve the configuration version for a Worker Group or Edge Fleet
|
|
114
|
-
|
|
115
|
-
Get effective bundle version for given Group
|
|
116
|
-
|
|
117
|
-
:param id: Group ID
|
|
118
|
-
:param retries: Override the default retry configuration for this method
|
|
119
|
-
:param server_url: Override the default server URL for this method
|
|
120
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
121
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
122
|
-
"""
|
|
123
|
-
base_url = None
|
|
124
|
-
url_variables = None
|
|
125
|
-
if timeout_ms is None:
|
|
126
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
127
|
-
|
|
128
|
-
if server_url is not None:
|
|
129
|
-
base_url = server_url
|
|
130
|
-
else:
|
|
131
|
-
base_url = self._get_url(base_url, url_variables)
|
|
132
|
-
|
|
133
|
-
request = models.GetGroupsConfigVersionByIDRequest(
|
|
134
|
-
id=id,
|
|
135
|
-
)
|
|
136
|
-
|
|
137
|
-
req = self._build_request_async(
|
|
138
|
-
method="GET",
|
|
139
|
-
path="/master/groups/{id}/configVersion",
|
|
140
|
-
base_url=base_url,
|
|
141
|
-
url_variables=url_variables,
|
|
142
|
-
request=request,
|
|
143
|
-
request_body_required=False,
|
|
144
|
-
request_has_path_params=True,
|
|
145
|
-
request_has_query_params=True,
|
|
146
|
-
user_agent_header="user-agent",
|
|
147
|
-
accept_header_value="application/json",
|
|
148
|
-
http_headers=http_headers,
|
|
149
|
-
security=self.sdk_configuration.security,
|
|
150
|
-
timeout_ms=timeout_ms,
|
|
151
|
-
)
|
|
18
|
+
configs: GroupsConfigs
|
|
19
|
+
acl: ACL
|
|
152
20
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
21
|
+
def __init__(self, sdk_config: SDKConfiguration) -> None:
|
|
22
|
+
BaseSDK.__init__(self, sdk_config)
|
|
23
|
+
self.sdk_configuration = sdk_config
|
|
24
|
+
self._init_sdks()
|
|
156
25
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
26
|
+
def _init_sdks(self):
|
|
27
|
+
self.configs = GroupsConfigs(self.sdk_configuration)
|
|
28
|
+
self.acl = ACL(self.sdk_configuration)
|
|
160
29
|
|
|
161
|
-
|
|
162
|
-
hook_ctx=HookContext(
|
|
163
|
-
config=self.sdk_configuration,
|
|
164
|
-
base_url=base_url or "",
|
|
165
|
-
operation_id="getGroupsConfigVersionById",
|
|
166
|
-
oauth2_scopes=[],
|
|
167
|
-
security_source=get_security_from_env(
|
|
168
|
-
self.sdk_configuration.security, models.Security
|
|
169
|
-
),
|
|
170
|
-
),
|
|
171
|
-
request=req,
|
|
172
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
173
|
-
retry_config=retry_config,
|
|
174
|
-
)
|
|
175
|
-
|
|
176
|
-
response_data: Any = None
|
|
177
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
178
|
-
return unmarshal_json_response(
|
|
179
|
-
models.GetGroupsConfigVersionByIDResponse, http_res
|
|
180
|
-
)
|
|
181
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
182
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
183
|
-
raise errors.Error(response_data, http_res)
|
|
184
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
185
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
186
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
187
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
188
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
189
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
190
|
-
|
|
191
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
192
|
-
|
|
193
|
-
def create_by_product(
|
|
30
|
+
def create(
|
|
194
31
|
self,
|
|
195
32
|
*,
|
|
196
33
|
product: models.CreateProductsGroupsByProductProduct,
|
|
@@ -361,7 +198,7 @@ class GroupsSDK(BaseSDK):
|
|
|
361
198
|
|
|
362
199
|
raise errors.APIError("Unexpected response received", http_res)
|
|
363
200
|
|
|
364
|
-
async def
|
|
201
|
+
async def create_async(
|
|
365
202
|
self,
|
|
366
203
|
*,
|
|
367
204
|
product: models.CreateProductsGroupsByProductProduct,
|
|
@@ -532,7 +369,7 @@ class GroupsSDK(BaseSDK):
|
|
|
532
369
|
|
|
533
370
|
raise errors.APIError("Unexpected response received", http_res)
|
|
534
371
|
|
|
535
|
-
def
|
|
372
|
+
def list(
|
|
536
373
|
self,
|
|
537
374
|
*,
|
|
538
375
|
product: models.GetProductsGroupsByProductProduct,
|
|
@@ -624,7 +461,7 @@ class GroupsSDK(BaseSDK):
|
|
|
624
461
|
|
|
625
462
|
raise errors.APIError("Unexpected response received", http_res)
|
|
626
463
|
|
|
627
|
-
async def
|
|
464
|
+
async def list_async(
|
|
628
465
|
self,
|
|
629
466
|
*,
|
|
630
467
|
product: models.GetProductsGroupsByProductProduct,
|
|
@@ -1408,7 +1245,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1408
1245
|
|
|
1409
1246
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1410
1247
|
|
|
1411
|
-
def
|
|
1248
|
+
def deploy(
|
|
1412
1249
|
self,
|
|
1413
1250
|
*,
|
|
1414
1251
|
id: str,
|
|
@@ -1515,7 +1352,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1515
1352
|
|
|
1516
1353
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1517
1354
|
|
|
1518
|
-
async def
|
|
1355
|
+
async def deploy_async(
|
|
1519
1356
|
self,
|
|
1520
1357
|
*,
|
|
1521
1358
|
id: str,
|
|
@@ -1621,373 +1458,3 @@ class GroupsSDK(BaseSDK):
|
|
|
1621
1458
|
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1622
1459
|
|
|
1623
1460
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1624
|
-
|
|
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(
|
|
1816
|
-
self,
|
|
1817
|
-
*,
|
|
1818
|
-
id: str,
|
|
1819
|
-
type_: Optional[models.GetGroupsACLByIDType] = None,
|
|
1820
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1821
|
-
server_url: Optional[str] = None,
|
|
1822
|
-
timeout_ms: Optional[int] = None,
|
|
1823
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
1824
|
-
) -> models.GetGroupsACLByIDResponse:
|
|
1825
|
-
r"""Retrieve the Access Control List (ACL) for a Worker Group or Edge Fleet
|
|
1826
|
-
|
|
1827
|
-
ACL of members with permissions for resources in this Group
|
|
1828
|
-
|
|
1829
|
-
:param id: Group id
|
|
1830
|
-
:param type: resource type by which to filter access levels
|
|
1831
|
-
:param retries: Override the default retry configuration for this method
|
|
1832
|
-
:param server_url: Override the default server URL for this method
|
|
1833
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1834
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
1835
|
-
"""
|
|
1836
|
-
base_url = None
|
|
1837
|
-
url_variables = None
|
|
1838
|
-
if timeout_ms is None:
|
|
1839
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1840
|
-
|
|
1841
|
-
if server_url is not None:
|
|
1842
|
-
base_url = server_url
|
|
1843
|
-
else:
|
|
1844
|
-
base_url = self._get_url(base_url, url_variables)
|
|
1845
|
-
|
|
1846
|
-
request = models.GetGroupsACLByIDRequest(
|
|
1847
|
-
id=id,
|
|
1848
|
-
type=type_,
|
|
1849
|
-
)
|
|
1850
|
-
|
|
1851
|
-
req = self._build_request(
|
|
1852
|
-
method="GET",
|
|
1853
|
-
path="/master/groups/{id}/acl",
|
|
1854
|
-
base_url=base_url,
|
|
1855
|
-
url_variables=url_variables,
|
|
1856
|
-
request=request,
|
|
1857
|
-
request_body_required=False,
|
|
1858
|
-
request_has_path_params=True,
|
|
1859
|
-
request_has_query_params=True,
|
|
1860
|
-
user_agent_header="user-agent",
|
|
1861
|
-
accept_header_value="application/json",
|
|
1862
|
-
http_headers=http_headers,
|
|
1863
|
-
security=self.sdk_configuration.security,
|
|
1864
|
-
timeout_ms=timeout_ms,
|
|
1865
|
-
)
|
|
1866
|
-
|
|
1867
|
-
if retries == UNSET:
|
|
1868
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
1869
|
-
retries = self.sdk_configuration.retry_config
|
|
1870
|
-
|
|
1871
|
-
retry_config = None
|
|
1872
|
-
if isinstance(retries, utils.RetryConfig):
|
|
1873
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1874
|
-
|
|
1875
|
-
http_res = self.do_request(
|
|
1876
|
-
hook_ctx=HookContext(
|
|
1877
|
-
config=self.sdk_configuration,
|
|
1878
|
-
base_url=base_url or "",
|
|
1879
|
-
operation_id="getGroupsAclById",
|
|
1880
|
-
oauth2_scopes=[],
|
|
1881
|
-
security_source=get_security_from_env(
|
|
1882
|
-
self.sdk_configuration.security, models.Security
|
|
1883
|
-
),
|
|
1884
|
-
),
|
|
1885
|
-
request=req,
|
|
1886
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1887
|
-
retry_config=retry_config,
|
|
1888
|
-
)
|
|
1889
|
-
|
|
1890
|
-
response_data: Any = None
|
|
1891
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
1892
|
-
return unmarshal_json_response(models.GetGroupsACLByIDResponse, http_res)
|
|
1893
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
1894
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1895
|
-
raise errors.Error(response_data, http_res)
|
|
1896
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1897
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
1898
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1899
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
1900
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
1901
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1902
|
-
|
|
1903
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
1904
|
-
|
|
1905
|
-
async def get_access_control_list_async(
|
|
1906
|
-
self,
|
|
1907
|
-
*,
|
|
1908
|
-
id: str,
|
|
1909
|
-
type_: Optional[models.GetGroupsACLByIDType] = None,
|
|
1910
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1911
|
-
server_url: Optional[str] = None,
|
|
1912
|
-
timeout_ms: Optional[int] = None,
|
|
1913
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
1914
|
-
) -> models.GetGroupsACLByIDResponse:
|
|
1915
|
-
r"""Retrieve the Access Control List (ACL) for a Worker Group or Edge Fleet
|
|
1916
|
-
|
|
1917
|
-
ACL of members with permissions for resources in this Group
|
|
1918
|
-
|
|
1919
|
-
:param id: Group id
|
|
1920
|
-
:param type: resource type by which to filter access levels
|
|
1921
|
-
:param retries: Override the default retry configuration for this method
|
|
1922
|
-
:param server_url: Override the default server URL for this method
|
|
1923
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1924
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
1925
|
-
"""
|
|
1926
|
-
base_url = None
|
|
1927
|
-
url_variables = None
|
|
1928
|
-
if timeout_ms is None:
|
|
1929
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1930
|
-
|
|
1931
|
-
if server_url is not None:
|
|
1932
|
-
base_url = server_url
|
|
1933
|
-
else:
|
|
1934
|
-
base_url = self._get_url(base_url, url_variables)
|
|
1935
|
-
|
|
1936
|
-
request = models.GetGroupsACLByIDRequest(
|
|
1937
|
-
id=id,
|
|
1938
|
-
type=type_,
|
|
1939
|
-
)
|
|
1940
|
-
|
|
1941
|
-
req = self._build_request_async(
|
|
1942
|
-
method="GET",
|
|
1943
|
-
path="/master/groups/{id}/acl",
|
|
1944
|
-
base_url=base_url,
|
|
1945
|
-
url_variables=url_variables,
|
|
1946
|
-
request=request,
|
|
1947
|
-
request_body_required=False,
|
|
1948
|
-
request_has_path_params=True,
|
|
1949
|
-
request_has_query_params=True,
|
|
1950
|
-
user_agent_header="user-agent",
|
|
1951
|
-
accept_header_value="application/json",
|
|
1952
|
-
http_headers=http_headers,
|
|
1953
|
-
security=self.sdk_configuration.security,
|
|
1954
|
-
timeout_ms=timeout_ms,
|
|
1955
|
-
)
|
|
1956
|
-
|
|
1957
|
-
if retries == UNSET:
|
|
1958
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
1959
|
-
retries = self.sdk_configuration.retry_config
|
|
1960
|
-
|
|
1961
|
-
retry_config = None
|
|
1962
|
-
if isinstance(retries, utils.RetryConfig):
|
|
1963
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1964
|
-
|
|
1965
|
-
http_res = await self.do_request_async(
|
|
1966
|
-
hook_ctx=HookContext(
|
|
1967
|
-
config=self.sdk_configuration,
|
|
1968
|
-
base_url=base_url or "",
|
|
1969
|
-
operation_id="getGroupsAclById",
|
|
1970
|
-
oauth2_scopes=[],
|
|
1971
|
-
security_source=get_security_from_env(
|
|
1972
|
-
self.sdk_configuration.security, models.Security
|
|
1973
|
-
),
|
|
1974
|
-
),
|
|
1975
|
-
request=req,
|
|
1976
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1977
|
-
retry_config=retry_config,
|
|
1978
|
-
)
|
|
1979
|
-
|
|
1980
|
-
response_data: Any = None
|
|
1981
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
1982
|
-
return unmarshal_json_response(models.GetGroupsACLByIDResponse, http_res)
|
|
1983
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
1984
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1985
|
-
raise errors.Error(response_data, http_res)
|
|
1986
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1987
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1988
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1989
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
1990
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1991
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1992
|
-
|
|
1993
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
@@ -8,7 +8,9 @@ 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
|
|
11
|
+
class Health(BaseSDK):
|
|
12
|
+
r"""Actions related to REST server health"""
|
|
13
|
+
|
|
12
14
|
def get(
|
|
13
15
|
self,
|
|
14
16
|
*,
|