cribl-control-plane 0.0.18__py3-none-any.whl → 0.0.20__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/distributed.py +187 -0
- cribl_control_plane/errors/healthstatus_error.py +1 -1
- cribl_control_plane/groups_sdk.py +1291 -0
- cribl_control_plane/lake.py +1141 -0
- cribl_control_plane/models/__init__.py +672 -3
- cribl_control_plane/models/appmode.py +13 -0
- cribl_control_plane/models/cacheconnection.py +44 -0
- cribl_control_plane/models/cacheconnectionbackfillstatus.py +12 -0
- cribl_control_plane/models/cloudprovider.py +9 -0
- cribl_control_plane/models/commit.py +30 -0
- cribl_control_plane/models/configgroup.py +116 -0
- cribl_control_plane/models/configgroupcloud.py +48 -0
- cribl_control_plane/models/configgrouplookups.py +34 -0
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +48 -0
- cribl_control_plane/models/createpacksop.py +24 -0
- cribl_control_plane/models/createproductsgroupsbyproductop.py +54 -0
- cribl_control_plane/models/cribllakedataset.py +74 -0
- cribl_control_plane/models/datasetmetadata.py +39 -0
- cribl_control_plane/models/datasetmetadataruninfo.py +28 -0
- cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +47 -0
- cribl_control_plane/models/deletepacksbyidop.py +37 -0
- cribl_control_plane/models/deployrequest.py +18 -0
- cribl_control_plane/models/deployrequestlookups.py +28 -0
- cribl_control_plane/models/distributedsummary.py +63 -0
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +47 -0
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +40 -0
- cribl_control_plane/models/getgroupsaclbyidop.py +63 -0
- cribl_control_plane/models/getgroupsbyidop.py +49 -0
- cribl_control_plane/models/getgroupsconfigversionbyidop.py +36 -0
- cribl_control_plane/models/getpacksop.py +40 -0
- cribl_control_plane/models/getproductsgroupsaclteamsbyproductandidop.py +78 -0
- cribl_control_plane/models/getproductsgroupsbyproductop.py +58 -0
- cribl_control_plane/models/getsummaryop.py +46 -0
- cribl_control_plane/models/getsummaryworkersop.py +39 -0
- cribl_control_plane/models/getworkersop.py +82 -0
- cribl_control_plane/models/hbcriblinfo.py +80 -0
- cribl_control_plane/models/hbleaderinfo.py +23 -0
- cribl_control_plane/models/healthstatus.py +3 -3
- cribl_control_plane/models/heartbeatmetadata.py +122 -0
- cribl_control_plane/models/lakedatasetsearchconfig.py +18 -0
- cribl_control_plane/models/lakehouseconnectiontype.py +9 -0
- cribl_control_plane/models/lookupversions.py +13 -0
- cribl_control_plane/models/masterworkerentry.py +84 -0
- cribl_control_plane/models/nodeactiveupgradestatus.py +10 -0
- cribl_control_plane/models/nodefailedupgradestatus.py +9 -0
- cribl_control_plane/models/nodeprovidedinfo.py +184 -0
- cribl_control_plane/models/nodeskippedupgradestatus.py +11 -0
- cribl_control_plane/models/nodeupgradestate.py +11 -0
- cribl_control_plane/models/nodeupgradestatus.py +30 -0
- cribl_control_plane/models/packinfo.py +73 -0
- cribl_control_plane/models/packinstallinfo.py +76 -0
- cribl_control_plane/models/packrequestbody.py +75 -0
- cribl_control_plane/models/rbacresource.py +14 -0
- cribl_control_plane/models/resourcepolicy.py +24 -0
- cribl_control_plane/models/restartresponse.py +26 -0
- cribl_control_plane/models/teamaccesscontrollist.py +18 -0
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +57 -0
- cribl_control_plane/models/updategroupsdeploybyidop.py +46 -0
- cribl_control_plane/models/updatepacksbyidop.py +65 -0
- cribl_control_plane/models/updatepacksop.py +37 -0
- cribl_control_plane/models/updateworkersrestartop.py +24 -0
- cribl_control_plane/models/useraccesscontrollist.py +18 -0
- cribl_control_plane/packs.py +989 -0
- cribl_control_plane/sdk.py +24 -0
- cribl_control_plane/teams.py +203 -0
- cribl_control_plane/workers_sdk.py +555 -0
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.20.dist-info}/METADATA +47 -8
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.20.dist-info}/RECORD +70 -8
- {cribl_control_plane-0.0.18.dist-info → cribl_control_plane-0.0.20.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AppMode(str, Enum):
|
|
8
|
+
SINGLE = "single"
|
|
9
|
+
MASTER = "master"
|
|
10
|
+
WORKER = "worker"
|
|
11
|
+
EDGE = "edge"
|
|
12
|
+
MANAGED_EDGE = "managed-edge"
|
|
13
|
+
OUTPOST = "outpost"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .cacheconnectionbackfillstatus import CacheConnectionBackfillStatus
|
|
5
|
+
from .lakehouseconnectiontype import LakehouseConnectionType
|
|
6
|
+
from cribl_control_plane.types import BaseModel
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CacheConnectionTypedDict(TypedDict):
|
|
13
|
+
cache_ref: str
|
|
14
|
+
created_at: float
|
|
15
|
+
retention_in_days: float
|
|
16
|
+
accelerated_fields: NotRequired[List[str]]
|
|
17
|
+
backfill_status: NotRequired[CacheConnectionBackfillStatus]
|
|
18
|
+
lakehouse_connection_type: NotRequired[LakehouseConnectionType]
|
|
19
|
+
migration_query_id: NotRequired[str]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class CacheConnection(BaseModel):
|
|
23
|
+
cache_ref: Annotated[str, pydantic.Field(alias="cacheRef")]
|
|
24
|
+
|
|
25
|
+
created_at: Annotated[float, pydantic.Field(alias="createdAt")]
|
|
26
|
+
|
|
27
|
+
retention_in_days: Annotated[float, pydantic.Field(alias="retentionInDays")]
|
|
28
|
+
|
|
29
|
+
accelerated_fields: Annotated[
|
|
30
|
+
Optional[List[str]], pydantic.Field(alias="acceleratedFields")
|
|
31
|
+
] = None
|
|
32
|
+
|
|
33
|
+
backfill_status: Annotated[
|
|
34
|
+
Optional[CacheConnectionBackfillStatus], pydantic.Field(alias="backfillStatus")
|
|
35
|
+
] = None
|
|
36
|
+
|
|
37
|
+
lakehouse_connection_type: Annotated[
|
|
38
|
+
Optional[LakehouseConnectionType],
|
|
39
|
+
pydantic.Field(alias="lakehouseConnectionType"),
|
|
40
|
+
] = None
|
|
41
|
+
|
|
42
|
+
migration_query_id: Annotated[
|
|
43
|
+
Optional[str], pydantic.Field(alias="migrationQueryId")
|
|
44
|
+
] = None
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CacheConnectionBackfillStatus(str, Enum):
|
|
8
|
+
SCHEDULED = "scheduled"
|
|
9
|
+
PENDING = "pending"
|
|
10
|
+
STARTED = "started"
|
|
11
|
+
FINISHED = "finished"
|
|
12
|
+
INCOMPLETE = "incomplete"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CommitTypedDict(TypedDict):
|
|
11
|
+
date_: str
|
|
12
|
+
hash: str
|
|
13
|
+
message: str
|
|
14
|
+
short: str
|
|
15
|
+
author_email: NotRequired[str]
|
|
16
|
+
author_name: NotRequired[str]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class Commit(BaseModel):
|
|
20
|
+
date_: Annotated[str, pydantic.Field(alias="date")]
|
|
21
|
+
|
|
22
|
+
hash: str
|
|
23
|
+
|
|
24
|
+
message: str
|
|
25
|
+
|
|
26
|
+
short: str
|
|
27
|
+
|
|
28
|
+
author_email: Optional[str] = None
|
|
29
|
+
|
|
30
|
+
author_name: Optional[str] = None
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .commit import Commit, CommitTypedDict
|
|
5
|
+
from .configgroupcloud import ConfigGroupCloud, ConfigGroupCloudTypedDict
|
|
6
|
+
from .configgrouplookups import ConfigGroupLookups, ConfigGroupLookupsTypedDict
|
|
7
|
+
from cribl_control_plane.types import BaseModel
|
|
8
|
+
from enum import Enum
|
|
9
|
+
import pydantic
|
|
10
|
+
from typing import List, Optional
|
|
11
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GitTypedDict(TypedDict):
|
|
15
|
+
commit: NotRequired[str]
|
|
16
|
+
local_changes: NotRequired[float]
|
|
17
|
+
log: NotRequired[List[CommitTypedDict]]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class Git(BaseModel):
|
|
21
|
+
commit: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
local_changes: Annotated[Optional[float], pydantic.Field(alias="localChanges")] = (
|
|
24
|
+
None
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
log: Optional[List[Commit]] = None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ConfigGroupType(str, Enum):
|
|
31
|
+
LAKE_ACCESS = "lake_access"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ConfigGroupTypedDict(TypedDict):
|
|
35
|
+
config_version: str
|
|
36
|
+
id: str
|
|
37
|
+
cloud: NotRequired[ConfigGroupCloudTypedDict]
|
|
38
|
+
deploying_worker_count: NotRequired[float]
|
|
39
|
+
description: NotRequired[str]
|
|
40
|
+
estimated_ingest_rate: NotRequired[float]
|
|
41
|
+
git: NotRequired[GitTypedDict]
|
|
42
|
+
incompatible_worker_count: NotRequired[float]
|
|
43
|
+
inherits: NotRequired[str]
|
|
44
|
+
is_fleet: NotRequired[bool]
|
|
45
|
+
is_search: NotRequired[bool]
|
|
46
|
+
lookup_deployments: NotRequired[List[ConfigGroupLookupsTypedDict]]
|
|
47
|
+
max_worker_age: NotRequired[str]
|
|
48
|
+
name: NotRequired[str]
|
|
49
|
+
on_prem: NotRequired[bool]
|
|
50
|
+
provisioned: NotRequired[bool]
|
|
51
|
+
streamtags: NotRequired[List[str]]
|
|
52
|
+
tags: NotRequired[str]
|
|
53
|
+
type: NotRequired[ConfigGroupType]
|
|
54
|
+
upgrade_version: NotRequired[str]
|
|
55
|
+
worker_count: NotRequired[float]
|
|
56
|
+
worker_remote_access: NotRequired[bool]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class ConfigGroup(BaseModel):
|
|
60
|
+
config_version: Annotated[str, pydantic.Field(alias="configVersion")]
|
|
61
|
+
|
|
62
|
+
id: str
|
|
63
|
+
|
|
64
|
+
cloud: Optional[ConfigGroupCloud] = None
|
|
65
|
+
|
|
66
|
+
deploying_worker_count: Annotated[
|
|
67
|
+
Optional[float], pydantic.Field(alias="deployingWorkerCount")
|
|
68
|
+
] = None
|
|
69
|
+
|
|
70
|
+
description: Optional[str] = None
|
|
71
|
+
|
|
72
|
+
estimated_ingest_rate: Annotated[
|
|
73
|
+
Optional[float], pydantic.Field(alias="estimatedIngestRate")
|
|
74
|
+
] = None
|
|
75
|
+
|
|
76
|
+
git: Optional[Git] = None
|
|
77
|
+
|
|
78
|
+
incompatible_worker_count: Annotated[
|
|
79
|
+
Optional[float], pydantic.Field(alias="incompatibleWorkerCount")
|
|
80
|
+
] = None
|
|
81
|
+
|
|
82
|
+
inherits: Optional[str] = None
|
|
83
|
+
|
|
84
|
+
is_fleet: Annotated[Optional[bool], pydantic.Field(alias="isFleet")] = None
|
|
85
|
+
|
|
86
|
+
is_search: Annotated[Optional[bool], pydantic.Field(alias="isSearch")] = None
|
|
87
|
+
|
|
88
|
+
lookup_deployments: Annotated[
|
|
89
|
+
Optional[List[ConfigGroupLookups]], pydantic.Field(alias="lookupDeployments")
|
|
90
|
+
] = None
|
|
91
|
+
|
|
92
|
+
max_worker_age: Annotated[Optional[str], pydantic.Field(alias="maxWorkerAge")] = (
|
|
93
|
+
None
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
name: Optional[str] = None
|
|
97
|
+
|
|
98
|
+
on_prem: Annotated[Optional[bool], pydantic.Field(alias="onPrem")] = None
|
|
99
|
+
|
|
100
|
+
provisioned: Optional[bool] = None
|
|
101
|
+
|
|
102
|
+
streamtags: Optional[List[str]] = None
|
|
103
|
+
|
|
104
|
+
tags: Optional[str] = None
|
|
105
|
+
|
|
106
|
+
type: Optional[ConfigGroupType] = None
|
|
107
|
+
|
|
108
|
+
upgrade_version: Annotated[
|
|
109
|
+
Optional[str], pydantic.Field(alias="upgradeVersion")
|
|
110
|
+
] = None
|
|
111
|
+
|
|
112
|
+
worker_count: Annotated[Optional[float], pydantic.Field(alias="workerCount")] = None
|
|
113
|
+
|
|
114
|
+
worker_remote_access: Annotated[
|
|
115
|
+
Optional[bool], pydantic.Field(alias="workerRemoteAccess")
|
|
116
|
+
] = None
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .cloudprovider import CloudProvider
|
|
5
|
+
from cribl_control_plane.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
6
|
+
from pydantic import model_serializer
|
|
7
|
+
from typing_extensions import TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConfigGroupCloudTypedDict(TypedDict):
|
|
11
|
+
provider: Nullable[CloudProvider]
|
|
12
|
+
region: str
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ConfigGroupCloud(BaseModel):
|
|
16
|
+
provider: Nullable[CloudProvider]
|
|
17
|
+
|
|
18
|
+
region: str
|
|
19
|
+
|
|
20
|
+
@model_serializer(mode="wrap")
|
|
21
|
+
def serialize_model(self, handler):
|
|
22
|
+
optional_fields = []
|
|
23
|
+
nullable_fields = ["provider"]
|
|
24
|
+
null_default_fields = []
|
|
25
|
+
|
|
26
|
+
serialized = handler(self)
|
|
27
|
+
|
|
28
|
+
m = {}
|
|
29
|
+
|
|
30
|
+
for n, f in type(self).model_fields.items():
|
|
31
|
+
k = f.alias or n
|
|
32
|
+
val = serialized.get(k)
|
|
33
|
+
serialized.pop(k, None)
|
|
34
|
+
|
|
35
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
36
|
+
is_set = (
|
|
37
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
38
|
+
or k in null_default_fields
|
|
39
|
+
) # pylint: disable=no-member
|
|
40
|
+
|
|
41
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
42
|
+
m[k] = val
|
|
43
|
+
elif val != UNSET_SENTINEL and (
|
|
44
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
45
|
+
):
|
|
46
|
+
m[k] = val
|
|
47
|
+
|
|
48
|
+
return m
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import List, Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConfigGroupLookupsLookupTypedDict(TypedDict):
|
|
11
|
+
file: str
|
|
12
|
+
deployed_version: NotRequired[str]
|
|
13
|
+
version: NotRequired[str]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ConfigGroupLookupsLookup(BaseModel):
|
|
17
|
+
file: str
|
|
18
|
+
|
|
19
|
+
deployed_version: Annotated[
|
|
20
|
+
Optional[str], pydantic.Field(alias="deployedVersion")
|
|
21
|
+
] = None
|
|
22
|
+
|
|
23
|
+
version: Optional[str] = None
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ConfigGroupLookupsTypedDict(TypedDict):
|
|
27
|
+
context: str
|
|
28
|
+
lookups: List[ConfigGroupLookupsLookupTypedDict]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ConfigGroupLookups(BaseModel):
|
|
32
|
+
context: str
|
|
33
|
+
|
|
34
|
+
lookups: List[ConfigGroupLookupsLookup]
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .cribllakedataset import CriblLakeDataset, CriblLakeDatasetTypedDict
|
|
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 CreateCriblLakeDatasetByLakeIDRequestTypedDict(TypedDict):
|
|
13
|
+
lake_id: str
|
|
14
|
+
r"""lake id that contains the Datasets"""
|
|
15
|
+
cribl_lake_dataset: CriblLakeDatasetTypedDict
|
|
16
|
+
r"""CriblLakeDataset object"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CreateCriblLakeDatasetByLakeIDRequest(BaseModel):
|
|
20
|
+
lake_id: Annotated[
|
|
21
|
+
str,
|
|
22
|
+
pydantic.Field(alias="lakeId"),
|
|
23
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
24
|
+
]
|
|
25
|
+
r"""lake id that contains the Datasets"""
|
|
26
|
+
|
|
27
|
+
cribl_lake_dataset: Annotated[
|
|
28
|
+
CriblLakeDataset,
|
|
29
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
30
|
+
]
|
|
31
|
+
r"""CriblLakeDataset object"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class CreateCriblLakeDatasetByLakeIDResponseTypedDict(TypedDict):
|
|
35
|
+
r"""a list of CriblLakeDataset objects"""
|
|
36
|
+
|
|
37
|
+
count: NotRequired[int]
|
|
38
|
+
r"""number of items present in the items array"""
|
|
39
|
+
items: NotRequired[List[CriblLakeDatasetTypedDict]]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class CreateCriblLakeDatasetByLakeIDResponse(BaseModel):
|
|
43
|
+
r"""a list of CriblLakeDataset objects"""
|
|
44
|
+
|
|
45
|
+
count: Optional[int] = None
|
|
46
|
+
r"""number of items present in the items array"""
|
|
47
|
+
|
|
48
|
+
items: Optional[List[CriblLakeDataset]] = None
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .packinstallinfo import PackInstallInfo, PackInstallInfoTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from typing import List, Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreatePacksResponseTypedDict(TypedDict):
|
|
11
|
+
r"""a list of PackInstallInfo objects"""
|
|
12
|
+
|
|
13
|
+
count: NotRequired[int]
|
|
14
|
+
r"""number of items present in the items array"""
|
|
15
|
+
items: NotRequired[List[PackInstallInfoTypedDict]]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CreatePacksResponse(BaseModel):
|
|
19
|
+
r"""a list of PackInstallInfo objects"""
|
|
20
|
+
|
|
21
|
+
count: Optional[int] = None
|
|
22
|
+
r"""number of items present in the items array"""
|
|
23
|
+
|
|
24
|
+
items: Optional[List[PackInstallInfo]] = None
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
from enum import Enum
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateProductsGroupsByProductProduct(str, Enum):
|
|
13
|
+
r"""Cribl Product"""
|
|
14
|
+
|
|
15
|
+
STREAM = "stream"
|
|
16
|
+
EDGE = "edge"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CreateProductsGroupsByProductRequestTypedDict(TypedDict):
|
|
20
|
+
product: CreateProductsGroupsByProductProduct
|
|
21
|
+
r"""Cribl Product"""
|
|
22
|
+
config_group: ConfigGroupTypedDict
|
|
23
|
+
r"""ConfigGroup object"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class CreateProductsGroupsByProductRequest(BaseModel):
|
|
27
|
+
product: Annotated[
|
|
28
|
+
CreateProductsGroupsByProductProduct,
|
|
29
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
30
|
+
]
|
|
31
|
+
r"""Cribl Product"""
|
|
32
|
+
|
|
33
|
+
config_group: Annotated[
|
|
34
|
+
ConfigGroup,
|
|
35
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
36
|
+
]
|
|
37
|
+
r"""ConfigGroup object"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class CreateProductsGroupsByProductResponseTypedDict(TypedDict):
|
|
41
|
+
r"""a list of ConfigGroup objects"""
|
|
42
|
+
|
|
43
|
+
count: NotRequired[int]
|
|
44
|
+
r"""number of items present in the items array"""
|
|
45
|
+
items: NotRequired[List[ConfigGroupTypedDict]]
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class CreateProductsGroupsByProductResponse(BaseModel):
|
|
49
|
+
r"""a list of ConfigGroup objects"""
|
|
50
|
+
|
|
51
|
+
count: Optional[int] = None
|
|
52
|
+
r"""number of items present in the items array"""
|
|
53
|
+
|
|
54
|
+
items: Optional[List[ConfigGroup]] = None
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .cacheconnection import CacheConnection, CacheConnectionTypedDict
|
|
5
|
+
from .lakedatasetsearchconfig import (
|
|
6
|
+
LakeDatasetSearchConfig,
|
|
7
|
+
LakeDatasetSearchConfigTypedDict,
|
|
8
|
+
)
|
|
9
|
+
from cribl_control_plane.types import BaseModel
|
|
10
|
+
from enum import Enum
|
|
11
|
+
import pydantic
|
|
12
|
+
from typing import List, Optional
|
|
13
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CriblLakeDatasetFormat(str, Enum):
|
|
17
|
+
JSON = "json"
|
|
18
|
+
DDSS = "ddss"
|
|
19
|
+
PARQUET = "parquet"
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class CriblLakeDatasetTypedDict(TypedDict):
|
|
23
|
+
id: str
|
|
24
|
+
accelerated_fields: NotRequired[List[str]]
|
|
25
|
+
bucket_name: NotRequired[str]
|
|
26
|
+
cache_connection: NotRequired[CacheConnectionTypedDict]
|
|
27
|
+
deletion_started_at: NotRequired[float]
|
|
28
|
+
description: NotRequired[str]
|
|
29
|
+
format_: NotRequired[CriblLakeDatasetFormat]
|
|
30
|
+
http_da_used: NotRequired[bool]
|
|
31
|
+
retention_period_in_days: NotRequired[float]
|
|
32
|
+
search_config: NotRequired[LakeDatasetSearchConfigTypedDict]
|
|
33
|
+
storage_location_id: NotRequired[str]
|
|
34
|
+
view_name: NotRequired[str]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class CriblLakeDataset(BaseModel):
|
|
38
|
+
id: str
|
|
39
|
+
|
|
40
|
+
accelerated_fields: Annotated[
|
|
41
|
+
Optional[List[str]], pydantic.Field(alias="acceleratedFields")
|
|
42
|
+
] = None
|
|
43
|
+
|
|
44
|
+
bucket_name: Annotated[Optional[str], pydantic.Field(alias="bucketName")] = None
|
|
45
|
+
|
|
46
|
+
cache_connection: Annotated[
|
|
47
|
+
Optional[CacheConnection], pydantic.Field(alias="cacheConnection")
|
|
48
|
+
] = None
|
|
49
|
+
|
|
50
|
+
deletion_started_at: Annotated[
|
|
51
|
+
Optional[float], pydantic.Field(alias="deletionStartedAt")
|
|
52
|
+
] = None
|
|
53
|
+
|
|
54
|
+
description: Optional[str] = None
|
|
55
|
+
|
|
56
|
+
format_: Annotated[
|
|
57
|
+
Optional[CriblLakeDatasetFormat], pydantic.Field(alias="format")
|
|
58
|
+
] = None
|
|
59
|
+
|
|
60
|
+
http_da_used: Annotated[Optional[bool], pydantic.Field(alias="httpDAUsed")] = None
|
|
61
|
+
|
|
62
|
+
retention_period_in_days: Annotated[
|
|
63
|
+
Optional[float], pydantic.Field(alias="retentionPeriodInDays")
|
|
64
|
+
] = None
|
|
65
|
+
|
|
66
|
+
search_config: Annotated[
|
|
67
|
+
Optional[LakeDatasetSearchConfig], pydantic.Field(alias="searchConfig")
|
|
68
|
+
] = None
|
|
69
|
+
|
|
70
|
+
storage_location_id: Annotated[
|
|
71
|
+
Optional[str], pydantic.Field(alias="storageLocationId")
|
|
72
|
+
] = None
|
|
73
|
+
|
|
74
|
+
view_name: Annotated[Optional[str], pydantic.Field(alias="viewName")] = None
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .datasetmetadataruninfo import (
|
|
5
|
+
DatasetMetadataRunInfo,
|
|
6
|
+
DatasetMetadataRunInfoTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from cribl_control_plane.types import BaseModel
|
|
9
|
+
from enum import Enum
|
|
10
|
+
import pydantic
|
|
11
|
+
from typing import List, Optional
|
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ScanMode(str, Enum):
|
|
16
|
+
DETAILED = "detailed"
|
|
17
|
+
QUICK = "quick"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class DatasetMetadataTypedDict(TypedDict):
|
|
21
|
+
earliest: str
|
|
22
|
+
enable_acceleration: bool
|
|
23
|
+
field_list: List[str]
|
|
24
|
+
scan_mode: ScanMode
|
|
25
|
+
latest_run_info: NotRequired[DatasetMetadataRunInfoTypedDict]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class DatasetMetadata(BaseModel):
|
|
29
|
+
earliest: str
|
|
30
|
+
|
|
31
|
+
enable_acceleration: Annotated[bool, pydantic.Field(alias="enableAcceleration")]
|
|
32
|
+
|
|
33
|
+
field_list: Annotated[List[str], pydantic.Field(alias="fieldList")]
|
|
34
|
+
|
|
35
|
+
scan_mode: Annotated[ScanMode, pydantic.Field(alias="scanMode")]
|
|
36
|
+
|
|
37
|
+
latest_run_info: Annotated[
|
|
38
|
+
Optional[DatasetMetadataRunInfo], pydantic.Field(alias="latestRunInfo")
|
|
39
|
+
] = None
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DatasetMetadataRunInfoTypedDict(TypedDict):
|
|
11
|
+
earliest_scanned_time: NotRequired[float]
|
|
12
|
+
finished_at: NotRequired[float]
|
|
13
|
+
latest_scanned_time: NotRequired[float]
|
|
14
|
+
object_count: NotRequired[float]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class DatasetMetadataRunInfo(BaseModel):
|
|
18
|
+
earliest_scanned_time: Annotated[
|
|
19
|
+
Optional[float], pydantic.Field(alias="earliestScannedTime")
|
|
20
|
+
] = None
|
|
21
|
+
|
|
22
|
+
finished_at: Annotated[Optional[float], pydantic.Field(alias="finishedAt")] = None
|
|
23
|
+
|
|
24
|
+
latest_scanned_time: Annotated[
|
|
25
|
+
Optional[float], pydantic.Field(alias="latestScannedTime")
|
|
26
|
+
] = None
|
|
27
|
+
|
|
28
|
+
object_count: Annotated[Optional[float], pydantic.Field(alias="objectCount")] = None
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .cribllakedataset import CriblLakeDataset, CriblLakeDatasetTypedDict
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import FieldMetadata, PathParamMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteCriblLakeDatasetByLakeIDAndIDRequestTypedDict(TypedDict):
|
|
13
|
+
lake_id: str
|
|
14
|
+
r"""lake id that contains the Datasets"""
|
|
15
|
+
id: str
|
|
16
|
+
r"""dataset id to delete"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class DeleteCriblLakeDatasetByLakeIDAndIDRequest(BaseModel):
|
|
20
|
+
lake_id: Annotated[
|
|
21
|
+
str,
|
|
22
|
+
pydantic.Field(alias="lakeId"),
|
|
23
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
24
|
+
]
|
|
25
|
+
r"""lake id that contains the Datasets"""
|
|
26
|
+
|
|
27
|
+
id: Annotated[
|
|
28
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
29
|
+
]
|
|
30
|
+
r"""dataset id to delete"""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class DeleteCriblLakeDatasetByLakeIDAndIDResponseTypedDict(TypedDict):
|
|
34
|
+
r"""a list of CriblLakeDataset objects"""
|
|
35
|
+
|
|
36
|
+
count: NotRequired[int]
|
|
37
|
+
r"""number of items present in the items array"""
|
|
38
|
+
items: NotRequired[List[CriblLakeDatasetTypedDict]]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class DeleteCriblLakeDatasetByLakeIDAndIDResponse(BaseModel):
|
|
42
|
+
r"""a list of CriblLakeDataset objects"""
|
|
43
|
+
|
|
44
|
+
count: Optional[int] = None
|
|
45
|
+
r"""number of items present in the items array"""
|
|
46
|
+
|
|
47
|
+
items: Optional[List[CriblLakeDataset]] = None
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .packinstallinfo import PackInstallInfo, PackInstallInfoTypedDict
|
|
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 DeletePacksByIDRequestTypedDict(TypedDict):
|
|
12
|
+
id: str
|
|
13
|
+
r"""Pack name"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class DeletePacksByIDRequest(BaseModel):
|
|
17
|
+
id: Annotated[
|
|
18
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
19
|
+
]
|
|
20
|
+
r"""Pack name"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class DeletePacksByIDResponseTypedDict(TypedDict):
|
|
24
|
+
r"""a list of PackInstallInfo objects"""
|
|
25
|
+
|
|
26
|
+
count: NotRequired[int]
|
|
27
|
+
r"""number of items present in the items array"""
|
|
28
|
+
items: NotRequired[List[PackInstallInfoTypedDict]]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class DeletePacksByIDResponse(BaseModel):
|
|
32
|
+
r"""a list of PackInstallInfo objects"""
|
|
33
|
+
|
|
34
|
+
count: Optional[int] = None
|
|
35
|
+
r"""number of items present in the items array"""
|
|
36
|
+
|
|
37
|
+
items: Optional[List[PackInstallInfo]] = None
|