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

Function update_records_v3

keepercommander/api.py:1070–1083  ·  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

1068
1069
1070def update_records_v3(params, rec_list, **kwargs): # type: (KeeperParams, List[Record], ...) -> Optional[bool]
1071 """ Push a record update to the cloud.
1072 Takes a Record() object, converts to record JSON
1073 and pushes to the Keeper cloud API
1074 """
1075 rq = get_records_update_request(params)
1076 record_rq_by_uid = {}
1077 for rec in rec_list:
1078 record_rq = get_pb2_record_update(params, rec, **kwargs)
1079 if record_rq:
1080 record_rq_by_uid[rec.record_uid] = record_rq
1081 rq.records.append(record_rq['pb2_record_update'])
1082
1083 return get_record_v3_response(params, rq, 'vault/records_update', record_rq_by_uid)
1084
1085
1086def 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