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)
| 1078 | |
| 1079 | |
| 1080 | def update_record_v3(params, rec, **kwargs): # type: (KeeperParams, Record, ...) -> Optional[bool] |
| 1081 | """ Push a record update to the cloud. |
| 1082 | Takes a Record() object, converts to record JSON |
| 1083 | and pushes to the Keeper cloud API |
| 1084 | """ |
| 1085 | record_rq = get_pb2_record_update(params, rec, **kwargs) |
| 1086 | if not record_rq: |
| 1087 | return |
| 1088 | ru = record_rq['pb2_record_update'] |
| 1089 | rq = get_records_update_request(params) |
| 1090 | rq.records.append(ru) |
| 1091 | record_rq_by_uid = {rec.record_uid: record_rq} |
| 1092 | return get_record_v3_response(params, rq, 'vault/records_update', record_rq_by_uid, silent=kwargs.get('silent')) |
| 1093 | |
| 1094 | |
| 1095 | def update_records_v3(params, rec_list, **kwargs): # type: (KeeperParams, List[Record], ...) -> Optional[bool] |
no test coverage detected