cribl-control-plane 0.0.26a1__py3-none-any.whl → 0.0.28__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 (132) hide show
  1. cribl_control_plane/_hooks/clientcredentials.py +22 -7
  2. cribl_control_plane/_version.py +4 -4
  3. cribl_control_plane/acl.py +203 -0
  4. cribl_control_plane/auth_sdk.py +9 -176
  5. cribl_control_plane/branches.py +335 -0
  6. cribl_control_plane/commits.py +1141 -0
  7. cribl_control_plane/commits_files.py +371 -0
  8. cribl_control_plane/configs_versions.py +189 -0
  9. cribl_control_plane/destinations.py +18 -729
  10. cribl_control_plane/destinations_pq.py +359 -0
  11. cribl_control_plane/errors/__init__.py +3 -2
  12. cribl_control_plane/errors/healthstatus_error.py +1 -1
  13. cribl_control_plane/groups_configs.py +17 -0
  14. cribl_control_plane/groups_sdk.py +18 -551
  15. cribl_control_plane/{healthinfo.py → health.py} +3 -1
  16. cribl_control_plane/hectokens.py +479 -0
  17. cribl_control_plane/models/__init__.py +6 -37
  18. cribl_control_plane/models/healthstatus.py +3 -3
  19. cribl_control_plane/models/inputappscope.py +5 -5
  20. cribl_control_plane/models/inputcollection.py +2 -2
  21. cribl_control_plane/models/inputconfluentcloud.py +3 -3
  22. cribl_control_plane/models/inputcribl.py +5 -5
  23. cribl_control_plane/models/inputcriblhttp.py +3 -3
  24. cribl_control_plane/models/inputcribllakehttp.py +3 -3
  25. cribl_control_plane/models/inputcriblmetrics.py +5 -5
  26. cribl_control_plane/models/inputcribltcp.py +3 -3
  27. cribl_control_plane/models/inputdatadogagent.py +3 -3
  28. cribl_control_plane/models/inputedgeprometheus.py +3 -3
  29. cribl_control_plane/models/inputelastic.py +3 -3
  30. cribl_control_plane/models/inputeventhub.py +3 -3
  31. cribl_control_plane/models/inputfile.py +5 -5
  32. cribl_control_plane/models/inputfirehose.py +3 -3
  33. cribl_control_plane/models/inputgooglepubsub.py +3 -3
  34. cribl_control_plane/models/inputgrafana.py +6 -6
  35. cribl_control_plane/models/inputhttp.py +3 -3
  36. cribl_control_plane/models/inputhttpraw.py +3 -3
  37. cribl_control_plane/models/inputjournalfiles.py +3 -3
  38. cribl_control_plane/models/inputkafka.py +3 -3
  39. cribl_control_plane/models/inputkinesis.py +3 -3
  40. cribl_control_plane/models/inputkubeevents.py +5 -5
  41. cribl_control_plane/models/inputkubelogs.py +5 -5
  42. cribl_control_plane/models/inputkubemetrics.py +5 -5
  43. cribl_control_plane/models/inputloki.py +3 -3
  44. cribl_control_plane/models/inputmodeldriventelemetry.py +3 -3
  45. cribl_control_plane/models/inputmsk.py +3 -3
  46. cribl_control_plane/models/inputnetflow.py +3 -3
  47. cribl_control_plane/models/inputoffice365mgmt.py +3 -3
  48. cribl_control_plane/models/inputoffice365msgtrace.py +3 -3
  49. cribl_control_plane/models/inputoffice365service.py +3 -3
  50. cribl_control_plane/models/inputopentelemetry.py +3 -3
  51. cribl_control_plane/models/inputprometheus.py +3 -3
  52. cribl_control_plane/models/inputprometheusrw.py +3 -3
  53. cribl_control_plane/models/inputrawudp.py +3 -3
  54. cribl_control_plane/models/inputsnmp.py +3 -3
  55. cribl_control_plane/models/inputsplunk.py +3 -3
  56. cribl_control_plane/models/inputsplunkhec.py +3 -3
  57. cribl_control_plane/models/inputsplunksearch.py +3 -3
  58. cribl_control_plane/models/inputsqs.py +3 -3
  59. cribl_control_plane/models/inputsystemmetrics.py +5 -5
  60. cribl_control_plane/models/inputsystemstate.py +5 -5
  61. cribl_control_plane/models/inputtcp.py +3 -3
  62. cribl_control_plane/models/inputtcpjson.py +3 -3
  63. cribl_control_plane/models/inputwef.py +3 -3
  64. cribl_control_plane/models/inputwindowsmetrics.py +5 -5
  65. cribl_control_plane/models/inputwiz.py +3 -3
  66. cribl_control_plane/models/inputzscalerhec.py +3 -3
  67. cribl_control_plane/models/outputazureblob.py +3 -3
  68. cribl_control_plane/models/outputazuredataexplorer.py +3 -3
  69. cribl_control_plane/models/outputazureeventhub.py +3 -3
  70. cribl_control_plane/models/outputclickhouse.py +3 -3
  71. cribl_control_plane/models/outputcloudwatch.py +3 -3
  72. cribl_control_plane/models/outputconfluentcloud.py +3 -3
  73. cribl_control_plane/models/outputcriblhttp.py +5 -5
  74. cribl_control_plane/models/outputcribllake.py +5 -5
  75. cribl_control_plane/models/outputcribltcp.py +5 -5
  76. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +3 -3
  77. cribl_control_plane/models/outputdatadog.py +5 -5
  78. cribl_control_plane/models/outputdataset.py +5 -5
  79. cribl_control_plane/models/outputdevnull.py +5 -5
  80. cribl_control_plane/models/outputdiskspool.py +5 -5
  81. cribl_control_plane/models/outputdls3.py +3 -3
  82. cribl_control_plane/models/outputdynatracehttp.py +3 -3
  83. cribl_control_plane/models/outputdynatraceotlp.py +3 -3
  84. cribl_control_plane/models/outputelasticcloud.py +3 -3
  85. cribl_control_plane/models/outputexabeam.py +3 -3
  86. cribl_control_plane/models/outputgooglecloudlogging.py +3 -3
  87. cribl_control_plane/models/outputgooglecloudstorage.py +3 -3
  88. cribl_control_plane/models/outputgrafanacloud.py +10 -10
  89. cribl_control_plane/models/outputgraphite.py +3 -3
  90. cribl_control_plane/models/outputhumiohec.py +3 -3
  91. cribl_control_plane/models/outputkafka.py +3 -3
  92. cribl_control_plane/models/outputkinesis.py +3 -3
  93. cribl_control_plane/models/outputminio.py +3 -3
  94. cribl_control_plane/models/outputmsk.py +3 -3
  95. cribl_control_plane/models/outputnewrelic.py +5 -5
  96. cribl_control_plane/models/outputnewrelicevents.py +3 -3
  97. cribl_control_plane/models/outputring.py +5 -5
  98. cribl_control_plane/models/outputs3.py +3 -3
  99. cribl_control_plane/models/outputsecuritylake.py +3 -3
  100. cribl_control_plane/models/outputsentinel.py +3 -3
  101. cribl_control_plane/models/outputsentineloneaisiem.py +3 -3
  102. cribl_control_plane/models/outputservicenow.py +3 -3
  103. cribl_control_plane/models/outputsns.py +3 -3
  104. cribl_control_plane/models/outputsplunk.py +3 -3
  105. cribl_control_plane/models/outputsplunkhec.py +5 -5
  106. cribl_control_plane/models/outputsqs.py +3 -3
  107. cribl_control_plane/models/outputstatsd.py +3 -3
  108. cribl_control_plane/models/outputstatsdext.py +3 -3
  109. cribl_control_plane/models/outputsyslog.py +5 -5
  110. cribl_control_plane/models/outputtcpjson.py +5 -5
  111. cribl_control_plane/models/outputwebhook.py +5 -5
  112. cribl_control_plane/models/outputxsiam.py +5 -5
  113. cribl_control_plane/models/schemeclientoauth.py +5 -0
  114. cribl_control_plane/nodes.py +90 -68
  115. cribl_control_plane/samples.py +391 -0
  116. cribl_control_plane/sdk.py +11 -17
  117. cribl_control_plane/sources.py +15 -469
  118. cribl_control_plane/{workers_sdk.py → statuses.py} +23 -25
  119. cribl_control_plane/{deployments.py → summaries.py} +3 -3
  120. cribl_control_plane/teams.py +201 -0
  121. cribl_control_plane/tokens.py +182 -0
  122. cribl_control_plane/utils/__init__.py +3 -2
  123. cribl_control_plane/utils/security.py +5 -0
  124. cribl_control_plane/versions.py +26 -0
  125. cribl_control_plane/versions_configs.py +171 -0
  126. {cribl_control_plane-0.0.26a1.dist-info → cribl_control_plane-0.0.28.dist-info}/METADATA +77 -38
  127. {cribl_control_plane-0.0.26a1.dist-info → cribl_control_plane-0.0.28.dist-info}/RECORD +128 -119
  128. cribl_control_plane/models/createversionsyncop.py +0 -23
  129. cribl_control_plane/models/restartresponse.py +0 -26
  130. cribl_control_plane/models/updateworkersrestartop.py +0 -24
  131. cribl_control_plane/versioning.py +0 -2309
  132. {cribl_control_plane-0.0.26a1.dist-info → cribl_control_plane-0.0.28.dist-info}/WHEEL +0 -0
