|
6 | 6 | class AddItemProperty(Request):
|
7 | 7 | """
|
8 | 8 | Adding an item property is somehow equivalent to adding a column to the table of items. The items may be characterized by various properties of different types.
|
| 9 | + |
| 10 | + Required parameters: |
| 11 | + |
| 12 | + :param property_name: Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, case insensitively. Also, the length of the property name must not exceed 63 characters. |
| 13 | + |
| 14 | + |
| 15 | + :param type: Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`. |
| 16 | + |
| 17 | + |
| 18 | + * `int`- Signed integer number. |
| 19 | + |
| 20 | + |
| 21 | + * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard). |
| 22 | + |
| 23 | + |
| 24 | + * `string` - UTF-8 string. |
| 25 | + |
| 26 | + |
| 27 | + * `boolean` - *true* / *false* |
| 28 | + |
| 29 | + |
| 30 | + * `timestamp` - Value representing date and time. |
| 31 | + |
| 32 | + |
| 33 | + * `set` - Set of strings. |
| 34 | + |
| 35 | + |
| 36 | + * `image` - URL of an image (`jpeg`, `png` or `gif`). |
| 37 | + |
| 38 | + |
| 39 | + * `imageList` - List of URLs that refer to images. |
| 40 | + |
| 41 | + |
9 | 42 |
|
10 | 43 | """
|
11 | 44 |
|
12 | 45 | def __init__(self, property_name, type):
|
13 |
| - """ |
14 |
| - Required parameters: |
15 |
| - @param property_name: Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, case insensitively. Also, the length of the property name must not exceed 63 characters. |
16 |
| - |
17 |
| - |
18 |
| - @param type: Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`. |
19 |
| - |
20 |
| - |
21 |
| - * `int`- Signed integer number. |
22 |
| - |
23 |
| - |
24 |
| - * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard). |
25 |
| - |
26 |
| - |
27 |
| - * `string` - UTF-8 string. |
28 |
| - |
29 |
| - |
30 |
| - * `boolean` - *true* / *false* |
31 |
| - |
32 |
| - |
33 |
| - * `timestamp` - Value representing date and time. |
34 |
| - |
35 |
| - |
36 |
| - * `set` - Set of strings. |
37 |
| - |
38 |
| - |
39 |
| - * `image` - URL of an image (`jpeg`, `png` or `gif`). |
40 |
| - |
41 |
| - |
42 |
| - * `imageList` - List of URLs that refer to images. |
43 |
| - |
44 |
| - |
45 |
| - """ |
46 | 46 | self.property_name = property_name
|
47 | 47 | self.type = type
|
48 | 48 | self.timeout = 100000
|
|
0 commit comments