cribl-control-plane 0.4.0a12__py3-none-any.whl → 0.4.0b12__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 +4 -4
- cribl_control_plane/acl.py +14 -6
- cribl_control_plane/branches.py +24 -8
- cribl_control_plane/commits.py +98 -42
- cribl_control_plane/commits_files.py +28 -12
- cribl_control_plane/configs_versions.py +14 -10
- cribl_control_plane/destinations.py +70 -30
- cribl_control_plane/destinations_pq.py +28 -12
- cribl_control_plane/groups_sdk.py +84 -60
- cribl_control_plane/health.py +10 -2
- cribl_control_plane/hectokens.py +28 -32
- cribl_control_plane/lakedatasets.py +70 -86
- cribl_control_plane/models/__init__.py +266 -438
- cribl_control_plane/models/addhectokenrequest.py +1 -7
- cribl_control_plane/models/configgroup.py +1 -0
- cribl_control_plane/models/{getversionbranchop.py → countedbranchinfo.py} +2 -6
- cribl_control_plane/models/countedconfiggroup.py +20 -0
- cribl_control_plane/models/countedcribllakedataset.py +20 -0
- cribl_control_plane/models/counteddistributedsummary.py +20 -0
- cribl_control_plane/models/countedgitcommitsummary.py +20 -0
- cribl_control_plane/models/countedgitcountresult.py +20 -0
- cribl_control_plane/models/{createinputop.py → countedgitdiffresult.py} +5 -9
- cribl_control_plane/models/countedgitfilesresponse.py +20 -0
- cribl_control_plane/models/{getversioninfoop.py → countedgitinfo.py} +2 -6
- cribl_control_plane/models/countedgitlogresult.py +20 -0
- cribl_control_plane/models/countedgitrevertresult.py +20 -0
- cribl_control_plane/models/countedgitshowresult.py +20 -0
- cribl_control_plane/models/countedgitstatusresult.py +20 -0
- cribl_control_plane/models/{listinputop.py → countedinput.py} +2 -6
- cribl_control_plane/models/countedinputsplunkhec.py +20 -0
- cribl_control_plane/models/countedjobinfo.py +20 -0
- cribl_control_plane/models/countedmasterworkerentry.py +20 -0
- cribl_control_plane/models/countednumber.py +19 -0
- cribl_control_plane/models/countedobject.py +19 -0
- cribl_control_plane/models/{listoutputop.py → countedoutput.py} +2 -6
- cribl_control_plane/models/{createoutputop.py → countedoutputsamplesresponse.py} +5 -9
- cribl_control_plane/models/countedoutputtestresponse.py +20 -0
- cribl_control_plane/models/countedpackinfo.py +20 -0
- cribl_control_plane/models/{createpacksop.py → countedpackinstallinfo.py} +2 -6
- cribl_control_plane/models/{listpipelineop.py → countedpipeline.py} +2 -6
- cribl_control_plane/models/{listroutesop.py → countedroutes.py} +2 -6
- cribl_control_plane/models/{createversionpushop.py → countedstring.py} +2 -6
- cribl_control_plane/models/countedteamaccesscontrollist.py +20 -0
- cribl_control_plane/models/counteduseraccesscontrollist.py +20 -0
- cribl_control_plane/models/createauthloginop.py +18 -0
- cribl_control_plane/models/createconfiggroupbyproductop.py +1 -20
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +1 -19
- cribl_control_plane/models/createinputhectokenbyidop.py +1 -20
- cribl_control_plane/models/createoutputtestbyidop.py +1 -20
- cribl_control_plane/models/createroutesappendbyidop.py +2 -20
- cribl_control_plane/models/createversioncommitop.py +1 -19
- cribl_control_plane/models/createversionrevertop.py +1 -19
- cribl_control_plane/models/createversionundoop.py +1 -18
- cribl_control_plane/models/criblevent.py +15 -0
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +1 -20
- cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/deleteinputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputpqbyidop.py +1 -19
- cribl_control_plane/models/deletepacksbyidop.py +1 -20
- cribl_control_plane/models/deletepipelinebyidop.py +1 -20
- cribl_control_plane/models/difffiles.py +5 -46
- cribl_control_plane/models/diffline.py +26 -0
- cribl_control_plane/models/difflinecontext.py +28 -0
- cribl_control_plane/models/difflinedelete.py +25 -0
- cribl_control_plane/models/difflineinsert.py +25 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +1 -19
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +2 -79
- cribl_control_plane/models/getinputbyidop.py +1 -20
- cribl_control_plane/models/getmasterworkerentryop.py +1 -18
- cribl_control_plane/models/getoutputbyidop.py +1 -20
- cribl_control_plane/models/getoutputpqbyidop.py +1 -20
- cribl_control_plane/models/getoutputsamplesbyidop.py +1 -20
- cribl_control_plane/models/getpacksbyidop.py +1 -20
- cribl_control_plane/models/getpacksop.py +1 -19
- cribl_control_plane/models/getpipelinebyidop.py +1 -20
- cribl_control_plane/models/getroutesbyidop.py +1 -20
- cribl_control_plane/models/getsummaryop.py +1 -19
- cribl_control_plane/models/getversioncountop.py +1 -19
- cribl_control_plane/models/getversiondiffop.py +1 -19
- cribl_control_plane/models/getversionfilesop.py +1 -19
- cribl_control_plane/models/getversionop.py +1 -19
- cribl_control_plane/models/getversionshowop.py +1 -19
- cribl_control_plane/models/getversionstatusop.py +1 -19
- cribl_control_plane/models/groupcreaterequest.py +1 -0
- cribl_control_plane/models/hbcriblinfo.py +3 -4
- cribl_control_plane/models/heartbeatmetadata.py +3 -11
- cribl_control_plane/models/inputcloudflarehec.py +9 -4
- cribl_control_plane/models/inputconfluentcloud.py +4 -2
- cribl_control_plane/models/inputcribllakehttp.py +15 -0
- cribl_control_plane/models/inputkafka.py +4 -2
- cribl_control_plane/models/inputmsk.py +4 -2
- cribl_control_plane/models/inputsnmp.py +33 -7
- cribl_control_plane/models/inputsplunkhec.py +8 -4
- cribl_control_plane/models/inputwef.py +23 -0
- cribl_control_plane/models/inputwiz.py +95 -0
- cribl_control_plane/models/inputzscalerhec.py +8 -4
- cribl_control_plane/models/listconfiggroupbyproductop.py +1 -19
- cribl_control_plane/models/listmasterworkerentryop.py +1 -19
- cribl_control_plane/models/masterworkerentry.py +3 -11
- cribl_control_plane/models/nodeprovidedinfo.py +2 -10
- cribl_control_plane/models/outputnetflow.py +0 -7
- cribl_control_plane/models/outputsplunklb.py +10 -0
- cribl_control_plane/models/runnablejobcollection.py +0 -56
- cribl_control_plane/models/runnablejobexecutor.py +0 -28
- cribl_control_plane/models/runnablejobscheduledsearch.py +0 -28
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +1 -19
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +1 -20
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/updatehectokenrequest.py +1 -7
- cribl_control_plane/models/updateinputbyidop.py +1 -19
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +1 -20
- cribl_control_plane/models/updateoutputbyidop.py +1 -19
- cribl_control_plane/models/updatepacksbyidop.py +1 -20
- cribl_control_plane/models/updatepipelinebyidop.py +1 -19
- cribl_control_plane/models/updateroutesbyidop.py +1 -19
- cribl_control_plane/nodes.py +28 -20
- cribl_control_plane/packs.py +80 -32
- cribl_control_plane/pipelines.py +70 -30
- cribl_control_plane/routes_sdk.py +56 -28
- cribl_control_plane/samples.py +28 -16
- cribl_control_plane/sources.py +70 -30
- cribl_control_plane/statuses.py +14 -6
- cribl_control_plane/summaries.py +14 -6
- cribl_control_plane/teams.py +14 -6
- cribl_control_plane/tokens.py +26 -8
- cribl_control_plane/versions_configs.py +14 -6
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/METADATA +23 -23
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/RECORD +135 -113
- cribl_control_plane/models/createpipelineop.py +0 -24
- cribl_control_plane/models/lookupversions.py +0 -13
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/WHEEL +0 -0
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from cribl_control_plane.types import BaseModel
|
|
5
|
-
import pydantic
|
|
6
5
|
from typing import List, Optional
|
|
7
|
-
from typing_extensions import
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
class UpdateHecTokenRequestMetadatumTypedDict(TypedDict):
|
|
@@ -19,17 +18,12 @@ class UpdateHecTokenRequestMetadatum(BaseModel):
|
|
|
19
18
|
|
|
20
19
|
|
|
21
20
|
class UpdateHecTokenRequestTypedDict(TypedDict):
|
|
22
|
-
allowed_indexes_at_token: NotRequired[List[str]]
|
|
23
21
|
description: NotRequired[str]
|
|
24
22
|
enabled: NotRequired[bool]
|
|
25
23
|
metadata: NotRequired[List[UpdateHecTokenRequestMetadatumTypedDict]]
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
class UpdateHecTokenRequest(BaseModel):
|
|
29
|
-
allowed_indexes_at_token: Annotated[
|
|
30
|
-
Optional[List[str]], pydantic.Field(alias="allowedIndexesAtToken")
|
|
31
|
-
] = None
|
|
32
|
-
|
|
33
27
|
description: Optional[str] = None
|
|
34
28
|
|
|
35
29
|
enabled: Optional[bool] = None
|
|
@@ -4,8 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from .input import Input, InputTypedDict
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class UpdateInputByIDRequestTypedDict(TypedDict):
|
|
@@ -25,20 +24,3 @@ class UpdateInputByIDRequest(BaseModel):
|
|
|
25
24
|
Input, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
26
25
|
]
|
|
27
26
|
r"""Input object"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class UpdateInputByIDResponseTypedDict(TypedDict):
|
|
31
|
-
r"""a list of Source objects"""
|
|
32
|
-
|
|
33
|
-
count: NotRequired[int]
|
|
34
|
-
r"""number of items present in the items array"""
|
|
35
|
-
items: NotRequired[List[InputTypedDict]]
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class UpdateInputByIDResponse(BaseModel):
|
|
39
|
-
r"""a list of Source objects"""
|
|
40
|
-
|
|
41
|
-
count: Optional[int] = None
|
|
42
|
-
r"""number of items present in the items array"""
|
|
43
|
-
|
|
44
|
-
items: Optional[List[Input]] = None
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .inputsplunkhec import InputSplunkHec, InputSplunkHecTypedDict
|
|
5
4
|
from .updatehectokenrequest import UpdateHecTokenRequest, UpdateHecTokenRequestTypedDict
|
|
6
5
|
from cribl_control_plane.types import BaseModel
|
|
7
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
8
|
-
from
|
|
9
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
class UpdateInputHecTokenByIDAndTokenRequestTypedDict(TypedDict):
|
|
@@ -34,20 +32,3 @@ class UpdateInputHecTokenByIDAndTokenRequest(BaseModel):
|
|
|
34
32
|
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
35
33
|
]
|
|
36
34
|
r"""UpdateHecTokenRequest object"""
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class UpdateInputHecTokenByIDAndTokenResponseTypedDict(TypedDict):
|
|
40
|
-
r"""a list of InputSplunkHec objects"""
|
|
41
|
-
|
|
42
|
-
count: NotRequired[int]
|
|
43
|
-
r"""number of items present in the items array"""
|
|
44
|
-
items: NotRequired[List[InputSplunkHecTypedDict]]
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
class UpdateInputHecTokenByIDAndTokenResponse(BaseModel):
|
|
48
|
-
r"""a list of InputSplunkHec objects"""
|
|
49
|
-
|
|
50
|
-
count: Optional[int] = None
|
|
51
|
-
r"""number of items present in the items array"""
|
|
52
|
-
|
|
53
|
-
items: Optional[List[InputSplunkHec]] = None
|
|
@@ -4,8 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
from .output import Output, OutputTypedDict
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
|
-
from
|
|
8
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class UpdateOutputByIDRequestTypedDict(TypedDict):
|
|
@@ -25,20 +24,3 @@ class UpdateOutputByIDRequest(BaseModel):
|
|
|
25
24
|
Output, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
26
25
|
]
|
|
27
26
|
r"""Output object"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class UpdateOutputByIDResponseTypedDict(TypedDict):
|
|
31
|
-
r"""a list of Destination objects"""
|
|
32
|
-
|
|
33
|
-
count: NotRequired[int]
|
|
34
|
-
r"""number of items present in the items array"""
|
|
35
|
-
items: NotRequired[List[OutputTypedDict]]
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class UpdateOutputByIDResponse(BaseModel):
|
|
39
|
-
r"""a list of Destination objects"""
|
|
40
|
-
|
|
41
|
-
count: Optional[int] = None
|
|
42
|
-
r"""number of items present in the items array"""
|
|
43
|
-
|
|
44
|
-
items: Optional[List[Output]] = None
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .packinfo import PackInfo, PackInfoTypedDict
|
|
5
4
|
from .packupgraderequest import PackUpgradeRequest, PackUpgradeRequestTypedDict
|
|
6
5
|
from cribl_control_plane.types import BaseModel
|
|
7
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
8
|
-
from
|
|
9
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
class UpdatePacksByIDRequestTypedDict(TypedDict):
|
|
@@ -27,20 +25,3 @@ class UpdatePacksByIDRequest(BaseModel):
|
|
|
27
25
|
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
28
26
|
]
|
|
29
27
|
r"""PackUpgradeRequest object"""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class UpdatePacksByIDResponseTypedDict(TypedDict):
|
|
33
|
-
r"""a list of PackInfo objects"""
|
|
34
|
-
|
|
35
|
-
count: NotRequired[int]
|
|
36
|
-
r"""number of items present in the items array"""
|
|
37
|
-
items: NotRequired[List[PackInfoTypedDict]]
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
class UpdatePacksByIDResponse(BaseModel):
|
|
41
|
-
r"""a list of PackInfo objects"""
|
|
42
|
-
|
|
43
|
-
count: Optional[int] = None
|
|
44
|
-
r"""number of items present in the items array"""
|
|
45
|
-
|
|
46
|
-
items: Optional[List[PackInfo]] = None
|
|
@@ -5,8 +5,7 @@ from .pipeline import Pipeline, PipelineTypedDict
|
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
7
|
import pydantic
|
|
8
|
-
from
|
|
9
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
class UpdatePipelineByIDRequestTypedDict(TypedDict):
|
|
@@ -28,20 +27,3 @@ class UpdatePipelineByIDRequest(BaseModel):
|
|
|
28
27
|
Pipeline, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
29
28
|
]
|
|
30
29
|
r"""Pipeline object"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class UpdatePipelineByIDResponseTypedDict(TypedDict):
|
|
34
|
-
r"""a list of Pipeline objects"""
|
|
35
|
-
|
|
36
|
-
count: NotRequired[int]
|
|
37
|
-
r"""number of items present in the items array"""
|
|
38
|
-
items: NotRequired[List[PipelineTypedDict]]
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class UpdatePipelineByIDResponse(BaseModel):
|
|
42
|
-
r"""a list of Pipeline objects"""
|
|
43
|
-
|
|
44
|
-
count: Optional[int] = None
|
|
45
|
-
r"""number of items present in the items array"""
|
|
46
|
-
|
|
47
|
-
items: Optional[List[Pipeline]] = None
|
|
@@ -5,8 +5,7 @@ from .routes import Routes, RoutesTypedDict
|
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
|
|
7
7
|
import pydantic
|
|
8
|
-
from
|
|
9
|
-
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
class UpdateRoutesByIDRequestTypedDict(TypedDict):
|
|
@@ -28,20 +27,3 @@ class UpdateRoutesByIDRequest(BaseModel):
|
|
|
28
27
|
Routes, FieldMetadata(request=RequestMetadata(media_type="application/json"))
|
|
29
28
|
]
|
|
30
29
|
r"""Routes object"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class UpdateRoutesByIDResponseTypedDict(TypedDict):
|
|
34
|
-
r"""a list of Routes objects"""
|
|
35
|
-
|
|
36
|
-
count: NotRequired[int]
|
|
37
|
-
r"""number of items present in the items array"""
|
|
38
|
-
items: NotRequired[List[RoutesTypedDict]]
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class UpdateRoutesByIDResponse(BaseModel):
|
|
42
|
-
r"""a list of Routes objects"""
|
|
43
|
-
|
|
44
|
-
count: Optional[int] = None
|
|
45
|
-
r"""number of items present in the items array"""
|
|
46
|
-
|
|
47
|
-
items: Optional[List[Routes]] = None
|
cribl_control_plane/nodes.py
CHANGED
|
@@ -37,7 +37,7 @@ class Nodes(BaseSDK):
|
|
|
37
37
|
server_url: Optional[str] = None,
|
|
38
38
|
timeout_ms: Optional[int] = None,
|
|
39
39
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
40
|
-
) -> models.
|
|
40
|
+
) -> models.CountedMasterWorkerEntry:
|
|
41
41
|
r"""Get detailed metadata for Worker and Edge Nodes
|
|
42
42
|
|
|
43
43
|
Get detailed metadata for Worker and Edge Nodes.
|
|
@@ -92,10 +92,14 @@ class Nodes(BaseSDK):
|
|
|
92
92
|
if retries == UNSET:
|
|
93
93
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
94
94
|
retries = self.sdk_configuration.retry_config
|
|
95
|
+
else:
|
|
96
|
+
retries = utils.RetryConfig(
|
|
97
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
98
|
+
)
|
|
95
99
|
|
|
96
100
|
retry_config = None
|
|
97
101
|
if isinstance(retries, utils.RetryConfig):
|
|
98
|
-
retry_config = (retries, ["429"
|
|
102
|
+
retry_config = (retries, ["429"])
|
|
99
103
|
|
|
100
104
|
http_res = self.do_request(
|
|
101
105
|
hook_ctx=HookContext(
|
|
@@ -114,9 +118,7 @@ class Nodes(BaseSDK):
|
|
|
114
118
|
|
|
115
119
|
response_data: Any = None
|
|
116
120
|
if utils.match_response(http_res, "200", "application/json"):
|
|
117
|
-
return unmarshal_json_response(
|
|
118
|
-
models.ListMasterWorkerEntryResponse, http_res
|
|
119
|
-
)
|
|
121
|
+
return unmarshal_json_response(models.CountedMasterWorkerEntry, http_res)
|
|
120
122
|
if utils.match_response(http_res, "500", "application/json"):
|
|
121
123
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
122
124
|
raise errors.Error(response_data, http_res)
|
|
@@ -142,7 +144,7 @@ class Nodes(BaseSDK):
|
|
|
142
144
|
server_url: Optional[str] = None,
|
|
143
145
|
timeout_ms: Optional[int] = None,
|
|
144
146
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
145
|
-
) -> models.
|
|
147
|
+
) -> models.CountedMasterWorkerEntry:
|
|
146
148
|
r"""Get detailed metadata for Worker and Edge Nodes
|
|
147
149
|
|
|
148
150
|
Get detailed metadata for Worker and Edge Nodes.
|
|
@@ -197,10 +199,14 @@ class Nodes(BaseSDK):
|
|
|
197
199
|
if retries == UNSET:
|
|
198
200
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
199
201
|
retries = self.sdk_configuration.retry_config
|
|
202
|
+
else:
|
|
203
|
+
retries = utils.RetryConfig(
|
|
204
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
205
|
+
)
|
|
200
206
|
|
|
201
207
|
retry_config = None
|
|
202
208
|
if isinstance(retries, utils.RetryConfig):
|
|
203
|
-
retry_config = (retries, ["429"
|
|
209
|
+
retry_config = (retries, ["429"])
|
|
204
210
|
|
|
205
211
|
http_res = await self.do_request_async(
|
|
206
212
|
hook_ctx=HookContext(
|
|
@@ -219,9 +225,7 @@ class Nodes(BaseSDK):
|
|
|
219
225
|
|
|
220
226
|
response_data: Any = None
|
|
221
227
|
if utils.match_response(http_res, "200", "application/json"):
|
|
222
|
-
return unmarshal_json_response(
|
|
223
|
-
models.ListMasterWorkerEntryResponse, http_res
|
|
224
|
-
)
|
|
228
|
+
return unmarshal_json_response(models.CountedMasterWorkerEntry, http_res)
|
|
225
229
|
if utils.match_response(http_res, "500", "application/json"):
|
|
226
230
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
227
231
|
raise errors.Error(response_data, http_res)
|
|
@@ -242,7 +246,7 @@ class Nodes(BaseSDK):
|
|
|
242
246
|
server_url: Optional[str] = None,
|
|
243
247
|
timeout_ms: Optional[int] = None,
|
|
244
248
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
245
|
-
) -> models.
|
|
249
|
+
) -> models.CountedNumber:
|
|
246
250
|
r"""Get a count of Worker and Edge Nodes
|
|
247
251
|
|
|
248
252
|
Get a count of all Worker and Edge Nodes.
|
|
@@ -287,10 +291,14 @@ class Nodes(BaseSDK):
|
|
|
287
291
|
if retries == UNSET:
|
|
288
292
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
289
293
|
retries = self.sdk_configuration.retry_config
|
|
294
|
+
else:
|
|
295
|
+
retries = utils.RetryConfig(
|
|
296
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
297
|
+
)
|
|
290
298
|
|
|
291
299
|
retry_config = None
|
|
292
300
|
if isinstance(retries, utils.RetryConfig):
|
|
293
|
-
retry_config = (retries, ["429"
|
|
301
|
+
retry_config = (retries, ["429"])
|
|
294
302
|
|
|
295
303
|
http_res = self.do_request(
|
|
296
304
|
hook_ctx=HookContext(
|
|
@@ -309,9 +317,7 @@ class Nodes(BaseSDK):
|
|
|
309
317
|
|
|
310
318
|
response_data: Any = None
|
|
311
319
|
if utils.match_response(http_res, "200", "application/json"):
|
|
312
|
-
return unmarshal_json_response(
|
|
313
|
-
models.GetMasterWorkerEntryResponse, http_res
|
|
314
|
-
)
|
|
320
|
+
return unmarshal_json_response(models.CountedNumber, http_res)
|
|
315
321
|
if utils.match_response(http_res, "500", "application/json"):
|
|
316
322
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
317
323
|
raise errors.Error(response_data, http_res)
|
|
@@ -332,7 +338,7 @@ class Nodes(BaseSDK):
|
|
|
332
338
|
server_url: Optional[str] = None,
|
|
333
339
|
timeout_ms: Optional[int] = None,
|
|
334
340
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
335
|
-
) -> models.
|
|
341
|
+
) -> models.CountedNumber:
|
|
336
342
|
r"""Get a count of Worker and Edge Nodes
|
|
337
343
|
|
|
338
344
|
Get a count of all Worker and Edge Nodes.
|
|
@@ -377,10 +383,14 @@ class Nodes(BaseSDK):
|
|
|
377
383
|
if retries == UNSET:
|
|
378
384
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
379
385
|
retries = self.sdk_configuration.retry_config
|
|
386
|
+
else:
|
|
387
|
+
retries = utils.RetryConfig(
|
|
388
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
389
|
+
)
|
|
380
390
|
|
|
381
391
|
retry_config = None
|
|
382
392
|
if isinstance(retries, utils.RetryConfig):
|
|
383
|
-
retry_config = (retries, ["429"
|
|
393
|
+
retry_config = (retries, ["429"])
|
|
384
394
|
|
|
385
395
|
http_res = await self.do_request_async(
|
|
386
396
|
hook_ctx=HookContext(
|
|
@@ -399,9 +409,7 @@ class Nodes(BaseSDK):
|
|
|
399
409
|
|
|
400
410
|
response_data: Any = None
|
|
401
411
|
if utils.match_response(http_res, "200", "application/json"):
|
|
402
|
-
return unmarshal_json_response(
|
|
403
|
-
models.GetMasterWorkerEntryResponse, http_res
|
|
404
|
-
)
|
|
412
|
+
return unmarshal_json_response(models.CountedNumber, http_res)
|
|
405
413
|
if utils.match_response(http_res, "500", "application/json"):
|
|
406
414
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
407
415
|
raise errors.Error(response_data, http_res)
|