cribl-control-plane 0.0.48a1__py3-none-any.whl → 0.0.49__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.

Files changed (164) hide show
  1. cribl_control_plane/_version.py +6 -4
  2. cribl_control_plane/errors/healthstatus_error.py +2 -8
  3. cribl_control_plane/models/__init__.py +12 -12
  4. cribl_control_plane/models/appmode.py +13 -0
  5. cribl_control_plane/models/cacheconnection.py +2 -10
  6. cribl_control_plane/models/cacheconnectionbackfillstatus.py +1 -2
  7. cribl_control_plane/models/cloudprovider.py +1 -2
  8. cribl_control_plane/models/configgroup.py +2 -7
  9. cribl_control_plane/models/configgroupcloud.py +2 -6
  10. cribl_control_plane/models/createconfiggroupbyproductop.py +2 -8
  11. cribl_control_plane/models/cribllakedataset.py +2 -8
  12. cribl_control_plane/models/datasetmetadata.py +2 -8
  13. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +2 -7
  14. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +2 -4
  15. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +2 -4
  16. cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -3
  17. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +2 -7
  18. cribl_control_plane/models/getsummaryop.py +2 -7
  19. cribl_control_plane/models/hbcriblinfo.py +3 -19
  20. cribl_control_plane/models/healthstatus.py +4 -7
  21. cribl_control_plane/models/heartbeatmetadata.py +0 -3
  22. cribl_control_plane/models/inputappscope.py +14 -34
  23. cribl_control_plane/models/inputazureblob.py +6 -17
  24. cribl_control_plane/models/inputcollection.py +4 -11
  25. cribl_control_plane/models/inputconfluentcloud.py +20 -47
  26. cribl_control_plane/models/inputcribl.py +4 -11
  27. cribl_control_plane/models/inputcriblhttp.py +8 -23
  28. cribl_control_plane/models/inputcribllakehttp.py +10 -22
  29. cribl_control_plane/models/inputcriblmetrics.py +4 -12
  30. cribl_control_plane/models/inputcribltcp.py +8 -23
  31. cribl_control_plane/models/inputcrowdstrike.py +10 -26
  32. cribl_control_plane/models/inputdatadogagent.py +8 -24
  33. cribl_control_plane/models/inputdatagen.py +4 -11
  34. cribl_control_plane/models/inputedgeprometheus.py +24 -58
  35. cribl_control_plane/models/inputelastic.py +14 -40
  36. cribl_control_plane/models/inputeventhub.py +6 -15
  37. cribl_control_plane/models/inputexec.py +6 -14
  38. cribl_control_plane/models/inputfile.py +6 -15
  39. cribl_control_plane/models/inputfirehose.py +8 -23
  40. cribl_control_plane/models/inputgooglepubsub.py +6 -19
  41. cribl_control_plane/models/inputgrafana.py +24 -67
  42. cribl_control_plane/models/inputhttp.py +8 -23
  43. cribl_control_plane/models/inputhttpraw.py +8 -23
  44. cribl_control_plane/models/inputjournalfiles.py +4 -12
  45. cribl_control_plane/models/inputkafka.py +16 -46
  46. cribl_control_plane/models/inputkinesis.py +14 -38
  47. cribl_control_plane/models/inputkubeevents.py +4 -11
  48. cribl_control_plane/models/inputkubelogs.py +8 -16
  49. cribl_control_plane/models/inputkubemetrics.py +8 -16
  50. cribl_control_plane/models/inputloki.py +10 -29
  51. cribl_control_plane/models/inputmetrics.py +8 -23
  52. cribl_control_plane/models/inputmodeldriventelemetry.py +10 -32
  53. cribl_control_plane/models/inputmsk.py +18 -53
  54. cribl_control_plane/models/inputnetflow.py +4 -11
  55. cribl_control_plane/models/inputoffice365mgmt.py +14 -33
  56. cribl_control_plane/models/inputoffice365msgtrace.py +16 -35
  57. cribl_control_plane/models/inputoffice365service.py +16 -35
  58. cribl_control_plane/models/inputopentelemetry.py +16 -38
  59. cribl_control_plane/models/inputprometheus.py +18 -50
  60. cribl_control_plane/models/inputprometheusrw.py +10 -30
  61. cribl_control_plane/models/inputrawudp.py +4 -11
  62. cribl_control_plane/models/inputs3.py +8 -21
  63. cribl_control_plane/models/inputs3inventory.py +10 -26
  64. cribl_control_plane/models/inputsecuritylake.py +10 -27
  65. cribl_control_plane/models/inputsnmp.py +6 -16
  66. cribl_control_plane/models/inputsplunk.py +12 -33
  67. cribl_control_plane/models/inputsplunkhec.py +10 -29
  68. cribl_control_plane/models/inputsplunksearch.py +14 -33
  69. cribl_control_plane/models/inputsqs.py +10 -27
  70. cribl_control_plane/models/inputsyslog.py +16 -43
  71. cribl_control_plane/models/inputsystemmetrics.py +24 -48
  72. cribl_control_plane/models/inputsystemstate.py +8 -16
  73. cribl_control_plane/models/inputtcp.py +10 -29
  74. cribl_control_plane/models/inputtcpjson.py +10 -29
  75. cribl_control_plane/models/inputwef.py +14 -37
  76. cribl_control_plane/models/inputwindowsmetrics.py +24 -44
  77. cribl_control_plane/models/inputwineventlogs.py +10 -20
  78. cribl_control_plane/models/inputwiz.py +8 -21
  79. cribl_control_plane/models/inputwizwebhook.py +8 -23
  80. cribl_control_plane/models/inputzscalerhec.py +10 -29
  81. cribl_control_plane/models/lakehouseconnectiontype.py +1 -2
  82. cribl_control_plane/models/listconfiggroupbyproductop.py +1 -3
  83. cribl_control_plane/models/masterworkerentry.py +2 -7
  84. cribl_control_plane/models/nodeactiveupgradestatus.py +1 -2
  85. cribl_control_plane/models/nodefailedupgradestatus.py +1 -2
  86. cribl_control_plane/models/nodeprovidedinfo.py +0 -3
  87. cribl_control_plane/models/nodeskippedupgradestatus.py +1 -2
  88. cribl_control_plane/models/nodeupgradestate.py +1 -2
  89. cribl_control_plane/models/nodeupgradestatus.py +5 -13
  90. cribl_control_plane/models/outputazureblob.py +18 -48
  91. cribl_control_plane/models/outputazuredataexplorer.py +28 -73
  92. cribl_control_plane/models/outputazureeventhub.py +18 -40
  93. cribl_control_plane/models/outputazurelogs.py +12 -35
  94. cribl_control_plane/models/outputclickhouse.py +20 -55
  95. cribl_control_plane/models/outputcloudwatch.py +10 -29
  96. cribl_control_plane/models/outputconfluentcloud.py +32 -77
  97. cribl_control_plane/models/outputcriblhttp.py +16 -44
  98. cribl_control_plane/models/outputcribllake.py +16 -46
  99. cribl_control_plane/models/outputcribltcp.py +18 -45
  100. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +14 -49
  101. cribl_control_plane/models/outputdatadog.py +20 -48
  102. cribl_control_plane/models/outputdataset.py +18 -46
  103. cribl_control_plane/models/outputdiskspool.py +2 -7
  104. cribl_control_plane/models/outputdls3.py +24 -68
  105. cribl_control_plane/models/outputdynatracehttp.py +20 -53
  106. cribl_control_plane/models/outputdynatraceotlp.py +22 -55
  107. cribl_control_plane/models/outputelastic.py +18 -43
  108. cribl_control_plane/models/outputelasticcloud.py +12 -36
  109. cribl_control_plane/models/outputexabeam.py +10 -29
  110. cribl_control_plane/models/outputfilesystem.py +14 -39
  111. cribl_control_plane/models/outputgooglechronicle.py +16 -50
  112. cribl_control_plane/models/outputgooglecloudlogging.py +14 -41
  113. cribl_control_plane/models/outputgooglecloudstorage.py +24 -66
  114. cribl_control_plane/models/outputgooglepubsub.py +10 -31
  115. cribl_control_plane/models/outputgrafanacloud.py +32 -97
  116. cribl_control_plane/models/outputgraphite.py +14 -31
  117. cribl_control_plane/models/outputhoneycomb.py +12 -35
  118. cribl_control_plane/models/outputhumiohec.py +16 -43
  119. cribl_control_plane/models/outputinfluxdb.py +16 -42
  120. cribl_control_plane/models/outputkafka.py +28 -74
  121. cribl_control_plane/models/outputkinesis.py +16 -40
  122. cribl_control_plane/models/outputloki.py +16 -41
  123. cribl_control_plane/models/outputminio.py +24 -65
  124. cribl_control_plane/models/outputmsk.py +30 -82
  125. cribl_control_plane/models/outputnewrelic.py +18 -43
  126. cribl_control_plane/models/outputnewrelicevents.py +14 -41
  127. cribl_control_plane/models/outputopentelemetry.py +26 -67
  128. cribl_control_plane/models/outputprometheus.py +12 -35
  129. cribl_control_plane/models/outputring.py +8 -19
  130. cribl_control_plane/models/outputs3.py +26 -68
  131. cribl_control_plane/models/outputsecuritylake.py +18 -52
  132. cribl_control_plane/models/outputsentinel.py +18 -45
  133. cribl_control_plane/models/outputsentineloneaisiem.py +18 -50
  134. cribl_control_plane/models/outputservicenow.py +24 -60
  135. cribl_control_plane/models/outputsignalfx.py +14 -37
  136. cribl_control_plane/models/outputsns.py +14 -36
  137. cribl_control_plane/models/outputsplunk.py +24 -60
  138. cribl_control_plane/models/outputsplunkhec.py +12 -35
  139. cribl_control_plane/models/outputsplunklb.py +30 -77
  140. cribl_control_plane/models/outputsqs.py +16 -41
  141. cribl_control_plane/models/outputstatsd.py +14 -30
  142. cribl_control_plane/models/outputstatsdext.py +12 -29
  143. cribl_control_plane/models/outputsumologic.py +12 -35
  144. cribl_control_plane/models/outputsyslog.py +24 -58
  145. cribl_control_plane/models/outputtcpjson.py +20 -52
  146. cribl_control_plane/models/outputwavefront.py +12 -35
  147. cribl_control_plane/models/outputwebhook.py +22 -58
  148. cribl_control_plane/models/outputxsiam.py +14 -35
  149. cribl_control_plane/models/productscore.py +1 -2
  150. cribl_control_plane/models/rbacresource.py +1 -2
  151. cribl_control_plane/models/resourcepolicy.py +2 -4
  152. cribl_control_plane/models/routecloneconf.py +13 -0
  153. cribl_control_plane/models/routeconf.py +4 -3
  154. cribl_control_plane/models/runnablejobcollection.py +13 -30
  155. cribl_control_plane/models/runnablejobexecutor.py +4 -13
  156. cribl_control_plane/models/runnablejobscheduledsearch.py +2 -7
  157. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +2 -8
  158. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +2 -8
  159. cribl_control_plane/models/workertypes.py +1 -2
  160. cribl_control_plane/sdk.py +2 -2
  161. cribl_control_plane/utils/annotations.py +32 -8
  162. {cribl_control_plane-0.0.48a1.dist-info → cribl_control_plane-0.0.49.dist-info}/METADATA +2 -1
  163. {cribl_control_plane-0.0.48a1.dist-info → cribl_control_plane-0.0.49.dist-info}/RECORD +164 -162
  164. {cribl_control_plane-0.0.48a1.dist-info → cribl_control_plane-0.0.49.dist-info}/WHEEL +0 -0
@@ -5,13 +5,7 @@ from .configgroup import ConfigGroup, ConfigGroupTypedDict
5
5
  from .deployrequest import DeployRequest, DeployRequestTypedDict
6
6
  from .productscore import ProductsCore
7
7
  from cribl_control_plane.types import BaseModel
8
- from cribl_control_plane.utils import (
9
- FieldMetadata,
10
- PathParamMetadata,
11
- RequestMetadata,
12
- validate_open_enum,
13
- )
14
- from pydantic.functional_validators import PlainValidator
8
+ from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
15
9
  from typing import List, Optional
16
10
  from typing_extensions import Annotated, NotRequired, TypedDict
17
11
 
@@ -27,7 +21,7 @@ class UpdateConfigGroupDeployByProductAndIDRequestTypedDict(TypedDict):
27
21
 
28
22
  class UpdateConfigGroupDeployByProductAndIDRequest(BaseModel):
29
23
  product: Annotated[
30
- Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
24
+ ProductsCore,
31
25
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
32
26
  ]
33
27
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -1,10 +1,9 @@
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
5
4
  from enum import Enum
6
5
 
7
6
 
8
- class WorkerTypes(str, Enum, metaclass=utils.OpenEnumMeta):
7
+ class WorkerTypes(str, Enum):
9
8
  WORKER = "worker"
