1createCancelServerTicket = {'id': 1234, 'title': 'Server Cancellation Request'} 2getObject = { 3 "accountId": 1234, 4 "serviceProviderResourceId": "CS123456", 5 "assignedUserId": 12345, 6 "createDate": "2013-08-01T14:14:04-07:00", 7 "id": 100, 8 "lastEditDate": "2013-08-01T14:16:47-07:00", 9 "lastEditType": "AUTO", 10 "modifyDate": "2013-08-01T14:16:47-07:00", 11 "status": { 12 "id": 1002, 13 "name": "Closed" 14 }, 15 "statusId": 1002, 16 "title": "Cloud Instance Cancellation - 08/01/13", 17 'updateCount': 3, 18 'updates': [ 19 {'entry': 'a bot says something'}, 20 {'entry': 'user says something', 21 'editor': {'firstName': 'John', 'lastName': 'Smith'}}, 22 {'entry': 'employee says something', 23 'editor': {'displayName': 'emp1'}}, 24 25 ] 26} 27 28createStandardTicket = { 29 "assignedUserId": 12345, 30 "serviceProviderResourceId": "CS123456", 31 "id": 100, 32 "contents": "body", 33 "subjectId": 1004, 34 "title": "Cloud Instance Cancellation - 08/01/13" 35} 36edit = True 37addUpdate = {} 38 39gatList = getObject 40 41addAttachedHardware = { 42 "id": 123, 43 "createDate": "2013-08-01T14:14:04-07:00", 44 "hardwareId": 1, 45 "ticketId": 100 46} 47 48addAttachedVirtualGuest = { 49 "id": 123, 50 "createDate": "2013-08-01T14:14:04-07:00", 51 "virtualGuestId": 1, 52 "ticketId": 100 53} 54 55addAttachedFile = { 56 "id": 123, 57 "fileName": "a_file_name", 58 "fileSize": "100", 59 "ticketId": 100, 60 "updateId": 200, 61 "createDate": "2013-08-01T14:14:04-07:00", 62 "modifyDate": "2013-08-01T14:14:04-07:00", 63 "uploaderType": "USER", 64 "uploaderId": "300" 65} 66 67removeAttachedHardware = True 68removeAttachedVirtualGuest = True 69