@@ -73,11 +73,11 @@ class OutputSqsPqControls(BaseModel):
73
73
 
74
74
 
75
75
  class OutputSqsTypedDict(TypedDict):
76
+ type: OutputSqsType
76
77
  queue_name: str
77
78
  r"""The name, URL, or ARN of the SQS queue to send events to. When a non-AWS URL is specified, format must be: '{url}/myQueueName'. Example: 'https://host:port/myQueueName'. Must be a JavaScript expression (which can evaluate to a constant value), enclosed in quotes or backticks. Can be evaluated only at init time. Example referencing a Global Variable: `https://host:port/myQueue-${C.vars.myVar}`."""
78
79
  id: NotRequired[str]
79
80
  r"""Unique ID for this output"""
80
- type: NotRequired[OutputSqsType]
81
81
  pipeline: NotRequired[str]
82
82
  r"""Pipeline to process data before sending out to this output"""
83
83
  system_fields: NotRequired[List[str]]
@@ -145,14 +145,14 @@ class OutputSqsTypedDict(TypedDict):
145
145
 
146
146
 
147
147
  class OutputSqs(BaseModel):
148
+ type: OutputSqsType
149
+
148
150
  queue_name: Annotated[str, pydantic.Field(alias="queueName")]
149
151
  r"""The name, URL, or ARN of the SQS queue to send events to. When a non-AWS URL is specified, format must be: '{url}/myQueueName'. Example: 'https://host:port/myQueueName'. Must be a JavaScript expression (which can evaluate to a constant value), enclosed in quotes or backticks. Can be evaluated only at init time. Example referencing a Global Variable: `https://host:port/myQueue-${C.vars.myVar}`."""
150
152
 
151
153
  id: Optional[str] = None
152
154
  r"""Unique ID for this output"""
153
155
 
154
- type: Optional[OutputSqsType] = None
155
-
156
156
  pipeline: Optional[str] = None
157
157
  r"""Pipeline to process data before sending out to this output"""
158
158
 
@@ -58,11 +58,11 @@ class OutputStatsdPqControls(BaseModel):
58
58
 
59
59
 
60
60
  class OutputStatsdTypedDict(TypedDict):
61
+ type: OutputStatsdType
61
62
  host: str
62
63
  r"""The hostname of the destination."""
63
64
  id: NotRequired[str]
64
65
  r"""Unique ID for this output"""
65
- type: NotRequired[OutputStatsdType]
66
66
  pipeline: NotRequired[str]
67
67
  r"""Pipeline to process data before sending out to this output"""
68
68
  system_fields: NotRequired[List[str]]
@@ -106,14 +106,14 @@ class OutputStatsdTypedDict(TypedDict):
106
106
 
107
107
 
108
108
  class OutputStatsd(BaseModel):
109
+ type: OutputStatsdType
110
+
109
111
  host: str
110
112
  r"""The hostname of the destination."""
111
113
 
112
114
  id: Optional[str] = None
113
115
  r"""Unique ID for this output"""
