File: SoftLayer_Ticket.py

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (68 lines) | stat: -rw-r--r-- 1,687 bytes parent folder | download | duplicates (3)
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
createCancelServerTicket = {'id': 1234, 'title': 'Server Cancellation Request'}
getObject = {
    "accountId": 1234,
    "serviceProviderResourceId": "CS123456",
    "assignedUserId": 12345,
    "createDate": "2013-08-01T14:14:04-07:00",
    "id": 100,
    "lastEditDate": "2013-08-01T14:16:47-07:00",
    "lastEditType": "AUTO",
    "modifyDate": "2013-08-01T14:16:47-07:00",
    "status": {
        "id": 1002,
        "name": "Closed"
    },
    "statusId": 1002,
    "title": "Cloud Instance Cancellation - 08/01/13",
    'updateCount': 3,
    'updates': [
        {'entry': 'a bot says something'},
        {'entry': 'user says something',
         'editor': {'firstName': 'John', 'lastName': 'Smith'}},
        {'entry': 'employee says something',
         'editor': {'displayName': 'emp1'}},

    ]
}

createStandardTicket = {
    "assignedUserId": 12345,
    "serviceProviderResourceId": "CS123456",
    "id": 100,
    "contents": "body",
    "subjectId": 1004,
    "title": "Cloud Instance Cancellation - 08/01/13"
}
edit = True
addUpdate = {}

gatList = getObject

addAttachedHardware = {
    "id": 123,
    "createDate": "2013-08-01T14:14:04-07:00",
    "hardwareId": 1,
    "ticketId": 100
}

addAttachedVirtualGuest = {
    "id": 123,
    "createDate": "2013-08-01T14:14:04-07:00",
    "virtualGuestId": 1,
    "ticketId": 100
}

addAttachedFile = {
    "id": 123,
    "fileName": "a_file_name",
    "fileSize": "100",
    "ticketId": 100,
    "updateId": 200,
    "createDate": "2013-08-01T14:14:04-07:00",
    "modifyDate": "2013-08-01T14:14:04-07:00",
    "uploaderType": "USER",
    "uploaderId": "300"
}

removeAttachedHardware = True
removeAttachedVirtualGuest = True