Office365-REST-Python-Client 2.5.5__py3-none-any.whl → 2.5.6__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.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/METADATA +2 -2
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/RECORD +202 -182
- office365/booking/virtualevents/__init__.py +0 -0
- office365/booking/virtualevents/root.py +5 -0
- office365/communications/calls/participant.py +4 -5
- office365/directory/applications/application.py +3 -3
- office365/directory/applications/roles/assignment_collection.py +1 -1
- office365/directory/applications/roles/collection.py +2 -2
- office365/directory/authentication/method_configuration.py +9 -0
- office365/directory/authentication/method_mode_detail.py +8 -0
- office365/directory/authentication/method_target.py +5 -0
- office365/directory/authentication/strength_root.py +5 -0
- office365/directory/certificates/auth_configuration.py +1 -3
- office365/directory/groups/group.py +2 -6
- office365/directory/identities/conditional_access_root.py +10 -1
- office365/directory/identities/container.py +3 -9
- office365/directory/identities/providers/builtin_identity.py +3 -2
- office365/directory/identities/providers/saml_or_wsfed.py +4 -5
- office365/directory/identitygovernance/governance.py +14 -3
- office365/directory/identitygovernance/privilegedaccess/__init__.py +0 -0
- office365/directory/identitygovernance/privilegedaccess/root.py +5 -0
- office365/directory/key_credential.py +3 -0
- office365/directory/licenses/assignment_state.py +26 -2
- office365/directory/licenses/details.py +4 -3
- office365/directory/licenses/subscribed_sku.py +8 -10
- office365/directory/object_collection.py +40 -25
- office365/directory/password_credential.py +3 -0
- office365/directory/permissions/default_user_role.py +5 -0
- office365/directory/permissions/grants/condition_set.py +4 -2
- office365/directory/permissions/grants/oauth2.py +7 -10
- office365/directory/policies/authorization.py +50 -3
- office365/directory/policies/permission_grant.py +2 -0
- office365/directory/profile_photo.py +6 -6
- office365/directory/protection/riskyusers/risky_user.py +4 -4
- office365/directory/rolemanagement/resource_action.py +10 -0
- office365/directory/rolemanagement/role_permission.py +10 -0
- office365/directory/security/alerts/alert.py +5 -7
- office365/directory/security/attacksimulations/landing_page.py +5 -0
- office365/directory/security/attacksimulations/operation.py +5 -0
- office365/directory/security/attacksimulations/report.py +8 -1
- office365/directory/security/attacksimulations/root.py +33 -0
- office365/directory/security/attacksimulations/users/__init__.py +0 -0
- office365/directory/security/attacksimulations/users/details.py +5 -0
- office365/directory/security/hunting_query_results.py +5 -0
- office365/directory/security/incidents/incident.py +8 -13
- office365/directory/security/security.py +20 -3
- office365/directory/serviceprincipals/service_principal.py +3 -4
- office365/directory/synchronization/synchronization.py +2 -0
- office365/directory/users/activities/history_item.py +3 -2
- office365/directory/users/user.py +37 -10
- office365/entity_collection.py +3 -2
- office365/graph_client.py +58 -30
- office365/intune/audit/event.py +1 -3
- office365/intune/audit/event_collection.py +1 -1
- office365/intune/devices/alternative_security_id.py +4 -0
- office365/intune/devices/collection.py +57 -0
- office365/intune/devices/device.py +38 -10
- office365/intune/devices/management/management.py +12 -0
- office365/intune/organizations/organization.py +1 -0
- office365/onedrive/analytics/item_activity_stat.py +9 -0
- office365/onedrive/analytics/item_analytics.py +1 -0
- office365/onedrive/contenttypes/content_type.py +4 -12
- office365/onedrive/driveitems/driveItem.py +2 -1
- office365/onedrive/files/hashes.py +5 -0
- office365/onedrive/lists/collection.py +2 -2
- office365/onedrive/operations/long_running.py +6 -6
- office365/onedrive/operations/rich_long_running.py +4 -3
- office365/onedrive/permissions/collection.py +1 -14
- office365/onedrive/sharepoint_settings.py +6 -6
- office365/onedrive/sites/sites_with_root.py +1 -3
- office365/onedrive/termstore/store.py +2 -4
- office365/onedrive/termstore/terms/collection.py +1 -2
- office365/onedrive/workbooks/filter.py +9 -0
- office365/onedrive/workbooks/filter_criteria.py +5 -0
- office365/onedrive/workbooks/functions/functions.py +6 -3
- office365/onedrive/workbooks/functions/result.py +2 -0
- office365/onedrive/workbooks/operations/workbook.py +7 -10
- office365/onedrive/workbooks/tables/pivot_table.py +9 -9
- office365/onedrive/workbooks/worksheets/collection.py +0 -6
- office365/onedrive/workbooks/worksheets/protection.py +2 -0
- office365/outlook/calendar/permissions/permission.py +7 -7
- office365/outlook/calendar/place.py +5 -3
- office365/outlook/mail/attachments/collection.py +6 -1
- office365/outlook/mail/messages/message.py +1 -1
- office365/reports/root.py +50 -4
- office365/runtime/auth/providers/acs_token_provider.py +10 -7
- office365/runtime/auth/sts_profile.py +0 -1
- office365/runtime/client_object.py +18 -14
- office365/runtime/client_object_collection.py +8 -23
- office365/runtime/client_request_exception.py +1 -3
- office365/runtime/client_result.py +11 -14
- office365/runtime/client_runtime_context.py +11 -21
- office365/runtime/odata/json_format.py +4 -7
- office365/runtime/odata/v3/batch_request.py +7 -15
- office365/runtime/odata/v4/batch_request.py +13 -21
- office365/runtime/types/event_handler.py +1 -1
- office365/search/entity.py +3 -2
- office365/sharepoint/activities/facets/delete.py +1 -1
- office365/sharepoint/activities/tracked_item_service.py +2 -3
- office365/sharepoint/administration/web_application.py +8 -7
- office365/sharepoint/audit/audit.py +3 -2
- office365/sharepoint/changes/alert.py +4 -3
- office365/sharepoint/changes/collection.py +7 -10
- office365/sharepoint/changes/content_type.py +4 -4
- office365/sharepoint/changes/field.py +4 -5
- office365/sharepoint/changes/item.py +34 -7
- office365/sharepoint/changes/list.py +4 -4
- office365/sharepoint/changes/user.py +5 -6
- office365/sharepoint/clientsidecomponent/component_context_info.py +4 -3
- office365/sharepoint/contentcenter/machinelearning/enabled.py +4 -3
- office365/sharepoint/contentcenter/machinelearning/hub.py +6 -6
- office365/sharepoint/contentcenter/machinelearning/models/collection.py +1 -1
- office365/sharepoint/contenttypes/fieldlinks/collection.py +4 -6
- office365/sharepoint/contenttypes/fieldlinks/field_link.py +14 -22
- office365/sharepoint/entity.py +12 -5
- office365/sharepoint/entity_collection.py +1 -3
- office365/sharepoint/eventreceivers/definition.py +8 -12
- office365/sharepoint/features/collection.py +1 -2
- office365/sharepoint/features/definitions/definition.py +6 -3
- office365/sharepoint/fields/calculated.py +8 -14
- office365/sharepoint/fields/collection.py +42 -10
- office365/sharepoint/fields/computed.py +4 -5
- office365/sharepoint/fields/currency.py +7 -11
- office365/sharepoint/fields/date_time.py +4 -8
- office365/sharepoint/fields/field.py +6 -16
- office365/sharepoint/fields/lookup.py +11 -9
- office365/sharepoint/fields/multi_choice.py +8 -12
- office365/sharepoint/fields/multi_line_text.py +10 -14
- office365/sharepoint/fields/number.py +13 -26
- office365/sharepoint/fields/rating_scale.py +6 -10
- office365/sharepoint/fields/related_field.py +10 -17
- office365/sharepoint/fields/url.py +4 -5
- office365/sharepoint/fields/user.py +10 -9
- office365/sharepoint/files/collection.py +17 -15
- office365/sharepoint/files/file.py +30 -23
- office365/sharepoint/folders/collection.py +22 -5
- office365/sharepoint/folders/coloring.py +11 -9
- office365/sharepoint/folders/coloring_information.py +38 -0
- office365/sharepoint/folders/folder.py +22 -22
- office365/sharepoint/likes/liked_by_information.py +7 -10
- office365/sharepoint/likes/user_entity.py +6 -8
- office365/sharepoint/listitems/form_update_value.py +17 -1
- office365/sharepoint/listitems/listitem.py +2 -2
- office365/sharepoint/lists/bloom_filter.py +5 -7
- office365/sharepoint/lists/creatables_info.py +5 -6
- office365/sharepoint/lists/list.py +24 -9
- office365/sharepoint/lists/template.py +7 -4
- office365/sharepoint/lists/template_collection.py +2 -4
- office365/sharepoint/marketplace/app_metadata.py +14 -23
- office365/sharepoint/marketplace/sitecollection/appcatalog/allowed_item.py +6 -8
- office365/sharepoint/navigation/node.py +5 -8
- office365/sharepoint/permissions/irm/effective_settings.py +6 -8
- office365/sharepoint/permissions/irm/file_settings.py +8 -6
- office365/sharepoint/permissions/irm/settings.py +25 -43
- office365/sharepoint/portal/groups/site_manager.py +6 -7
- office365/sharepoint/publishing/embed_data_v1.py +8 -15
- office365/sharepoint/publishing/pages/campaign_publication.py +4 -3
- office365/sharepoint/publishing/primary_city_time.py +8 -9
- office365/sharepoint/publishing/video/service_discoverer.py +4 -3
- office365/sharepoint/pushnotifications/subscriber.py +11 -15
- office365/sharepoint/sharing/object_sharing_settings.py +24 -46
- office365/sharepoint/sharing/permission_information.py +5 -5
- office365/sharepoint/sharing/result.py +1 -0
- office365/sharepoint/sitedesigns/run.py +4 -3
- office365/sharepoint/sites/site.py +7 -16
- office365/sharepoint/taxonomy/field.py +32 -21
- office365/sharepoint/taxonomy/groups/group.py +12 -1
- office365/sharepoint/taxonomy/sets/set.py +6 -0
- office365/sharepoint/taxonomy/stores/store.py +4 -2
- office365/sharepoint/teams/channel.py +6 -6
- office365/sharepoint/tenant/administration/endpoints.py +4 -3
- office365/sharepoint/tenant/administration/hubsites/properties.py +4 -5
- office365/sharepoint/tenant/administration/sites/properties.py +0 -1
- office365/sharepoint/tenant/administration/spo_operation.py +4 -4
- office365/sharepoint/tenant/administration/tenant.py +1 -0
- office365/sharepoint/tenant/insights/report.py +11 -0
- office365/sharepoint/tenant/insights/report_manager.py +5 -0
- office365/sharepoint/tenant/insights/report_metadata.py +5 -0
- office365/sharepoint/tenant/settings.py +4 -3
- office365/sharepoint/translation/sync_translator.py +3 -2
- office365/sharepoint/ui/applicationpages/peoplepicker/entity_information.py +4 -4
- office365/sharepoint/usercustomactions/action.py +12 -20
- office365/sharepoint/userprofiles/followed_content.py +6 -10
- office365/sharepoint/userprofiles/people_manager.py +0 -1
- office365/sharepoint/userprofiles/person_properties.py +14 -30
- office365/sharepoint/userprofiles/personal_cache.py +4 -3
- office365/sharepoint/userprofiles/properties_for_user.py +4 -5
- office365/sharepoint/userprofiles/sharedwithme/document.py +12 -21
- office365/sharepoint/utilities/move_copy_util.py +19 -19
- office365/sharepoint/utilities/upload_status.py +7 -10
- office365/sharepoint/views/field_collection.py +9 -14
- office365/sharepoint/views/view.py +43 -64
- office365/sharepoint/webhooks/subscription.py +11 -19
- office365/sharepoint/webparts/webpart.py +3 -1
- office365/sharepoint/webs/modernize_homepage_result.py +4 -3
- office365/sharepoint/webs/regional_settings.py +9 -17
- office365/sharepoint/webs/template.py +3 -5
- office365/sharepoint/webs/web.py +14 -20
- office365/teams/operations/async_operation.py +5 -7
- office365/runtime/paths/item.py +0 -8
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/top_level.txt +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
@@ -7,24 +9,18 @@ class EventReceiverDefinition(Entity):
|
|
|
7
9
|
|
|
8
10
|
@property
|
|
9
11
|
def receiver_assembly(self):
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
:rtype: str or None
|
|
13
|
-
"""
|
|
12
|
+
# type: () -> Optional[str]
|
|
13
|
+
"""Specifies the strong name of the assembly that is used for the event receiver."""
|
|
14
14
|
return self.properties.get("ReceiverAssembly", None)
|
|
15
15
|
|
|
16
16
|
@property
|
|
17
17
|
def receiver_class(self):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
:rtype: str or None
|
|
21
|
-
"""
|
|
18
|
+
# type: () -> Optional[str]
|
|
19
|
+
"""Specifies the strong name of the assembly that is used for the event receiver."""
|
|
22
20
|
return self.properties.get("ReceiverClass", None)
|
|
23
21
|
|
|
24
22
|
@property
|
|
25
23
|
def receiver_url(self):
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
:rtype: str or None
|
|
29
|
-
"""
|
|
24
|
+
# type: () -> Optional[str]
|
|
25
|
+
"""Gets the URL of the receiver for the event."""
|
|
30
26
|
return self.properties.get("ReceiverUrl", None)
|
|
@@ -36,8 +36,7 @@ class FeatureCollection(EntityCollection[Feature]):
|
|
|
36
36
|
self.context.add_query(_create_query())
|
|
37
37
|
|
|
38
38
|
if verify_if_activated:
|
|
39
|
-
|
|
40
|
-
self.context.load(feature, after_loaded=_create_if_not_activated)
|
|
39
|
+
self.get_by_id(feature_id).get().after_execute(_create_if_not_activated)
|
|
41
40
|
else:
|
|
42
41
|
self.context.add_query(_create_query())
|
|
43
42
|
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class FeatureDefinition(Entity):
|
|
5
7
|
"""Contains the base definition of a feature, including its name, ID, scope, and version."""
|
|
6
8
|
|
|
9
|
+
def __str__(self):
|
|
10
|
+
return self.display_name or self.entity_type_name
|
|
11
|
+
|
|
7
12
|
@property
|
|
8
13
|
def display_name(self):
|
|
9
|
-
|
|
10
|
-
:rtype: str or None
|
|
11
|
-
"""
|
|
14
|
+
# type: () -> Optional[str]
|
|
12
15
|
return self.properties.get("DisplayName", None)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.fields.field import Field
|
|
2
4
|
|
|
3
5
|
|
|
@@ -11,26 +13,18 @@ class FieldCalculated(Field):
|
|
|
11
13
|
|
|
12
14
|
@property
|
|
13
15
|
def currency_locale_id(self):
|
|
14
|
-
|
|
15
|
-
Gets the locale ID that is used for currency on the Web site.
|
|
16
|
-
|
|
17
|
-
:rtype: int or None
|
|
18
|
-
"""
|
|
16
|
+
# type: () -> Optional[int]
|
|
17
|
+
"""Gets the locale ID that is used for currency on the Web site."""
|
|
19
18
|
return self.properties.get("CurrencyLocaleId", None)
|
|
20
19
|
|
|
21
20
|
@property
|
|
22
21
|
def formula(self):
|
|
23
|
-
|
|
24
|
-
Specifies the formula for the field
|
|
25
|
-
|
|
26
|
-
:rtype: str or None
|
|
27
|
-
"""
|
|
22
|
+
# type: () -> Optional[str]
|
|
23
|
+
"""Specifies the formula for the field"""
|
|
28
24
|
return self.properties.get("Formula", None)
|
|
29
25
|
|
|
30
26
|
@formula.setter
|
|
31
27
|
def formula(self, val):
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
:type val: str
|
|
35
|
-
"""
|
|
28
|
+
# type: (str) -> None
|
|
29
|
+
"""Sets a value that specifies the Formula."""
|
|
36
30
|
self.set_property("Formula", val)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
2
4
|
from office365.runtime.queries.create_entity import CreateEntityQuery
|
|
3
5
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
@@ -7,12 +9,20 @@ from office365.sharepoint.fields.creation_information import FieldCreationInform
|
|
|
7
9
|
from office365.sharepoint.fields.date_time import FieldDateTime
|
|
8
10
|
from office365.sharepoint.fields.field import Field
|
|
9
11
|
from office365.sharepoint.fields.geolocation import FieldGeolocation
|
|
12
|
+
from office365.sharepoint.fields.number import FieldNumber
|
|
13
|
+
from office365.sharepoint.fields.text import FieldText
|
|
10
14
|
from office365.sharepoint.fields.type import FieldType
|
|
15
|
+
from office365.sharepoint.fields.url import FieldUrl
|
|
11
16
|
from office365.sharepoint.fields.xmlSchemaFieldCreationInformation import (
|
|
12
17
|
XmlSchemaFieldCreationInformation,
|
|
13
18
|
)
|
|
14
19
|
from office365.sharepoint.taxonomy.field import TaxonomyField
|
|
15
20
|
from office365.sharepoint.taxonomy.sets.set import TermSet
|
|
21
|
+
from office365.sharepoint.taxonomy.stores.store import TermStore
|
|
22
|
+
|
|
23
|
+
if TYPE_CHECKING:
|
|
24
|
+
from office365.sharepoint.lists.list import List
|
|
25
|
+
from office365.sharepoint.webs.web import Web
|
|
16
26
|
|
|
17
27
|
|
|
18
28
|
class FieldCollection(EntityCollection[Field]):
|
|
@@ -39,6 +49,7 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
39
49
|
return return_type
|
|
40
50
|
|
|
41
51
|
def add_datetime(self, title, description=None):
|
|
52
|
+
# type: (str, Optional[str]) -> FieldDateTime
|
|
42
53
|
"""
|
|
43
54
|
Creates DateTime field
|
|
44
55
|
:param str title: Specifies the display name of the field
|
|
@@ -50,10 +61,11 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
50
61
|
description=description,
|
|
51
62
|
field_type_kind=FieldType.DateTime,
|
|
52
63
|
)
|
|
53
|
-
)
|
|
64
|
+
)
|
|
54
65
|
return return_type
|
|
55
66
|
|
|
56
67
|
def add_geolocation_field(self, title, description=None):
|
|
68
|
+
# type: (str, Optional[str]) -> FieldGeolocation
|
|
57
69
|
"""
|
|
58
70
|
Creates Geolocation field
|
|
59
71
|
|
|
@@ -66,13 +78,29 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
66
78
|
description=description,
|
|
67
79
|
field_type_kind=FieldType.Geolocation,
|
|
68
80
|
)
|
|
69
|
-
)
|
|
81
|
+
)
|
|
82
|
+
return return_type
|
|
83
|
+
|
|
84
|
+
def add_number(self, title, description=None):
|
|
85
|
+
# type: (str, Optional[str]) -> FieldNumber
|
|
86
|
+
"""
|
|
87
|
+
Creates Number field
|
|
88
|
+
:param str title: Specifies the display name of the field
|
|
89
|
+
:param str or None description: Specifies the description of the field
|
|
90
|
+
"""
|
|
91
|
+
return_type = self.add(
|
|
92
|
+
FieldCreationInformation(
|
|
93
|
+
title=title,
|
|
94
|
+
description=description,
|
|
95
|
+
field_type_kind=FieldType.Number,
|
|
96
|
+
)
|
|
97
|
+
)
|
|
70
98
|
return return_type
|
|
71
99
|
|
|
72
100
|
def add_url_field(self, title, description=None):
|
|
101
|
+
# type: (str, Optional[str]) -> FieldUrl
|
|
73
102
|
"""
|
|
74
103
|
Creates Url field
|
|
75
|
-
|
|
76
104
|
:param str title: Specifies the display name of the field
|
|
77
105
|
:param str or None description:
|
|
78
106
|
"""
|
|
@@ -124,8 +152,6 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
124
152
|
return_type=return_type,
|
|
125
153
|
)
|
|
126
154
|
|
|
127
|
-
from office365.sharepoint.lists.list import List
|
|
128
|
-
|
|
129
155
|
if isinstance(lookup_list, List):
|
|
130
156
|
|
|
131
157
|
def _lookup_list_loaded():
|
|
@@ -158,11 +184,10 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
158
184
|
return self.add_field(FieldCreationInformation(title, FieldType.User))
|
|
159
185
|
|
|
160
186
|
def add_text_field(self, title):
|
|
187
|
+
# type: (str) -> FieldText
|
|
161
188
|
"""
|
|
162
189
|
Creates a Text field
|
|
163
|
-
|
|
164
190
|
:param str title: specifies the display name of the field
|
|
165
|
-
:rtype: office365.sharepoint.fields.text.FieldText
|
|
166
191
|
"""
|
|
167
192
|
return self.add_field(FieldCreationInformation(title, FieldType.Text))
|
|
168
193
|
|
|
@@ -245,6 +270,7 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
245
270
|
else:
|
|
246
271
|
|
|
247
272
|
def _term_store_loaded(term_store):
|
|
273
|
+
# type: (TermStore) -> None
|
|
248
274
|
TaxonomyField.create(
|
|
249
275
|
self,
|
|
250
276
|
name,
|
|
@@ -254,9 +280,10 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
254
280
|
return_type=return_type,
|
|
255
281
|
)
|
|
256
282
|
|
|
257
|
-
self.context.load(
|
|
258
|
-
|
|
283
|
+
self.context.load(self.context.taxonomy.term_store).after_query_execute(
|
|
284
|
+
_term_store_loaded
|
|
259
285
|
)
|
|
286
|
+
|
|
260
287
|
return return_type
|
|
261
288
|
|
|
262
289
|
def create_field_as_xml(self, schema_xml, return_type=None):
|
|
@@ -287,7 +314,7 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
287
314
|
)
|
|
288
315
|
|
|
289
316
|
def get_by_internal_name_or_title(self, value):
|
|
290
|
-
"""Returns the first field
|
|
317
|
+
"""Returns the first field in the collection based on the internal name or the title specified
|
|
291
318
|
by the parameter.
|
|
292
319
|
|
|
293
320
|
:param str value: The title or internal name to look up the field (2) by.
|
|
@@ -309,3 +336,8 @@ class FieldCollection(EntityCollection[Field]):
|
|
|
309
336
|
self.context,
|
|
310
337
|
ServiceOperationPath("getByTitle", [title], self.resource_path),
|
|
311
338
|
)
|
|
339
|
+
|
|
340
|
+
@property
|
|
341
|
+
def parent(self):
|
|
342
|
+
# type: () -> Web|List
|
|
343
|
+
return self._parent
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.fields.field import Field
|
|
2
4
|
|
|
3
5
|
|
|
@@ -10,9 +12,6 @@ class FieldComputed(Field):
|
|
|
10
12
|
|
|
11
13
|
@property
|
|
12
14
|
def enable_lookup(self):
|
|
13
|
-
|
|
14
|
-
Specifies whether a lookup field can reference the field
|
|
15
|
-
|
|
16
|
-
:rtype: bool or None
|
|
17
|
-
"""
|
|
15
|
+
# type: () -> Optional[bool]
|
|
16
|
+
"""Specifies whether a lookup field can reference the field."""
|
|
18
17
|
return self.properties.get("EnableLookup", None)
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.fields.number import FieldNumber
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class FieldCurrency(FieldNumber):
|
|
5
|
-
"""Specifies a field
|
|
7
|
+
"""Specifies a field that contains currency values. To set properties, call the Update method
|
|
6
8
|
(section 3.2.5.43.2.1.5)."""
|
|
7
9
|
|
|
8
10
|
@property
|
|
9
11
|
def currency_locale_id(self):
|
|
10
|
-
|
|
11
|
-
Gets the language code identifier (LCID) used to format the value of the field.
|
|
12
|
-
|
|
13
|
-
:rtype: int or None
|
|
14
|
-
"""
|
|
12
|
+
# type: () -> Optional[int]
|
|
13
|
+
"""Gets the language code identifier (LCID) used to format the value of the field."""
|
|
15
14
|
return self.properties.get("CurrencyLocaleId", None)
|
|
16
15
|
|
|
17
16
|
@currency_locale_id.setter
|
|
18
17
|
def currency_locale_id(self, value):
|
|
19
|
-
|
|
20
|
-
Sets the language code identifier (LCID) used to format the value of the field.
|
|
21
|
-
|
|
22
|
-
:type value: int
|
|
23
|
-
"""
|
|
18
|
+
# type: (int) -> None
|
|
19
|
+
"""Sets the language code identifier (LCID) used to format the value of the field."""
|
|
24
20
|
self.set_property("CurrencyLocaleId", value)
|
|
@@ -9,18 +9,14 @@ class FieldDateTime(Field):
|
|
|
9
9
|
|
|
10
10
|
@property
|
|
11
11
|
def datetime_calendar_type(self):
|
|
12
|
-
|
|
13
|
-
Gets the calendar type of the field
|
|
14
|
-
:rtype: int or None
|
|
15
|
-
"""
|
|
12
|
+
# type: () -> Optional[int]
|
|
13
|
+
"""Gets the calendar type of the field"""
|
|
16
14
|
return self.properties.get("DateTimeCalendarType", None)
|
|
17
15
|
|
|
18
16
|
@datetime_calendar_type.setter
|
|
19
17
|
def datetime_calendar_type(self, value):
|
|
20
|
-
|
|
21
|
-
Sets Gets the calendar type of the field
|
|
22
|
-
:type value: int
|
|
23
|
-
"""
|
|
18
|
+
# type: (int) -> None
|
|
19
|
+
"""Sets Gets the calendar type of the field"""
|
|
24
20
|
self.set_property("DateTimeCalendarType", value)
|
|
25
21
|
|
|
26
22
|
@property
|
|
@@ -69,7 +69,6 @@ class Field(Entity):
|
|
|
69
69
|
|
|
70
70
|
:type context: office365.sharepoint.client_context.ClientContext
|
|
71
71
|
:type field_parameters: office365.sharepoint.fields.creation_information.FieldCreationInformation
|
|
72
|
-
:return: Field
|
|
73
72
|
"""
|
|
74
73
|
field_type = Field.resolve_field_type(field_parameters.FieldTypeKind)
|
|
75
74
|
field = field_type(context)
|
|
@@ -124,19 +123,14 @@ class Field(Entity):
|
|
|
124
123
|
|
|
125
124
|
@property
|
|
126
125
|
def id(self):
|
|
127
|
-
|
|
128
|
-
Gets a value that specifies the field identifier.
|
|
129
|
-
|
|
130
|
-
:rtype: str or None
|
|
131
|
-
"""
|
|
126
|
+
# type: () -> Optional[str]
|
|
127
|
+
"""Gets a value that specifies the field identifier."""
|
|
132
128
|
return self.properties.get("Id", None)
|
|
133
129
|
|
|
134
130
|
@property
|
|
135
131
|
def auto_indexed(self):
|
|
136
|
-
|
|
137
|
-
Gets a Boolean value that specifies whether the field is auto-indexed.
|
|
138
|
-
:rtype: str or None
|
|
139
|
-
"""
|
|
132
|
+
# type: () -> Optional[bool]
|
|
133
|
+
"""Gets a Boolean value that specifies whether the field is auto-indexed."""
|
|
140
134
|
return self.properties.get("AutoIndexed", None)
|
|
141
135
|
|
|
142
136
|
@property
|
|
@@ -200,17 +194,13 @@ class Field(Entity):
|
|
|
200
194
|
@property
|
|
201
195
|
def internal_name(self):
|
|
202
196
|
# type: () -> Optional[str]
|
|
203
|
-
"""
|
|
204
|
-
Gets a value that specifies the field internal name.
|
|
205
|
-
"""
|
|
197
|
+
"""Gets a value that specifies the field internal name."""
|
|
206
198
|
return self.properties.get("InternalName", None)
|
|
207
199
|
|
|
208
200
|
@property
|
|
209
201
|
def can_be_deleted(self):
|
|
210
202
|
# type: () -> Optional[bool]
|
|
211
|
-
"""
|
|
212
|
-
Gets a value that specifies whether the field can be deleted
|
|
213
|
-
"""
|
|
203
|
+
"""Gets a value that specifies whether the field can be deleted"""
|
|
214
204
|
return self.properties.get("CanBeDeleted", None)
|
|
215
205
|
|
|
216
206
|
@property
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.fields.field import Field
|
|
2
4
|
|
|
3
5
|
|
|
@@ -6,38 +8,38 @@ class FieldLookup(Field):
|
|
|
6
8
|
|
|
7
9
|
@property
|
|
8
10
|
def allow_multiple_values(self):
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"""
|
|
11
|
+
# type: () -> Optional[bool]
|
|
12
|
+
"""Gets a value that specifies whether the lookup field allows multiple values."""
|
|
12
13
|
return self.properties.get("AllowMultipleValues", None)
|
|
13
14
|
|
|
14
15
|
@allow_multiple_values.setter
|
|
15
16
|
def allow_multiple_values(self, value):
|
|
17
|
+
# type: (bool) -> None
|
|
16
18
|
"""Sets a value that specifies whether the lookup field allows multiple values."""
|
|
17
19
|
self.set_property("AllowMultipleValues", value)
|
|
18
20
|
|
|
19
21
|
@property
|
|
20
22
|
def lookup_web_id(self):
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"""
|
|
23
|
+
# type: () -> Optional[str]
|
|
24
|
+
"""Gets the ID of the Web site that contains the list that is the source of this field's value."""
|
|
24
25
|
return self.properties.get("LookupWebId", None)
|
|
25
26
|
|
|
26
27
|
@lookup_web_id.setter
|
|
27
28
|
def lookup_web_id(self, val):
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"""
|
|
29
|
+
# type: (str) -> None
|
|
30
|
+
"""Sets the ID of the Web site that contains the list that is the source of this field's value."""
|
|
31
31
|
self.set_property("LookupWebId", val, True)
|
|
32
32
|
|
|
33
33
|
@property
|
|
34
34
|
def lookup_list(self):
|
|
35
|
+
# type: () -> Optional[str]
|
|
35
36
|
"""Gets value that specifies the list identifier of the list that contains the field to use as the lookup
|
|
36
37
|
values."""
|
|
37
38
|
return self.properties.get("LookupList", None)
|
|
38
39
|
|
|
39
40
|
@lookup_list.setter
|
|
40
41
|
def lookup_list(self, val):
|
|
42
|
+
# type: (str) -> None
|
|
41
43
|
"""Sets a value that specifies the list identifier of the list that contains the field to use as
|
|
42
44
|
the lookup values."""
|
|
43
45
|
self.set_property("LookupList", val, True)
|
|
@@ -1,32 +1,28 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.types.collections import StringCollection
|
|
2
4
|
from office365.sharepoint.fields.field import Field
|
|
3
5
|
|
|
4
6
|
|
|
5
7
|
class FieldMultiChoice(Field):
|
|
6
|
-
"""Specifies a field
|
|
8
|
+
"""Specifies a field that contains one or more values from a set of specified values."""
|
|
7
9
|
|
|
8
10
|
@property
|
|
9
11
|
def fill_in_choice(self):
|
|
12
|
+
# type: () -> Optional[bool]
|
|
10
13
|
"""
|
|
11
|
-
Specifies whether the field
|
|
14
|
+
Specifies whether the field can accept values other than those specified in
|
|
12
15
|
Microsoft.Sharepoint.Client.FieldMultiChoice.Choices, as specified in section 3.2.5.51.1.1.2.
|
|
13
|
-
|
|
14
|
-
:rtype: bool or None
|
|
15
16
|
"""
|
|
16
17
|
return self.properties.get("FillInChoice", None)
|
|
17
18
|
|
|
18
19
|
@property
|
|
19
20
|
def mappings(self):
|
|
20
|
-
|
|
21
|
-
Specifies the internal values corresponding to Choices.
|
|
22
|
-
|
|
23
|
-
:rtype: str or None
|
|
24
|
-
"""
|
|
21
|
+
# type: () -> Optional[str]
|
|
22
|
+
"""Specifies the internal values corresponding to Choices."""
|
|
25
23
|
return self.properties.get("Mappings", None)
|
|
26
24
|
|
|
27
25
|
@property
|
|
28
26
|
def choices(self):
|
|
29
|
-
"""
|
|
30
|
-
Specifies values that are available for selection in the field
|
|
31
|
-
"""
|
|
27
|
+
"""Specifies values that are available for selection in the field"""
|
|
32
28
|
return self.properties.get("Choices", StringCollection())
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.fields.field import Field
|
|
2
4
|
|
|
3
5
|
|
|
@@ -8,30 +10,24 @@ class FieldMultiLineText(Field):
|
|
|
8
10
|
|
|
9
11
|
@property
|
|
10
12
|
def allow_hyperlink(self):
|
|
11
|
-
|
|
12
|
-
Gets a value that specifies whether a hyperlink is allowed as a value of the field.
|
|
13
|
-
:rtype: bool or None
|
|
14
|
-
"""
|
|
13
|
+
# type: () -> Optional[bool]
|
|
14
|
+
"""Gets a value that specifies whether a hyperlink is allowed as a value of the field."""
|
|
15
15
|
return self.properties.get("AllowHyperlink", None)
|
|
16
16
|
|
|
17
17
|
@allow_hyperlink.setter
|
|
18
18
|
def allow_hyperlink(self, val):
|
|
19
|
-
|
|
20
|
-
Sets a value that specifies whether a hyperlink is allowed as a value of the field.
|
|
21
|
-
"""
|
|
19
|
+
# type: (bool) -> None
|
|
20
|
+
"""Sets a value that specifies whether a hyperlink is allowed as a value of the field."""
|
|
22
21
|
self.set_property("AllowHyperlink", val)
|
|
23
22
|
|
|
24
23
|
@property
|
|
25
24
|
def number_of_lines(self):
|
|
26
|
-
|
|
27
|
-
Gets the number of lines to display in the field.
|
|
28
|
-
:return:
|
|
29
|
-
"""
|
|
25
|
+
# type: () -> Optional[int]
|
|
26
|
+
"""Gets the number of lines to display in the field."""
|
|
30
27
|
return self.properties.get("NumberOfLines", None)
|
|
31
28
|
|
|
32
29
|
@number_of_lines.setter
|
|
33
30
|
def number_of_lines(self, val):
|
|
34
|
-
|
|
35
|
-
Set the number of lines to display in the field.
|
|
36
|
-
"""
|
|
31
|
+
# type: (int) -> None
|
|
32
|
+
"""Set the number of lines to display in the field."""
|
|
37
33
|
self.set_property("NumberOfLines", val)
|
|
@@ -1,51 +1,38 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.fields.field import Field
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class FieldNumber(Field):
|
|
5
|
-
"""Specifies a field
|
|
7
|
+
"""Specifies a field that contains number values. To set properties, call the Update method
|
|
6
8
|
(section 3.2.5.53.2.1.5)."""
|
|
7
9
|
|
|
8
10
|
@property
|
|
9
11
|
def display_format(self):
|
|
10
|
-
|
|
11
|
-
Gets the number of decimal places to be used when displaying the field.
|
|
12
|
-
|
|
13
|
-
:rtype: int or None
|
|
14
|
-
"""
|
|
12
|
+
# type: () -> Optional[int]
|
|
13
|
+
"""Gets the number of decimal places to be used when displaying the field."""
|
|
15
14
|
return self.properties.get("DisplayFormat", None)
|
|
16
15
|
|
|
17
16
|
@property
|
|
18
17
|
def comma_separator(self):
|
|
19
|
-
|
|
20
|
-
Gets the separator used to format the value of the field.
|
|
21
|
-
|
|
22
|
-
:rtype: str or None
|
|
23
|
-
"""
|
|
18
|
+
# type: () -> Optional[str]
|
|
19
|
+
"""Gets the separator used to format the value of the field."""
|
|
24
20
|
return self.properties.get("CommaSeparator", None)
|
|
25
21
|
|
|
26
22
|
@comma_separator.setter
|
|
27
23
|
def comma_separator(self, value):
|
|
28
|
-
|
|
29
|
-
Sets the separator used to format the value of the field.
|
|
30
|
-
|
|
31
|
-
:type value: str
|
|
32
|
-
"""
|
|
24
|
+
# type: (str) -> None
|
|
25
|
+
"""Sets the separator used to format the value of the field."""
|
|
33
26
|
self.set_property("CommaSeparator", value)
|
|
34
27
|
|
|
35
28
|
@property
|
|
36
29
|
def show_as_percentage(self):
|
|
37
|
-
|
|
38
|
-
Gets a Boolean value that specifies whether to render the field as a percentage.
|
|
39
|
-
|
|
40
|
-
:rtype: int or None
|
|
41
|
-
"""
|
|
30
|
+
# type: () -> Optional[bool]
|
|
31
|
+
"""Gets a Boolean value that specifies whether to render the field as a percentage."""
|
|
42
32
|
return self.properties.get("ShowAsPercentage", None)
|
|
43
33
|
|
|
44
34
|
@show_as_percentage.setter
|
|
45
35
|
def show_as_percentage(self, value):
|
|
46
|
-
|
|
47
|
-
Sets a Boolean value that specifies whether to render the field as a percentage.
|
|
48
|
-
|
|
49
|
-
:type value: str
|
|
50
|
-
"""
|
|
36
|
+
# type: (bool) -> None
|
|
37
|
+
"""Sets a Boolean value that specifies whether to render the field as a percentage."""
|
|
51
38
|
self.set_property("ShowAsPercentage", value)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.fields.multi_choice import FieldMultiChoice
|
|
2
4
|
|
|
3
5
|
|
|
@@ -7,11 +9,8 @@ class FieldRatingScale(FieldMultiChoice):
|
|
|
7
9
|
|
|
8
10
|
@property
|
|
9
11
|
def grid_start_number(self):
|
|
10
|
-
|
|
11
|
-
Gets the start number for the rating scale.
|
|
12
|
-
|
|
13
|
-
:rtype: int or None
|
|
14
|
-
"""
|
|
12
|
+
# type: () -> Optional[int]
|
|
13
|
+
"""Gets the start number for the rating scale."""
|
|
15
14
|
return self.properties.get("GridStartNumber", None)
|
|
16
15
|
|
|
17
16
|
@grid_start_number.setter
|
|
@@ -25,9 +24,6 @@ class FieldRatingScale(FieldMultiChoice):
|
|
|
25
24
|
|
|
26
25
|
@property
|
|
27
26
|
def range_count(self):
|
|
28
|
-
|
|
29
|
-
Specifies the number of options in the rating scale.
|
|
30
|
-
|
|
31
|
-
:rtype: int or None
|
|
32
|
-
"""
|
|
27
|
+
# type: () -> Optional[int]
|
|
28
|
+
"""Specifies the number of options in the rating scale."""
|
|
33
29
|
return self.properties.get("RangeCount", None)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
4
|
from office365.sharepoint.entity import Entity
|
|
3
5
|
|
|
@@ -7,35 +9,26 @@ class RelatedField(Entity):
|
|
|
7
9
|
|
|
8
10
|
@property
|
|
9
11
|
def field_id(self):
|
|
10
|
-
|
|
11
|
-
Gets the field id of the corresponding Lookup Field.
|
|
12
|
-
:rtype: str or None
|
|
13
|
-
"""
|
|
12
|
+
# type: () -> Optional[str]
|
|
13
|
+
"""Gets the field id of the corresponding Lookup Field."""
|
|
14
14
|
return self.properties.get("FieldId", None)
|
|
15
15
|
|
|
16
16
|
@property
|
|
17
17
|
def list_id(self):
|
|
18
|
-
|
|
19
|
-
Gets the ID of the List containing the corresponding Lookup Field.
|
|
20
|
-
:rtype: str or None
|
|
21
|
-
"""
|
|
18
|
+
# type: () -> Optional[str]
|
|
19
|
+
"""Gets the ID of the List containing the corresponding Lookup Field."""
|
|
22
20
|
return self.properties.get("ListId", None)
|
|
23
21
|
|
|
24
22
|
@property
|
|
25
23
|
def web_id(self):
|
|
26
|
-
|
|
27
|
-
Gets the ID of the Web containing the corresponding Lookup Field.
|
|
28
|
-
:rtype: str or None
|
|
29
|
-
"""
|
|
24
|
+
# type: () -> Optional[str]
|
|
25
|
+
"""Gets the ID of the Web containing the corresponding Lookup Field."""
|
|
30
26
|
return self.properties.get("WebId", None)
|
|
31
27
|
|
|
32
28
|
@property
|
|
33
29
|
def relationship_delete_behavior(self):
|
|
34
|
-
|
|
35
|
-
Gets delete behavior of the corresponding Lookup Field.
|
|
36
|
-
|
|
37
|
-
:rtype: int or None
|
|
38
|
-
"""
|
|
30
|
+
# type: () -> Optional[int]
|
|
31
|
+
"""Gets delete behavior of the corresponding Lookup Field."""
|
|
39
32
|
return self.properties.get("RelationshipDeleteBehavior", None)
|
|
40
33
|
|
|
41
34
|
@property
|