114
116
 
115
- type: Optional[OutputStatsdType] = None
116
-
117
117
  pipeline: Optional[str] = None
118
118
  r"""Pipeline to process data before sending out to this output"""
119
119
 
@@ -58,11 +58,11 @@ class OutputStatsdExtPqControls(BaseModel):
58
58
 
59
59
 
60
60
  class OutputStatsdExtTypedDict(TypedDict):
61
+ type: OutputStatsdExtType
61
62
  host: str
62
63
  r"""The hostname of the destination."""
63
64
  id: NotRequired[str]
64
65
  r"""Unique ID for this output"""
65
- type: NotRequired[OutputStatsdExtType]
66
66
  pipeline: NotRequired[str]
67
67
  r"""Pipeline to process data before sending out to this output"""
68
68
  system_fields: NotRequired[List[str]]
@@ -106,14 +106,14 @@ class OutputStatsdExtTypedDict(TypedDict):
106
106
 
107
107
 
108
108
  class OutputStatsdExt(BaseModel):
109
+ type: OutputStatsdExtType
110
+
109
111
  host: str
110
112
  r"""The hostname of the destination."""
111
113
 
112
114
  id: Optional[str] = None
113
115
  r"""Unique ID for this output"""
114
116
 
115
- type: Optional[OutputStatsdExtType] = None
116
-
117
117
  pipeline: Optional[str] = None
118
118
  r"""Pipeline to process data before sending out to this output"""
119
119
 
@@ -187,9 +187,9 @@ class OutputSyslogPqControls(BaseModel):
187
187
 
188
188
 
189
189
  class OutputSyslogTypedDict(TypedDict):
190
- id: str
191
- r"""Unique ID for this output"""
192
190
  type: OutputSyslogType
191
+ id: NotRequired[str]
192
+ r"""Unique ID for this output"""
193
193
  pipeline: NotRequired[str]
194
194
  r"""Pipeline to process data before sending out to this output"""
195
195
  system_fields: NotRequired[List[str]]
@@ -250,11 +250,11 @@ class OutputSyslogTypedDict(TypedDict):
250
250
 
251
251
 
252
252
  class OutputSyslog(BaseModel):
253
- id: str
254
- r"""Unique ID for this output"""
255
-
256
253
  type: OutputSyslogType
257
254
 
255
+ id: Optional[str] = None
256
+ r"""Unique ID for this output"""
257
+
258
258
  pipeline: Optional[str] = None
259
259
  r"""Pipeline to process data before sending out to this output"""
260
260
 
@@ -177,9 +177,9 @@ class OutputTcpjsonPqControls(BaseModel):
177
177
 
178
178
 
179
179
  class OutputTcpjsonTypedDict(TypedDict):
180
- id: str
181
- r"""Unique ID for this output"""
182
180
  type: OutputTcpjsonType
181
+ id: NotRequired[str]
182
+ r"""Unique ID for this output"""
183
183
  pipeline: NotRequired[str]
184
184
  r"""Pipeline to process data before sending out to this output"""
185
185
  system_fields: NotRequired[List[str]]
@@ -244,11 +244,11 @@ class OutputTcpjsonTypedDict(TypedDict):
244
244
 
245
245
 
246
246
  class OutputTcpjson(BaseModel):
247
- id: str
248
- r"""Unique ID for this output"""
249
-
250
247
  type: OutputTcpjsonType
251
248
 
249
+ id: Optional[str] = None
250
+ r"""Unique ID for this output"""
251
+
252
252
  pipeline: Optional[str] = None
253
253
  r"""Pipeline to process data before sending out to this output"""
254
254
 
@@ -261,9 +261,9 @@ class OutputWebhookURL(BaseModel):
261
261
 
262
262
 
263
263
  class OutputWebhookTypedDict(TypedDict):
264
- id: str
265
- r"""Unique ID for this output"""
266
264
  type: OutputWebhookType
265
+ id: NotRequired[str]
266
+ r"""Unique ID for this output"""
267
267
  pipeline: NotRequired[str]
