dimensions
wdadaptivepy service for Adaptive's Dimensions.
DimensionService
Create, retrieve, and modify Adaptive Dimensions.
Attributes:
Name | Type | Description |
---|---|---|
Dimension |
wdadaptivepy Dimension |
Source code in src/wdadaptivepy/services/dimensions.py
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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
|
__init__(xml_api)
Initialize DimensionService.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xml_api
|
XMLApi
|
wdadaptivepy XMLApi |
required |
Source code in src/wdadaptivepy/services/dimensions.py
20 21 22 23 24 25 26 27 28 |
|
from_dict(data)
Convert Python Dictionary to MetadataList of Dimensions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
Sequence[dict] | dict
|
Python Dictionary |
required |
Returns:
Type | Description |
---|---|
MetadataList[Dimension]
|
MetadataList of Dimensions |
Source code in src/wdadaptivepy/services/dimensions.py
163 164 165 166 167 168 169 170 171 172 173 |
|
from_json(data)
Convert JSON to MetadataList of Dimensions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
str
|
JSON string |
required |
Returns:
Type | Description |
---|---|
MetadataList[Dimension]
|
MetadataList of Dimensions |
Source code in src/wdadaptivepy/services/dimensions.py
151 152 153 154 155 156 157 158 159 160 161 |
|
get(dimensions=[], dimension_ids=[], dimension_names=[], *, attributes=True, dimension_values=True, display_name_enabled=True)
Retrieve Dimensions from Adaptive with additional filters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dimensions
|
Sequence[Dimension]
|
Adaptive Dimensions |
[]
|
dimension_ids
|
Sequence[int]
|
Adaptive Dimension IDs |
[]
|
dimension_names
|
Sequence[str]
|
Adaptive Dimension Names |
[]
|
attributes
|
bool
|
Adaptive Attributes |
True
|
dimension_values
|
bool
|
Adaptive Dimension Values |
True
|
display_name_enabled
|
bool
|
Adaptive Display Name Enabled |
True
|
Returns:
Type | Description |
---|---|
MetadataList[Dimension]
|
adaptive Dimensions |
Source code in src/wdadaptivepy/services/dimensions.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
|
get_all(*, attributes=True, dimension_values=True, display_name_enabled=True)
Retrieve all Dimensions from Adaptive.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
attributes
|
bool
|
Adaptive Attributes |
True
|
dimension_values
|
bool
|
Adaptive Dimension Values |
True
|
display_name_enabled
|
bool
|
Adaptive Display Name Enabled |
True
|
Returns:
Type | Description |
---|---|
MetadataList[Dimension]
|
adaptive Dimensions |
Source code in src/wdadaptivepy/services/dimensions.py
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 |
|
preview_update(dimensions, *, hide_password=True)
Generate Dimension update XML API call for review.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dimensions
|
Sequence[Dimension]
|
wdadaptivepy Dimensions to update |
required |
hide_password
|
bool
|
Prevent password from being displayed |
True
|
Returns:
Type | Description |
---|---|
Element
|
XML API body |
Source code in src/wdadaptivepy/services/dimensions.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|