MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / get_result

Function get_result

misc/python/materialize/redpanda_cloud.py:17–24  ·  view source on GitHub ↗
(response: requests.Response)

Source from the content-addressed store, hash-verified

15
16
17def get_result(response: requests.Response) -> dict[str, Any]:
18 if response.status_code not in (200, 201, 202):
19 raise ValueError(
20 f"Redpanda API call failed: {response.status_code} {response.text}"
21 )
22 result = response.json()
23 # Don't print result since it can contain access tokens
24 return result
25
26
27class RedpandaCluster:

Callers 7

createMethod · 0.85
__init__Method · 0.85
waitMethod · 0.85
createMethod · 0.85
patchMethod · 0.85
getMethod · 0.85
deleteMethod · 0.85

Calls 2

ValueErrorClass · 0.85
jsonMethod · 0.45

Tested by

no test coverage detected