pyxecm 2.0.2__py3-none-any.whl → 2.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyxecm might be problematic. Click here for more details.
- pyxecm/__init__.py +3 -2
- pyxecm/avts.py +3 -1
- pyxecm/coreshare.py +71 -5
- pyxecm/customizer/api/app.py +7 -13
- pyxecm/customizer/api/auth/functions.py +37 -30
- pyxecm/customizer/api/common/functions.py +54 -0
- pyxecm/customizer/api/common/payload_list.py +39 -10
- pyxecm/customizer/api/common/router.py +55 -6
- pyxecm/customizer/api/settings.py +14 -3
- pyxecm/customizer/api/terminal/router.py +43 -18
- pyxecm/customizer/api/v1_csai/models.py +18 -0
- pyxecm/customizer/api/v1_csai/router.py +26 -1
- pyxecm/customizer/api/v1_otcs/router.py +16 -6
- pyxecm/customizer/api/v1_payload/functions.py +9 -3
- pyxecm/customizer/browser_automation.py +506 -199
- pyxecm/customizer/customizer.py +123 -22
- pyxecm/customizer/guidewire.py +170 -37
- pyxecm/customizer/payload.py +723 -330
- pyxecm/customizer/settings.py +21 -3
- pyxecm/customizer/translate.py +14 -10
- pyxecm/helper/data.py +12 -20
- pyxecm/helper/xml.py +1 -1
- pyxecm/maintenance_page/app.py +6 -2
- pyxecm/otawp.py +10 -6
- pyxecm/otca.py +187 -21
- pyxecm/otcs.py +2424 -415
- pyxecm/otds.py +4 -11
- pyxecm/otkd.py +1369 -0
- pyxecm/otmm.py +190 -66
- {pyxecm-2.0.2.dist-info → pyxecm-2.0.4.dist-info}/METADATA +2 -2
- {pyxecm-2.0.2.dist-info → pyxecm-2.0.4.dist-info}/RECORD +34 -32
- {pyxecm-2.0.2.dist-info → pyxecm-2.0.4.dist-info}/WHEEL +1 -1
- {pyxecm-2.0.2.dist-info → pyxecm-2.0.4.dist-info}/licenses/LICENSE +0 -0
- {pyxecm-2.0.2.dist-info → pyxecm-2.0.4.dist-info}/top_level.txt +0 -0
pyxecm/otds.py
CHANGED
|
@@ -565,6 +565,7 @@ class OTDS:
|
|
|
565
565
|
self.logger.info("Session has expired - try to re-authenticate...")
|
|
566
566
|
self.authenticate(revalidate=True)
|
|
567
567
|
retries += 1
|
|
568
|
+
time.sleep(REQUEST_RETRY_DELAY / 10) # Add a delay before retrying
|
|
568
569
|
else:
|
|
569
570
|
# Handle plain HTML responses to not pollute the logs
|
|
570
571
|
content_type = response.headers.get("content-type", None)
|
|
@@ -1431,7 +1432,7 @@ class OTDS:
|
|
|
1431
1432
|
Filters such as user state, location, etc. can be applied.
|
|
1432
1433
|
|
|
1433
1434
|
Returning a generator avoids loading a large number of nodes into memory at once. Instead you
|
|
1434
|
-
can iterate over the potential large list of
|
|
1435
|
+
can iterate over the potential large list of OTDS users.
|
|
1435
1436
|
|
|
1436
1437
|
Example usage:
|
|
1437
1438
|
users = otds_object.get_users_iterator(partition="Content Server Members", page_size=10)
|
|
@@ -1452,10 +1453,6 @@ class OTDS:
|
|
|
1452
1453
|
page_size (int, optional):
|
|
1453
1454
|
The chunk size for the number of users returned by one
|
|
1454
1455
|
REST API call. If None, then a default of 250 is used.
|
|
1455
|
-
next_page_cookie (str, optional):
|
|
1456
|
-
A key returned by a former call to this method in with
|
|
1457
|
-
a return key 'nextPageCookie' (see example below). This
|
|
1458
|
-
can be used to get the next page of result items.
|
|
1459
1456
|
|
|
1460
1457
|
Returns:
|
|
1461
1458
|
iter:
|
|
@@ -1928,7 +1925,7 @@ class OTDS:
|
|
|
1928
1925
|
"""Get an iterator object that can be used to traverse all groups for a given users partition.
|
|
1929
1926
|
|
|
1930
1927
|
Returning a generator avoids loading a large number of nodes into memory at once. Instead you
|
|
1931
|
-
can iterate over the potential large list of
|
|
1928
|
+
can iterate over the potential large list of OTDS groups.
|
|
1932
1929
|
|
|
1933
1930
|
Example usage:
|
|
1934
1931
|
groups = otds_object.get_groups_iterator(partition="Content Server Members", page_size=10)
|
|
@@ -1943,13 +1940,9 @@ class OTDS:
|
|
|
1943
1940
|
If None, no filtering applies.
|
|
1944
1941
|
where_location (str | None, optional):
|
|
1945
1942
|
Filter based on the DN of the Organizational Unit.
|
|
1946
|
-
page_size (int, optional):
|
|
1943
|
+
page_size (int | None, optional):
|
|
1947
1944
|
The chunk size for the number of groups returned by one
|
|
1948
1945
|
REST API call. If None, then a default of 250 is used.
|
|
1949
|
-
next_page_cookie (str, optional):
|
|
1950
|
-
A key returned by a former call to this method in with
|
|
1951
|
-
a return key 'nextPageCookie' (see example below). This
|
|
1952
|
-
can be used to get the next page of result items.
|
|
1953
1946
|
|
|
1954
1947
|
Returns:
|
|
1955
1948
|
iter:
|