268
268
  r"""Pipeline to process data before sending out to this output"""
269
269
  system_fields: NotRequired[List[str]]
@@ -385,11 +385,11 @@ class OutputWebhookTypedDict(TypedDict):
385
385
 
386
386
 
387
387
  class OutputWebhook(BaseModel):
388
- id: str
389
- r"""Unique ID for this output"""
390
-
391
388
  type: OutputWebhookType
392
389
 
390
+ id: Optional[str] = None
391
+ r"""Unique ID for this output"""
392
+
393
393
  pipeline: Optional[str] = None
394
394
  r"""Pipeline to process data before sending out to this output"""
395
395
 
@@ -144,9 +144,9 @@ class OutputXsiamPqControls(BaseModel):
144
144
 
145
145
 
146
146
  class OutputXsiamTypedDict(TypedDict):
147
- id: str
148
- r"""Unique ID for this output"""
149
147
  type: OutputXsiamType
148
+ id: NotRequired[str]
149
+ r"""Unique ID for this output"""
150
150
  pipeline: NotRequired[str]
151
151
  r"""Pipeline to process data before sending out to this output"""
152
152
  system_fields: NotRequired[List[str]]
@@ -223,11 +223,11 @@ class OutputXsiamTypedDict(TypedDict):
223
223
 
224
224
 
225
225
  class OutputXsiam(BaseModel):
226
- id: str
227
- r"""Unique ID for this output"""
228
-
229
226
  type: OutputXsiamType
230
227
 
228
+ id: Optional[str] = None
229
+ r"""Unique ID for this output"""
230
+
231
231
  pipeline: Optional[str] = None
232
232
  r"""Pipeline to process data before sending out to this output"""
233
233
 
@@ -9,6 +9,7 @@ from typing_extensions import Annotated, TypedDict
9
9
  class SchemeClientOauthTypedDict(TypedDict):
10
10
  client_id: str
11
11
  client_secret: str
12
+ audience: str
12
13
  token_url: str
13
14
 
14
15
 
@@ -21,4 +22,8 @@ class SchemeClientOauth(BaseModel):
21
22
  str, FieldMetadata(security=SecurityMetadata(field_name="clientSecret"))
22
23
  ]
23
24
 
25
+ audience: Annotated[
26
+ str, FieldMetadata(security=SecurityMetadata(field_name="audience"))
27
+ ]
28
+
24
29
  token_url: str = "https://login.cribl.cloud/oauth/token"
@@ -1,8 +1,10 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from .basesdk import BaseSDK
4
+ from .sdkconfiguration import SDKConfiguration
4
5
  from cribl_control_plane import errors, models, utils
5
6
  from cribl_control_plane._hooks import HookContext
7
+ from cribl_control_plane.summaries import Summaries
6
8
  from cribl_control_plane.types import OptionalNullable, UNSET
7
9
  from cribl_control_plane.utils import get_security_from_env
8
10
  from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
@@ -10,30 +12,30 @@ from typing import Any, Mapping, Optional
10
12
 
11
13
 
12
14
  class Nodes(BaseSDK):
