Office365-REST-Python-Client 2.4.3__py3-none-any.whl → 2.4.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.
- {Office365_REST_Python_Client-2.4.3.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/METADATA +8 -7
- {Office365_REST_Python_Client-2.4.3.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/RECORD +254 -162
- office365/base_item.py +26 -4
- office365/communications/calls/invitation_participant_info.py +17 -1
- office365/communications/calls/options.py +9 -0
- office365/communications/onlinemeetings/provider_type.py +3 -0
- office365/communications/presences/presence.py +14 -0
- office365/communications/presences/status_message.py +12 -0
- office365/directory/audit/signins/activity.py +31 -0
- office365/directory/audit/signins/location.py +17 -0
- office365/directory/audit/signins/signin.py +25 -0
- office365/directory/authentication/authentication.py +9 -0
- office365/directory/authentication/methods/details.py +18 -0
- office365/directory/authentication/methods/email.py +16 -0
- office365/directory/authentication/methods/root.py +10 -0
- office365/directory/certificates/authority.py +6 -1
- office365/directory/extensions/extended_property.py +8 -1
- office365/directory/extensions/extension_property.py +0 -3
- office365/directory/extensions/open_type.py +8 -0
- office365/directory/groups/group.py +2 -1
- office365/directory/identities/governance.py +2 -0
- office365/directory/insights/shared.py +15 -1
- office365/directory/insights/usage_details.py +16 -0
- office365/directory/insights/used.py +7 -0
- office365/directory/licenses/assigned_plan.py +14 -2
- office365/directory/licenses/service_plan_info.py +4 -0
- office365/directory/licenses/subscribed_sku.py +26 -0
- office365/directory/licenses/units_detail.py +11 -0
- office365/directory/permissions/email_identity.py +5 -0
- office365/directory/permissions/grants/condition_set.py +26 -0
- office365/directory/permissions/grants/resource_specific.py +21 -0
- office365/directory/policies/authentication_flows.py +9 -0
- office365/directory/policies/authentication_strength.py +10 -0
- office365/directory/policies/authorization.py +8 -0
- office365/directory/policies/cross_tenant_access.py +5 -0
- office365/directory/policies/root.py +35 -2
- office365/directory/rolemanagement/template.py +8 -0
- office365/directory/rolemanagement/unified_role_assignment.py +37 -0
- office365/directory/security/alerts/alert.py +21 -0
- office365/directory/security/alerts/history_state.py +5 -0
- office365/directory/security/attacksimulations/automation.py +21 -0
- office365/directory/security/attacksimulations/automation_run.py +5 -0
- office365/directory/security/attacksimulations/repeat_offender.py +6 -0
- office365/directory/security/attacksimulations/root.py +26 -0
- office365/directory/security/attacksimulations/simulation.py +17 -0
- office365/directory/security/cases/ediscovery.py +6 -0
- office365/directory/security/cases/root.py +22 -0
- office365/directory/security/incidents/incident.py +67 -0
- office365/directory/security/security.py +10 -1
- office365/directory/serviceprincipals/service_principal.py +88 -3
- office365/directory/synchronization/job.py +16 -0
- office365/directory/synchronization/progress.py +5 -0
- office365/directory/synchronization/status.py +13 -0
- office365/directory/synchronization/synchronization.py +24 -0
- office365/directory/tenant_information.py +12 -0
- office365/directory/users/password_profile.py +15 -3
- office365/directory/users/user.py +136 -8
- office365/graph_client.py +28 -1
- office365/intune/audit/actor.py +5 -0
- office365/intune/audit/event.py +21 -25
- office365/intune/audit/event_collection.py +26 -0
- office365/intune/audit/property.py +5 -0
- office365/intune/audit/resource.py +11 -0
- office365/intune/brand.py +6 -0
- office365/intune/devices/compliance/__init__.py +0 -0
- office365/intune/devices/compliance/policy.py +6 -0
- office365/intune/devices/compliance/policy_state.py +5 -0
- office365/intune/devices/enrollment/__init__.py +0 -0
- office365/intune/devices/enrollment/configuration.py +25 -0
- office365/intune/devices/enrollment/configuration_assignment.py +5 -0
- office365/intune/devices/enrollment/limit_configuration.py +5 -0
- office365/intune/devices/managed.py +28 -3
- office365/intune/devices/management/__init__.py +0 -0
- office365/intune/devices/management/management.py +69 -0
- office365/intune/devices/management/reports/__init__.py +0 -0
- office365/intune/devices/management/reports/reports.py +5 -0
- office365/intune/devices/management/settings.py +18 -0
- office365/intune/organizations/branding.py +15 -0
- office365/intune/organizations/organization.py +14 -0
- office365/intune/printing/base.py +11 -0
- office365/intune/printing/capabilities.py +5 -0
- office365/intune/printing/connectors/__init__.py +0 -0
- office365/intune/printing/connectors/connector.py +6 -0
- office365/intune/printing/operations/__init__.py +0 -0
- office365/intune/printing/print.py +24 -0
- office365/intune/printing/printer.py +6 -0
- office365/intune/printing/services/__init__.py +0 -0
- office365/intune/printing/services/endpoint.py +5 -0
- office365/intune/printing/services/service.py +17 -0
- office365/intune/printing/share.py +5 -0
- office365/intune/printing/shares/__init__.py +0 -0
- office365/intune/printing/taskdefinitions/__init__.py +0 -0
- office365/intune/provisioned_plan.py +5 -1
- office365/intune/servicecommunications/issues/issue.py +15 -0
- office365/intune/vpp_token.py +10 -0
- office365/onedrive/columns/content_approval_status.py +5 -0
- office365/onedrive/columns/datetime.py +15 -0
- office365/onedrive/columns/definition.py +49 -3
- office365/onedrive/columns/definition_collection.py +17 -6
- office365/onedrive/columns/types.py +13 -0
- office365/onedrive/driveitems/audio.py +12 -1
- office365/onedrive/driveitems/driveItem.py +66 -15
- office365/onedrive/driveitems/image.py +8 -1
- office365/onedrive/driveitems/remote_item.py +19 -4
- office365/onedrive/drives/recipient.py +4 -0
- office365/onedrive/files/system_info.py +8 -6
- office365/onedrive/lists/collection.py +11 -5
- office365/onedrive/lists/list.py +13 -5
- office365/onedrive/operations/pending.py +13 -0
- office365/onedrive/operations/pending_content_update.py +5 -0
- office365/onedrive/permissions/collection.py +1 -1
- office365/onedrive/sensitivitylabels/__init__.py +0 -0
- office365/onedrive/sensitivitylabels/assignment.py +17 -0
- office365/onedrive/sensitivitylabels/assignment_method.py +4 -0
- office365/onedrive/sensitivitylabels/extract_result.py +13 -0
- office365/onedrive/sharepoint_settings.py +25 -0
- office365/outlook/calendar/calendar.py +116 -5
- office365/outlook/calendar/dateTimeTimeZone.py +3 -0
- office365/outlook/calendar/email_address.py +7 -0
- office365/outlook/calendar/events/event.py +0 -4
- office365/outlook/calendar/events/reminder.py +22 -3
- office365/outlook/calendar/group.py +0 -2
- office365/outlook/calendar/location_constraint.py +16 -1
- office365/outlook/calendar/permissions/__init__.py +0 -0
- office365/outlook/calendar/permissions/collection.py +24 -0
- office365/outlook/calendar/{permission.py → permissions/permission.py} +35 -2
- office365/outlook/calendar/role_type.py +17 -0
- office365/outlook/calendar/sharing_message.py +2 -2
- office365/outlook/calendar/time_zone_base.py +3 -0
- office365/outlook/calendar/working_hours.py +17 -1
- office365/outlook/contacts/collection.py +39 -0
- office365/outlook/contacts/contact.py +21 -11
- office365/outlook/geo_coordinates.py +20 -0
- office365/outlook/item.py +5 -2
- office365/outlook/locale_info.py +3 -0
- office365/outlook/mail/folders/folder.py +51 -2
- office365/outlook/mail/folders/search.py +11 -0
- office365/outlook/mail/importance.py +1 -0
- office365/outlook/mail/item_body.py +3 -0
- office365/outlook/mail/location.py +27 -2
- office365/outlook/mail/location_constraint_item.py +5 -0
- office365/outlook/mail/messages/collection.py +7 -0
- office365/outlook/mail/messages/followup_flag.py +21 -0
- office365/outlook/mail/messages/internet_header.py +16 -0
- office365/outlook/mail/messages/message.py +183 -4
- office365/outlook/mail/messages/rules/actions.py +33 -0
- office365/outlook/mail/patterned_recurrence.py +14 -1
- office365/outlook/mail/physical_address.py +5 -1
- office365/outlook/mail/recipient.py +3 -0
- office365/outlook/mail/recurrence_pattern.py +18 -1
- office365/outlook/mail/recurrence_range.py +16 -2
- office365/reports/root.py +19 -1
- office365/reports/security/__init__.py +0 -0
- office365/reports/security/root.py +21 -0
- office365/reports/userregistration/__init__.py +0 -0
- office365/reports/userregistration/method_count.py +17 -0
- office365/reports/userregistration/method_summary.py +21 -0
- office365/sharepoint/activities/logger.py +25 -0
- office365/sharepoint/addtoonedrive/mount_point.py +25 -0
- office365/sharepoint/addtoonedrive/mounted_folder_info.py +5 -0
- office365/sharepoint/alerts/alert.py +31 -0
- office365/sharepoint/changes/item.py +14 -0
- office365/sharepoint/client_context.py +6 -0
- office365/sharepoint/clientsidecomponent/component_context_info.py +7 -0
- office365/sharepoint/clientsidecomponent/identifier.py +3 -0
- office365/sharepoint/compliance/tag_info.py +17 -0
- office365/sharepoint/contenttypes/content_type.py +42 -0
- office365/sharepoint/contenttypes/fieldlinks/collection.py +5 -6
- office365/sharepoint/features/known_list.py +2 -0
- office365/sharepoint/fields/collection.py +60 -41
- office365/sharepoint/fields/creation_information.py +5 -4
- office365/sharepoint/fields/field.py +73 -15
- office365/sharepoint/fields/user.py +3 -3
- office365/sharepoint/files/file.py +9 -4
- office365/sharepoint/folders/coloring.py +39 -0
- office365/sharepoint/folders/coloring_information.py +15 -0
- office365/sharepoint/folders/folder.py +21 -10
- office365/sharepoint/forms/customization.py +8 -0
- office365/sharepoint/listitems/listitem.py +10 -3
- office365/sharepoint/lists/bloom_filter.py +0 -1
- office365/sharepoint/lists/creation_information.py +18 -4
- office365/sharepoint/lists/list.py +199 -24
- office365/sharepoint/lists/render_data_parameters.py +21 -1
- office365/sharepoint/navigation/configured_metadata_items.py +25 -1
- office365/sharepoint/navigation/metadata_settings.py +6 -4
- office365/sharepoint/permissions/irm/file_settings.py +43 -0
- office365/sharepoint/portal/userprofiles/documents_shared_with_group.py +3 -0
- office365/sharepoint/publishing/base_custom_property.py +8 -0
- office365/sharepoint/publishing/navigation/structural_navigation_cache_wrapper.py +8 -0
- office365/sharepoint/publishing/pagecopywithassets/__init__.py +0 -0
- office365/sharepoint/publishing/pagecopywithassets/response.py +8 -0
- office365/sharepoint/publishing/pages/campaign_publication.py +7 -0
- office365/sharepoint/publishing/pages/page.py +4 -1
- office365/sharepoint/publishing/pages/reposts/metadata.py +8 -0
- office365/sharepoint/publishing/personmagazine/person_magazine.py +4 -1
- office365/sharepoint/search/administration/tenant_crawl_versions_info_provider.py +8 -1
- office365/sharepoint/search/query/auto_completion_match.py +3 -0
- office365/sharepoint/search/query/property_value.py +18 -0
- office365/sharepoint/search/request.py +16 -2
- office365/sharepoint/sharing/abilities.py +22 -0
- office365/sharepoint/sharing/direct_abilities.py +27 -0
- office365/sharepoint/sharing/link_abilities.py +9 -1
- office365/sharepoint/sharing/links/data.py +26 -1
- office365/sharepoint/sharing/links/info.py +1 -1
- office365/sharepoint/sharing/links/partial_success_response.py +5 -0
- office365/sharepoint/sharing/links/share_settings.py +24 -1
- office365/sharepoint/sharing/object_sharing_information.py +65 -2
- office365/sharepoint/sharing/object_sharing_information_user.py +9 -0
- office365/sharepoint/sharing/object_sharing_settings.py +17 -4
- office365/sharepoint/sharing/principal.py +10 -0
- office365/sharepoint/sharing/securable_object_extensions.py +1 -17
- office365/sharepoint/sharing/site_sharing_report_helper.py +2 -1
- office365/sharepoint/sharing/user_sharing_result.py +18 -8
- office365/sharepoint/sitehealth/result.py +10 -0
- office365/sharepoint/sites/language.py +11 -1
- office365/sharepoint/sites/language_collection.py +1 -0
- office365/sharepoint/sites/site.py +34 -6
- office365/sharepoint/tenant/administration/audit/search_request_status.py +8 -0
- office365/sharepoint/tenant/administration/hubsites/permission.py +10 -0
- office365/sharepoint/tenant/administration/tenant.py +1 -0
- office365/sharepoint/tenant/apps/information.py +3 -1
- office365/sharepoint/tenant/management/office365_tenant.py +0 -1
- office365/sharepoint/types/resource_path.py +3 -1
- office365/sharepoint/userprofiles/people_manager.py +0 -2
- office365/sharepoint/userprofiles/sharedwithme/document.py +16 -0
- office365/sharepoint/userprofiles/sharedwithme/document_user.py +12 -0
- office365/sharepoint/userprofiles/sharedwithme/item_collection.py +41 -0
- office365/sharepoint/userprofiles/sharedwithme/items.py +18 -1
- office365/sharepoint/webs/web.py +2 -3
- office365/subscriptions/collection.py +12 -6
- office365/subscriptions/subscription.py +119 -1
- office365/teams/channels/iIdentity.py +5 -0
- office365/teams/chats/collection.py +1 -2
- office365/teams/chats/messages/info.py +9 -0
- office365/teams/chats/messages/message.py +17 -2
- office365/teams/members/aad_user_conversation.py +2 -2
- office365/teams/members/conversation_collection.py +3 -3
- office365/teams/schedule/change_tracked_entity.py +11 -2
- office365/teams/tabs/configuration.py +12 -1
- office365/teams/tabs/tab.py +0 -1
- office365/teams/team.py +23 -1
- office365/teams/teamwork/__init__.py +0 -0
- office365/teams/teamwork/activity_topic.py +5 -0
- office365/teams/teamwork/tags/__init__.py +0 -0
- office365/teams/teamwork/tags/member.py +5 -0
- office365/{directory/security/cases_root.py → teams/viva/employee_experience_user.py} +1 -1
- office365/intune/devices/management.py +0 -35
- {Office365_REST_Python_Client-2.4.3.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.4.3.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.4.3.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/top_level.txt +0 -0
- /office365/{teams/messages → directory/security/cases}/__init__.py +0 -0
- /office365/{teams/tags → directory/synchronization}/__init__.py +0 -0
- /office365/teams/{tags → teamwork/tags}/identity.py +0 -0
- /office365/teams/{tags → teamwork/tags}/tag.py +0 -0
- /office365/teams/{user_teamwork.py → teamwork/user.py} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
from office365.entity import Entity
|
|
2
|
+
from office365.entity_collection import EntityCollection
|
|
3
|
+
from office365.intune.audit.event_collection import AuditEventCollection
|
|
4
|
+
from office365.intune.brand import IntuneBrand
|
|
5
|
+
from office365.intune.devices.category import DeviceCategory
|
|
6
|
+
from office365.intune.devices.enrollment.configuration import DeviceEnrollmentConfiguration
|
|
7
|
+
from office365.intune.devices.managed import ManagedDevice
|
|
8
|
+
from office365.intune.devices.management.reports.reports import DeviceManagementReports
|
|
9
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeviceManagement(Entity):
|
|
13
|
+
"""
|
|
14
|
+
The deviceManagement resource represents a tenant's collection device identities that have been pre-staged in
|
|
15
|
+
Intune, and the enrollment profiles that may be assigned to device identities that support pre-enrollment
|
|
16
|
+
configuration.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def audit_events(self):
|
|
21
|
+
""""""
|
|
22
|
+
return self.properties.get("auditEvents", AuditEventCollection(self.context,
|
|
23
|
+
ResourcePath("auditEvents",
|
|
24
|
+
self.resource_path)))
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
def device_categories(self):
|
|
28
|
+
""""""
|
|
29
|
+
return self.properties.get("deviceCategories",
|
|
30
|
+
EntityCollection(self.context, DeviceCategory, ResourcePath("deviceCategories",
|
|
31
|
+
self.resource_path)))
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def device_enrollment_configurations(self):
|
|
35
|
+
""""""
|
|
36
|
+
return self.properties.get('deviceEnrollmentConfigurations',
|
|
37
|
+
EntityCollection(self.context, DeviceEnrollmentConfiguration,
|
|
38
|
+
ResourcePath("deviceEnrollmentConfigurations",
|
|
39
|
+
self.resource_path)))
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def intune_brand(self):
|
|
43
|
+
return self.properties.get("intuneBrand", IntuneBrand())
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def managed_devices(self):
|
|
47
|
+
""""""
|
|
48
|
+
return self.properties.get('managedDevices',
|
|
49
|
+
EntityCollection(self.context, ManagedDevice,
|
|
50
|
+
ResourcePath("managedDevices", self.resource_path)))
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def reports(self):
|
|
54
|
+
""""""
|
|
55
|
+
return self.properties.get("reports",
|
|
56
|
+
DeviceManagementReports(self.context,
|
|
57
|
+
ResourcePath("reports", self.resource_path)))
|
|
58
|
+
|
|
59
|
+
def get_property(self, name, default_value=None):
|
|
60
|
+
if default_value is None:
|
|
61
|
+
property_mapping = {
|
|
62
|
+
"auditEvents": self.audit_events,
|
|
63
|
+
"deviceCategories": self.device_categories,
|
|
64
|
+
"deviceEnrollmentConfigurations": self.device_enrollment_configurations,
|
|
65
|
+
"intuneBrand": self.intune_brand,
|
|
66
|
+
"managedDevices": self.managed_devices
|
|
67
|
+
}
|
|
68
|
+
default_value = property_mapping.get(name, None)
|
|
69
|
+
return super(DeviceManagement, self).get_property(name, default_value)
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DeviceManagementSettings(ClientValue):
|
|
5
|
+
""""""
|
|
6
|
+
|
|
7
|
+
def __init__(self, device_compliance_checkin_threshold_days=None, is_scheduled_action_enabled=None,
|
|
8
|
+
secure_by_default=None):
|
|
9
|
+
"""
|
|
10
|
+
:param int device_compliance_checkin_threshold_days: The number of days a device is allowed to go without
|
|
11
|
+
checking in to remain compliant.
|
|
12
|
+
:param bool is_scheduled_action_enabled: Is feature enabled or not for scheduled action for rule.
|
|
13
|
+
:param bool secure_by_default: Device should be noncompliant when there is no compliance policy targeted when
|
|
14
|
+
this is true
|
|
15
|
+
"""
|
|
16
|
+
self.deviceComplianceCheckinThresholdDays = device_compliance_checkin_threshold_days
|
|
17
|
+
self.isScheduledActionEnabled = is_scheduled_action_enabled
|
|
18
|
+
self.secureByDefault = secure_by_default
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from office365.intune.organizations.branding_properties import OrganizationalBrandingProperties
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class OrganizationalBranding(OrganizationalBrandingProperties):
|
|
5
|
+
"""
|
|
6
|
+
Contains details about the organization's default branding. Inherits from organizationalBrandingProperties.
|
|
7
|
+
|
|
8
|
+
Organizations can customize their Azure Active Directory (Azure AD) sign-in pages which appear when users sign
|
|
9
|
+
in to their organization's tenant-specific apps, or when Azure AD identifies the user's tenant from their username.
|
|
10
|
+
A developer can also read the company's branding information and customize their app experience to tailor
|
|
11
|
+
it specifically for the signed-in user using their company's branding.
|
|
12
|
+
|
|
13
|
+
You can't change your original configuration's language. However, companies can add different branding based on
|
|
14
|
+
locale. For language-specific branding, see the organizationalBrandingLocalization object.
|
|
15
|
+
"""
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
from office365.directory.certificates.auth_configuration import CertificateBasedAuthConfiguration
|
|
2
2
|
from office365.directory.domains.verified import VerifiedDomain
|
|
3
|
+
from office365.directory.licenses.assigned_plan import AssignedPlan
|
|
3
4
|
from office365.directory.object import DirectoryObject
|
|
4
5
|
from office365.directory.extensions.extension import Extension
|
|
5
6
|
from office365.entity_collection import EntityCollection
|
|
7
|
+
from office365.intune.organizations.branding import OrganizationalBranding
|
|
6
8
|
from office365.intune.provisioned_plan import ProvisionedPlan
|
|
7
9
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
8
10
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
@@ -15,6 +17,17 @@ class Organization(DirectoryObject):
|
|
|
15
17
|
which operate and are provisioned at the tenant-level.
|
|
16
18
|
"""
|
|
17
19
|
|
|
20
|
+
@property
|
|
21
|
+
def assigned_plans(self):
|
|
22
|
+
"""The plans that are assigned to the organization."""
|
|
23
|
+
return self.properties.get('assignedPlans', ClientValueCollection(AssignedPlan))
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def branding(self):
|
|
27
|
+
return self.properties.get('branding',
|
|
28
|
+
OrganizationalBranding(self.context,
|
|
29
|
+
ResourcePath("branding", self.resource_path)))
|
|
30
|
+
|
|
18
31
|
@property
|
|
19
32
|
def business_phones(self):
|
|
20
33
|
"""
|
|
@@ -51,6 +64,7 @@ class Organization(DirectoryObject):
|
|
|
51
64
|
def get_property(self, name, default_value=None):
|
|
52
65
|
if default_value is None:
|
|
53
66
|
property_mapping = {
|
|
67
|
+
"assignedPlans": self.assigned_plans,
|
|
54
68
|
"certificateBasedAuthConfiguration": self.certificate_based_auth_configuration,
|
|
55
69
|
"businessPhones": self.business_phones,
|
|
56
70
|
"provisionedPlans": self.provisioned_plans,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from office365.entity import Entity
|
|
2
|
+
from office365.intune.printing.capabilities import PrinterCapabilities
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class PrinterBase(Entity):
|
|
6
|
+
"""Represents a base type for printer and printerShare entity types."""
|
|
7
|
+
|
|
8
|
+
@property
|
|
9
|
+
def capabilities(self):
|
|
10
|
+
"""The capabilities of the printer/printerShare."""
|
|
11
|
+
return self.properties.get("", PrinterCapabilities())
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from office365.entity import Entity
|
|
2
|
+
from office365.entity_collection import EntityCollection
|
|
3
|
+
from office365.intune.printing.connectors.connector import PrintConnector
|
|
4
|
+
from office365.intune.printing.share import PrinterShare
|
|
5
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Print(Entity):
|
|
9
|
+
"""When accompanied by a Universal Print subscription, the Print feature enables management of printers and
|
|
10
|
+
discovery of printServiceEndpoints that can be used to manage printers and print jobs within Universal Print."""
|
|
11
|
+
|
|
12
|
+
@property
|
|
13
|
+
def connectors(self):
|
|
14
|
+
"""The list of available print connectors."""
|
|
15
|
+
return self.properties.get('connectors',
|
|
16
|
+
EntityCollection(self.context, PrintConnector,
|
|
17
|
+
ResourcePath("connectors", self.resource_path)))
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def shares(self):
|
|
21
|
+
"""The list of printer shares registered in the tenant."""
|
|
22
|
+
return self.properties.get('shares',
|
|
23
|
+
EntityCollection(self.context, PrinterShare,
|
|
24
|
+
ResourcePath("shares", self.resource_path)))
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
from office365.intune.printing.base import PrinterBase
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Printer(PrinterBase):
|
|
5
|
+
"""Represents a printer device that has been registered with the Universal Print service.
|
|
6
|
+
Printer resources can be used to manage print jobs, printer settings, printer metadata and registration status."""
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from office365.entity import Entity
|
|
2
|
+
from office365.entity_collection import EntityCollection
|
|
3
|
+
from office365.intune.printing.services.endpoint import PrintServiceEndpoint
|
|
4
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class PrintService(Entity):
|
|
8
|
+
"""Represents an Azure AD tenant-specific description of a print service instance.
|
|
9
|
+
Services exist for each component of the printing infrastructure (discovery, notifications, registration, and IPP)
|
|
10
|
+
and have one or more endpoints."""
|
|
11
|
+
|
|
12
|
+
def endpoints(self):
|
|
13
|
+
"""Endpoints that can be used to access the service."""
|
|
14
|
+
return self.properties.get('endpoints',
|
|
15
|
+
EntityCollection(self.context, PrintServiceEndpoint,
|
|
16
|
+
ResourcePath("endpoints", self.resource_path)))
|
|
17
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -6,11 +6,15 @@ class ProvisionedPlan(ClientValue):
|
|
|
6
6
|
The provisionedPlans property of the user entity and the organization entity is a collection of provisionedPlan.
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
-
def __init__(self, service=None):
|
|
9
|
+
def __init__(self, service=None, provisioning_status=None, capability_status=None):
|
|
10
10
|
"""
|
|
11
11
|
:param str service:
|
|
12
|
+
:param str provisioning_status:
|
|
13
|
+
:param str capability_status:
|
|
12
14
|
"""
|
|
13
15
|
self.service = service
|
|
16
|
+
self.provisioningStatus = provisioning_status
|
|
17
|
+
self.capabilityStatus = capability_status
|
|
14
18
|
|
|
15
19
|
def __repr__(self):
|
|
16
20
|
return self.service
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
from office365.intune.servicecommunications.announcement_base import ServiceAnnouncementBase
|
|
2
|
+
from office365.runtime.client_result import ClientResult
|
|
3
|
+
from office365.runtime.queries.function import FunctionQuery
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class ServiceHealthIssue(ServiceAnnouncementBase):
|
|
@@ -11,4 +13,17 @@ class ServiceHealthIssue(ServiceAnnouncementBase):
|
|
|
11
13
|
- Service advisory: "Users may experience delays in emails reception".
|
|
12
14
|
"""
|
|
13
15
|
|
|
16
|
+
def incident_report(self):
|
|
17
|
+
"""
|
|
18
|
+
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant.
|
|
19
|
+
|
|
20
|
+
An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue.
|
|
21
|
+
The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document
|
|
22
|
+
does not exist for the issue.
|
|
23
|
+
"""
|
|
24
|
+
return_type = ClientResult(self.context, bytes())
|
|
25
|
+
qry = FunctionQuery(self, "incidentReport", None, return_type)
|
|
26
|
+
self.context.add_query(qry)
|
|
27
|
+
return return_type
|
|
28
|
+
|
|
14
29
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from office365.entity import Entity
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class VppToken(Entity):
|
|
5
|
+
"""
|
|
6
|
+
You purchase multiple licenses for iOS apps through the Apple Volume Purchase Program for Business or Education.
|
|
7
|
+
This involves setting up an Apple VPP account from the Apple website and uploading the Apple VPP Business or
|
|
8
|
+
Education token to Intune. You can then synchronize your volume purchase information with Intune and track your
|
|
9
|
+
volume-purchased app use. You can upload multiple Apple VPP Business or Education tokens.
|
|
10
|
+
"""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DateTimeColumn(ClientValue):
|
|
5
|
+
"""The dateTimeColumn on a columnDefinition resource indicates that the column's values are dates or times."""
|
|
6
|
+
|
|
7
|
+
def __init__(self, display_as=None, display_format=None):
|
|
8
|
+
"""
|
|
9
|
+
:param str display_as: How the value should be presented in the UX. Must be one of default, friendly,
|
|
10
|
+
or standard. See below for more details. If unspecified, treated as default.
|
|
11
|
+
:param str display_format: Indicates whether the value should be presented as a date only or a date and time.
|
|
12
|
+
Must be one of dateOnly or dateTime
|
|
13
|
+
"""
|
|
14
|
+
self.displayAs = display_as
|
|
15
|
+
self.format = display_format
|
|
@@ -2,6 +2,9 @@ from office365.base_item import BaseItem
|
|
|
2
2
|
from office365.onedrive.columns.boolean import BooleanColumn
|
|
3
3
|
from office365.onedrive.columns.calculated import CalculatedColumn
|
|
4
4
|
from office365.onedrive.columns.choice import ChoiceColumn
|
|
5
|
+
from office365.onedrive.columns.content_approval_status import ContentApprovalStatusColumn
|
|
6
|
+
from office365.onedrive.columns.currency import CurrencyColumn
|
|
7
|
+
from office365.onedrive.columns.datetime import DateTimeColumn
|
|
5
8
|
from office365.onedrive.columns.default_value import DefaultColumnValue
|
|
6
9
|
from office365.onedrive.columns.geolocation import GeolocationColumn
|
|
7
10
|
from office365.onedrive.columns.hyperlink_or_picture import HyperlinkOrPictureColumn
|
|
@@ -47,6 +50,11 @@ class ColumnDefinition(BaseItem):
|
|
|
47
50
|
"""Specifies whether the column values can used for sorting and searching."""
|
|
48
51
|
return self.properties.get('indexed', None)
|
|
49
52
|
|
|
53
|
+
@property
|
|
54
|
+
def content_approval_status(self):
|
|
55
|
+
"""This column stores content approval status."""
|
|
56
|
+
return self.properties.get('contentApprovalStatus', ContentApprovalStatusColumn())
|
|
57
|
+
|
|
50
58
|
@property
|
|
51
59
|
def column_group(self):
|
|
52
60
|
"""For site columns, the name of the group this column belongs to. Helps organize related columns."""
|
|
@@ -72,6 +80,16 @@ class ColumnDefinition(BaseItem):
|
|
|
72
80
|
"""This column stores data from a list of choices."""
|
|
73
81
|
return self.properties.get('choice', ChoiceColumn())
|
|
74
82
|
|
|
83
|
+
@property
|
|
84
|
+
def currency(self):
|
|
85
|
+
"""This column stores currency values."""
|
|
86
|
+
return self.properties.get('currency', CurrencyColumn())
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def datetime(self):
|
|
90
|
+
"""This column stores DateTime values."""
|
|
91
|
+
return self.properties.get('dateTime', DateTimeColumn())
|
|
92
|
+
|
|
75
93
|
@property
|
|
76
94
|
def person_or_group(self):
|
|
77
95
|
"""This column stores Person or Group values."""
|
|
@@ -107,18 +125,31 @@ class ColumnDefinition(BaseItem):
|
|
|
107
125
|
"""This column stores hyperlink or picture values."""
|
|
108
126
|
return self.properties.get('hyperlinkOrPicture', HyperlinkOrPictureColumn())
|
|
109
127
|
|
|
128
|
+
@property
|
|
129
|
+
def hidden(self):
|
|
130
|
+
"""Specifies whether the column is displayed in the user interface.
|
|
131
|
+
:rtype: bool or None
|
|
132
|
+
"""
|
|
133
|
+
return self.properties.get('hidden', None)
|
|
134
|
+
|
|
110
135
|
@property
|
|
111
136
|
def is_deletable(self):
|
|
112
137
|
"""Indicates whether this column can be deleted.
|
|
113
|
-
|
|
114
138
|
:rtype: bool or None
|
|
115
139
|
"""
|
|
116
140
|
return self.properties.get('isDeletable', None)
|
|
117
141
|
|
|
142
|
+
@property
|
|
143
|
+
def is_reorderable(self):
|
|
144
|
+
"""
|
|
145
|
+
Indicates whether values in the column can be reordered. Read-only.
|
|
146
|
+
:rtype: bool or None
|
|
147
|
+
"""
|
|
148
|
+
return self.properties.get('isReorderable', None)
|
|
149
|
+
|
|
118
150
|
@property
|
|
119
151
|
def is_sealed(self):
|
|
120
152
|
"""Specifies whether the column can be changed.
|
|
121
|
-
|
|
122
153
|
:rtype: bool or None
|
|
123
154
|
"""
|
|
124
155
|
return self.properties.get('isSealed', None)
|
|
@@ -126,11 +157,17 @@ class ColumnDefinition(BaseItem):
|
|
|
126
157
|
@property
|
|
127
158
|
def propagate_changes(self):
|
|
128
159
|
"""If 'true', changes to this column will be propagated to lists that implement the column.
|
|
129
|
-
|
|
130
160
|
:rtype: bool or None
|
|
131
161
|
"""
|
|
132
162
|
return self.properties.get('propagateChanges', None)
|
|
133
163
|
|
|
164
|
+
@property
|
|
165
|
+
def read_only(self):
|
|
166
|
+
"""Specifies whether the column values can be modified.
|
|
167
|
+
:rtype: bool or None
|
|
168
|
+
"""
|
|
169
|
+
return self.properties.get('readOnly', None)
|
|
170
|
+
|
|
134
171
|
@property
|
|
135
172
|
def thumbnail(self):
|
|
136
173
|
"""This column stores thumbnail values."""
|
|
@@ -151,9 +188,18 @@ class ColumnDefinition(BaseItem):
|
|
|
151
188
|
"""This column stores taxonomy terms."""
|
|
152
189
|
return self.properties.get('term', TermColumn())
|
|
153
190
|
|
|
191
|
+
@property
|
|
192
|
+
def type(self):
|
|
193
|
+
"""
|
|
194
|
+
For site columns, the type of column.
|
|
195
|
+
:rtype: str
|
|
196
|
+
"""
|
|
197
|
+
return self.properties.get('type', None)
|
|
198
|
+
|
|
154
199
|
def get_property(self, name, default_value=None):
|
|
155
200
|
if default_value is None:
|
|
156
201
|
property_mapping = {
|
|
202
|
+
"contentApprovalStatus": self.content_approval_status,
|
|
157
203
|
"defaultValue": self.default_value,
|
|
158
204
|
"hyperlinkOrPicture": self.hyperlink_or_picture,
|
|
159
205
|
"personOrGroup": self.person_or_group,
|
|
@@ -8,6 +8,17 @@ class ColumnDefinitionCollection(EntityCollection):
|
|
|
8
8
|
def __init__(self, context, resource_path, parent):
|
|
9
9
|
super(ColumnDefinitionCollection, self).__init__(context, ColumnDefinition, resource_path, parent)
|
|
10
10
|
|
|
11
|
+
def add_number(self, name, minimum=None, maximum=None):
|
|
12
|
+
"""
|
|
13
|
+
Creates a number column
|
|
14
|
+
:param str name: The API-facing name of the column as it appears in the fields on a listItem
|
|
15
|
+
:param float minimum: The minimum permitted value.
|
|
16
|
+
:param float maximum: The maximum permitted value.
|
|
17
|
+
:rtype: ColumnDefinition
|
|
18
|
+
"""
|
|
19
|
+
from office365.onedrive.columns.number import NumberColumn
|
|
20
|
+
return self.add(name=name, number=NumberColumn(minimum, maximum))
|
|
21
|
+
|
|
11
22
|
def add_text(self, name, max_length=None, text_type=None):
|
|
12
23
|
"""
|
|
13
24
|
Creates a text column
|
|
@@ -30,27 +41,27 @@ class ColumnDefinitionCollection(EntityCollection):
|
|
|
30
41
|
from office365.onedrive.columns.hyperlink_or_picture import HyperlinkOrPictureColumn
|
|
31
42
|
return self.add(name=name, hyperlinkOrPicture=HyperlinkOrPictureColumn(is_picture=is_picture))
|
|
32
43
|
|
|
33
|
-
def add_lookup(self, name,
|
|
44
|
+
def add_lookup(self, name, lookup_list, column_name=None):
|
|
34
45
|
"""
|
|
35
46
|
Creates a lookup column
|
|
36
47
|
|
|
37
48
|
:param str name: The API-facing name of the column as it appears in the fields on a listItem
|
|
38
|
-
:param office365.onedrive.lists.list.List or str
|
|
49
|
+
:param office365.onedrive.lists.list.List or str lookup_list: Lookup source list or identifier
|
|
39
50
|
:param str column_name: The name of the lookup source column.
|
|
40
51
|
:rtype: ColumnDefinition
|
|
41
52
|
"""
|
|
42
53
|
from office365.onedrive.columns.lookup import LookupColumn
|
|
43
54
|
from office365.onedrive.lists.list import List
|
|
44
55
|
|
|
45
|
-
if isinstance(
|
|
56
|
+
if isinstance(lookup_list, List):
|
|
46
57
|
return_type = ColumnDefinition(self.context)
|
|
47
58
|
self.add_child(return_type)
|
|
48
59
|
|
|
49
60
|
def _list_loaded():
|
|
50
|
-
params = {"name": name, "lookup": LookupColumn(
|
|
61
|
+
params = {"name": name, "lookup": LookupColumn(lookup_list.id, column_name)}
|
|
51
62
|
qry = CreateEntityQuery(self, params, return_type)
|
|
52
63
|
self.context.add_query(qry)
|
|
53
|
-
|
|
64
|
+
lookup_list.ensure_property("id", _list_loaded)
|
|
54
65
|
return return_type
|
|
55
66
|
else:
|
|
56
|
-
return self.add(name=name, lookup=LookupColumn(
|
|
67
|
+
return self.add(name=name, lookup=LookupColumn(lookup_list, column_name))
|
|
@@ -8,4 +8,15 @@ class Audio(ClientValue):
|
|
|
8
8
|
If a DriveItem has a non-null audio facet, the item represents an audio file.
|
|
9
9
|
The properties of the Audio resource are populated by extracting metadata from the file.
|
|
10
10
|
"""
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
def __init__(self, album=None, album_artist=None, artist=None, bitrate=None):
|
|
13
|
+
"""
|
|
14
|
+
:param str album: The title of the album for this audio file.
|
|
15
|
+
:param str album_artist: The artist named on the album for the audio file.
|
|
16
|
+
:param str artist: The performing artist for the audio file.
|
|
17
|
+
:param long bitrate: Bitrate expressed in kbps.
|
|
18
|
+
"""
|
|
19
|
+
self.album = album
|
|
20
|
+
self.albumArtist = album_artist
|
|
21
|
+
self.artist = artist
|
|
22
|
+
self.bitrate = bitrate
|