@@ -94,6 +94,7 @@ def __init__(
94
94
time_zone = None ,
95
95
auto_suspend_refresh_enabled : bool = True ,
96
96
auto_suspend_refresh_inactivity_window : int = 30 ,
97
+ attribute_capture_enabled : bool = True ,
97
98
):
98
99
self ._admin_mode = None
99
100
self ._id : Optional [str ] = None
@@ -147,6 +148,7 @@ def __init__(
147
148
self .time_zone = time_zone
148
149
self .auto_suspend_refresh_enabled = auto_suspend_refresh_enabled
149
150
self .auto_suspend_refresh_inactivity_window = auto_suspend_refresh_inactivity_window
151
+ self .attrbute_capture_enabled = attribute_capture_enabled
150
152
151
153
@property
152
154
def admin_mode (self ) -> Optional [str ]:
@@ -588,6 +590,14 @@ def auto_suspend_refresh_enabled(self) -> bool:
588
590
def auto_suspend_refresh_enabled (self , value : bool ):
589
591
self ._auto_suspend_refresh_enabled = value
590
592
593
+ @property
594
+ def attribute_capture_enabled (self ) -> bool :
595
+ return self ._attribute_capture_enabled
596
+
597
+ @attribute_capture_enabled .setter
598
+ def attribute_capture_enabled (self , value : bool ):
599
+ self ._attribute_capture_enabled = value
600
+
591
601
def replace_license_tiers_with_user_quota (self , value : int ) -> None :
592
602
self .tier_creator_capacity = None
593
603
self .tier_explorer_capacity = None
@@ -650,6 +660,7 @@ def _parse_common_tags(self, site_xml, ns):
650
660
time_zone ,
651
661
auto_suspend_refresh_enabled ,
652
662
auto_suspend_refresh_inactivity_window ,
663
+ aatribute_capture_enabled ,
653
664
) = self ._parse_element (site_xml , ns )
654
665
655
666
self ._set_values (
@@ -704,6 +715,7 @@ def _parse_common_tags(self, site_xml, ns):
704
715
time_zone ,
705
716
auto_suspend_refresh_enabled ,
706
717
auto_suspend_refresh_inactivity_window ,
718
+ attribute_capture_enabled ,
707
719
)
708
720
return self
709
721
@@ -760,6 +772,7 @@ def _set_values(
760
772
time_zone ,
761
773
auto_suspend_refresh_enabled ,
762
774
auto_suspend_refresh_inactivity_window ,
775
+ attribute_capture_enabled ,
763
776
):
764
777
if id is not None :
765
778
self ._id = id
@@ -867,6 +880,8 @@ def _set_values(
867
880
self .auto_suspend_refresh_enabled = auto_suspend_refresh_enabled
868
881
if auto_suspend_refresh_inactivity_window is not None :
869
882
self .auto_suspend_refresh_inactivity_window = auto_suspend_refresh_inactivity_window
883
+ if attribute_capture_enabled is not None :
884
+ self .attribute_capture_enabled = attribute_capture_enabled
870
885
871
886
@classmethod
872
887
def from_response (cls , resp , ns ) -> List ["SiteItem" ]:
@@ -926,6 +941,7 @@ def from_response(cls, resp, ns) -> List["SiteItem"]:
926
941
time_zone ,
927
942
auto_suspend_refresh_enabled ,
928
943
auto_suspend_refresh_inactivity_window ,
944
+ attribute_capture_enabled ,
929
945
) = cls ._parse_element (site_xml , ns )
930
946
931
947
site_item = cls (name , content_url )
@@ -981,6 +997,7 @@ def from_response(cls, resp, ns) -> List["SiteItem"]:
981
997
time_zone ,
982
998
auto_suspend_refresh_enabled ,
983
999
auto_suspend_refresh_inactivity_window ,
1000
+ attribute_capture_enabled ,
984
1001
)
985
1002
all_site_items .append (site_item )
986
1003
return all_site_items
@@ -1062,6 +1079,7 @@ def _parse_element(site_xml, ns):
1062
1079
1063
1080
flows_enabled = string_to_bool (site_xml .get("flowsEnabled" , "" ))
1064
1081
cataloging_enabled = string_to_bool (site_xml .get ("catalogingEnabled" , "" ))
1082
+ attribute_capture_enbaled = string_to_bool (site_xml .get ("attributeCaptureEnabled" , "" ))
1065
1083
1066
1084
return (
1067
1085
id ,
@@ -1115,6 +1133,7 @@ def _parse_element(site_xml, ns):
1115
1133
time_zone ,
1116
1134
auto_suspend_refresh_enabled ,
1117
1135
auto_suspend_refresh_inactivity_window ,
1136
+ attribute_capture_enbaled ,
1118
1137
)
1119
1138
1120
1139
0 commit comments