cribl-control-plane 0.0.20__py3-none-any.whl → 0.0.21__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/groups_sdk.py +572 -60
- cribl_control_plane/models/__init__.py +28 -0
- cribl_control_plane/models/deletegroupsbyidop.py +37 -0
- cribl_control_plane/models/updategroupsbyidop.py +48 -0
- {cribl_control_plane-0.0.20.dist-info → cribl_control_plane-0.0.21.dist-info}/METADATA +5 -3
- {cribl_control_plane-0.0.20.dist-info → cribl_control_plane-0.0.21.dist-info}/RECORD +8 -6
- {cribl_control_plane-0.0.20.dist-info → cribl_control_plane-0.0.21.dist-info}/WHEEL +0 -0
cribl_control_plane/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "cribl-control-plane"
|
|
6
|
-
__version__: str = "0.0.
|
|
7
|
-
__openapi_doc_version__: str = "4.14.0-alpha.
|
|
6
|
+
__version__: str = "0.0.21"
|
|
7
|
+
__openapi_doc_version__: str = "4.14.0-alpha.1754075358312-9b381cdf"
|
|
8
8
|
__gen_version__: str = "2.660.0"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.0.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.0.21 2.660.0 4.14.0-alpha.1754075358312-9b381cdf cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -716,29 +716,20 @@ class GroupsSDK(BaseSDK):
|
|
|
716
716
|
|
|
717
717
|
raise errors.APIError("Unexpected response received", http_res)
|
|
718
718
|
|
|
719
|
-
def
|
|
719
|
+
def delete_groups_by_id(
|
|
720
720
|
self,
|
|
721
721
|
*,
|
|
722
722
|
id: str,
|
|
723
|
-
version: str,
|
|
724
|
-
lookups: Optional[
|
|
725
|
-
Union[
|
|
726
|
-
List[models.DeployRequestLookups],
|
|
727
|
-
List[models.DeployRequestLookupsTypedDict],
|
|
728
|
-
]
|
|
729
|
-
] = None,
|
|
730
723
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
731
724
|
server_url: Optional[str] = None,
|
|
732
725
|
timeout_ms: Optional[int] = None,
|
|
733
726
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
734
|
-
) -> models.
|
|
735
|
-
r"""
|
|
727
|
+
) -> models.DeleteGroupsByIDResponse:
|
|
728
|
+
r"""Delete a Fleet or Worker Group
|
|
736
729
|
|
|
737
|
-
|
|
730
|
+
Delete a Fleet or Worker Group
|
|
738
731
|
|
|
739
732
|
:param id: Group ID
|
|
740
|
-
:param version:
|
|
741
|
-
:param lookups:
|
|
742
733
|
:param retries: Override the default retry configuration for this method
|
|
743
734
|
:param server_url: Override the default server URL for this method
|
|
744
735
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -754,32 +745,23 @@ class GroupsSDK(BaseSDK):
|
|
|
754
745
|
else:
|
|
755
746
|
base_url = self._get_url(base_url, url_variables)
|
|
756
747
|
|
|
757
|
-
request = models.
|
|
748
|
+
request = models.DeleteGroupsByIDRequest(
|
|
758
749
|
id=id,
|
|
759
|
-
deploy_request=models.DeployRequest(
|
|
760
|
-
lookups=utils.get_pydantic_model(
|
|
761
|
-
lookups, Optional[List[models.DeployRequestLookups]]
|
|
762
|
-
),
|
|
763
|
-
version=version,
|
|
764
|
-
),
|
|
765
750
|
)
|
|
766
751
|
|
|
767
752
|
req = self._build_request(
|
|
768
|
-
method="
|
|
769
|
-
path="/master/groups/{id}
|
|
753
|
+
method="DELETE",
|
|
754
|
+
path="/master/groups/{id}",
|
|
770
755
|
base_url=base_url,
|
|
771
756
|
url_variables=url_variables,
|
|
772
757
|
request=request,
|
|
773
|
-
request_body_required=
|
|
758
|
+
request_body_required=False,
|
|
774
759
|
request_has_path_params=True,
|
|
775
760
|
request_has_query_params=True,
|
|
776
761
|
user_agent_header="user-agent",
|
|
777
762
|
accept_header_value="application/json",
|
|
778
763
|
http_headers=http_headers,
|
|
779
764
|
security=self.sdk_configuration.security,
|
|
780
|
-
get_serialized_body=lambda: utils.serialize_request_body(
|
|
781
|
-
request.deploy_request, False, False, "json", models.DeployRequest
|
|
782
|
-
),
|
|
783
765
|
timeout_ms=timeout_ms,
|
|
784
766
|
)
|
|
785
767
|
|
|
@@ -795,7 +777,7 @@ class GroupsSDK(BaseSDK):
|
|
|
795
777
|
hook_ctx=HookContext(
|
|
796
778
|
config=self.sdk_configuration,
|
|
797
779
|
base_url=base_url or "",
|
|
798
|
-
operation_id="
|
|
780
|
+
operation_id="deleteGroupsById",
|
|
799
781
|
oauth2_scopes=[],
|
|
800
782
|
security_source=get_security_from_env(
|
|
801
783
|
self.sdk_configuration.security, models.Security
|
|
@@ -808,9 +790,7 @@ class GroupsSDK(BaseSDK):
|
|
|
808
790
|
|
|
809
791
|
response_data: Any = None
|
|
810
792
|
if utils.match_response(http_res, "200", "application/json"):
|
|
811
|
-
return unmarshal_json_response(
|
|
812
|
-
models.UpdateGroupsDeployByIDResponse, http_res
|
|
813
|
-
)
|
|
793
|
+
return unmarshal_json_response(models.DeleteGroupsByIDResponse, http_res)
|
|
814
794
|
if utils.match_response(http_res, "500", "application/json"):
|
|
815
795
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
816
796
|
raise errors.Error(response_data, http_res)
|
|
@@ -823,29 +803,20 @@ class GroupsSDK(BaseSDK):
|
|
|
823
803
|
|
|
824
804
|
raise errors.APIError("Unexpected response received", http_res)
|
|
825
805
|
|
|
826
|
-
async def
|
|
806
|
+
async def delete_groups_by_id_async(
|
|
827
807
|
self,
|
|
828
808
|
*,
|
|
829
809
|
id: str,
|
|
830
|
-
version: str,
|
|
831
|
-
lookups: Optional[
|
|
832
|
-
Union[
|
|
833
|
-
List[models.DeployRequestLookups],
|
|
834
|
-
List[models.DeployRequestLookupsTypedDict],
|
|
835
|
-
]
|
|
836
|
-
] = None,
|
|
837
810
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
838
811
|
server_url: Optional[str] = None,
|
|
839
812
|
timeout_ms: Optional[int] = None,
|
|
840
813
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
841
|
-
) -> models.
|
|
842
|
-
r"""
|
|
814
|
+
) -> models.DeleteGroupsByIDResponse:
|
|
815
|
+
r"""Delete a Fleet or Worker Group
|
|
843
816
|
|
|
844
|
-
|
|
817
|
+
Delete a Fleet or Worker Group
|
|
845
818
|
|
|
846
819
|
:param id: Group ID
|
|
847
|
-
:param version:
|
|
848
|
-
:param lookups:
|
|
849
820
|
:param retries: Override the default retry configuration for this method
|
|
850
821
|
:param server_url: Override the default server URL for this method
|
|
851
822
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -861,32 +832,23 @@ class GroupsSDK(BaseSDK):
|
|
|
861
832
|
else:
|
|
862
833
|
base_url = self._get_url(base_url, url_variables)
|
|
863
834
|
|
|
864
|
-
request = models.
|
|
835
|
+
request = models.DeleteGroupsByIDRequest(
|
|
865
836
|
id=id,
|
|
866
|
-
deploy_request=models.DeployRequest(
|
|
867
|
-
lookups=utils.get_pydantic_model(
|
|
868
|
-
lookups, Optional[List[models.DeployRequestLookups]]
|
|
869
|
-
),
|
|
870
|
-
version=version,
|
|
871
|
-
),
|
|
872
837
|
)
|
|
873
838
|
|
|
874
839
|
req = self._build_request_async(
|
|
875
|
-
method="
|
|
876
|
-
path="/master/groups/{id}
|
|
840
|
+
method="DELETE",
|
|
841
|
+
path="/master/groups/{id}",
|
|
877
842
|
base_url=base_url,
|
|
878
843
|
url_variables=url_variables,
|
|
879
844
|
request=request,
|
|
880
|
-
request_body_required=
|
|
845
|
+
request_body_required=False,
|
|
881
846
|
request_has_path_params=True,
|
|
882
847
|
request_has_query_params=True,
|
|
883
848
|
user_agent_header="user-agent",
|
|
884
849
|
accept_header_value="application/json",
|
|
885
850
|
http_headers=http_headers,
|
|
886
851
|
security=self.sdk_configuration.security,
|
|
887
|
-
get_serialized_body=lambda: utils.serialize_request_body(
|
|
888
|
-
request.deploy_request, False, False, "json", models.DeployRequest
|
|
889
|
-
),
|
|
890
852
|
timeout_ms=timeout_ms,
|
|
891
853
|
)
|
|
892
854
|
|
|
@@ -902,7 +864,7 @@ class GroupsSDK(BaseSDK):
|
|
|
902
864
|
hook_ctx=HookContext(
|
|
903
865
|
config=self.sdk_configuration,
|
|
904
866
|
base_url=base_url or "",
|
|
905
|
-
operation_id="
|
|
867
|
+
operation_id="deleteGroupsById",
|
|
906
868
|
oauth2_scopes=[],
|
|
907
869
|
security_source=get_security_from_env(
|
|
908
870
|
self.sdk_configuration.security, models.Security
|
|
@@ -915,9 +877,7 @@ class GroupsSDK(BaseSDK):
|
|
|
915
877
|
|
|
916
878
|
response_data: Any = None
|
|
917
879
|
if utils.match_response(http_res, "200", "application/json"):
|
|
918
|
-
return unmarshal_json_response(
|
|
919
|
-
models.UpdateGroupsDeployByIDResponse, http_res
|
|
920
|
-
)
|
|
880
|
+
return unmarshal_json_response(models.DeleteGroupsByIDResponse, http_res)
|
|
921
881
|
if utils.match_response(http_res, "500", "application/json"):
|
|
922
882
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
923
883
|
raise errors.Error(response_data, http_res)
|
|
@@ -1110,6 +1070,558 @@ class GroupsSDK(BaseSDK):
|
|
|
1110
1070
|
|
|
1111
1071
|
raise errors.APIError("Unexpected response received", http_res)
|
|
1112
1072
|
|
|
1073
|
+
def update_groups_by_id(
|
|
1074
|
+
self,
|
|
1075
|
+
*,
|
|
1076
|
+
id_param: str,
|
|
1077
|
+
config_version: str,
|
|
1078
|
+
id: str,
|
|
1079
|
+
cloud: Optional[
|
|
1080
|
+
Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
|
|
1081
|
+
] = None,
|
|
1082
|
+
deploying_worker_count: Optional[float] = None,
|
|
1083
|
+
description: Optional[str] = None,
|
|
1084
|
+
estimated_ingest_rate: Optional[float] = None,
|
|
1085
|
+
git: Optional[Union[models.Git, models.GitTypedDict]] = None,
|
|
1086
|
+
incompatible_worker_count: Optional[float] = None,
|
|
1087
|
+
inherits: Optional[str] = None,
|
|
1088
|
+
is_fleet: Optional[bool] = None,
|
|
1089
|
+
is_search: Optional[bool] = None,
|
|
1090
|
+
lookup_deployments: Optional[
|
|
1091
|
+
Union[
|
|
1092
|
+
List[models.ConfigGroupLookups],
|
|
1093
|
+
List[models.ConfigGroupLookupsTypedDict],
|
|
1094
|
+
]
|
|
1095
|
+
] = None,
|
|
1096
|
+
max_worker_age: Optional[str] = None,
|
|
1097
|
+
name: Optional[str] = None,
|
|
1098
|
+
on_prem: Optional[bool] = None,
|
|
1099
|
+
provisioned: Optional[bool] = None,
|
|
1100
|
+
streamtags: Optional[List[str]] = None,
|
|
1101
|
+
tags: Optional[str] = None,
|
|
1102
|
+
type_: Optional[models.ConfigGroupType] = None,
|
|
1103
|
+
upgrade_version: Optional[str] = None,
|
|
1104
|
+
worker_count: Optional[float] = None,
|
|
1105
|
+
worker_remote_access: Optional[bool] = None,
|
|
1106
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1107
|
+
server_url: Optional[str] = None,
|
|
1108
|
+
timeout_ms: Optional[int] = None,
|
|
1109
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
1110
|
+
) -> models.UpdateGroupsByIDResponse:
|
|
1111
|
+
r"""Update a Fleet or Worker Group
|
|
1112
|
+
|
|
1113
|
+
Update a Fleet or Worker Group
|
|
1114
|
+
|
|
1115
|
+
:param id_param: Group ID
|
|
1116
|
+
:param config_version:
|
|
1117
|
+
:param id:
|
|
1118
|
+
:param cloud:
|
|
1119
|
+
:param deploying_worker_count:
|
|
1120
|
+
:param description:
|
|
1121
|
+
:param estimated_ingest_rate:
|
|
1122
|
+
:param git:
|
|
1123
|
+
:param incompatible_worker_count:
|
|
1124
|
+
:param inherits:
|
|
1125
|
+
:param is_fleet:
|
|
1126
|
+
:param is_search:
|
|
1127
|
+
:param lookup_deployments:
|
|
1128
|
+
:param max_worker_age:
|
|
1129
|
+
:param name:
|
|
1130
|
+
:param on_prem:
|
|
1131
|
+
:param provisioned:
|
|
1132
|
+
:param streamtags:
|
|
1133
|
+
:param tags:
|
|
1134
|
+
:param type:
|
|
1135
|
+
:param upgrade_version:
|
|
1136
|
+
:param worker_count:
|
|
1137
|
+
:param worker_remote_access:
|
|
1138
|
+
:param retries: Override the default retry configuration for this method
|
|
1139
|
+
:param server_url: Override the default server URL for this method
|
|
1140
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1141
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
1142
|
+
"""
|
|
1143
|
+
base_url = None
|
|
1144
|
+
url_variables = None
|
|
1145
|
+
if timeout_ms is None:
|
|
1146
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1147
|
+
|
|
1148
|
+
if server_url is not None:
|
|
1149
|
+
base_url = server_url
|
|
1150
|
+
else:
|
|
1151
|
+
base_url = self._get_url(base_url, url_variables)
|
|
1152
|
+
|
|
1153
|
+
request = models.UpdateGroupsByIDRequest(
|
|
1154
|
+
id_param=id_param,
|
|
1155
|
+
config_group=models.ConfigGroup(
|
|
1156
|
+
cloud=utils.get_pydantic_model(
|
|
1157
|
+
cloud, Optional[models.ConfigGroupCloud]
|
|
1158
|
+
),
|
|
1159
|
+
config_version=config_version,
|
|
1160
|
+
deploying_worker_count=deploying_worker_count,
|
|
1161
|
+
description=description,
|
|
1162
|
+
estimated_ingest_rate=estimated_ingest_rate,
|
|
1163
|
+
git=utils.get_pydantic_model(git, Optional[models.Git]),
|
|
1164
|
+
id=id,
|
|
1165
|
+
incompatible_worker_count=incompatible_worker_count,
|
|
1166
|
+
inherits=inherits,
|
|
1167
|
+
is_fleet=is_fleet,
|
|
1168
|
+
is_search=is_search,
|
|
1169
|
+
lookup_deployments=utils.get_pydantic_model(
|
|
1170
|
+
lookup_deployments, Optional[List[models.ConfigGroupLookups]]
|
|
1171
|
+
),
|
|
1172
|
+
max_worker_age=max_worker_age,
|
|
1173
|
+
name=name,
|
|
1174
|
+
on_prem=on_prem,
|
|
1175
|
+
provisioned=provisioned,
|
|
1176
|
+
streamtags=streamtags,
|
|
1177
|
+
tags=tags,
|
|
1178
|
+
type=type_,
|
|
1179
|
+
upgrade_version=upgrade_version,
|
|
1180
|
+
worker_count=worker_count,
|
|
1181
|
+
worker_remote_access=worker_remote_access,
|
|
1182
|
+
),
|
|
1183
|
+
)
|
|
1184
|
+
|
|
1185
|
+
req = self._build_request(
|
|
1186
|
+
method="PATCH",
|
|
1187
|
+
path="/master/groups/{id}",
|
|
1188
|
+
base_url=base_url,
|
|
1189
|
+
url_variables=url_variables,
|
|
1190
|
+
request=request,
|
|
1191
|
+
request_body_required=True,
|
|
1192
|
+
request_has_path_params=True,
|
|
1193
|
+
request_has_query_params=True,
|
|
1194
|
+
user_agent_header="user-agent",
|
|
1195
|
+
accept_header_value="application/json",
|
|
1196
|
+
http_headers=http_headers,
|
|
1197
|
+
security=self.sdk_configuration.security,
|
|
1198
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1199
|
+
request.config_group, False, False, "json", models.ConfigGroup
|
|
1200
|
+
),
|
|
1201
|
+
timeout_ms=timeout_ms,
|
|
1202
|
+
)
|
|
1203
|
+
|
|
1204
|
+
if retries == UNSET:
|
|
1205
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
1206
|
+
retries = self.sdk_configuration.retry_config
|
|
1207
|
+
|
|
1208
|
+
retry_config = None
|
|
1209
|
+
if isinstance(retries, utils.RetryConfig):
|
|
1210
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1211
|
+
|
|
1212
|
+
http_res = self.do_request(
|
|
1213
|
+
hook_ctx=HookContext(
|
|
1214
|
+
config=self.sdk_configuration,
|
|
1215
|
+
base_url=base_url or "",
|
|
1216
|
+
operation_id="updateGroupsById",
|
|
1217
|
+
oauth2_scopes=[],
|
|
1218
|
+
security_source=get_security_from_env(
|
|
1219
|
+
self.sdk_configuration.security, models.Security
|
|
1220
|
+
),
|
|
1221
|
+
),
|
|
1222
|
+
request=req,
|
|
1223
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1224
|
+
retry_config=retry_config,
|
|
1225
|
+
)
|
|
1226
|
+
|
|
1227
|
+
response_data: Any = None
|
|
1228
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
1229
|
+
return unmarshal_json_response(models.UpdateGroupsByIDResponse, http_res)
|
|
1230
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
1231
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1232
|
+
raise errors.Error(response_data, http_res)
|
|
1233
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1234
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1235
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1236
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
1237
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1238
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1239
|
+
|
|
1240
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
1241
|
+
|
|
1242
|
+
async def update_groups_by_id_async(
|
|
1243
|
+
self,
|
|
1244
|
+
*,
|
|
1245
|
+
id_param: str,
|
|
1246
|
+
config_version: str,
|
|
1247
|
+
id: str,
|
|
1248
|
+
cloud: Optional[
|
|
1249
|
+
Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
|
|
1250
|
+
] = None,
|
|
1251
|
+
deploying_worker_count: Optional[float] = None,
|
|
1252
|
+
description: Optional[str] = None,
|
|
1253
|
+
estimated_ingest_rate: Optional[float] = None,
|
|
1254
|
+
git: Optional[Union[models.Git, models.GitTypedDict]] = None,
|
|
1255
|
+
incompatible_worker_count: Optional[float] = None,
|
|
1256
|
+
inherits: Optional[str] = None,
|
|
1257
|
+
is_fleet: Optional[bool] = None,
|
|
1258
|
+
is_search: Optional[bool] = None,
|
|
1259
|
+
lookup_deployments: Optional[
|
|
1260
|
+
Union[
|
|
1261
|
+
List[models.ConfigGroupLookups],
|
|
1262
|
+
List[models.ConfigGroupLookupsTypedDict],
|
|
1263
|
+
]
|
|
1264
|
+
] = None,
|
|
1265
|
+
max_worker_age: Optional[str] = None,
|
|
1266
|
+
name: Optional[str] = None,
|
|
1267
|
+
on_prem: Optional[bool] = None,
|
|
1268
|
+
provisioned: Optional[bool] = None,
|
|
1269
|
+
streamtags: Optional[List[str]] = None,
|
|
1270
|
+
tags: Optional[str] = None,
|
|
1271
|
+
type_: Optional[models.ConfigGroupType] = None,
|
|
1272
|
+
upgrade_version: Optional[str] = None,
|
|
1273
|
+
worker_count: Optional[float] = None,
|
|
1274
|
+
worker_remote_access: Optional[bool] = None,
|
|
1275
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1276
|
+
server_url: Optional[str] = None,
|
|
1277
|
+
timeout_ms: Optional[int] = None,
|
|
1278
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
1279
|
+
) -> models.UpdateGroupsByIDResponse:
|
|
1280
|
+
r"""Update a Fleet or Worker Group
|
|
1281
|
+
|
|
1282
|
+
Update a Fleet or Worker Group
|
|
1283
|
+
|
|
1284
|
+
:param id_param: Group ID
|
|
1285
|
+
:param config_version:
|
|
1286
|
+
:param id:
|
|
1287
|
+
:param cloud:
|
|
1288
|
+
:param deploying_worker_count:
|
|
1289
|
+
:param description:
|
|
1290
|
+
:param estimated_ingest_rate:
|
|
1291
|
+
:param git:
|
|
1292
|
+
:param incompatible_worker_count:
|
|
1293
|
+
:param inherits:
|
|
1294
|
+
:param is_fleet:
|
|
1295
|
+
:param is_search:
|
|
1296
|
+
:param lookup_deployments:
|
|
1297
|
+
:param max_worker_age:
|
|
1298
|
+
:param name:
|
|
1299
|
+
:param on_prem:
|
|
1300
|
+
:param provisioned:
|
|
1301
|
+
:param streamtags:
|
|
1302
|
+
:param tags:
|
|
1303
|
+
:param type:
|
|
1304
|
+
:param upgrade_version:
|
|
1305
|
+
:param worker_count:
|
|
1306
|
+
:param worker_remote_access:
|
|
1307
|
+
:param retries: Override the default retry configuration for this method
|
|
1308
|
+
:param server_url: Override the default server URL for this method
|
|
1309
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1310
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
1311
|
+
"""
|
|
1312
|
+
base_url = None
|
|
1313
|
+
url_variables = None
|
|
1314
|
+
if timeout_ms is None:
|
|
1315
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1316
|
+
|
|
1317
|
+
if server_url is not None:
|
|
1318
|
+
base_url = server_url
|
|
1319
|
+
else:
|
|
1320
|
+
base_url = self._get_url(base_url, url_variables)
|
|
1321
|
+
|
|
1322
|
+
request = models.UpdateGroupsByIDRequest(
|
|
1323
|
+
id_param=id_param,
|
|
1324
|
+
config_group=models.ConfigGroup(
|
|
1325
|
+
cloud=utils.get_pydantic_model(
|
|
1326
|
+
cloud, Optional[models.ConfigGroupCloud]
|
|
1327
|
+
),
|
|
1328
|
+
config_version=config_version,
|
|
1329
|
+
deploying_worker_count=deploying_worker_count,
|
|
1330
|
+
description=description,
|
|
1331
|
+
estimated_ingest_rate=estimated_ingest_rate,
|
|
1332
|
+
git=utils.get_pydantic_model(git, Optional[models.Git]),
|
|
1333
|
+
id=id,
|
|
1334
|
+
incompatible_worker_count=incompatible_worker_count,
|
|
1335
|
+
inherits=inherits,
|
|
1336
|
+
is_fleet=is_fleet,
|
|
1337
|
+
is_search=is_search,
|
|
1338
|
+
lookup_deployments=utils.get_pydantic_model(
|
|
1339
|
+
lookup_deployments, Optional[List[models.ConfigGroupLookups]]
|
|
1340
|
+
),
|
|
1341
|
+
max_worker_age=max_worker_age,
|
|
1342
|
+
name=name,
|
|
1343
|
+
on_prem=on_prem,
|
|
1344
|
+
provisioned=provisioned,
|
|
1345
|
+
streamtags=streamtags,
|
|
1346
|
+
tags=tags,
|
|
1347
|
+
type=type_,
|
|
1348
|
+
upgrade_version=upgrade_version,
|
|
1349
|
+
worker_count=worker_count,
|
|
1350
|
+
worker_remote_access=worker_remote_access,
|
|
1351
|
+
),
|
|
1352
|
+
)
|
|
1353
|
+
|
|
1354
|
+
req = self._build_request_async(
|
|
1355
|
+
method="PATCH",
|
|
1356
|
+
path="/master/groups/{id}",
|
|
1357
|
+
base_url=base_url,
|
|
1358
|
+
url_variables=url_variables,
|
|
1359
|
+
request=request,
|
|
1360
|
+
request_body_required=True,
|
|
1361
|
+
request_has_path_params=True,
|
|
1362
|
+
request_has_query_params=True,
|
|
1363
|
+
user_agent_header="user-agent",
|
|
1364
|
+
accept_header_value="application/json",
|
|
1365
|
+
http_headers=http_headers,
|
|
1366
|
+
security=self.sdk_configuration.security,
|
|
1367
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1368
|
+
request.config_group, False, False, "json", models.ConfigGroup
|
|
1369
|
+
),
|
|
1370
|
+
timeout_ms=timeout_ms,
|
|
1371
|
+
)
|
|
1372
|
+
|
|
1373
|
+
if retries == UNSET:
|
|
1374
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
1375
|
+
retries = self.sdk_configuration.retry_config
|
|
1376
|
+
|
|
1377
|
+
retry_config = None
|
|
1378
|
+
if isinstance(retries, utils.RetryConfig):
|
|
1379
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1380
|
+
|
|
1381
|
+
http_res = await self.do_request_async(
|
|
1382
|
+
hook_ctx=HookContext(
|
|
1383
|
+
config=self.sdk_configuration,
|
|
1384
|
+
base_url=base_url or "",
|
|
1385
|
+
operation_id="updateGroupsById",
|
|
1386
|
+
oauth2_scopes=[],
|
|
1387
|
+
security_source=get_security_from_env(
|
|
1388
|
+
self.sdk_configuration.security, models.Security
|
|
1389
|
+
),
|
|
1390
|
+
),
|
|
1391
|
+
request=req,
|
|
1392
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1393
|
+
retry_config=retry_config,
|
|
1394
|
+
)
|
|
1395
|
+
|
|
1396
|
+
response_data: Any = None
|
|
1397
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
1398
|
+
return unmarshal_json_response(models.UpdateGroupsByIDResponse, http_res)
|
|
1399
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
1400
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1401
|
+
raise errors.Error(response_data, http_res)
|
|
1402
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1403
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1404
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1405
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
1406
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1407
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1408
|
+
|
|
1409
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
1410
|
+
|
|
1411
|
+
def update_groups_deploy_by_id(
|
|
1412
|
+
self,
|
|
1413
|
+
*,
|
|
1414
|
+
id: str,
|
|
1415
|
+
version: str,
|
|
1416
|
+
lookups: Optional[
|
|
1417
|
+
Union[
|
|
1418
|
+
List[models.DeployRequestLookups],
|
|
1419
|
+
List[models.DeployRequestLookupsTypedDict],
|
|
1420
|
+
]
|
|
1421
|
+
] = None,
|
|
1422
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1423
|
+
server_url: Optional[str] = None,
|
|
1424
|
+
timeout_ms: Optional[int] = None,
|
|
1425
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
1426
|
+
) -> models.UpdateGroupsDeployByIDResponse:
|
|
1427
|
+
r"""Deploy commits for a Fleet or Worker Group
|
|
1428
|
+
|
|
1429
|
+
Deploy commits for a Fleet or Worker Group
|
|
1430
|
+
|
|
1431
|
+
:param id: Group ID
|
|
1432
|
+
:param version:
|
|
1433
|
+
:param lookups:
|
|
1434
|
+
:param retries: Override the default retry configuration for this method
|
|
1435
|
+
:param server_url: Override the default server URL for this method
|
|
1436
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1437
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
1438
|
+
"""
|
|
1439
|
+
base_url = None
|
|
1440
|
+
url_variables = None
|
|
1441
|
+
if timeout_ms is None:
|
|
1442
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1443
|
+
|
|
1444
|
+
if server_url is not None:
|
|
1445
|
+
base_url = server_url
|
|
1446
|
+
else:
|
|
1447
|
+
base_url = self._get_url(base_url, url_variables)
|
|
1448
|
+
|
|
1449
|
+
request = models.UpdateGroupsDeployByIDRequest(
|
|
1450
|
+
id=id,
|
|
1451
|
+
deploy_request=models.DeployRequest(
|
|
1452
|
+
lookups=utils.get_pydantic_model(
|
|
1453
|
+
lookups, Optional[List[models.DeployRequestLookups]]
|
|
1454
|
+
),
|
|
1455
|
+
version=version,
|
|
1456
|
+
),
|
|
1457
|
+
)
|
|
1458
|
+
|
|
1459
|
+
req = self._build_request(
|
|
1460
|
+
method="PATCH",
|
|
1461
|
+
path="/master/groups/{id}/deploy",
|
|
1462
|
+
base_url=base_url,
|
|
1463
|
+
url_variables=url_variables,
|
|
1464
|
+
request=request,
|
|
1465
|
+
request_body_required=True,
|
|
1466
|
+
request_has_path_params=True,
|
|
1467
|
+
request_has_query_params=True,
|
|
1468
|
+
user_agent_header="user-agent",
|
|
1469
|
+
accept_header_value="application/json",
|
|
1470
|
+
http_headers=http_headers,
|
|
1471
|
+
security=self.sdk_configuration.security,
|
|
1472
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1473
|
+
request.deploy_request, False, False, "json", models.DeployRequest
|
|
1474
|
+
),
|
|
1475
|
+
timeout_ms=timeout_ms,
|
|
1476
|
+
)
|
|
1477
|
+
|
|
1478
|
+
if retries == UNSET:
|
|
1479
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
1480
|
+
retries = self.sdk_configuration.retry_config
|
|
1481
|
+
|
|
1482
|
+
retry_config = None
|
|
1483
|
+
if isinstance(retries, utils.RetryConfig):
|
|
1484
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1485
|
+
|
|
1486
|
+
http_res = self.do_request(
|
|
1487
|
+
hook_ctx=HookContext(
|
|
1488
|
+
config=self.sdk_configuration,
|
|
1489
|
+
base_url=base_url or "",
|
|
1490
|
+
operation_id="updateGroupsDeployById",
|
|
1491
|
+
oauth2_scopes=[],
|
|
1492
|
+
security_source=get_security_from_env(
|
|
1493
|
+
self.sdk_configuration.security, models.Security
|
|
1494
|
+
),
|
|
1495
|
+
),
|
|
1496
|
+
request=req,
|
|
1497
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1498
|
+
retry_config=retry_config,
|
|
1499
|
+
)
|
|
1500
|
+
|
|
1501
|
+
response_data: Any = None
|
|
1502
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
1503
|
+
return unmarshal_json_response(
|
|
1504
|
+
models.UpdateGroupsDeployByIDResponse, http_res
|
|
1505
|
+
)
|
|
1506
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
1507
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1508
|
+
raise errors.Error(response_data, http_res)
|
|
1509
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1510
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1511
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1512
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
1513
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
1514
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1515
|
+
|
|
1516
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
1517
|
+
|
|
1518
|
+
async def update_groups_deploy_by_id_async(
|
|
1519
|
+
self,
|
|
1520
|
+
*,
|
|
1521
|
+
id: str,
|
|
1522
|
+
version: str,
|
|
1523
|
+
lookups: Optional[
|
|
1524
|
+
Union[
|
|
1525
|
+
List[models.DeployRequestLookups],
|
|
1526
|
+
List[models.DeployRequestLookupsTypedDict],
|
|
1527
|
+
]
|
|
1528
|
+
] = None,
|
|
1529
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1530
|
+
server_url: Optional[str] = None,
|
|
1531
|
+
timeout_ms: Optional[int] = None,
|
|
1532
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
1533
|
+
) -> models.UpdateGroupsDeployByIDResponse:
|
|
1534
|
+
r"""Deploy commits for a Fleet or Worker Group
|
|
1535
|
+
|
|
1536
|
+
Deploy commits for a Fleet or Worker Group
|
|
1537
|
+
|
|
1538
|
+
:param id: Group ID
|
|
1539
|
+
:param version:
|
|
1540
|
+
:param lookups:
|
|
1541
|
+
:param retries: Override the default retry configuration for this method
|
|
1542
|
+
:param server_url: Override the default server URL for this method
|
|
1543
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1544
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
1545
|
+
"""
|
|
1546
|
+
base_url = None
|
|
1547
|
+
url_variables = None
|
|
1548
|
+
if timeout_ms is None:
|
|
1549
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1550
|
+
|
|
1551
|
+
if server_url is not None:
|
|
1552
|
+
base_url = server_url
|
|
1553
|
+
else:
|
|
1554
|
+
base_url = self._get_url(base_url, url_variables)
|
|
1555
|
+
|
|
1556
|
+
request = models.UpdateGroupsDeployByIDRequest(
|
|
1557
|
+
id=id,
|
|
1558
|
+
deploy_request=models.DeployRequest(
|
|
1559
|
+
lookups=utils.get_pydantic_model(
|
|
1560
|
+
lookups, Optional[List[models.DeployRequestLookups]]
|
|
1561
|
+
),
|
|
1562
|
+
version=version,
|
|
1563
|
+
),
|
|
1564
|
+
)
|
|
1565
|
+
|
|
1566
|
+
req = self._build_request_async(
|
|
1567
|
+
method="PATCH",
|
|
1568
|
+
path="/master/groups/{id}/deploy",
|
|
1569
|
+
base_url=base_url,
|
|
1570
|
+
url_variables=url_variables,
|
|
1571
|
+
request=request,
|
|
1572
|
+
request_body_required=True,
|
|
1573
|
+
request_has_path_params=True,
|
|
1574
|
+
request_has_query_params=True,
|
|
1575
|
+
user_agent_header="user-agent",
|
|
1576
|
+
accept_header_value="application/json",
|
|
1577
|
+
http_headers=http_headers,
|
|
1578
|
+
security=self.sdk_configuration.security,
|
|
1579
|
+
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1580
|
+
request.deploy_request, False, False, "json", models.DeployRequest
|
|
1581
|
+
),
|
|
1582
|
+
timeout_ms=timeout_ms,
|
|
1583
|
+
)
|
|
1584
|
+
|
|
1585
|
+
if retries == UNSET:
|
|
1586
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
1587
|
+
retries = self.sdk_configuration.retry_config
|
|
1588
|
+
|
|
1589
|
+
retry_config = None
|
|
1590
|
+
if isinstance(retries, utils.RetryConfig):
|
|
1591
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1592
|
+
|
|
1593
|
+
http_res = await self.do_request_async(
|
|
1594
|
+
hook_ctx=HookContext(
|
|
1595
|
+
config=self.sdk_configuration,
|
|
1596
|
+
base_url=base_url or "",
|
|
1597
|
+
operation_id="updateGroupsDeployById",
|
|
1598
|
+
oauth2_scopes=[],
|
|
1599
|
+
security_source=get_security_from_env(
|
|
1600
|
+
self.sdk_configuration.security, models.Security
|
|
1601
|
+
),
|
|
1602
|
+
),
|
|
1603
|
+
request=req,
|
|
1604
|
+
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1605
|
+
retry_config=retry_config,
|
|
1606
|
+
)
|
|
1607
|
+
|
|
1608
|
+
response_data: Any = None
|
|
1609
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
1610
|
+
return unmarshal_json_response(
|
|
1611
|
+
models.UpdateGroupsDeployByIDResponse, http_res
|
|
1612
|
+
)
|
|
1613
|
+
if utils.match_response(http_res, "500", "application/json"):
|
|
1614
|
+
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1615
|
+
raise errors.Error(response_data, http_res)
|
|
1616
|
+
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1617
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1618
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1619
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
1620
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1621
|
+
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1622
|
+
|
|
1623
|
+
raise errors.APIError("Unexpected response received", http_res)
|
|
1624
|
+
|
|
1113
1625
|
def get_groups_acl_by_id(
|
|
1114
1626
|
self,
|
|
1115
1627
|
*,
|
|
@@ -1857,6 +1857,12 @@ if TYPE_CHECKING:
|
|
|
1857
1857
|
DeleteCriblLakeDatasetByLakeIDAndIDResponse,
|
|
1858
1858
|
DeleteCriblLakeDatasetByLakeIDAndIDResponseTypedDict,
|
|
1859
1859
|
)
|
|
1860
|
+
from .deletegroupsbyidop import (
|
|
1861
|
+
DeleteGroupsByIDRequest,
|
|
1862
|
+
DeleteGroupsByIDRequestTypedDict,
|
|
1863
|
+
DeleteGroupsByIDResponse,
|
|
1864
|
+
DeleteGroupsByIDResponseTypedDict,
|
|
1865
|
+
)
|
|
1860
1866
|
from .deleteinputbyidop import (
|
|
1861
1867
|
DeleteInputByIDRequest,
|
|
1862
1868
|
DeleteInputByIDRequestTypedDict,
|
|
@@ -4711,6 +4717,12 @@ if TYPE_CHECKING:
|
|
|
4711
4717
|
UpdateCriblLakeDatasetByLakeIDAndIDResponse,
|
|
4712
4718
|
UpdateCriblLakeDatasetByLakeIDAndIDResponseTypedDict,
|
|
4713
4719
|
)
|
|
4720
|
+
from .updategroupsbyidop import (
|
|
4721
|
+
UpdateGroupsByIDRequest,
|
|
4722
|
+
UpdateGroupsByIDRequestTypedDict,
|
|
4723
|
+
UpdateGroupsByIDResponse,
|
|
4724
|
+
UpdateGroupsByIDResponseTypedDict,
|
|
4725
|
+
)
|
|
4714
4726
|
from .updategroupsdeploybyidop import (
|
|
4715
4727
|
UpdateGroupsDeployByIDRequest,
|
|
4716
4728
|
UpdateGroupsDeployByIDRequestTypedDict,
|
|
@@ -5877,6 +5889,10 @@ __all__ = [
|
|
|
5877
5889
|
"DeleteCriblLakeDatasetByLakeIDAndIDRequestTypedDict",
|
|
5878
5890
|
"DeleteCriblLakeDatasetByLakeIDAndIDResponse",
|
|
5879
5891
|
"DeleteCriblLakeDatasetByLakeIDAndIDResponseTypedDict",
|
|
5892
|
+
"DeleteGroupsByIDRequest",
|
|
5893
|
+
"DeleteGroupsByIDRequestTypedDict",
|
|
5894
|
+
"DeleteGroupsByIDResponse",
|
|
5895
|
+
"DeleteGroupsByIDResponseTypedDict",
|
|
5880
5896
|
"DeleteInputByIDRequest",
|
|
5881
5897
|
"DeleteInputByIDRequestTypedDict",
|
|
5882
5898
|
"DeleteInputByIDResponse",
|
|
@@ -9141,6 +9157,10 @@ __all__ = [
|
|
|
9141
9157
|
"UpdateCriblLakeDatasetByLakeIDAndIDRequestTypedDict",
|
|
9142
9158
|
"UpdateCriblLakeDatasetByLakeIDAndIDResponse",
|
|
9143
9159
|
"UpdateCriblLakeDatasetByLakeIDAndIDResponseTypedDict",
|
|
9160
|
+
"UpdateGroupsByIDRequest",
|
|
9161
|
+
"UpdateGroupsByIDRequestTypedDict",
|
|
9162
|
+
"UpdateGroupsByIDResponse",
|
|
9163
|
+
"UpdateGroupsByIDResponseTypedDict",
|
|
9144
9164
|
"UpdateGroupsDeployByIDRequest",
|
|
9145
9165
|
"UpdateGroupsDeployByIDRequestTypedDict",
|
|
9146
9166
|
"UpdateGroupsDeployByIDResponse",
|
|
@@ -11012,6 +11032,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
11012
11032
|
"DeleteCriblLakeDatasetByLakeIDAndIDRequestTypedDict": ".deletecribllakedatasetbylakeidandidop",
|
|
11013
11033
|
"DeleteCriblLakeDatasetByLakeIDAndIDResponse": ".deletecribllakedatasetbylakeidandidop",
|
|
11014
11034
|
"DeleteCriblLakeDatasetByLakeIDAndIDResponseTypedDict": ".deletecribllakedatasetbylakeidandidop",
|
|
11035
|
+
"DeleteGroupsByIDRequest": ".deletegroupsbyidop",
|
|
11036
|
+
"DeleteGroupsByIDRequestTypedDict": ".deletegroupsbyidop",
|
|
11037
|
+
"DeleteGroupsByIDResponse": ".deletegroupsbyidop",
|
|
11038
|
+
"DeleteGroupsByIDResponseTypedDict": ".deletegroupsbyidop",
|
|
11015
11039
|
"DeleteInputByIDRequest": ".deleteinputbyidop",
|
|
11016
11040
|
"DeleteInputByIDRequestTypedDict": ".deleteinputbyidop",
|
|
11017
11041
|
"DeleteInputByIDResponse": ".deleteinputbyidop",
|
|
@@ -13560,6 +13584,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
13560
13584
|
"UpdateCriblLakeDatasetByLakeIDAndIDRequestTypedDict": ".updatecribllakedatasetbylakeidandidop",
|
|
13561
13585
|
"UpdateCriblLakeDatasetByLakeIDAndIDResponse": ".updatecribllakedatasetbylakeidandidop",
|
|
13562
13586
|
"UpdateCriblLakeDatasetByLakeIDAndIDResponseTypedDict": ".updatecribllakedatasetbylakeidandidop",
|
|
13587
|
+
"UpdateGroupsByIDRequest": ".updategroupsbyidop",
|
|
13588
|
+
"UpdateGroupsByIDRequestTypedDict": ".updategroupsbyidop",
|
|
13589
|
+
"UpdateGroupsByIDResponse": ".updategroupsbyidop",
|
|
13590
|
+
"UpdateGroupsByIDResponseTypedDict": ".updategroupsbyidop",
|
|
13563
13591
|
"UpdateGroupsDeployByIDRequest": ".updategroupsdeploybyidop",
|
|
13564
13592
|
"UpdateGroupsDeployByIDRequestTypedDict": ".updategroupsdeploybyidop",
|
|
13565
13593
|
"UpdateGroupsDeployByIDResponse": ".updategroupsdeploybyidop",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata
|
|
7
|
+
from typing import List, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteGroupsByIDRequestTypedDict(TypedDict):
|
|
12
|
+
id: str
|
|
13
|
+
r"""Group ID"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class DeleteGroupsByIDRequest(BaseModel):
|
|
17
|
+
id: Annotated[
|
|
18
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
19
|
+
]
|
|
20
|
+
r"""Group ID"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class DeleteGroupsByIDResponseTypedDict(TypedDict):
|
|
24
|
+
r"""a list of ConfigGroup objects"""
|
|
25
|
+
|
|
26
|
+
count: NotRequired[int]
|
|
27
|
+
r"""number of items present in the items array"""
|
|
28
|
+
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class DeleteGroupsByIDResponse(BaseModel):
|
|
32
|
+
r"""a list of ConfigGroup objects"""
|
|
33
|
+
|
|
34
|
+
count: Optional[int] = None
|
|
35
|
+
r"""number of items present in the items array"""
|
|
36
|
+
|
|
37
|
+
items: Optional[List[ConfigGroup]] = None
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdateGroupsByIDRequestTypedDict(TypedDict):
|
|
13
|
+
id_param: str
|
|
14
|
+
r"""Group ID"""
|
|
15
|
+
config_group: ConfigGroupTypedDict
|
|
16
|
+
r"""ConfigGroup object"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class UpdateGroupsByIDRequest(BaseModel):
|
|
20
|
+
id_param: Annotated[
|
|
21
|
+
str,
|
|
22
|
+
pydantic.Field(alias="id"),
|
|
23
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
24
|
+
]
|
|
25
|
+
r"""Group ID"""
|
|
26
|
+
|
|
27
|
+
config_group: Annotated[
|
|
28
|
+
ConfigGroup,
|
|
29
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
30
|
+
]
|
|
31
|
+
r"""ConfigGroup object"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class UpdateGroupsByIDResponseTypedDict(TypedDict):
|
|
35
|
+
r"""a list of ConfigGroup objects"""
|
|
36
|
+
|
|
37
|
+
count: NotRequired[int]
|
|
38
|
+
r"""number of items present in the items array"""
|
|
39
|
+
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class UpdateGroupsByIDResponse(BaseModel):
|
|
43
|
+
r"""a list of ConfigGroup objects"""
|
|
44
|
+
|
|
45
|
+
count: Optional[int] = None
|
|
46
|
+
r"""number of items present in the items array"""
|
|
47
|
+
|
|
48
|
+
items: Optional[List[ConfigGroup]] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cribl-control-plane
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.21
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -223,8 +223,10 @@ with CriblControlPlane(
|
|
|
223
223
|
* [get_groups_config_version_by_id](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#get_groups_config_version_by_id) - Get effective bundle version for given Group
|
|
224
224
|
* [create_products_groups_by_product](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#create_products_groups_by_product) - Create a Fleet or Worker Group
|
|
225
225
|
* [get_products_groups_by_product](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#get_products_groups_by_product) - Get a list of ConfigGroup objects
|
|
226
|
-
* [
|
|
226
|
+
* [delete_groups_by_id](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#delete_groups_by_id) - Delete a Fleet or Worker Group
|
|
227
227
|
* [get_groups_by_id](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#get_groups_by_id) - Get a specific ConfigGroup object
|
|
228
|
+
* [update_groups_by_id](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#update_groups_by_id) - Update a Fleet or Worker Group
|
|
229
|
+
* [update_groups_deploy_by_id](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#update_groups_deploy_by_id) - Deploy commits for a Fleet or Worker Group
|
|
228
230
|
* [get_groups_acl_by_id](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/groupssdk/README.md#get_groups_acl_by_id) - ACL of members with permissions for resources in this Group
|
|
229
231
|
|
|
230
232
|
### [health](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/docs/sdks/health/README.md)
|
|
@@ -415,7 +417,7 @@ with CriblControlPlane(
|
|
|
415
417
|
|
|
416
418
|
|
|
417
419
|
**Inherit from [`CriblControlPlaneError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/criblcontrolplaneerror.py)**:
|
|
418
|
-
* [`HealthStatusError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/healthstatuserror.py): Healthy status. Status code `420`. Applicable to 1 of
|
|
420
|
+
* [`HealthStatusError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/healthstatuserror.py): Healthy status. Status code `420`. Applicable to 1 of 63 methods.*
|
|
419
421
|
* [`ResponseValidationError`](https://github.com/criblio/cribl_control_plane_sdk_python/blob/master/./src/cribl_control_plane/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
|
|
420
422
|
|
|
421
423
|
</details>
|
|
@@ -4,7 +4,7 @@ cribl_control_plane/_hooks/clientcredentials.py,sha256=gVQkktlv3q4-AHOdbQl5r8i-G
|
|
|
4
4
|
cribl_control_plane/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
5
5
|
cribl_control_plane/_hooks/sdkhooks.py,sha256=ggXjME1_Rdv8CVCg1XHqB83eYtbxzKyhXyfQ36Yc1gA,2816
|
|
6
6
|
cribl_control_plane/_hooks/types.py,sha256=Tw_C4zTZm01rW_89VDEUpvQ8KQr1WxN0Gu_-s_fYSPc,2998
|
|
7
|
-
cribl_control_plane/_version.py,sha256=
|
|
7
|
+
cribl_control_plane/_version.py,sha256=rJBWqaJYUMGIbQqyICQs892uH-AdOvSOKWmbzmfh-yo,542
|
|
8
8
|
cribl_control_plane/auth_sdk.py,sha256=Jxw8hPHbBFay5eXcaRBtgdCC06mh5XHkRbZcIM0vvB8,7431
|
|
9
9
|
cribl_control_plane/basesdk.py,sha256=amvvB5iPT7c-L6NLo2Rhu2f7xWaapsa6OfQ37SICXOw,11954
|
|
10
10
|
cribl_control_plane/destinations.py,sha256=9L_VzqiAh8xAN4JNBsU7FT7ZFRiBuhtf-5mJBCbZj-g,65733
|
|
@@ -16,11 +16,11 @@ cribl_control_plane/errors/error.py,sha256=fZ72R_qeZ0-xd514dVqKKiqh7zzLmnkpPJfck
|
|
|
16
16
|
cribl_control_plane/errors/healthstatus_error.py,sha256=euamtBp065afnXzeaBMjGlQGAN3ONZfDK-RR--FOIzo,962
|
|
17
17
|
cribl_control_plane/errors/no_response_error.py,sha256=FQG44Lq6uF7uUlzbUYfM3dJon6sbqXzJ0Ri6YrDdsEs,380
|
|
18
18
|
cribl_control_plane/errors/responsevalidationerror.py,sha256=TvZ9dOsy-oFBYA_wZCOOEXeGKMBQtzCVX-1-i7epQTE,720
|
|
19
|
-
cribl_control_plane/groups_sdk.py,sha256=
|
|
19
|
+
cribl_control_plane/groups_sdk.py,sha256=VHmHxqR66luhwZlEaz5EfOdmpc8elKjK8j3UYcOkFAg,72331
|
|
20
20
|
cribl_control_plane/health.py,sha256=nK_Q4lDXi8zkfAqcIv9X4zBGi8BzomaBQWBD7TsSwLk,6743
|
|
21
21
|
cribl_control_plane/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
22
22
|
cribl_control_plane/lake.py,sha256=dHWnoO4KKOO8fncrdOqnc2sN4nGAWc6nX4UdNP4kx40,46484
|
|
23
|
-
cribl_control_plane/models/__init__.py,sha256=
|
|
23
|
+
cribl_control_plane/models/__init__.py,sha256=vWKq7UvlGJ_acwtZoOMEBqGZT0L_ooe6udtiY_EPYhU,578873
|
|
24
24
|
cribl_control_plane/models/addhectokenrequest.py,sha256=mzQLKrMWlwxNheqEs5SM_yrT-gyenfCWgHKhmb5oXFQ,800
|
|
25
25
|
cribl_control_plane/models/appmode.py,sha256=5xRJz9oP5ah4b6dcay4Q1IbQ9irm6k6x2BrTNysIMY4,300
|
|
26
26
|
cribl_control_plane/models/authtoken.py,sha256=uW0aIs8j14CQzFM2ueY5GIWFulna91cigBWQ3oPlDgY,295
|
|
@@ -50,6 +50,7 @@ cribl_control_plane/models/cribllakedataset.py,sha256=4txRkDEkM-9fLG0my7Sl9IhEW0
|
|
|
50
50
|
cribl_control_plane/models/datasetmetadata.py,sha256=NfKeMQnTgrt-xLQ5LfDr-LrtPArJ8fbzUHd2yF_p3fc,1090
|
|
51
51
|
cribl_control_plane/models/datasetmetadataruninfo.py,sha256=4UrKPwg1oCs7uk3s24dsVzyNXE8TpDJE9vCioZyK7t0,937
|
|
52
52
|
cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py,sha256=japgQTynnoD5EJvCQ0Wme8oAqXJGWvSmOJhDbLiswFw,1511
|
|
53
|
+
cribl_control_plane/models/deletegroupsbyidop.py,sha256=2ZzFA2gbd_djJA9afSUM2oGJ8ee4IdR0yxARMTGi0wQ,1089
|
|
53
54
|
cribl_control_plane/models/deleteinputbyidop.py,sha256=8mFzAyTUv6EJ-5Ivm4TSklARGQVim5busV7u51zHyzo,1067
|
|
54
55
|
cribl_control_plane/models/deleteoutputbyidop.py,sha256=1tNS3O5EK9V0DaWcvvUr-KOQhhpslk_aydhf36pyYfs,1086
|
|
55
56
|
cribl_control_plane/models/deleteoutputpqbyidop.py,sha256=jLy8wreVzCsTTifXL3rHPXnku3G97ZCnbHPGamw-t9g,1042
|
|
@@ -254,6 +255,7 @@ cribl_control_plane/models/schemeclientoauth.py,sha256=MaZs9lOB3_y8uTZNTHIuAG_X6
|
|
|
254
255
|
cribl_control_plane/models/security.py,sha256=l8rMit25V2MUVLptnexODsL6wP-3l50g8D4kwRsAQvY,1097
|
|
255
256
|
cribl_control_plane/models/teamaccesscontrollist.py,sha256=HLMck-wyuJYiKD-adSS5ti4yLbHE2snZaOAI0GwgfOI,483
|
|
256
257
|
cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py,sha256=q_bOMXSkfqyNSNFN-qsseimaFl9xfRsbvjdMfAPAERI,1852
|
|
258
|
+
cribl_control_plane/models/updategroupsbyidop.py,sha256=iJZCyyzoSm_Ha_qTxSiaj4_7Nz-_L3U6_Uk5r9v1BqM,1414
|
|
257
259
|
cribl_control_plane/models/updategroupsdeploybyidop.py,sha256=BUuemFukk3IdNR31zi3vFhT6YZr8_9JYV_nJoaLRfp8,1442
|
|
258
260
|
cribl_control_plane/models/updatehectokenrequest.py,sha256=Pq0JnAZuDqdU_g6mmCvfxfMgeK9Pu3uVXfD9sFWfjKQ,787
|
|
259
261
|
cribl_control_plane/models/updateinputbyidop.py,sha256=DtufjoD9UEPnKT2QOggfMDB1Pv2rwj9cEVuAJKbv39U,1300
|
|
@@ -294,6 +296,6 @@ cribl_control_plane/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8N
|
|
|
294
296
|
cribl_control_plane/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
295
297
|
cribl_control_plane/versioning.py,sha256=-bUutXEf__ewPHzgZshBImZZyQILigzXp1H8ZBCFBbQ,93847
|
|
296
298
|
cribl_control_plane/workers_sdk.py,sha256=qEt_s-Zfg8zyzWEHnOtqYzTiNzFSwEalG-1lSYzVJWc,22666
|
|
297
|
-
cribl_control_plane-0.0.
|
|
298
|
-
cribl_control_plane-0.0.
|
|
299
|
-
cribl_control_plane-0.0.
|
|
299
|
+
cribl_control_plane-0.0.21.dist-info/METADATA,sha256=DLwbLGC9vW-ml6MJJudTjeGwmeA95ywJnanOse82-OQ,31197
|
|
300
|
+
cribl_control_plane-0.0.21.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
301
|
+
cribl_control_plane-0.0.21.dist-info/RECORD,,
|
|
File without changes
|