1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
findByHardwareId = [
{
'hardwareId': 147258,
'id': 1232569,
'userId': 3698,
'hardware': {
'accountId': 963258,
'domain': 'testedit.com',
'fullyQualifiedDomainName': 'testslcli.testedit.com',
'hostname': 'bardcabero',
'id': 1403539,
'notes': 'My golang note',
'provisionDate': '2020-04-27T16:10:56-06:00',
},
'user': {
'accountId': 307608,
'email': 'cgallo@us.ibm.com',
'firstName': 'CHRISTOPHER',
'id': 167758,
'lastName': 'GALLO',
'username': 'SL307608',
}
},
{
'hardwareId': 1403539,
'id': 1408587,
'userId': 9734826,
'hardware': {
'accountId': 963258,
'domain': 'testedit.com',
'fullyQualifiedDomainName': 'testslcli.testedit.com',
'hostname': 'bardcabero',
'id': 1403539,
'notes': 'My golang note',
'provisionDate': '2020-04-27T16:10:56-06:00',
},
'user': {
'accountId': 307608,
'email': 'Brian.Flores@ibm.com',
'firstName': 'Brian',
'id': 9734826,
'lastName': 'Flores',
'username': '307608_brian.flores@ibm.com',
}
}
]
createObject = {
'hardwareId': 1403539,
'id': 1408593,
'userId': 7650493,
'hardware': {
'accountId': 307608,
'domain': 'testedit.com',
'fullyQualifiedDomainName': 'bardcabero.testedit.com',
'hostname': 'bardcabero',
'id': 1403539,
'notes': 'My golang note',
},
'user': {
'accountId': 307608,
'email': 'daniel.cabero@jalasoft.com',
'firstName': 'daniel',
'id': 7650493,
'lastName': 'cabero',
'username': 'sl307608-dcabero'
}
}
deleteObjects = True
|