MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / __init__

Method __init__

couchbase/result.py:174–187  ·  view source on GitHub ↗
(
        self,
        orig,  # type: pycbc_result
    )

Source from the content-addressed store, hash-verified

172class DiagnosticsResult(Result):
173
174 def __init__(
175 self,
176 orig, # type: pycbc_result
177 ):
178 super().__init__(orig)
179 svc_endpoints = self._orig.raw_result.get('services', None)
180 self._endpoints = {}
181 if svc_endpoints:
182 for service, endpoints in svc_endpoints.items():
183 service_type = ServiceType(service)
184 self._endpoints[service_type] = []
185 for endpoint in endpoints:
186 self._endpoints[service_type].append(
187 EndpointDiagnosticsReport(service_type, endpoint))
188
189 @property
190 def id(self) -> str:

Callers

nothing calls this directly

Calls 6

ServiceTypeClass · 0.90
__init__Method · 0.45
getMethod · 0.45
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected