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)
| 1123 | |
| 1124 | |
| 1125 | def update_record_v3(params, rec, **kwargs): # type: (KeeperParams, Record, ...) -> Optional[bool] |
| 1126 | """ Push a record update to the cloud. |
| 1127 | Takes a Record() object, converts to record JSON |
| 1128 | and pushes to the Keeper cloud API |
| 1129 | """ |
| 1130 | record_rq = get_pb2_record_update(params, rec, **kwargs) |
| 1131 | if not record_rq: |
| 1132 | return |
| 1133 | ru = record_rq['pb2_record_update'] |
| 1134 | rq = get_records_update_request(params) |
| 1135 | rq.records.append(ru) |
| 1136 | record_rq_by_uid = {rec.record_uid: record_rq} |
| 1137 | return get_record_v3_response(params, rq, 'vault/records_update', record_rq_by_uid, silent=kwargs.get('silent')) |
| 1138 | |
| 1139 | |
| 1140 | def update_records_v3(params, rec_list, **kwargs): # type: (KeeperParams, List[Record], ...) -> Optional[bool] |
no test coverage detected