@@ -85,6 +85,9 @@ class SiteItem:
85
85
state: str
86
86
Shows the current state of the site (Active or Suspended).
87
87
88
+ attribute_capture_enabled: Optional[str]
89
+ Enables user attributes for all Tableau Server embedding workflows.
90
+
88
91
"""
89
92
90
93
_user_quota : Optional [int ] = None
@@ -164,6 +167,7 @@ def __init__(
164
167
time_zone = None ,
165
168
auto_suspend_refresh_enabled : bool = True ,
166
169
auto_suspend_refresh_inactivity_window : int = 30 ,
170
+ attribute_capture_enabled : Optional [bool ] = None ,
167
171
):
168
172
self ._admin_mode = None
169
173
self ._id : Optional [str ] = None
@@ -217,6 +221,7 @@ def __init__(
217
221
self .time_zone = time_zone
218
222
self .auto_suspend_refresh_enabled = auto_suspend_refresh_enabled
219
223
self .auto_suspend_refresh_inactivity_window = auto_suspend_refresh_inactivity_window
224
+ self .attribute_capture_enabled = attribute_capture_enabled
220
225
221
226
@property
222
227
def admin_mode (self ) -> Optional [str ]:
@@ -720,6 +725,7 @@ def _parse_common_tags(self, site_xml, ns):
720
725
time_zone ,
721
726
auto_suspend_refresh_enabled ,
722
727
auto_suspend_refresh_inactivity_window ,
728
+ attribute_capture_enabled ,
723
729
) = self ._parse_element (site_xml , ns )
724
730
725
731
self ._set_values (
@@ -774,6 +780,7 @@ def _parse_common_tags(self, site_xml, ns):
774
780
time_zone ,
775
781
auto_suspend_refresh_enabled ,
776
782
auto_suspend_refresh_inactivity_window ,
783
+ attribute_capture_enabled ,
777
784
)
778
785
return self
779
786
@@ -830,6 +837,7 @@ def _set_values(
830
837
time_zone ,
831
838
auto_suspend_refresh_enabled ,
832
839
auto_suspend_refresh_inactivity_window ,
840
+ attribute_capture_enabled ,
833
841
):
834
842
if id is not None :
835
843
self ._id = id
@@ -937,6 +945,7 @@ def _set_values(
937
945
self .auto_suspend_refresh_enabled = auto_suspend_refresh_enabled
938
946
if auto_suspend_refresh_inactivity_window is not None :
939
947
self .auto_suspend_refresh_inactivity_window = auto_suspend_refresh_inactivity_window
948
+ self .attribute_capture_enabled = attribute_capture_enabled
940
949
941
950
@classmethod
942
951
def from_response (cls , resp , ns ) -> list ["SiteItem" ]:
@@ -996,6 +1005,7 @@ def from_response(cls, resp, ns) -> list["SiteItem"]:
996
1005
time_zone ,
997
1006
auto_suspend_refresh_enabled ,
998
1007
auto_suspend_refresh_inactivity_window ,
1008
+ attribute_capture_enabled ,
999
1009
) = cls ._parse_element (site_xml , ns )
1000
1010
1001
1011
site_item = cls (name , content_url )
@@ -1051,6 +1061,7 @@ def from_response(cls, resp, ns) -> list["SiteItem"]:
1051
1061
time_zone ,
1052
1062
auto_suspend_refresh_enabled ,
1053
1063
auto_suspend_refresh_inactivity_window ,
1064
+ attribute_capture_enabled ,
1054
1065
)
1055
1066
all_site_items .append (site_item )
1056
1067
return all_site_items
@@ -1132,6 +1143,9 @@ def _parse_element(site_xml, ns):
1132
1143
1133
1144
flows_enabled = string_to_bool (site_xml .get ("flowsEnabled" , "" ))
1134
1145
cataloging_enabled = string_to_bool (site_xml .get ("catalogingEnabled" , "" ))
1146
+ attribute_capture_enabled = (
1147
+ string_to_bool (ace ) if (ace := site_xml .get ("attributeCaptureEnabled" )) is not None else None
1148
+ )
1135
1149
1136
1150
return (
1137
1151
id ,
@@ -1185,6 +1199,7 @@ def _parse_element(site_xml, ns):
1185
1199
time_zone ,
1186
1200
auto_suspend_refresh_enabled ,
1187
1201
auto_suspend_refresh_inactivity_window ,
1202
+ attribute_capture_enabled ,
1188
1203
)
1189
1204
1190
1205
0 commit comments