MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / update_records_v3

Function update_records_v3

keepercommander/api.py:1095–1108  ·  view source on GitHub ↗

Push a record update to the cloud. Takes a Record() object, converts to record JSON and pushes to the Keeper cloud API

(params, rec_list, **kwargs)

Source from the content-addressed store, hash-verified

1093
1094
1095def update_records_v3(params, rec_list, **kwargs): # type: (KeeperParams, List[Record], ...) -> Optional[bool]
1096 """ Push a record update to the cloud.
1097 Takes a Record() object, converts to record JSON
1098 and pushes to the Keeper cloud API
1099 """
1100 rq = get_records_update_request(params)
1101 record_rq_by_uid = {}
1102 for rec in rec_list:
1103 record_rq = get_pb2_record_update(params, rec, **kwargs)
1104 if record_rq:
1105 record_rq_by_uid[rec.record_uid] = record_rq
1106 rq.records.append(record_rq['pb2_record_update'])
1107
1108 return get_record_v3_response(params, rq, 'vault/records_update', record_rq_by_uid)
1109
1110
1111def add_record(params, record, **kwargs): # type: (KeeperParams, Record, any) -> bool

Callers

nothing calls this directly

Calls 3

get_pb2_record_updateFunction · 0.85
get_record_v3_responseFunction · 0.85

Tested by

no test coverage detected