10
9
  MANAGED_EDGE = "managed-edge"
@@ -88,7 +88,7 @@ class CriblControlPlane(BaseSDK):
88
88
  """
89
89
  client_supplied = True
90
90
  if client is None:
91
- client = httpx.Client()
91
+ client = httpx.Client(follow_redirects=True)
92
92
  client_supplied = False
93
93
 
94
94
  assert issubclass(
@@ -97,7 +97,7 @@ class CriblControlPlane(BaseSDK):
97
97
 
98
98
  async_client_supplied = True
99
99
  if async_client is None:
100
- async_client = httpx.AsyncClient()
100
+ async_client = httpx.AsyncClient(follow_redirects=True)
101
101
  async_client_supplied = False
102
102
 
103
103
  if debug_logger is None:
@@ -3,6 +3,7 @@
3
3
  from enum import Enum
4
4
  from typing import Any, Optional
5
5
 
6
+
6
7
  def get_discriminator(model: Any, fieldname: str, key: str) -> str:
7
8
  """
8
9
  Recursively search for the discriminator attribute in a model.
@@ -25,31 +26,54 @@ def get_discriminator(model: Any, fieldname: str, key: str) -> str:
25
26
 
26
27
  if isinstance(field, dict):
27
28
  if key in field:
28
- return f'{field[key]}'
29
+ return f"{field[key]}"
29
30
 
