cribl-control-plane 0.0.22__py3-none-any.whl → 0.0.24__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/auth_sdk.py +4 -4
- cribl_control_plane/{distributed.py → deployments.py} +3 -5
- cribl_control_plane/destinations.py +46 -46
- cribl_control_plane/groups_sdk.py +222 -32
- cribl_control_plane/{health.py → healthinfo.py} +5 -7
- cribl_control_plane/{lake.py → lakedatasets.py} +21 -23
- cribl_control_plane/models/__init__.py +125 -5382
- cribl_control_plane/models/createinputop.py +2 -18216
- cribl_control_plane/models/createoutputop.py +2 -18415
- cribl_control_plane/models/createpipelineop.py +2 -2
- cribl_control_plane/models/input.py +6 -6
- cribl_control_plane/models/inputedgeprometheus.py +7 -10
- cribl_control_plane/models/{inputgrafana_union.py → inputgrafana.py} +4 -4
- cribl_control_plane/models/{inputsyslog_union.py → inputsyslog.py} +4 -4
- cribl_control_plane/models/inputwef.py +4 -4
- cribl_control_plane/models/outputgooglepubsub.py +3 -3
- cribl_control_plane/models/outputsplunklb.py +8 -8
- cribl_control_plane/models/routes.py +0 -24
- cribl_control_plane/models/updateinputbyidop.py +2 -2
- cribl_control_plane/models/updateoutputbyidop.py +2 -2
- cribl_control_plane/models/updatepipelinebyidop.py +2 -2
- cribl_control_plane/models/updateroutesbyidop.py +5 -6
- cribl_control_plane/{workers_sdk.py → nodes.py} +13 -15
- cribl_control_plane/packs.py +16 -190
- cribl_control_plane/pipelines.py +10 -10
- cribl_control_plane/routes_sdk.py +18 -22
- cribl_control_plane/sdk.py +12 -20
- cribl_control_plane/sources.py +38 -38
- cribl_control_plane/versioning.py +52 -52
- {cribl_control_plane-0.0.22.dist-info → cribl_control_plane-0.0.24.dist-info}/METADATA +74 -78
- {cribl_control_plane-0.0.22.dist-info → cribl_control_plane-0.0.24.dist-info}/RECORD +33 -36
- cribl_control_plane/models/routesroute_input.py +0 -67
- cribl_control_plane/models/updatepacksop.py +0 -37
- cribl_control_plane/teams.py +0 -203
- {cribl_control_plane-0.0.22.dist-info → cribl_control_plane-0.0.24.dist-info}/WHEEL +0 -0
cribl_control_plane/teams.py
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
-
|
|
3
|
-
from .basesdk import BaseSDK
|
|
4
|
-
from cribl_control_plane import errors, models, utils
|
|
5
|
-
from cribl_control_plane._hooks import HookContext
|
|
6
|
-
from cribl_control_plane.types import OptionalNullable, UNSET
|
|
7
|
-
from cribl_control_plane.utils import get_security_from_env
|
|
8
|
-
from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
|
|
9
|
-
from typing import Any, Mapping, Optional
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Teams(BaseSDK):
|
|
13
|
-
r"""Actions related to Teams"""
|
|
14
|
-
|
|
15
|
-
def get_products_groups_acl_teams_by_product_and_id(
|
|
16
|
-
self,
|
|
17
|
-
*,
|
|
18
|
-
product: models.GetProductsGroupsACLTeamsByProductAndIDProduct,
|
|
19
|
-
id: str,
|
|
20
|
-
type_: Optional[models.GetProductsGroupsACLTeamsByProductAndIDType] = None,
|
|
21
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
22
|
-
server_url: Optional[str] = None,
|
|
23
|
-
timeout_ms: Optional[int] = None,
|
|
24
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
25
|
-
) -> models.GetProductsGroupsACLTeamsByProductAndIDResponse:
|
|
26
|
-
r"""ACL of team with permissions for resources in this Group
|
|
27
|
-
|
|
28
|
-
ACL of team with permissions for resources in this Group
|
|
29
|
-
|
|
30
|
-
:param product: Cribl Product
|
|
31
|
-
:param id: Group ID
|
|
32
|
-
:param type: resource type by which to filter access levels
|
|
33
|
-
:param retries: Override the default retry configuration for this method
|
|
34
|
-
:param server_url: Override the default server URL for this method
|
|
35
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
36
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
37
|
-
"""
|
|
38
|
-
base_url = None
|
|
39
|
-
url_variables = None
|
|
40
|
-
if timeout_ms is None:
|
|
41
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
42
|
-
|
|
43
|
-
if server_url is not None:
|
|
44
|
-
base_url = server_url
|
|
45
|
-
else:
|
|
46
|
-
base_url = self._get_url(base_url, url_variables)
|
|
47
|
-
|
|
48
|
-
request = models.GetProductsGroupsACLTeamsByProductAndIDRequest(
|
|
49
|
-
product=product,
|
|
50
|
-
id=id,
|
|
51
|
-
type=type_,
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
req = self._build_request(
|
|
55
|
-
method="GET",
|
|
56
|
-
path="/products/{product}/groups/{id}/acl/teams",
|
|
57
|
-
base_url=base_url,
|
|
58
|
-
url_variables=url_variables,
|
|
59
|
-
request=request,
|
|
60
|
-
request_body_required=False,
|
|
61
|
-
request_has_path_params=True,
|
|
62
|
-
request_has_query_params=True,
|
|
63
|
-
user_agent_header="user-agent",
|
|
64
|
-
accept_header_value="application/json",
|
|
65
|
-
http_headers=http_headers,
|
|
66
|
-
security=self.sdk_configuration.security,
|
|
67
|
-
timeout_ms=timeout_ms,
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
if retries == UNSET:
|
|
71
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
72
|
-
retries = self.sdk_configuration.retry_config
|
|
73
|
-
|
|
74
|
-
retry_config = None
|
|
75
|
-
if isinstance(retries, utils.RetryConfig):
|
|
76
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
77
|
-
|
|
78
|
-
http_res = self.do_request(
|
|
79
|
-
hook_ctx=HookContext(
|
|
80
|
-
config=self.sdk_configuration,
|
|
81
|
-
base_url=base_url or "",
|
|
82
|
-
operation_id="getProductsGroupsAclTeamsByProductAndId",
|
|
83
|
-
oauth2_scopes=[],
|
|
84
|
-
security_source=get_security_from_env(
|
|
85
|
-
self.sdk_configuration.security, models.Security
|
|
86
|
-
),
|
|
87
|
-
),
|
|
88
|
-
request=req,
|
|
89
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
90
|
-
retry_config=retry_config,
|
|
91
|
-
)
|
|
92
|
-
|
|
93
|
-
response_data: Any = None
|
|
94
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
95
|
-
return unmarshal_json_response(
|
|
96
|
-
models.GetProductsGroupsACLTeamsByProductAndIDResponse, http_res
|
|
97
|
-
)
|
|
98
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
99
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
100
|
-
raise errors.Error(response_data, http_res)
|
|
101
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
102
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
103
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
104
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
105
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
106
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
107
|
-
|
|
108
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
109
|
-
|
|
110
|
-
async def get_products_groups_acl_teams_by_product_and_id_async(
|
|
111
|
-
self,
|
|
112
|
-
*,
|
|
113
|
-
product: models.GetProductsGroupsACLTeamsByProductAndIDProduct,
|
|
114
|
-
id: str,
|
|
115
|
-
type_: Optional[models.GetProductsGroupsACLTeamsByProductAndIDType] = None,
|
|
116
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
117
|
-
server_url: Optional[str] = None,
|
|
118
|
-
timeout_ms: Optional[int] = None,
|
|
119
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
120
|
-
) -> models.GetProductsGroupsACLTeamsByProductAndIDResponse:
|
|
121
|
-
r"""ACL of team with permissions for resources in this Group
|
|
122
|
-
|
|
123
|
-
ACL of team with permissions for resources in this Group
|
|
124
|
-
|
|
125
|
-
:param product: Cribl Product
|
|
126
|
-
:param id: Group ID
|
|
127
|
-
:param type: resource type by which to filter access levels
|
|
128
|
-
:param retries: Override the default retry configuration for this method
|
|
129
|
-
:param server_url: Override the default server URL for this method
|
|
130
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
131
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
132
|
-
"""
|
|
133
|
-
base_url = None
|
|
134
|
-
url_variables = None
|
|
135
|
-
if timeout_ms is None:
|
|
136
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
137
|
-
|
|
138
|
-
if server_url is not None:
|
|
139
|
-
base_url = server_url
|
|
140
|
-
else:
|
|
141
|
-
base_url = self._get_url(base_url, url_variables)
|
|
142
|
-
|
|
143
|
-
request = models.GetProductsGroupsACLTeamsByProductAndIDRequest(
|
|
144
|
-
product=product,
|
|
145
|
-
id=id,
|
|
146
|
-
type=type_,
|
|
147
|
-
)
|
|
148
|
-
|
|
149
|
-
req = self._build_request_async(
|
|
150
|
-
method="GET",
|
|
151
|
-
path="/products/{product}/groups/{id}/acl/teams",
|
|
152
|
-
base_url=base_url,
|
|
153
|
-
url_variables=url_variables,
|
|
154
|
-
request=request,
|
|
155
|
-
request_body_required=False,
|
|
156
|
-
request_has_path_params=True,
|
|
157
|
-
request_has_query_params=True,
|
|
158
|
-
user_agent_header="user-agent",
|
|
159
|
-
accept_header_value="application/json",
|
|
160
|
-
http_headers=http_headers,
|
|
161
|
-
security=self.sdk_configuration.security,
|
|
162
|
-
timeout_ms=timeout_ms,
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
if retries == UNSET:
|
|
166
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
167
|
-
retries = self.sdk_configuration.retry_config
|
|
168
|
-
|
|
169
|
-
retry_config = None
|
|
170
|
-
if isinstance(retries, utils.RetryConfig):
|
|
171
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
172
|
-
|
|
173
|
-
http_res = await self.do_request_async(
|
|
174
|
-
hook_ctx=HookContext(
|
|
175
|
-
config=self.sdk_configuration,
|
|
176
|
-
base_url=base_url or "",
|
|
177
|
-
operation_id="getProductsGroupsAclTeamsByProductAndId",
|
|
178
|
-
oauth2_scopes=[],
|
|
179
|
-
security_source=get_security_from_env(
|
|
180
|
-
self.sdk_configuration.security, models.Security
|
|
181
|
-
),
|
|
182
|
-
),
|
|
183
|
-
request=req,
|
|
184
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
185
|
-
retry_config=retry_config,
|
|
186
|
-
)
|
|
187
|
-
|
|
188
|
-
response_data: Any = None
|
|
189
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
190
|
-
return unmarshal_json_response(
|
|
191
|
-
models.GetProductsGroupsACLTeamsByProductAndIDResponse, http_res
|
|
192
|
-
)
|
|
193
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
194
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
195
|
-
raise errors.Error(response_data, http_res)
|
|
196
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
197
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
198
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
199
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
200
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
201
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
202
|
-
|
|
203
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
File without changes
|