13
- def list(
15
+ summaries: Summaries
16
+
17
+ def __init__(self, sdk_config: SDKConfiguration) -> None:
18
+ BaseSDK.__init__(self, sdk_config)
19
+ self.sdk_configuration = sdk_config
20
+ self._init_sdks()
21
+
22
+ def _init_sdks(self):
23
+ self.summaries = Summaries(self.sdk_configuration)
24
+
25
+ def count(
14
26
  self,
15
27
  *,
16
28
  filter_exp: Optional[str] = None,
17
- sort: Optional[str] = None,
18
- sort_exp: Optional[str] = None,
19
- limit: Optional[int] = None,
20
- offset: Optional[int] = None,
21
- filter_: Optional[str] = None,
22
29
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
23
30
  server_url: Optional[str] = None,
24
31
  timeout_ms: Optional[int] = None,
25
32
  http_headers: Optional[Mapping[str, str]] = None,
26
- ) -> models.GetWorkersResponse:
27
- r"""Retrieve detailed metadata for Worker and Edge Nodes
33
+ ) -> models.GetSummaryWorkersResponse:
34
+ r"""Retrieve a count of Worker and Edge Nodes
28
35
 
29
- get worker and edge nodes
36
+ get worker and edge nodes count
30
37
 
31
38
  :param filter_exp: Filter expression evaluated against nodes
32
- :param sort: Sorting object (JSON stringified) expression evaluated against nodes
33
- :param sort_exp: Sorting expression evaluated against nodes
34
- :param limit: Maximum number of nodes to return
35
- :param offset: Pagination offset
36
- :param filter_: Filter object (JSON stringified) to select nodes
37
39
  :param retries: Override the default retry configuration for this method
38
40
  :param server_url: Override the default server URL for this method
39
41
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -49,18 +51,13 @@ class Nodes(BaseSDK):
49
51
  else:
50
52
  base_url = self._get_url(base_url, url_variables)
51
53
 
52
- request = models.GetWorkersRequest(
54
+ request = models.GetSummaryWorkersRequest(
53
55
  filter_exp=filter_exp,
54
- sort=sort,
55
- sort_exp=sort_exp,
56
- limit=limit,
57
- offset=offset,
58
- filter_=filter_,
59
56
  )
60
57
 
61
58
  req = self._build_request(
62
59
  method="GET",
63
- path="/master/workers",
60
+ path="/master/summary/workers",
64
61
  base_url=base_url,
65
62
  url_variables=url_variables,
66
63
  request=request,
@@ -86,7 +83,7 @@ class Nodes(BaseSDK):
86
83
  hook_ctx=HookContext(
87
84
  config=self.sdk_configuration,
88
85
  base_url=base_url or "",
89
- operation_id="getWorkers",
86
+ operation_id="getSummaryWorkers",
90
87
  oauth2_scopes=[],
91
88
  security_source=get_security_from_env(
92
89
  self.sdk_configuration.security, models.Security
@@ -99,7 +96,7 @@ class Nodes(BaseSDK):
99
96
 
100
97
  response_data: Any = None
101
98
  if utils.match_response(http_res, "200", "application/json"):
102
- return unmarshal_json_response(models.GetWorkersResponse, http_res)
99
+ return unmarshal_json_response(models.GetSummaryWorkersResponse, http_res)
103
100
  if utils.match_response(http_res, "500", "application/json"):
104
101
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
105
102
  raise errors.Error(response_data, http_res)
@@ -112,30 +109,20 @@ class Nodes(BaseSDK):
112
109
 
113
110
  raise errors.APIError("Unexpected response received", http_res)
114
111
 
115
- async def list_async(
112
+ async def count_async(
116
113
  self,
117
114
  *,
118
115
  filter_exp: Optional[str] = None,
119
- sort: Optional[str] = None,
120
- sort_exp: Optional[str] = None,
121
- limit: Optional[int] = None,
122
- offset: Optional[int] = None,
123
- filter_: Optional[str] = None,
124
116
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
125
117
  server_url: Optional[str] = None,
126
118
  timeout_ms: Optional[int] = None,
127
119
  http_headers: Optional[Mapping[str, str]] = None,
128
- ) -> models.GetWorkersResponse:
129
- r"""Retrieve detailed metadata for Worker and Edge Nodes
120
+ ) -> models.GetSummaryWorkersResponse:
121
+ r"""Retrieve a count of Worker and Edge Nodes
130
122
 
131
- get worker and edge nodes
123
+ get worker and edge nodes count
132
124
 
133
125
  :param filter_exp: Filter expression evaluated against nodes
134
- :param sort: Sorting object (JSON stringified) expression evaluated against nodes
135
- :param sort_exp: Sorting expression evaluated against nodes
136
- :param limit: Maximum number of nodes to return
137
- :param offset: Pagination offset
138
- :param filter_: Filter object (JSON stringified) to select nodes
139
126
  :param retries: Override the default retry configuration for this method
140
127
  :param server_url: Override the default server URL for this method
141
128
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -151,18 +138,13 @@ class Nodes(BaseSDK):
151
138
  else:
152
139
  base_url = self._get_url(base_url, url_variables)
153
140
 
154
- request = models.GetWorkersRequest(
141
+ request = models.GetSummaryWorkersRequest(
155
142
  filter_exp=filter_exp,
156
- sort=sort,
157
- sort_exp=sort_exp,
158
- limit=limit,
159
- offset=offset,
160
- filter_=filter_,
161
143
  )
162
144
 
163
145
  req = self._build_request_async(
164
146
  method="GET",
165
- path="/master/workers",
147
+ path="/master/summary/workers",
166
148
  base_url=base_url,
167
149
  url_variables=url_variables,
168
150
  request=request,
@@ -188,7 +170,7 @@ class Nodes(BaseSDK):
188
170
  hook_ctx=HookContext(
189
171
  config=self.sdk_configuration,
190
172
  base_url=base_url or "",
191
- operation_id="getWorkers",
173
+ operation_id="getSummaryWorkers",
192
174
  oauth2_scopes=[],
193
175
  security_source=get_security_from_env(
194
176
  self.sdk_configuration.security, models.Security
@@ -201,7 +183,7 @@ class Nodes(BaseSDK):
201
183
 
202
184
  response_data: Any = None
203
185
  if utils.match_response(http_res, "200", "application/json"):
204
- return unmarshal_json_response(models.GetWorkersResponse, http_res)
186
+ return unmarshal_json_response(models.GetSummaryWorkersResponse, http_res)
205
187
  if utils.match_response(http_res, "500", "application/json"):
206
188
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
207
189
  raise errors.Error(response_data, http_res)
@@ -214,18 +196,30 @@ class Nodes(BaseSDK):
214
196
 
215
197
  raise errors.APIError("Unexpected response received", http_res)
216
198
 
217
- def restart(
199
+ def list(
218
200
  self,
219
201
  *,
202
+ filter_exp: Optional[str] = None,
203
+ sort: Optional[str] = None,
204
+ sort_exp: Optional[str] = None,
205
+ limit: Optional[int] = None,
206
+ offset: Optional[int] = None,
207
+ filter_: Optional[str] = None,
220
208
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
221
209
  server_url: Optional[str] = None,
222
210
  timeout_ms: Optional[int] = None,
223
211
  http_headers: Optional[Mapping[str, str]] = None,
224
- ) -> models.UpdateWorkersRestartResponse:
225
- r"""Restart Worker and Edge Nodes
212
+ ) -> models.GetWorkersResponse:
213
+ r"""Retrieve detailed metadata for Worker and Edge Nodes
226
214
 
227
- restarts worker nodes
215
+ get worker and edge nodes
228
216
 
217
+ :param filter_exp: Filter expression evaluated against nodes
218
+ :param sort: Sorting object (JSON stringified) expression evaluated against nodes
219
+ :param sort_exp: Sorting expression evaluated against nodes
220
+ :param limit: Maximum number of nodes to return
221
+ :param offset: Pagination offset
222
+ :param filter_: Filter object (JSON stringified) to select nodes
229
223
  :param retries: Override the default retry configuration for this method
230
224
  :param server_url: Override the default server URL for this method
231
225
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -240,12 +234,22 @@ class Nodes(BaseSDK):
240
234
  base_url = server_url
241
235
  else:
242
236
  base_url = self._get_url(base_url, url_variables)
237
+
238
+ request = models.GetWorkersRequest(
239
+ filter_exp=filter_exp,
240
+ sort=sort,
241
+ sort_exp=sort_exp,
242
+ limit=limit,
243
+ offset=offset,
244
+ filter_=filter_,
245
+ )
246
+
243
247
  req = self._build_request(
244
- method="PATCH",
245
- path="/master/workers/restart",
248
+ method="GET",
249
+ path="/master/workers",
246
250
  base_url=base_url,
247
251
  url_variables=url_variables,
248
- request=None,
252
+ request=request,
249
253
  request_body_required=False,
250
254
  request_has_path_params=False,
251
255
  request_has_query_params=True,
@@ -268,7 +272,7 @@ class Nodes(BaseSDK):
268
272
  hook_ctx=HookContext(
269
273
  config=self.sdk_configuration,
270
274
  base_url=base_url or "",
271
- operation_id="updateWorkersRestart",
275
+ operation_id="getWorkers",
272
276
  oauth2_scopes=[],
273
277
  security_source=get_security_from_env(
274
278
  self.sdk_configuration.security, models.Security
@@ -281,9 +285,7 @@ class Nodes(BaseSDK):
281
285
 
282
286
  response_data: Any = None
283
287
  if utils.match_response(http_res, "200", "application/json"):
284
- return unmarshal_json_response(
285
- models.UpdateWorkersRestartResponse, http_res
286
- )
288
+ return unmarshal_json_response(models.GetWorkersResponse, http_res)
287
289
  if utils.match_response(http_res, "500", "application/json"):
288
290
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
289
291
  raise errors.Error(response_data, http_res)
@@ -296,18 +298,30 @@ class Nodes(BaseSDK):
296
298
 
297
299
  raise errors.APIError("Unexpected response received", http_res)
298
300
 
299
- async def restart_async(
301
+ async def list_async(
300
302
  self,
301
303
  *,
304
+ filter_exp: Optional[str] = None,
305
+ sort: Optional[str] = None,
306
+ sort_exp: Optional[str] = None,
307
+ limit: Optional[int] = None,
308
+ offset: Optional[int] = None,
309
+ filter_: Optional[str] = None,
302
310
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
303
311
  server_url: Optional[str] = None,
304
312
  timeout_ms: Optional[int] = None,
305
313
  http_headers: Optional[Mapping[str, str]] = None,
306
- ) -> models.UpdateWorkersRestartResponse:
307
- r"""Restart Worker and Edge Nodes
314
+ ) -> models.GetWorkersResponse:
315
+ r"""Retrieve detailed metadata for Worker and Edge Nodes
308
316
 
309
- restarts worker nodes
317
+ get worker and edge nodes
310
318
 
319
+ :param filter_exp: Filter expression evaluated against nodes
320
+ :param sort: Sorting object (JSON stringified) expression evaluated against nodes
321
+ :param sort_exp: Sorting expression evaluated against nodes
322
+ :param limit: Maximum number of nodes to return
323
+ :param offset: Pagination offset
324
+ :param filter_: Filter object (JSON stringified) to select nodes
311
325
  :param retries: Override the default retry configuration for this method
312
326
  :param server_url: Override the default server URL for this method
313
327
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -322,12 +336,22 @@ class Nodes(BaseSDK):
322
336
  base_url = server_url
323
337
  else:
324
338
  base_url = self._get_url(base_url, url_variables)
339
+
340
+ request = models.GetWorkersRequest(
341
+ filter_exp=filter_exp,
342
+ sort=sort,
343
+ sort_exp=sort_exp,
344
+ limit=limit,
345
+ offset=offset,
346
+ filter_=filter_,
347
+ )
348
+
325
349
  req = self._build_request_async(
326
- method="PATCH",
327
- path="/master/workers/restart",
350
+ method="GET",
351
+ path="/master/workers",
328
352
  base_url=base_url,
329
353
  url_variables=url_variables,
330
- request=None,
354
+ request=request,
331
355
  request_body_required=False,
332
356
  request_has_path_params=False,
333
357
  request_has_query_params=True,
@@ -350,7 +374,7 @@ class Nodes(BaseSDK):
350
374
  hook_ctx=HookContext(
351
375
  config=self.sdk_configuration,
352
376
  base_url=base_url or "",
353
- operation_id="updateWorkersRestart",
377
+ operation_id="getWorkers",
354
378
  oauth2_scopes=[],
355
379
  security_source=get_security_from_env(
356
380
  self.sdk_configuration.security, models.Security
@@ -363,9 +387,7 @@ class Nodes(BaseSDK):
363
387
 
364
388
  response_data: Any = None
365
389
  if utils.match_response(http_res, "200", "application/json"):
366
- return unmarshal_json_response(
367
- models.UpdateWorkersRestartResponse, http_res
368
- )
390
+ return unmarshal_json_response(models.GetWorkersResponse, http_res)
369
391
  if utils.match_response(http_res, "500", "application/json"):
370
392
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
371
393
  raise errors.Error(response_data, http_res)