Office365-REST-Python-Client 2.5.7__py3-none-any.whl → 2.5.9__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.
- {Office365_REST_Python_Client-2.5.7.dist-info → Office365_REST_Python_Client-2.5.9.dist-info}/METADATA +1 -1
- {Office365_REST_Python_Client-2.5.7.dist-info → Office365_REST_Python_Client-2.5.9.dist-info}/RECORD +109 -71
- office365/communications/onlinemeetings/online_meeting.py +30 -3
- office365/communications/onlinemeetings/recordings/__init__.py +0 -0
- office365/communications/onlinemeetings/recordings/call.py +5 -0
- office365/communications/onlinemeetings/transcripts/__init__.py +0 -0
- office365/directory/identitygovernance/entitlementmanagement/entitlement_management.py +7 -0
- office365/directory/identitygovernance/governance.py +16 -0
- office365/directory/serviceprincipals/service_principal.py +110 -21
- office365/graph_client.py +8 -0
- office365/onedrive/driveitems/driveItem.py +51 -5
- office365/onedrive/driveitems/retention_label.py +25 -0
- office365/onedrive/workbooks/charts/chart.py +13 -0
- office365/onedrive/workbooks/icon.py +5 -0
- office365/onedrive/workbooks/names/named_item.py +6 -0
- office365/onedrive/workbooks/ranges/font.py +5 -0
- office365/onedrive/workbooks/ranges/format.py +60 -0
- office365/onedrive/workbooks/ranges/range.py +12 -0
- office365/onedrive/workbooks/ranges/reference.py +6 -0
- office365/onedrive/workbooks/sort_field.py +26 -0
- office365/onedrive/workbooks/tables/pivot_table_collection.py +16 -0
- office365/onedrive/workbooks/worksheets/protection_options.py +3 -0
- office365/onedrive/workbooks/worksheets/worksheet.py +5 -4
- office365/sharepoint/activities/action_facet.py +17 -0
- office365/sharepoint/activities/client_request.py +4 -0
- office365/sharepoint/activities/client_response.py +8 -0
- office365/sharepoint/activities/entity.py +10 -0
- office365/sharepoint/activities/facets/delete.py +1 -0
- office365/sharepoint/activities/facets/get_mention.py +10 -0
- office365/sharepoint/activities/facets/in_doc.py +4 -0
- office365/sharepoint/activities/facets/move.py +14 -0
- office365/sharepoint/activities/facets/point_in_time_restore.py +9 -0
- office365/sharepoint/activities/facets/revision_set.py +9 -0
- office365/sharepoint/activities/facets/task_completed.py +9 -0
- office365/sharepoint/activities/facets/version.py +12 -0
- office365/sharepoint/activities/identity_item.py +16 -1
- office365/sharepoint/alerts/collection.py +12 -0
- office365/sharepoint/attachments/attachment.py +3 -0
- office365/sharepoint/attachments/collection.py +26 -4
- office365/sharepoint/client_context.py +29 -0
- office365/sharepoint/comments/collection.py +1 -1
- office365/sharepoint/compliance/store_proxy.py +43 -0
- office365/sharepoint/directory/provider/alternate_id_data.py +9 -0
- office365/sharepoint/directory/provider/notification.py +15 -0
- office365/sharepoint/directory/provider/object_data.py +14 -0
- office365/sharepoint/directory/provider/provider.py +13 -0
- office365/sharepoint/entity.py +15 -0
- office365/sharepoint/features/collection.py +2 -0
- office365/sharepoint/fields/date_time.py +18 -0
- office365/sharepoint/fields/lookup.py +20 -0
- office365/sharepoint/fields/multi_line_text.py +25 -0
- office365/sharepoint/fields/rating_scale.py +2 -5
- office365/sharepoint/fields/user_value.py +1 -1
- office365/sharepoint/files/collection.py +6 -5
- office365/sharepoint/files/versions/version.py +7 -0
- office365/sharepoint/folders/folder.py +2 -2
- office365/sharepoint/migrationcenter/service/performance/dashboard_data.py +12 -0
- office365/sharepoint/migrationcenter/service/performance/data.py +38 -0
- office365/sharepoint/migrationcenter/service/performance/throughput_data.py +9 -0
- office365/sharepoint/migrationcenter/service/services.py +22 -0
- office365/sharepoint/multigeo/api_versions.py +28 -0
- office365/sharepoint/multigeo/move_job_entity_data.py +9 -0
- office365/sharepoint/multigeo/services.py +39 -0
- office365/sharepoint/multigeo/site_move_job_entity_data.py +9 -0
- office365/sharepoint/multigeo/tenant_information.py +9 -0
- office365/sharepoint/multigeo/user_personal_site_location.py +9 -0
- office365/sharepoint/permissions/securable_object.py +2 -0
- office365/sharepoint/publishing/portal_health_details.py +10 -0
- office365/sharepoint/publishing/portal_health_status.py +8 -1
- office365/sharepoint/sharing/object_sharing_information.py +2 -0
- office365/sharepoint/sharing/permission_collection.py +8 -1
- office365/sharepoint/sharing/shared_document_info.py +28 -0
- office365/sharepoint/sitehealth/summary.py +20 -0
- office365/sharepoint/sites/site.py +12 -0
- office365/sharepoint/sites/version_policy_manager.py +7 -0
- office365/sharepoint/tenant/administration/container_properties.py +17 -0
- office365/sharepoint/tenant/administration/group.py +17 -0
- office365/sharepoint/tenant/administration/powerapps/environment.py +31 -0
- office365/sharepoint/tenant/administration/recent_admin_action_report.py +14 -0
- office365/sharepoint/tenant/administration/recent_admin_action_report_payload.py +10 -0
- office365/sharepoint/tenant/administration/secondary_administrators_info.py +5 -0
- office365/sharepoint/tenant/administration/siteinfo_for_site_picker.py +5 -1
- office365/sharepoint/tenant/administration/sites/creation_default_storage_quota.py +5 -0
- office365/sharepoint/tenant/administration/sites/creation_source.py +16 -1
- office365/sharepoint/tenant/administration/sites/properties_collection.py +2 -0
- office365/sharepoint/tenant/administration/sites/state_properties.py +14 -0
- office365/sharepoint/tenant/administration/tenant.py +56 -1
- office365/sharepoint/tenant/cdn_api.py +16 -0
- office365/sharepoint/tenant/management/externalusers/results/get.py +4 -0
- office365/sharepoint/tenant/management/office365_tenant.py +14 -0
- office365/sharepoint/types/resource_path.py +1 -1
- office365/sharepoint/ui/applicationpages/peoplepicker/web_service_interface.py +39 -33
- office365/sharepoint/userprofiles/cross_geo_sync.py +37 -0
- office365/sharepoint/userprofiles/cross_geo_sync_user_data_batch.py +5 -0
- office365/sharepoint/userprofiles/followed_content.py +15 -0
- office365/sharepoint/userprofiles/people_manager.py +23 -10
- office365/sharepoint/userprofiles/person_properties.py +7 -0
- office365/sharepoint/userprofiles/user_profile.py +4 -6
- office365/sharepoint/views/view.py +3 -1
- office365/sharepoint/views/visualization/__init__.py +0 -0
- office365/sharepoint/views/visualization/field.py +14 -0
- office365/sharepoint/views/visualization/style_set.py +5 -0
- office365/sharepoint/webs/web.py +43 -0
- office365/sharepoint/workflow/manager.py +5 -0
- office365/sharepoint/workflowservices/deployment_service.py +9 -0
- {Office365_REST_Python_Client-2.5.7.dist-info → Office365_REST_Python_Client-2.5.9.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.7.dist-info → Office365_REST_Python_Client-2.5.9.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.5.7.dist-info → Office365_REST_Python_Client-2.5.9.dist-info}/top_level.txt +0 -0
- /office365/sharepoint/views/{visualization.py → visualization/visualization.py} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from datetime import datetime
|
|
1
2
|
from typing import IO, AnyStr, Optional
|
|
2
3
|
|
|
3
4
|
from typing_extensions import Self
|
|
@@ -54,6 +55,12 @@ class FileVersion(Entity):
|
|
|
54
55
|
self.context.add_query(qry)
|
|
55
56
|
return return_type
|
|
56
57
|
|
|
58
|
+
@property
|
|
59
|
+
def created(self):
|
|
60
|
+
# type: () -> Optional[datetime]
|
|
61
|
+
"""Specifies the creation date and time for the file version."""
|
|
62
|
+
return self.properties.get("Created", datetime.min)
|
|
63
|
+
|
|
57
64
|
@property
|
|
58
65
|
def created_by(self):
|
|
59
66
|
"""Gets the user that created the file version."""
|
|
@@ -571,8 +571,8 @@ class Folder(Entity):
|
|
|
571
571
|
|
|
572
572
|
@property
|
|
573
573
|
def property_ref_name(self):
|
|
574
|
-
# type: () -> str
|
|
575
|
-
return
|
|
574
|
+
# type: () -> Optional[str]
|
|
575
|
+
return None
|
|
576
576
|
|
|
577
577
|
def get_property(self, name, default_value=None):
|
|
578
578
|
if default_value is None:
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
from office365.runtime.client_value import ClientValue
|
|
2
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
3
|
+
from office365.runtime.types.collections import StringCollection
|
|
4
|
+
from office365.sharepoint.migrationcenter.service.performance.throughput_data import (
|
|
5
|
+
ThroughputData,
|
|
6
|
+
)
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
class PerformanceDashboardData(ClientValue):
|
|
5
10
|
""""""
|
|
6
11
|
|
|
12
|
+
def __init__(
|
|
13
|
+
self, bottleneck_list=None, recommendation_list=None, throughput_trend=None
|
|
14
|
+
):
|
|
15
|
+
self.BottleneckList = StringCollection(bottleneck_list)
|
|
16
|
+
self.RecommendationList = StringCollection(recommendation_list)
|
|
17
|
+
self.ThroughputTrend = ClientValueCollection(ThroughputData, throughput_trend)
|
|
18
|
+
|
|
7
19
|
@property
|
|
8
20
|
def entity_type_name(self):
|
|
9
21
|
return "Microsoft.Online.SharePoint.MigrationCenter.Service.PerformanceDashboardData"
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
from office365.runtime.client_result import ClientResult
|
|
2
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
3
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
4
|
+
from office365.sharepoint.entity_collection import EntityCollection
|
|
5
|
+
from office365.sharepoint.migrationcenter.service.performance.dashboard_data import (
|
|
6
|
+
PerformanceDashboardData,
|
|
7
|
+
)
|
|
1
8
|
from office365.sharepoint.migrationcenter.service.performance.entity_data import (
|
|
2
9
|
MigrationPerformanceEntityData,
|
|
3
10
|
)
|
|
@@ -5,3 +12,34 @@ from office365.sharepoint.migrationcenter.service.performance.entity_data import
|
|
|
5
12
|
|
|
6
13
|
class PerformanceData(MigrationPerformanceEntityData):
|
|
7
14
|
""""""
|
|
15
|
+
|
|
16
|
+
def __init__(self, context, resource_path=None):
|
|
17
|
+
if resource_path is None:
|
|
18
|
+
resource_path = ResourcePath(
|
|
19
|
+
"Microsoft.Online.SharePoint.MigrationCenter.Service.PerformanceData"
|
|
20
|
+
)
|
|
21
|
+
super(PerformanceData, self).__init__(context, resource_path)
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def entity_type_name(self):
|
|
25
|
+
return "Microsoft.Online.SharePoint.MigrationCenter.Service.PerformanceData"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class PerformanceDataCollection(EntityCollection[PerformanceData]):
|
|
29
|
+
def __init__(self, context, resource_path=None):
|
|
30
|
+
super(PerformanceDataCollection, self).__init__(
|
|
31
|
+
context, PerformanceData, resource_path
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
def get_data(self, StartTime=None, EndTime=None, AgentId=None, TimeUnit=None):
|
|
35
|
+
""" """
|
|
36
|
+
return_type = ClientResult(self.context, PerformanceDashboardData())
|
|
37
|
+
payload = {
|
|
38
|
+
"StartTime": StartTime,
|
|
39
|
+
"EndTime": EndTime,
|
|
40
|
+
"AgentId": AgentId,
|
|
41
|
+
"TimeUnit": TimeUnit,
|
|
42
|
+
}
|
|
43
|
+
qry = ServiceOperationQuery(self, "GetData", None, payload, None, return_type)
|
|
44
|
+
self.context.add_query(qry)
|
|
45
|
+
return return_type
|
|
@@ -1,7 +1,29 @@
|
|
|
1
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
1
2
|
from office365.sharepoint.entity import Entity
|
|
3
|
+
from office365.sharepoint.migrationcenter.service.performance.data import (
|
|
4
|
+
PerformanceDataCollection,
|
|
5
|
+
)
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
class MigrationCenterServices(Entity):
|
|
9
|
+
def __init__(self, context, resource_path=None):
|
|
10
|
+
if resource_path is None:
|
|
11
|
+
resource_path = ResourcePath(
|
|
12
|
+
"Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationCenterServices"
|
|
13
|
+
)
|
|
14
|
+
super(MigrationCenterServices, self).__init__(context, resource_path)
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def performance_data(self):
|
|
18
|
+
# type: () -> PerformanceDataCollection
|
|
19
|
+
"""Get root web"""
|
|
20
|
+
return self.properties.get(
|
|
21
|
+
"PerformanceData",
|
|
22
|
+
PerformanceDataCollection(
|
|
23
|
+
self.context, ResourcePath("PerformanceData", self.resource_path)
|
|
24
|
+
),
|
|
25
|
+
)
|
|
26
|
+
|
|
5
27
|
@property
|
|
6
28
|
def entity_type_name(self):
|
|
7
29
|
return "Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationCenterServices"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
|
+
from office365.runtime.types.collections import StringCollection
|
|
3
|
+
from office365.sharepoint.entity import Entity
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class MultiGeoApiVersions(Entity):
|
|
7
|
+
""""""
|
|
8
|
+
|
|
9
|
+
def __init__(self, context, resource_path=None):
|
|
10
|
+
if resource_path is None:
|
|
11
|
+
resource_path = ResourcePath(
|
|
12
|
+
"Microsoft.Online.SharePoint.MultiGeo.Service.MultiGeoApiVersions"
|
|
13
|
+
)
|
|
14
|
+
super(MultiGeoApiVersions, self).__init__(context, resource_path)
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def supported_versions(self):
|
|
18
|
+
return self.properties.get("SupportedVersions", StringCollection())
|
|
19
|
+
|
|
20
|
+
@property
|
|
21
|
+
def entity_type_name(self):
|
|
22
|
+
return "Microsoft.Online.SharePoint.MultiGeo.Service.MultiGeoApiVersions"
|
|
23
|
+
|
|
24
|
+
def get_property(self, name, default_value=None):
|
|
25
|
+
if default_value is None:
|
|
26
|
+
property_mapping = {"SupportedVersions": self.supported_versions}
|
|
27
|
+
default_value = property_mapping.get(name, None)
|
|
28
|
+
return super(MultiGeoApiVersions, self).get_property(name, default_value)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
|
+
from office365.sharepoint.entity import Entity
|
|
3
|
+
from office365.sharepoint.entity_collection import EntityCollection
|
|
4
|
+
from office365.sharepoint.multigeo.unified_group import UnifiedGroup
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MultiGeoServices(Entity):
|
|
8
|
+
"""
|
|
9
|
+
Multi-Geo capabilities in OneDrive and SharePoint enable control of shared resources like SharePoint team sites
|
|
10
|
+
and Microsoft 365 Group mailboxes stored at rest in a specified geo location.
|
|
11
|
+
|
|
12
|
+
Each user, Group mailbox, and SharePoint site have a Preferred Data Location (PDL) which denotes the geo location
|
|
13
|
+
where related data is to be stored. Users' personal data (Exchange mailbox and OneDrive) along with any
|
|
14
|
+
Microsoft 365 Groups or SharePoint sites that they create can be stored in the specified geo location to meet
|
|
15
|
+
data residency requirements.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def unified_groups(self):
|
|
20
|
+
# type: () -> EntityCollection[UnifiedGroup]
|
|
21
|
+
""" """
|
|
22
|
+
return self.properties.get(
|
|
23
|
+
"UnifiedGroups",
|
|
24
|
+
EntityCollection(
|
|
25
|
+
self.context,
|
|
26
|
+
UnifiedGroup,
|
|
27
|
+
ResourcePath("UnifiedGroups", self.resource_path),
|
|
28
|
+
),
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def entity_type_name(self):
|
|
33
|
+
return "Microsoft.Online.SharePoint.MultiGeo.Service.MultiGeoServicesBeta"
|
|
34
|
+
|
|
35
|
+
def get_property(self, name, default_value=None):
|
|
36
|
+
if default_value is None:
|
|
37
|
+
property_mapping = {"UnifiedGroups": self.unified_groups}
|
|
38
|
+
default_value = property_mapping.get(name, None)
|
|
39
|
+
return super(MultiGeoServices, self).get_property(name, default_value)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from office365.sharepoint.multigeo.move_job_entity_data import MoveJobEntityData
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SiteMoveJobEntityData(MoveJobEntityData):
|
|
5
|
+
""""""
|
|
6
|
+
|
|
7
|
+
@property
|
|
8
|
+
def entity_type_name(self):
|
|
9
|
+
return "Microsoft.Online.SharePoint.MultiGeo.Service.SiteMoveJobEntityData"
|
|
@@ -162,6 +162,7 @@ class SecurableObject(Entity):
|
|
|
162
162
|
|
|
163
163
|
@property
|
|
164
164
|
def first_unique_ancestor_securable_object(self):
|
|
165
|
+
# type: () -> SecurableObject
|
|
165
166
|
"""Specifies the object where role assignments for this object are defined"""
|
|
166
167
|
return self.properties.get(
|
|
167
168
|
"FirstUniqueAncestorSecurableObject",
|
|
@@ -173,6 +174,7 @@ class SecurableObject(Entity):
|
|
|
173
174
|
|
|
174
175
|
@property
|
|
175
176
|
def role_assignments(self):
|
|
177
|
+
# type: () -> RoleAssignmentCollection
|
|
176
178
|
"""The role assignments for the securable object."""
|
|
177
179
|
return self.properties.get(
|
|
178
180
|
"RoleAssignments",
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
from office365.runtime.client_value import ClientValue
|
|
2
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
3
|
+
from office365.sharepoint.publishing.portal_health_details import PortalHealthDetails
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class PortalHealthStatus(ClientValue):
|
|
5
|
-
def __init__(self, status=None):
|
|
7
|
+
def __init__(self, details=None, status=None):
|
|
6
8
|
"""
|
|
7
9
|
:param int status:
|
|
8
10
|
"""
|
|
11
|
+
self.Details = ClientValueCollection(PortalHealthDetails, details)
|
|
9
12
|
self.Status = status
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def entity_type_name(self):
|
|
16
|
+
return "SP.Publishing.PortalHealthStatus"
|
|
@@ -241,6 +241,7 @@ class ObjectSharingInformation(Entity):
|
|
|
241
241
|
|
|
242
242
|
@property
|
|
243
243
|
def sharing_links(self):
|
|
244
|
+
# type: () -> ClientValueCollection[SharingLinkInfo]
|
|
244
245
|
"""Indicates the collection of all available sharing links for the securable object."""
|
|
245
246
|
return self.properties.get(
|
|
246
247
|
"SharingLinks", ClientValueCollection(SharingLinkInfo)
|
|
@@ -248,6 +249,7 @@ class ObjectSharingInformation(Entity):
|
|
|
248
249
|
|
|
249
250
|
@property
|
|
250
251
|
def shared_with_users_collection(self):
|
|
252
|
+
# type: () -> EntityCollection[ObjectSharingInformationUser]
|
|
251
253
|
"""A collection of shared with users."""
|
|
252
254
|
return self.properties.get(
|
|
253
255
|
"SharedWithUsersCollection",
|
|
@@ -13,7 +13,12 @@ class PermissionCollection(ClientValue):
|
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
15
|
def __init__(
|
|
16
|
-
self,
|
|
16
|
+
self,
|
|
17
|
+
hasInheritedLinks=None,
|
|
18
|
+
links=None,
|
|
19
|
+
principals=None,
|
|
20
|
+
siteAdmins=None,
|
|
21
|
+
totalNumberOfPrincipals=None,
|
|
17
22
|
):
|
|
18
23
|
"""
|
|
19
24
|
:param bool hasInheritedLinks:
|
|
@@ -21,11 +26,13 @@ class PermissionCollection(ClientValue):
|
|
|
21
26
|
:param list[PrincipalInfo] principals: The List of Principals with their roles on this list item.
|
|
22
27
|
:param list[PrincipalInfo] siteAdmins: The List of Principals who are Site Admins. This property is returned
|
|
23
28
|
only if the caller is an Auditor.
|
|
29
|
+
:param int totalNumberOfPrincipals:
|
|
24
30
|
"""
|
|
25
31
|
self.hasInheritedLinks = hasInheritedLinks
|
|
26
32
|
self.links = ClientValueCollection(LinkInfo, links)
|
|
27
33
|
self.principals = ClientValueCollection(PrincipalInfo, principals)
|
|
28
34
|
self.siteAdmins = ClientValueCollection(PrincipalInfo, siteAdmins)
|
|
35
|
+
self.totalNumberOfPrincipals = totalNumberOfPrincipals
|
|
29
36
|
|
|
30
37
|
@property
|
|
31
38
|
def entity_type_name(self):
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
from office365.sharepoint.contenttypes.content_type_id import ContentTypeId
|
|
1
4
|
from office365.sharepoint.entity import Entity
|
|
2
5
|
from office365.sharepoint.sharing.principal import Principal
|
|
3
6
|
|
|
@@ -7,6 +10,7 @@ class SharedDocumentInfo(Entity):
|
|
|
7
10
|
|
|
8
11
|
@property
|
|
9
12
|
def activity(self):
|
|
13
|
+
# type: () -> Optional[str]
|
|
10
14
|
""""""
|
|
11
15
|
return self.properties.get("Activity", None)
|
|
12
16
|
|
|
@@ -15,6 +19,30 @@ class SharedDocumentInfo(Entity):
|
|
|
15
19
|
""""""
|
|
16
20
|
return self.properties.get("Author", Principal())
|
|
17
21
|
|
|
22
|
+
@property
|
|
23
|
+
def caller_stack(self):
|
|
24
|
+
# type: () -> Optional[str]
|
|
25
|
+
""""""
|
|
26
|
+
return self.properties.get("CallerStack", None)
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def color_hex(self):
|
|
30
|
+
# type: () -> Optional[str]
|
|
31
|
+
""""""
|
|
32
|
+
return self.properties.get("ColorHex", None)
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def color_tag(self):
|
|
36
|
+
# type: () -> Optional[str]
|
|
37
|
+
""""""
|
|
38
|
+
return self.properties.get("ColorTag", None)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def content_type_id(self):
|
|
42
|
+
# type: () -> Optional[str]
|
|
43
|
+
""""""
|
|
44
|
+
return self.properties.get("ContentTypeId", ContentTypeId())
|
|
45
|
+
|
|
18
46
|
@property
|
|
19
47
|
def entity_type_name(self):
|
|
20
48
|
return "SP.Sharing.SharedDocumentInfo"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
2
4
|
from office365.sharepoint.entity import Entity
|
|
3
5
|
from office365.sharepoint.sitehealth.result import SiteHealthResult
|
|
@@ -6,6 +8,24 @@ from office365.sharepoint.sitehealth.result import SiteHealthResult
|
|
|
6
8
|
class SiteHealthSummary(Entity):
|
|
7
9
|
"""Specifies a summary of the results of running a set of site collection health rules."""
|
|
8
10
|
|
|
11
|
+
@property
|
|
12
|
+
def failed_error_count(self):
|
|
13
|
+
# type: () -> Optional[int]
|
|
14
|
+
"""Specifies the number of site collection health rules that failed with an error."""
|
|
15
|
+
return self.properties.get("FailedErrorCount", None)
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def failed_warning_count(self):
|
|
19
|
+
# type: () -> Optional[int]
|
|
20
|
+
"""Specifies the number of site collection health rules that failed with a warning."""
|
|
21
|
+
return self.properties.get("FailedWarningCount", None)
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def passed_count(self):
|
|
25
|
+
# type: () -> Optional[int]
|
|
26
|
+
"""Specifies the number of site collection health rules that passed."""
|
|
27
|
+
return self.properties.get("PassedCount", None)
|
|
28
|
+
|
|
9
29
|
@property
|
|
10
30
|
def results(self):
|
|
11
31
|
"""Specifies a list of site collection health rule results, one for each site collection health rule that
|
|
@@ -88,6 +88,18 @@ class Site(Entity):
|
|
|
88
88
|
self.ensure_properties(["Url", "GroupId", "Id"], _site_resolved)
|
|
89
89
|
return self
|
|
90
90
|
|
|
91
|
+
def check_is_deletable(self):
|
|
92
|
+
"""Check Site Is Deletable"""
|
|
93
|
+
return_type = ClientResult(self.context, bool())
|
|
94
|
+
|
|
95
|
+
def _check_is_deletable():
|
|
96
|
+
SPPolicyStoreProxy.check_site_is_deletable_by_id(
|
|
97
|
+
self.context, self.id, return_type
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
self.ensure_property("Id", _check_is_deletable)
|
|
101
|
+
return return_type
|
|
102
|
+
|
|
91
103
|
def extend_upgrade_reminder_date(self):
|
|
92
104
|
"""
|
|
93
105
|
Extend the upgrade reminder date for this site collection, so that site collection administrators will
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
1
2
|
from office365.sharepoint.entity import Entity
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
class SiteVersionPolicyManager(Entity):
|
|
5
6
|
""""""
|
|
7
|
+
|
|
8
|
+
def set_auto_expiration(self):
|
|
9
|
+
""""""
|
|
10
|
+
qry = ServiceOperationQuery(self, "SetAutoExpiration")
|
|
11
|
+
self.context.add_query(qry)
|
|
12
|
+
return self
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SPContainerProperties(ClientValue):
|
|
5
|
+
""""""
|
|
6
|
+
|
|
7
|
+
def __init__(self, AllowEditing=None, AuthenticationContextName=None):
|
|
8
|
+
"""
|
|
9
|
+
:param bool AllowEditing:
|
|
10
|
+
:param str AuthenticationContextName:
|
|
11
|
+
"""
|
|
12
|
+
self.AllowEditing = AllowEditing
|
|
13
|
+
self.AuthenticationContextName = AuthenticationContextName
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def entity_type_name(self):
|
|
17
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.SPContainerProperties"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
|
+
from office365.sharepoint.entity import Entity
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class SPOGroup(Entity):
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
def __init__(self, context, resource_path=None):
|
|
9
|
+
if resource_path is None:
|
|
10
|
+
resource_path = ResourcePath(
|
|
11
|
+
"Microsoft.Online.SharePoint.TenantAdministration.SPOGroup"
|
|
12
|
+
)
|
|
13
|
+
super(SPOGroup, self).__init__(context, resource_path)
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def entity_type_name(self):
|
|
17
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.SPOGroup"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class PowerAppsEnvironment(ClientValue):
|
|
5
|
+
""" """
|
|
6
|
+
|
|
7
|
+
def __init__(
|
|
8
|
+
self,
|
|
9
|
+
AllocatedAICredits=None,
|
|
10
|
+
DisplayName=None,
|
|
11
|
+
IsDefault=None,
|
|
12
|
+
Name=None,
|
|
13
|
+
PurchasedAICredits=None,
|
|
14
|
+
):
|
|
15
|
+
# type: (float, str, bool, str, float) -> None
|
|
16
|
+
self.AllocatedAICredits = AllocatedAICredits
|
|
17
|
+
self.DisplayName = DisplayName
|
|
18
|
+
self.IsDefault = IsDefault
|
|
19
|
+
self.Name = Name
|
|
20
|
+
self.PurchasedAICredits = PurchasedAICredits
|
|
21
|
+
|
|
22
|
+
def __str__(self):
|
|
23
|
+
return self.DisplayName or self.entity_type_name
|
|
24
|
+
|
|
25
|
+
def __repr__(self):
|
|
26
|
+
return self.Name or self.entity_type_name
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
def entity_type_name(self):
|
|
30
|
+
# type: () -> str
|
|
31
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.PowerAppsEnvironment"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RecentAdminActionReport(ClientValue):
|
|
5
|
+
""" """
|
|
6
|
+
|
|
7
|
+
def __init__(self, actions=None, createdByEmail=None):
|
|
8
|
+
# type: (str, str) -> None
|
|
9
|
+
self.actions = actions
|
|
10
|
+
self.createdByEmail = createdByEmail
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def entity_type_name(self):
|
|
14
|
+
return "Microsoft.SharePoint.Administration.TenantAdmin.RecentAdminActionReport"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RecentAdminActionReportPayload(ClientValue):
|
|
5
|
+
""" """
|
|
6
|
+
|
|
7
|
+
@property
|
|
8
|
+
def entity_type_name(self):
|
|
9
|
+
# type: () -> str
|
|
10
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.RecentAdminActionReportPayload"
|
|
@@ -13,3 +13,8 @@ class SecondaryAdministratorsInfo(ClientValue):
|
|
|
13
13
|
self.email = email
|
|
14
14
|
self.loginName = loginName
|
|
15
15
|
self.userPrincipalName = userPrincipalName
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def entity_type_name(self):
|
|
19
|
+
# type: () -> str
|
|
20
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.SecondaryAdministratorsInfo"
|
|
@@ -2,8 +2,12 @@ from office365.runtime.client_value import ClientValue
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class SiteInfoForSitePicker(ClientValue):
|
|
5
|
-
def __init__(self, site_name=None):
|
|
5
|
+
def __init__(self, Error=None, site_id=None, site_name=None, Url=None):
|
|
6
|
+
# type: (str, str, str, str) -> None
|
|
7
|
+
self.Error = Error
|
|
8
|
+
self.SiteId = site_id
|
|
6
9
|
self.SiteName = site_name
|
|
10
|
+
self.Url = Url
|
|
7
11
|
|
|
8
12
|
@property
|
|
9
13
|
def entity_type_name(self):
|
|
@@ -2,6 +2,11 @@ from office365.runtime.client_value import ClientValue
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class SiteCreationDefaultStorageQuota(ClientValue):
|
|
5
|
+
def __init__(self, IsReadOnly=None, Value=None):
|
|
6
|
+
# type: (bool, int) -> None
|
|
7
|
+
self.IsReadOnly = IsReadOnly
|
|
8
|
+
self.Value = Value
|
|
9
|
+
|
|
5
10
|
@property
|
|
6
11
|
def entity_type_name(self):
|
|
7
12
|
return "Microsoft.Online.SharePoint.TenantAdministration.SiteCreationDefaultStorageQuota"
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
1
4
|
from office365.runtime.client_value import ClientValue
|
|
2
5
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
3
6
|
from office365.sharepoint.tenant.administration.sites.creation_data import (
|
|
@@ -6,10 +9,22 @@ from office365.sharepoint.tenant.administration.sites.creation_data import (
|
|
|
6
9
|
|
|
7
10
|
|
|
8
11
|
class SiteCreationSource(ClientValue):
|
|
9
|
-
def __init__(
|
|
12
|
+
def __init__(
|
|
13
|
+
self,
|
|
14
|
+
IsSyncThresholdLimitReached=None,
|
|
15
|
+
LastRefreshTimeStamp=None,
|
|
16
|
+
site_creation_data=None,
|
|
17
|
+
SyncThresholdLimit=None,
|
|
18
|
+
TotalSitesCount=None,
|
|
19
|
+
):
|
|
20
|
+
# type: (bool, datetime, List[SiteCreationData], int, int) -> None
|
|
21
|
+
self.IsSyncThresholdLimitReached = IsSyncThresholdLimitReached
|
|
22
|
+
self.LastRefreshTimeStamp = LastRefreshTimeStamp
|
|
10
23
|
self.SiteCreationData = ClientValueCollection(
|
|
11
24
|
SiteCreationData, site_creation_data
|
|
12
25
|
)
|
|
26
|
+
self.SyncThresholdLimit = SyncThresholdLimit
|
|
27
|
+
self.TotalSitesCount = TotalSitesCount
|
|
13
28
|
|
|
14
29
|
@property
|
|
15
30
|
def entity_type_name(self):
|
|
@@ -37,6 +37,8 @@ class SitePropertiesCollection(EntityCollection[SiteProperties]):
|
|
|
37
37
|
|
|
38
38
|
def get_site_state_properties(self, site_id):
|
|
39
39
|
"""
|
|
40
|
+
Gets site state properties.
|
|
41
|
+
|
|
40
42
|
:param str site_id: Site identifier
|
|
41
43
|
"""
|
|
42
44
|
return_type = ClientResult(self.context, SiteStateProperties())
|
|
@@ -2,6 +2,20 @@ from office365.runtime.client_value import ClientValue
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class SiteStateProperties(ClientValue):
|
|
5
|
+
def __init__(
|
|
6
|
+
self,
|
|
7
|
+
GroupSiteRelationship=None,
|
|
8
|
+
IsArchived=None,
|
|
9
|
+
IsSiteOnHold=None,
|
|
10
|
+
LockState=None,
|
|
11
|
+
):
|
|
12
|
+
# type: (int, bool, bool, int) -> None
|
|
13
|
+
super(SiteStateProperties, self).__init__()
|
|
14
|
+
self.GroupSiteRelationship = GroupSiteRelationship
|
|
15
|
+
self.IsArchived = IsArchived
|
|
16
|
+
self.IsSiteOnHold = IsSiteOnHold
|
|
17
|
+
self.LockState = LockState
|
|
18
|
+
|
|
5
19
|
@property
|
|
6
20
|
def entity_type_name(self):
|
|
7
21
|
return "Microsoft.Online.SharePoint.TenantAdministration.SiteStateProperties"
|