30
31
  if hasattr(field, fieldname):
31
32
  attr = getattr(field, fieldname)
32
33
  if isinstance(attr, Enum):
33
- return f'{attr.value}'
34
- return f'{attr}'
34
+ return f"{attr.value}"
35
+ return f"{attr}"
35
36
 
36
37
  if hasattr(field, upper_fieldname):
37
38
  attr = getattr(field, upper_fieldname)
38
39
  if isinstance(attr, Enum):
39
- return f'{attr.value}'
40
- return f'{attr}'
40
+ return f"{attr.value}"
41
+ return f"{attr}"
41
42
 
42
43
  return None
43
44
 
45
+ def search_nested_discriminator(obj: Any) -> Optional[str]:
46
+ """Recursively search for discriminator in nested structures."""
47
+ # First try direct field lookup
48
+ discriminator = get_field_discriminator(obj)
49
+ if discriminator is not None:
50
+ return discriminator
51
+
52
+ # If it's a dict, search in nested values
53
+ if isinstance(obj, dict):
54
+ for value in obj.values():
55
+ if isinstance(value, list):
56
+ # Search in list items
57
+ for item in value:
58
+ nested_discriminator = search_nested_discriminator(item)
59
+ if nested_discriminator is not None:
60
+ return nested_discriminator
61
+ elif isinstance(value, dict):
62
+ # Search in nested dict
63
+ nested_discriminator = search_nested_discriminator(value)
64
+ if nested_discriminator is not None:
65
+ return nested_discriminator
66
+
67
+ return None
44
68
 
45
69
  if isinstance(model, list):
46
70
  for field in model:
47
- discriminator = get_field_discriminator(field)
71
+ discriminator = search_nested_discriminator(field)
48
72
  if discriminator is not None:
49
73
  return discriminator
50
74
 
51
- discriminator = get_field_discriminator(model)
75
+ discriminator = search_nested_discriminator(model)
52
76
  if discriminator is not None:
53
77
  return discriminator
54
78
 
55
- raise ValueError(f'Could not find discriminator field {fieldname} in {model}')
79
+ raise ValueError(f"Could not find discriminator field {fieldname} in {model}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cribl-control-plane
3
- Version: 0.0.48a1
3
+ Version: 0.0.49
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -176,6 +176,7 @@ with CriblControlPlane(
176
176
  </br>
177
177
 
178
178
  The same SDK client can also be used to make asynchronous requests by importing asyncio.
179
+
179
180
  ```python
180
181
  # Asynchronous Example
181
182
  import asyncio