cribl-control-plane 0.2.1rc4__py3-none-any.whl → 0.2.1rc11__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 +4 -4
- cribl_control_plane/branches.py +4 -4
- cribl_control_plane/commits.py +28 -28
- cribl_control_plane/commits_files.py +8 -8
- cribl_control_plane/configs_versions.py +4 -8
- cribl_control_plane/destinations.py +20 -20
- cribl_control_plane/destinations_pq.py +8 -8
- cribl_control_plane/groups_sdk.py +26 -50
- cribl_control_plane/hectokens.py +8 -16
- cribl_control_plane/lakedatasets.py +48 -40
- cribl_control_plane/models/__init__.py +260 -393
- cribl_control_plane/models/cacheconnection.py +20 -0
- cribl_control_plane/models/configgroup.py +20 -1
- cribl_control_plane/models/configgroupcloud.py +11 -1
- cribl_control_plane/models/{getversionbranchop.py → countedlistbranchinfo.py} +2 -6
- cribl_control_plane/models/countedlistconfiggroup.py +20 -0
- cribl_control_plane/models/countedlistcribllakedataset.py +20 -0
- cribl_control_plane/models/countedlistdistributedsummary.py +20 -0
- cribl_control_plane/models/countedlistgitcommitsummary.py +20 -0
- cribl_control_plane/models/countedlistgitcountresult.py +20 -0
- cribl_control_plane/models/{createinputop.py → countedlistgitdiffresult.py} +5 -9
- cribl_control_plane/models/countedlistgitfilesresponse.py +20 -0
- cribl_control_plane/models/{getversioninfoop.py → countedlistgitinfo.py} +2 -6
- cribl_control_plane/models/countedlistgitlogresult.py +20 -0
- cribl_control_plane/models/countedlistgitrevertresult.py +20 -0
- cribl_control_plane/models/countedlistgitshowresult.py +20 -0
- cribl_control_plane/models/countedlistgitstatusresult.py +20 -0
- cribl_control_plane/models/{listinputop.py → countedlistinput.py} +2 -6
- cribl_control_plane/models/countedlistinputsplunkhec.py +20 -0
- cribl_control_plane/models/countedlistjobinfo.py +20 -0
- cribl_control_plane/models/countedlistmasterworkerentry.py +20 -0
- cribl_control_plane/models/countedlistnumber.py +19 -0
- cribl_control_plane/models/countedlistobject.py +19 -0
- cribl_control_plane/models/{listoutputop.py → countedlistoutput.py} +2 -6
- cribl_control_plane/models/{createoutputop.py → countedlistoutputsamplesresponse.py} +5 -9
- cribl_control_plane/models/countedlistoutputtestresponse.py +20 -0
- cribl_control_plane/models/countedlistpackinfo.py +20 -0
- cribl_control_plane/models/{createpacksop.py → countedlistpackinstallinfo.py} +2 -6
- cribl_control_plane/models/{listpipelineop.py → countedlistpipeline.py} +2 -6
- cribl_control_plane/models/{listroutesop.py → countedlistroutes.py} +2 -6
- cribl_control_plane/models/{createversionpushop.py → countedliststring.py} +2 -6
- cribl_control_plane/models/{createpipelineop.py → countedlistteamaccesscontrollist.py} +5 -9
- cribl_control_plane/models/countedlistuseraccesscontrollist.py +20 -0
- cribl_control_plane/models/createconfiggroupbyproductop.py +13 -21
- 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/cribllakedataset.py +15 -1
- cribl_control_plane/models/cribllakedatasetupdate.py +15 -1
- cribl_control_plane/models/datasetmetadata.py +11 -1
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +11 -19
- 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/getconfiggroupaclbyproductandidop.py +20 -18
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +20 -18
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +11 -18
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +11 -18
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +1 -20
- 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 +11 -18
- 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 +20 -1
- cribl_control_plane/models/hbcriblinfo.py +11 -1
- cribl_control_plane/models/healthserverstatus.py +20 -1
- cribl_control_plane/models/input.py +2 -2
- cribl_control_plane/models/inputappscope.py +56 -1
- cribl_control_plane/models/inputazureblob.py +29 -1
- cribl_control_plane/models/inputcollection.py +20 -1
- cribl_control_plane/models/inputconfluentcloud.py +78 -1
- cribl_control_plane/models/inputcribl.py +20 -1
- cribl_control_plane/models/inputcriblhttp.py +62 -7
- cribl_control_plane/models/inputcribllakehttp.py +38 -1
- cribl_control_plane/models/inputcriblmetrics.py +20 -1
- cribl_control_plane/models/inputcribltcp.py +63 -1
- cribl_control_plane/models/inputcrowdstrike.py +47 -1
- cribl_control_plane/models/inputdatadogagent.py +38 -1
- cribl_control_plane/models/inputdatagen.py +20 -1
- cribl_control_plane/models/inputedgeprometheus.py +94 -1
- cribl_control_plane/models/inputelastic.py +65 -1
- cribl_control_plane/models/inputeventhub.py +58 -1
- cribl_control_plane/models/inputexec.py +29 -1
- cribl_control_plane/models/inputfile.py +40 -7
- cribl_control_plane/models/inputfirehose.py +38 -1
- cribl_control_plane/models/inputgooglepubsub.py +29 -1
- cribl_control_plane/models/inputgrafana.py +110 -1
- cribl_control_plane/models/inputhttp.py +38 -1
- cribl_control_plane/models/inputhttpraw.py +38 -1
- cribl_control_plane/models/inputjournalfiles.py +20 -1
- cribl_control_plane/models/inputkafka.py +74 -1
- cribl_control_plane/models/inputkinesis.py +65 -1
- cribl_control_plane/models/inputkubeevents.py +20 -1
- cribl_control_plane/models/inputkubelogs.py +29 -1
- cribl_control_plane/models/inputkubemetrics.py +29 -1
- cribl_control_plane/models/inputloki.py +47 -1
- cribl_control_plane/models/inputmetrics.py +38 -1
- cribl_control_plane/models/inputmodeldriventelemetry.py +38 -1
- cribl_control_plane/models/inputmsk.py +74 -1
- cribl_control_plane/models/inputnetflow.py +20 -1
- cribl_control_plane/models/inputoffice365mgmt.py +56 -1
- cribl_control_plane/models/inputoffice365msgtrace.py +56 -1
- cribl_control_plane/models/inputoffice365service.py +56 -1
- cribl_control_plane/models/inputopentelemetry.py +65 -1
- cribl_control_plane/models/inputprometheus.py +87 -1
- cribl_control_plane/models/inputprometheusrw.py +47 -1
- cribl_control_plane/models/inputrawudp.py +20 -1
- cribl_control_plane/models/inputs3.py +38 -1
- cribl_control_plane/models/inputs3inventory.py +47 -1
- cribl_control_plane/models/inputsecuritylake.py +47 -1
- cribl_control_plane/models/inputsnmp.py +29 -1
- cribl_control_plane/models/inputsplunk.py +56 -1
- cribl_control_plane/models/inputsplunkhec.py +47 -1
- cribl_control_plane/models/inputsplunksearch.py +56 -1
- cribl_control_plane/models/inputsqs.py +47 -1
- cribl_control_plane/models/inputsyslog.py +74 -1
- cribl_control_plane/models/inputsystemmetrics.py +92 -1
- cribl_control_plane/models/inputsystemstate.py +29 -1
- cribl_control_plane/models/inputtcp.py +47 -1
- cribl_control_plane/models/inputtcpjson.py +47 -1
- cribl_control_plane/models/inputwef.py +65 -1
- cribl_control_plane/models/inputwindowsmetrics.py +83 -1
- cribl_control_plane/models/inputwineventlogs.py +38 -1
- cribl_control_plane/models/inputwiz.py +38 -1
- cribl_control_plane/models/inputwizwebhook.py +38 -1
- cribl_control_plane/models/inputzscalerhec.py +47 -1
- cribl_control_plane/models/jobinfo.py +10 -4
- cribl_control_plane/models/jobstatus.py +34 -3
- cribl_control_plane/models/lakedatasetmetrics.py +17 -0
- cribl_control_plane/models/listconfiggroupbyproductop.py +11 -18
- cribl_control_plane/models/listmasterworkerentryop.py +1 -19
- cribl_control_plane/models/masterworkerentry.py +11 -1
- cribl_control_plane/models/nodeupgradestatus.py +38 -0
- cribl_control_plane/models/output.py +13 -13
- cribl_control_plane/models/outputazureblob.py +83 -1
- cribl_control_plane/models/outputazuredataexplorer.py +148 -1
- cribl_control_plane/models/outputazureeventhub.py +98 -1
- cribl_control_plane/models/outputazurelogs.py +56 -1
- cribl_control_plane/models/outputchronicle.py +56 -1
- cribl_control_plane/models/outputclickhouse.py +92 -1
- cribl_control_plane/models/outputcloudwatch.py +47 -1
- cribl_control_plane/models/outputconfluentcloud.py +125 -1
- cribl_control_plane/models/outputcriblhttp.py +97 -1
- cribl_control_plane/models/outputcribllake.py +76 -1
- cribl_control_plane/models/outputcribltcp.py +99 -1
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +67 -1
- cribl_control_plane/models/outputdatabricks.py +69 -5
- cribl_control_plane/models/outputdatadog.py +83 -1
- cribl_control_plane/models/outputdataset.py +74 -1
- cribl_control_plane/models/outputdiskspool.py +11 -1
- cribl_control_plane/models/outputdls3.py +110 -1
- cribl_control_plane/models/outputdynatracehttp.py +92 -1
- cribl_control_plane/models/outputdynatraceotlp.py +92 -1
- cribl_control_plane/models/outputelastic.py +74 -1
- cribl_control_plane/models/outputelasticcloud.py +56 -1
- cribl_control_plane/models/outputexabeam.py +47 -1
- cribl_control_plane/models/outputfilesystem.py +65 -1
- cribl_control_plane/models/outputgooglechronicle.py +83 -1
- cribl_control_plane/models/outputgooglecloudlogging.py +65 -1
- cribl_control_plane/models/outputgooglecloudstorage.py +101 -1
- cribl_control_plane/models/outputgooglepubsub.py +47 -1
- cribl_control_plane/models/outputgrafanacloud.py +146 -1
- cribl_control_plane/models/outputgraphite.py +47 -1
- cribl_control_plane/models/outputhoneycomb.py +56 -1
- cribl_control_plane/models/outputhumiohec.py +65 -1
- cribl_control_plane/models/outputinfluxdb.py +65 -1
- cribl_control_plane/models/outputkafka.py +121 -1
- cribl_control_plane/models/outputkinesis.py +65 -1
- cribl_control_plane/models/outputloki.py +65 -1
- cribl_control_plane/models/outputminio.py +110 -1
- cribl_control_plane/models/outputmsk.py +121 -1
- cribl_control_plane/models/outputnewrelic.py +74 -1
- cribl_control_plane/models/outputnewrelicevents.py +65 -1
- cribl_control_plane/models/outputopentelemetry.py +110 -1
- cribl_control_plane/models/outputprometheus.py +56 -1
- cribl_control_plane/models/outputring.py +29 -1
- cribl_control_plane/models/outputs3.py +110 -1
- cribl_control_plane/models/outputsecuritylake.py +85 -1
- cribl_control_plane/models/outputsentinel.py +74 -1
- cribl_control_plane/models/outputsentineloneaisiem.py +74 -1
- cribl_control_plane/models/outputservicenow.py +101 -1
- cribl_control_plane/models/outputsignalfx.py +56 -1
- cribl_control_plane/models/outputsns.py +56 -1
- cribl_control_plane/models/outputsplunk.py +92 -1
- cribl_control_plane/models/outputsplunkhec.py +149 -1
- cribl_control_plane/models/outputsplunklb.py +121 -1
- cribl_control_plane/models/outputsqs.py +65 -1
- cribl_control_plane/models/outputstatsd.py +47 -1
- cribl_control_plane/models/outputstatsdext.py +47 -1
- cribl_control_plane/models/outputsumologic.py +56 -1
- cribl_control_plane/models/outputsyslog.py +110 -1
- cribl_control_plane/models/outputtcpjson.py +83 -1
- cribl_control_plane/models/outputwavefront.py +56 -1
- cribl_control_plane/models/outputwebhook.py +92 -1
- cribl_control_plane/models/outputxsiam.py +56 -1
- cribl_control_plane/models/resourcepolicy.py +11 -0
- cribl_control_plane/models/runnablejobcollection.py +64 -1
- cribl_control_plane/models/runnablejobexecutor.py +24 -1
- cribl_control_plane/models/runnablejobscheduledsearch.py +15 -1
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +11 -18
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +11 -19
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +1 -20
- 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 +8 -12
- cribl_control_plane/packs.py +20 -20
- cribl_control_plane/pipelines.py +20 -20
- cribl_control_plane/routes_sdk.py +16 -20
- cribl_control_plane/samples.py +8 -8
- cribl_control_plane/sdk.py +2 -2
- cribl_control_plane/sources.py +20 -20
- cribl_control_plane/statuses.py +4 -4
- cribl_control_plane/summaries.py +8 -4
- cribl_control_plane/teams.py +4 -4
- cribl_control_plane/versions_configs.py +4 -4
- {cribl_control_plane-0.2.1rc4.dist-info → cribl_control_plane-0.2.1rc11.dist-info}/METADATA +25 -7
- cribl_control_plane-0.2.1rc11.dist-info/RECORD +350 -0
- cribl_control_plane-0.2.1rc4.dist-info/RECORD +0 -331
- {cribl_control_plane-0.2.1rc4.dist-info → cribl_control_plane-0.2.1rc11.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
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_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class LakeDatasetMetricsTypedDict(TypedDict):
|
|
10
|
+
current_size_bytes: float
|
|
11
|
+
metrics_date: str
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class LakeDatasetMetrics(BaseModel):
|
|
15
|
+
current_size_bytes: Annotated[float, pydantic.Field(alias="currentSizeBytes")]
|
|
16
|
+
|
|
17
|
+
metrics_date: Annotated[str, pydantic.Field(alias="metricsDate")]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
4
|
from .productscore import ProductsCore
|
|
5
|
+
from cribl_control_plane import models
|
|
6
6
|
from cribl_control_plane.types import BaseModel
|
|
7
7
|
from cribl_control_plane.utils import (
|
|
8
8
|
FieldMetadata,
|
|
@@ -10,8 +10,9 @@ from cribl_control_plane.utils import (
|
|
|
10
10
|
QueryParamMetadata,
|
|
11
11
|
validate_open_enum,
|
|
12
12
|
)
|
|
13
|
+
from pydantic import field_serializer
|
|
13
14
|
from pydantic.functional_validators import PlainValidator
|
|
14
|
-
from typing import
|
|
15
|
+
from typing import Optional
|
|
15
16
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
16
17
|
|
|
17
18
|
|
|
@@ -35,19 +36,11 @@ class ListConfigGroupByProductRequest(BaseModel):
|
|
|
35
36
|
] = None
|
|
36
37
|
r"""Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>."""
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
class ListConfigGroupByProductResponse(BaseModel):
|
|
48
|
-
r"""a list of ConfigGroup objects"""
|
|
49
|
-
|
|
50
|
-
count: Optional[int] = None
|
|
51
|
-
r"""number of items present in the items array"""
|
|
52
|
-
|
|
53
|
-
items: Optional[List[ConfigGroup]] = None
|
|
39
|
+
@field_serializer("product")
|
|
40
|
+
def serialize_product(self, value):
|
|
41
|
+
if isinstance(value, str):
|
|
42
|
+
try:
|
|
43
|
+
return models.ProductsCore(value)
|
|
44
|
+
except ValueError:
|
|
45
|
+
return value
|
|
46
|
+
return value
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .masterworkerentry import MasterWorkerEntry, MasterWorkerEntryTypedDict
|
|
5
4
|
from cribl_control_plane.types import BaseModel
|
|
6
5
|
from cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
|
|
7
6
|
import pydantic
|
|
8
|
-
from typing import
|
|
7
|
+
from typing import Optional
|
|
9
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
9
|
|
|
11
10
|
|
|
@@ -63,20 +62,3 @@ class ListMasterWorkerEntryRequest(BaseModel):
|
|
|
63
62
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
64
63
|
] = None
|
|
65
64
|
r"""Starting point from which to retrieve results for this request. Use with <code>limit</code> to paginate the response into manageable batches."""
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
class ListMasterWorkerEntryResponseTypedDict(TypedDict):
|
|
69
|
-
r"""a list of MasterWorkerEntry objects"""
|
|
70
|
-
|
|
71
|
-
count: NotRequired[int]
|
|
72
|
-
r"""number of items present in the items array"""
|
|
73
|
-
items: NotRequired[List[MasterWorkerEntryTypedDict]]
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
class ListMasterWorkerEntryResponse(BaseModel):
|
|
77
|
-
r"""a list of MasterWorkerEntry objects"""
|
|
78
|
-
|
|
79
|
-
count: Optional[int] = None
|
|
80
|
-
r"""number of items present in the items array"""
|
|
81
|
-
|
|
82
|
-
items: Optional[List[MasterWorkerEntry]] = None
|
|
@@ -4,11 +4,12 @@ from __future__ import annotations
|
|
|
4
4
|
from .heartbeatmetadata import HeartbeatMetadata, HeartbeatMetadataTypedDict
|
|
5
5
|
from .nodeprovidedinfo import NodeProvidedInfo, NodeProvidedInfoTypedDict
|
|
6
6
|
from .nodeupgradestatus import NodeUpgradeStatus, NodeUpgradeStatusTypedDict
|
|
7
|
-
from cribl_control_plane import utils
|
|
7
|
+
from cribl_control_plane import models, utils
|
|
8
8
|
from cribl_control_plane.types import BaseModel
|
|
9
9
|
from cribl_control_plane.utils import validate_open_enum
|
|
10
10
|
from enum import Enum
|
|
11
11
|
import pydantic
|
|
12
|
+
from pydantic import field_serializer
|
|
12
13
|
from pydantic.functional_validators import PlainValidator
|
|
13
14
|
from typing import Optional
|
|
14
15
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -87,3 +88,12 @@ class MasterWorkerEntry(BaseModel):
|
|
|
87
88
|
] = None
|
|
88
89
|
|
|
89
90
|
workers: Optional[MasterWorkerEntryWorkers] = None
|
|
91
|
+
|
|
92
|
+
@field_serializer("type")
|
|
93
|
+
def serialize_type(self, value):
|
|
94
|
+
if isinstance(value, str):
|
|
95
|
+
try:
|
|
96
|
+
return models.MasterWorkerEntryType(value)
|
|
97
|
+
except ValueError:
|
|
98
|
+
return value
|
|
99
|
+
return value
|
|
@@ -5,8 +5,10 @@ from .nodeactiveupgradestatus import NodeActiveUpgradeStatus
|
|
|
5
5
|
from .nodefailedupgradestatus import NodeFailedUpgradeStatus
|
|
6
6
|
from .nodeskippedupgradestatus import NodeSkippedUpgradeStatus
|
|
7
7
|
from .nodeupgradestate import NodeUpgradeState
|
|
8
|
+
from cribl_control_plane import models
|
|
8
9
|
from cribl_control_plane.types import BaseModel
|
|
9
10
|
from cribl_control_plane.utils import validate_open_enum
|
|
11
|
+
from pydantic import field_serializer
|
|
10
12
|
from pydantic.functional_validators import PlainValidator
|
|
11
13
|
from typing import Optional
|
|
12
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -36,3 +38,39 @@ class NodeUpgradeStatus(BaseModel):
|
|
|
36
38
|
skipped: Annotated[
|
|
37
39
|
Optional[NodeSkippedUpgradeStatus], PlainValidator(validate_open_enum(True))
|
|
38
40
|
] = None
|
|
41
|
+
|
|
42
|
+
@field_serializer("active")
|
|
43
|
+
def serialize_active(self, value):
|
|
44
|
+
if isinstance(value, str):
|
|
45
|
+
try:
|
|
46
|
+
return models.NodeActiveUpgradeStatus(value)
|
|
47
|
+
except ValueError:
|
|
48
|
+
return value
|
|
49
|
+
return value
|
|
50
|
+
|
|
51
|
+
@field_serializer("failed")
|
|
52
|
+
def serialize_failed(self, value):
|
|
53
|
+
if isinstance(value, str):
|
|
54
|
+
try:
|
|
55
|
+
return models.NodeFailedUpgradeStatus(value)
|
|
56
|
+
except ValueError:
|
|
57
|
+
return value
|
|
58
|
+
return value
|
|
59
|
+
|
|
60
|
+
@field_serializer("skipped")
|
|
61
|
+
def serialize_skipped(self, value):
|
|
62
|
+
if isinstance(value, str):
|
|
63
|
+
try:
|
|
64
|
+
return models.NodeSkippedUpgradeStatus(value)
|
|
65
|
+
except ValueError:
|
|
66
|
+
return value
|
|
67
|
+
return value
|
|
68
|
+
|
|
69
|
+
@field_serializer("state")
|
|
70
|
+
def serialize_state(self, value):
|
|
71
|
+
if isinstance(value, str):
|
|
72
|
+
try:
|
|
73
|
+
return models.NodeUpgradeState(value)
|
|
74
|
+
except ValueError:
|
|
75
|
+
return value
|
|
76
|
+
return value
|
|
@@ -98,42 +98,42 @@ OutputTypedDict = TypeAliasType(
|
|
|
98
98
|
OutputNetflowTypedDict,
|
|
99
99
|
OutputDiskSpoolTypedDict,
|
|
100
100
|
OutputRingTypedDict,
|
|
101
|
-
OutputStatsdTypedDict,
|
|
102
101
|
OutputGraphiteTypedDict,
|
|
103
102
|
OutputStatsdExtTypedDict,
|
|
103
|
+
OutputStatsdTypedDict,
|
|
104
104
|
OutputGooglePubsubTypedDict,
|
|
105
|
+
OutputExabeamTypedDict,
|
|
105
106
|
OutputSplunkTypedDict,
|
|
106
107
|
OutputSnsTypedDict,
|
|
108
|
+
OutputAzureEventhubTypedDict,
|
|
107
109
|
OutputCriblTCPTypedDict,
|
|
108
|
-
OutputExabeamTypedDict,
|
|
109
110
|
OutputCloudwatchTypedDict,
|
|
110
|
-
OutputAzureEventhubTypedDict,
|
|
111
111
|
OutputSignalfxTypedDict,
|
|
112
|
-
OutputWavefrontTypedDict,
|
|
113
112
|
OutputHoneycombTypedDict,
|
|
113
|
+
OutputWavefrontTypedDict,
|
|
114
114
|
OutputHumioHecTypedDict,
|
|
115
|
-
OutputElasticCloudTypedDict,
|
|
116
115
|
OutputSumoLogicTypedDict,
|
|
117
116
|
OutputCrowdstrikeNextGenSiemTypedDict,
|
|
118
117
|
OutputTcpjsonTypedDict,
|
|
119
|
-
|
|
118
|
+
OutputElasticCloudTypedDict,
|
|
119
|
+
OutputNewrelicEventsTypedDict,
|
|
120
120
|
OutputFilesystemTypedDict,
|
|
121
|
-
OutputKafkaTypedDict,
|
|
122
121
|
OutputConfluentCloudTypedDict,
|
|
122
|
+
OutputKafkaTypedDict,
|
|
123
|
+
OutputAzureLogsTypedDict,
|
|
123
124
|
OutputKinesisTypedDict,
|
|
124
|
-
OutputNewrelicEventsTypedDict,
|
|
125
125
|
OutputSplunkLbTypedDict,
|
|
126
126
|
OutputSyslogTypedDict,
|
|
127
127
|
OutputSqsTypedDict,
|
|
128
|
-
OutputCriblHTTPTypedDict,
|
|
129
128
|
OutputNewrelicTypedDict,
|
|
129
|
+
OutputCriblHTTPTypedDict,
|
|
130
130
|
OutputXsiamTypedDict,
|
|
131
131
|
OutputDatasetTypedDict,
|
|
132
|
+
OutputLokiTypedDict,
|
|
132
133
|
OutputCriblLakeTypedDict,
|
|
133
|
-
OutputSplunkHecTypedDict,
|
|
134
134
|
OutputDynatraceHTTPTypedDict,
|
|
135
|
-
OutputLokiTypedDict,
|
|
136
135
|
OutputServiceNowTypedDict,
|
|
136
|
+
OutputSplunkHecTypedDict,
|
|
137
137
|
OutputChronicleTypedDict,
|
|
138
138
|
OutputDynatraceOtlpTypedDict,
|
|
139
139
|
OutputDatabricksTypedDict,
|
|
@@ -144,15 +144,15 @@ OutputTypedDict = TypeAliasType(
|
|
|
144
144
|
OutputSentinelOneAiSiemTypedDict,
|
|
145
145
|
OutputMskTypedDict,
|
|
146
146
|
OutputGoogleCloudStorageTypedDict,
|
|
147
|
-
OutputAzureBlobTypedDict,
|
|
148
147
|
OutputSentinelTypedDict,
|
|
148
|
+
OutputAzureBlobTypedDict,
|
|
149
149
|
OutputInfluxdbTypedDict,
|
|
150
150
|
OutputMinioTypedDict,
|
|
151
151
|
OutputSecurityLakeTypedDict,
|
|
152
152
|
OutputOpenTelemetryTypedDict,
|
|
153
153
|
OutputClickHouseTypedDict,
|
|
154
|
-
OutputS3TypedDict,
|
|
155
154
|
OutputDlS3TypedDict,
|
|
155
|
+
OutputS3TypedDict,
|
|
156
156
|
OutputWebhookTypedDict,
|
|
157
157
|
OutputGoogleCloudLoggingTypedDict,
|
|
158
158
|
OutputAzureDataExplorerTypedDict,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -494,3 +495,84 @@ class OutputAzureBlob(BaseModel):
|
|
|
494
495
|
r"""Select or create a stored text secret"""
|
|
495
496
|
|
|
496
497
|
certificate: Optional[OutputAzureBlobCertificate] = None
|
|
498
|
+
|
|
499
|
+
@field_serializer("format_")
|
|
500
|
+
def serialize_format_(self, value):
|
|
501
|
+
if isinstance(value, str):
|
|
502
|
+
try:
|
|
503
|
+
return models.OutputAzureBlobDataFormat(value)
|
|
504
|
+
except ValueError:
|
|
505
|
+
return value
|
|
506
|
+
return value
|
|
507
|
+
|
|
508
|
+
@field_serializer("on_backpressure")
|
|
509
|
+
def serialize_on_backpressure(self, value):
|
|
510
|
+
if isinstance(value, str):
|
|
511
|
+
try:
|
|
512
|
+
return models.OutputAzureBlobBackpressureBehavior(value)
|
|
513
|
+
except ValueError:
|
|
514
|
+
return value
|
|
515
|
+
return value
|
|
516
|
+
|
|
517
|
+
@field_serializer("on_disk_full_backpressure")
|
|
518
|
+
def serialize_on_disk_full_backpressure(self, value):
|
|
519
|
+
if isinstance(value, str):
|
|
520
|
+
try:
|
|
521
|
+
return models.OutputAzureBlobDiskSpaceProtection(value)
|
|
522
|
+
except ValueError:
|
|
523
|
+
return value
|
|
524
|
+
return value
|
|
525
|
+
|
|
526
|
+
@field_serializer("auth_type")
|
|
527
|
+
def serialize_auth_type(self, value):
|
|
528
|
+
if isinstance(value, str):
|
|
529
|
+
try:
|
|
530
|
+
return models.OutputAzureBlobAuthenticationMethod(value)
|
|
531
|
+
except ValueError:
|
|
532
|
+
return value
|
|
533
|
+
return value
|
|
534
|
+
|
|
535
|
+
@field_serializer("storage_class")
|
|
536
|
+
def serialize_storage_class(self, value):
|
|
537
|
+
if isinstance(value, str):
|
|
538
|
+
try:
|
|
539
|
+
return models.BlobAccessTier(value)
|
|
540
|
+
except ValueError:
|
|
541
|
+
return value
|
|
542
|
+
return value
|
|
543
|
+
|
|
544
|
+
@field_serializer("compress")
|
|
545
|
+
def serialize_compress(self, value):
|
|
546
|
+
if isinstance(value, str):
|
|
547
|
+
try:
|
|
548
|
+
return models.OutputAzureBlobCompression(value)
|
|
549
|
+
except ValueError:
|
|
550
|
+
return value
|
|
551
|
+
return value
|
|
552
|
+
|
|
553
|
+
@field_serializer("compression_level")
|
|
554
|
+
def serialize_compression_level(self, value):
|
|
555
|
+
if isinstance(value, str):
|
|
556
|
+
try:
|
|
557
|
+
return models.OutputAzureBlobCompressionLevel(value)
|
|
558
|
+
except ValueError:
|
|
559
|
+
return value
|
|
560
|
+
return value
|
|
561
|
+
|
|
562
|
+
@field_serializer("parquet_version")
|
|
563
|
+
def serialize_parquet_version(self, value):
|
|
564
|
+
if isinstance(value, str):
|
|
565
|
+
try:
|
|
566
|
+
return models.OutputAzureBlobParquetVersion(value)
|
|
567
|
+
except ValueError:
|
|
568
|
+
return value
|
|
569
|
+
return value
|
|
570
|
+
|
|
571
|
+
@field_serializer("parquet_data_page_version")
|
|
572
|
+
def serialize_parquet_data_page_version(self, value):
|
|
573
|
+
if isinstance(value, str):
|
|
574
|
+
try:
|
|
575
|
+
return models.OutputAzureBlobDataPageVersion(value)
|
|
576
|
+
except ValueError:
|
|
577
|
+
return value
|
|
578
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -162,6 +163,15 @@ class ExtentTag(BaseModel):
|
|
|
162
163
|
Optional[PrefixOptional], PlainValidator(validate_open_enum(False))
|
|
163
164
|
] = None
|
|
164
165
|
|
|
166
|
+
@field_serializer("prefix")
|
|
167
|
+
def serialize_prefix(self, value):
|
|
168
|
+
if isinstance(value, str):
|
|
169
|
+
try:
|
|
170
|
+
return models.PrefixOptional(value)
|
|
171
|
+
except ValueError:
|
|
172
|
+
return value
|
|
173
|
+
return value
|
|
174
|
+
|
|
165
175
|
|
|
166
176
|
class IngestIfNotExistTypedDict(TypedDict):
|
|
167
177
|
value: str
|
|
@@ -881,3 +891,140 @@ class OutputAzureDataExplorer(BaseModel):
|
|
|
881
891
|
pq_controls: Annotated[
|
|
882
892
|
Optional[OutputAzureDataExplorerPqControls], pydantic.Field(alias="pqControls")
|
|
883
893
|
] = None
|
|
894
|
+
|
|
895
|
+
@field_serializer("ingest_mode")
|
|
896
|
+
def serialize_ingest_mode(self, value):
|
|
897
|
+
if isinstance(value, str):
|
|
898
|
+
try:
|
|
899
|
+
return models.IngestionMode(value)
|
|
900
|
+
except ValueError:
|
|
901
|
+
return value
|
|
902
|
+
return value
|
|
903
|
+
|
|
904
|
+
@field_serializer("oauth_endpoint")
|
|
905
|
+
def serialize_oauth_endpoint(self, value):
|
|
906
|
+
if isinstance(value, str):
|
|
907
|
+
try:
|
|
908
|
+
return models.OutputAzureDataExplorerMicrosoftEntraIDAuthenticationEndpoint(
|
|
909
|
+
value
|
|
910
|
+
)
|
|
911
|
+
except ValueError:
|
|
912
|
+
return value
|
|
913
|
+
return value
|
|
914
|
+
|
|
915
|
+
@field_serializer("oauth_type")
|
|
916
|
+
def serialize_oauth_type(self, value):
|
|
917
|
+
if isinstance(value, str):
|
|
918
|
+
try:
|
|
919
|
+
return models.OutputAzureDataExplorerAuthenticationMethod(value)
|
|
920
|
+
except ValueError:
|
|
921
|
+
return value
|
|
922
|
+
return value
|
|
923
|
+
|
|
924
|
+
@field_serializer("format_")
|
|
925
|
+
def serialize_format_(self, value):
|
|
926
|
+
if isinstance(value, str):
|
|
927
|
+
try:
|
|
928
|
+
return models.OutputAzureDataExplorerDataFormat(value)
|
|
929
|
+
except ValueError:
|
|
930
|
+
return value
|
|
931
|
+
return value
|
|
932
|
+
|
|
933
|
+
@field_serializer("compress")
|
|
934
|
+
def serialize_compress(self, value):
|
|
935
|
+
if isinstance(value, str):
|
|
936
|
+
try:
|
|
937
|
+
return models.OutputAzureDataExplorerCompressCompression(value)
|
|
938
|
+
except ValueError:
|
|
939
|
+
return value
|
|
940
|
+
return value
|
|
941
|
+
|
|
942
|
+
@field_serializer("compression_level")
|
|
943
|
+
def serialize_compression_level(self, value):
|
|
944
|
+
if isinstance(value, str):
|
|
945
|
+
try:
|
|
946
|
+
return models.OutputAzureDataExplorerCompressionLevel(value)
|
|
947
|
+
except ValueError:
|
|
948
|
+
return value
|
|
949
|
+
return value
|
|
950
|
+
|
|
951
|
+
@field_serializer("parquet_version")
|
|
952
|
+
def serialize_parquet_version(self, value):
|
|
953
|
+
if isinstance(value, str):
|
|
954
|
+
try:
|
|
955
|
+
return models.OutputAzureDataExplorerParquetVersion(value)
|
|
956
|
+
except ValueError:
|
|
957
|
+
return value
|
|
958
|
+
return value
|
|
959
|
+
|
|
960
|
+
@field_serializer("parquet_data_page_version")
|
|
961
|
+
def serialize_parquet_data_page_version(self, value):
|
|
962
|
+
if isinstance(value, str):
|
|
963
|
+
try:
|
|
964
|
+
return models.OutputAzureDataExplorerDataPageVersion(value)
|
|
965
|
+
except ValueError:
|
|
966
|
+
return value
|
|
967
|
+
return value
|
|
968
|
+
|
|
969
|
+
@field_serializer("on_backpressure")
|
|
970
|
+
def serialize_on_backpressure(self, value):
|
|
971
|
+
if isinstance(value, str):
|
|
972
|
+
try:
|
|
973
|
+
return models.OutputAzureDataExplorerBackpressureBehavior(value)
|
|
974
|
+
except ValueError:
|
|
975
|
+
return value
|
|
976
|
+
return value
|
|
977
|
+
|
|
978
|
+
@field_serializer("on_disk_full_backpressure")
|
|
979
|
+
def serialize_on_disk_full_backpressure(self, value):
|
|
980
|
+
if isinstance(value, str):
|
|
981
|
+
try:
|
|
982
|
+
return models.OutputAzureDataExplorerDiskSpaceProtection(value)
|
|
983
|
+
except ValueError:
|
|
984
|
+
return value
|
|
985
|
+
return value
|
|
986
|
+
|
|
987
|
+
@field_serializer("report_level")
|
|
988
|
+
def serialize_report_level(self, value):
|
|
989
|
+
if isinstance(value, str):
|
|
990
|
+
try:
|
|
991
|
+
return models.ReportLevel(value)
|
|
992
|
+
except ValueError:
|
|
993
|
+
return value
|
|
994
|
+
return value
|
|
995
|
+
|
|
996
|
+
@field_serializer("report_method")
|
|
997
|
+
def serialize_report_method(self, value):
|
|
998
|
+
if isinstance(value, str):
|
|
999
|
+
try:
|
|
1000
|
+
return models.ReportMethod(value)
|
|
1001
|
+
except ValueError:
|
|
1002
|
+
return value
|
|
1003
|
+
return value
|
|
1004
|
+
|
|
1005
|
+
@field_serializer("pq_mode")
|
|
1006
|
+
def serialize_pq_mode(self, value):
|
|
1007
|
+
if isinstance(value, str):
|
|
1008
|
+
try:
|
|
1009
|
+
return models.OutputAzureDataExplorerMode(value)
|
|
1010
|
+
except ValueError:
|
|
1011
|
+
return value
|
|
1012
|
+
return value
|
|
1013
|
+
|
|
1014
|
+
@field_serializer("pq_compress")
|
|
1015
|
+
def serialize_pq_compress(self, value):
|
|
1016
|
+
if isinstance(value, str):
|
|
1017
|
+
try:
|
|
1018
|
+
return models.OutputAzureDataExplorerPqCompressCompression(value)
|
|
1019
|
+
except ValueError:
|
|
1020
|
+
return value
|
|
1021
|
+
return value
|
|
1022
|
+
|
|
1023
|
+
@field_serializer("pq_on_backpressure")
|
|
1024
|
+
def serialize_pq_on_backpressure(self, value):
|
|
1025
|
+
if isinstance(value, str):
|
|
1026
|
+
try:
|
|
1027
|
+
return models.OutputAzureDataExplorerQueueFullBehavior(value)
|
|
1028
|
+
except ValueError:
|
|
1029
|
+
return value
|
|
1030
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -179,6 +180,48 @@ class OutputAzureEventhubAuthentication(BaseModel):
|
|
|
179
180
|
scope: Optional[str] = None
|
|
180
181
|
r"""Scope to pass in the OAuth request parameter"""
|
|
181
182
|
|
|
183
|
+
@field_serializer("auth_type")
|
|
184
|
+
def serialize_auth_type(self, value):
|
|
185
|
+
if isinstance(value, str):
|
|
186
|
+
try:
|
|
187
|
+
return models.OutputAzureEventhubAuthTypeAuthenticationMethod(value)
|
|
188
|
+
except ValueError:
|
|
189
|
+
return value
|
|
190
|
+
return value
|
|
191
|
+
|
|
192
|
+
@field_serializer("mechanism")
|
|
193
|
+
def serialize_mechanism(self, value):
|
|
194
|
+
if isinstance(value, str):
|
|
195
|
+
try:
|
|
196
|
+
return models.OutputAzureEventhubSASLMechanism(value)
|
|
197
|
+
except ValueError:
|
|
198
|
+
return value
|
|
199
|
+
return value
|
|
200
|
+
|
|
201
|
+
@field_serializer("client_secret_auth_type")
|
|
202
|
+
def serialize_client_secret_auth_type(self, value):
|
|
203
|
+
if isinstance(value, str):
|
|
204
|
+
try:
|
|
205
|
+
return (
|
|
206
|
+
models.OutputAzureEventhubClientSecretAuthTypeAuthenticationMethod(
|
|
207
|
+
value
|
|
208
|
+
)
|
|
209
|
+
)
|
|
210
|
+
except ValueError:
|
|
211
|
+
return value
|
|
212
|
+
return value
|
|
213
|
+
|
|
214
|
+
@field_serializer("oauth_endpoint")
|
|
215
|
+
def serialize_oauth_endpoint(self, value):
|
|
216
|
+
if isinstance(value, str):
|
|
217
|
+
try:
|
|
218
|
+
return models.OutputAzureEventhubMicrosoftEntraIDAuthenticationEndpoint(
|
|
219
|
+
value
|
|
220
|
+
)
|
|
221
|
+
except ValueError:
|
|
222
|
+
return value
|
|
223
|
+
return value
|
|
224
|
+
|
|
182
225
|
|
|
183
226
|
class OutputAzureEventhubTLSSettingsClientSideTypedDict(TypedDict):
|
|
184
227
|
disabled: NotRequired[bool]
|
|
@@ -482,3 +525,57 @@ class OutputAzureEventhub(BaseModel):
|
|
|
482
525
|
pq_controls: Annotated[
|
|
483
526
|
Optional[OutputAzureEventhubPqControls], pydantic.Field(alias="pqControls")
|
|
484
527
|
] = None
|
|
528
|
+
|
|
529
|
+
@field_serializer("ack")
|
|
530
|
+
def serialize_ack(self, value):
|
|
531
|
+
if isinstance(value, str):
|
|
532
|
+
try:
|
|
533
|
+
return models.OutputAzureEventhubAcknowledgments(value)
|
|
534
|
+
except ValueError:
|
|
535
|
+
return value
|
|
536
|
+
return value
|
|
537
|
+
|
|
538
|
+
@field_serializer("format_")
|
|
539
|
+
def serialize_format_(self, value):
|
|
540
|
+
if isinstance(value, str):
|
|
541
|
+
try:
|
|
542
|
+
return models.OutputAzureEventhubRecordDataFormat(value)
|
|
543
|
+
except ValueError:
|
|
544
|
+
return value
|
|
545
|
+
return value
|
|
546
|
+
|
|
547
|
+
@field_serializer("on_backpressure")
|
|
548
|
+
def serialize_on_backpressure(self, value):
|
|
549
|
+
if isinstance(value, str):
|
|
550
|
+
try:
|
|
551
|
+
return models.OutputAzureEventhubBackpressureBehavior(value)
|
|
552
|
+
except ValueError:
|
|
553
|
+
return value
|
|
554
|
+
return value
|
|
555
|
+
|
|
556
|
+
@field_serializer("pq_mode")
|
|
557
|
+
def serialize_pq_mode(self, value):
|
|
558
|
+
if isinstance(value, str):
|
|
559
|
+
try:
|
|
560
|
+
return models.OutputAzureEventhubMode(value)
|
|
561
|
+
except ValueError:
|
|
562
|
+
return value
|
|
563
|
+
return value
|
|
564
|
+
|
|
565
|
+
@field_serializer("pq_compress")
|
|
566
|
+
def serialize_pq_compress(self, value):
|
|
567
|
+
if isinstance(value, str):
|
|
568
|
+
try:
|
|
569
|
+
return models.OutputAzureEventhubCompression(value)
|
|
570
|
+
except ValueError:
|
|
571
|
+
return value
|
|
572
|
+
return value
|
|
573
|
+
|
|
574
|
+
@field_serializer("pq_on_backpressure")
|
|
575
|
+
def serialize_pq_on_backpressure(self, value):
|
|
576
|
+
if isinstance(value, str):
|
|
577
|
+
try:
|
|
578
|
+
return models.OutputAzureEventhubQueueFullBehavior(value)
|
|
579
|
+
except ValueError:
|
|
580
|
+
return value
|
|
581
|
+
return value
|