Lines Matching full:kind
105 kind = 'singleResource'
107 kind = 'resourceInstance'
109 return self.put(f'/clients/{endpoint}/{path}', self._define_resource(rid, value, kind))
177 "kind": "instance",
183 kind = 'multiResource'
185 kind = 'singleResource'
186 data['resources'].append(cls._define_resource(key, value, kind))
190 def _define_resource(cls, rid, value, kind='singleResource'): argument
192 if kind in ('singleResource', 'resourceInstance'):
195 "kind": kind,
199 if kind == 'multiResource':
202 "kind": kind,
206 raise RuntimeError(f'Unhandled type {kind}')
224 if content['kind'] == 'singleResource' or content['kind'] == 'resourceInstance':
226 elif content['kind'] == 'multiResource':
231 raise RuntimeError(f'Unhandled type {content["kind"]}')
259 if content['kind'] == 'obj':
261 elif content['kind'] == 'instance':
263 elif content['kind'] == 'singleResource' or content['kind'] == 'resourceInstance':
265 elif content['kind'] == 'multiResource':
267 raise RuntimeError(f'Unhandled type {content["kind"]}')
353 value = self._define_resource(rid, value, kind='multiResource')
357 value = self._define_resource(rid, value, kind='resourceInstance')
459 … if event == 'SEND' or (event == 'NOTIFICATION' and data['kind'] == 'composite'):