Push a record update to the cloud. Takes a Record() object, converts to record JSON and pushes to the Keeper cloud API
(params, rec, **kwargs)
| 1053 | |
| 1054 | |
| 1055 | def update_record_v3(params, rec, **kwargs): # type: (KeeperParams, Record, ...) -> Optional[bool] |
| 1056 | """ Push a record update to the cloud. |
| 1057 | Takes a Record() object, converts to record JSON |
| 1058 | and pushes to the Keeper cloud API |
| 1059 | """ |
| 1060 | record_rq = get_pb2_record_update(params, rec, **kwargs) |
| 1061 | if not record_rq: |
| 1062 | return |
| 1063 | ru = record_rq['pb2_record_update'] |
| 1064 | rq = get_records_update_request(params) |
| 1065 | rq.records.append(ru) |
| 1066 | record_rq_by_uid = {rec.record_uid: record_rq} |
| 1067 | return get_record_v3_response(params, rq, 'vault/records_update', record_rq_by_uid, silent=kwargs.get('silent')) |
| 1068 | |
| 1069 | |
| 1070 | def update_records_v3(params, rec_list, **kwargs): # type: (KeeperParams, List[Record], ...) -> Optional[bool] |
no test coverage detected