msgraph-sdk 1.40.0__py3-none-any.whl → 1.45.0__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.
Files changed (123) hide show
  1. msgraph/_version.py +1 -1
  2. msgraph/generated/chats/item/members/item/conversation_member_item_request_builder.py +4 -4
  3. msgraph/generated/chats/item/messages/messages_request_builder.py +3 -3
  4. msgraph/generated/communications/calls/item/participants/invite/invite_request_builder.py +3 -3
  5. msgraph/generated/device_app_management/device_app_management_request_builder.py +12 -2
  6. msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
  7. msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +1 -1
  8. msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py +4 -4
  9. msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +1 -1
  10. msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +1 -1
  11. msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py +4 -4
  12. msgraph/generated/device_app_management/managed_e_books/item/assignments/assignments_request_builder.py +3 -3
  13. msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +3 -3
  14. msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.py +4 -4
  15. msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +4 -4
  16. msgraph/generated/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.py +4 -4
  17. msgraph/generated/device_app_management/mobile_app_relationships/count/count_request_builder.py +104 -0
  18. msgraph/generated/device_app_management/mobile_app_relationships/item/mobile_app_relationship_item_request_builder.py +188 -0
  19. msgraph/generated/device_app_management/mobile_app_relationships/mobile_app_relationships_request_builder.py +208 -0
  20. msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +10 -10
  21. msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +7 -7
  22. msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +3 -3
  23. msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +6 -6
  24. msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +7 -7
  25. msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +6 -6
  26. msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +7 -7
  27. msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +7 -7
  28. msgraph/generated/device_management/device_management_request_builder.py +2 -2
  29. msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +6 -6
  30. msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/resize/resize_request_builder.py +3 -2
  31. msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py +3 -3
  32. msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py +3 -3
  33. msgraph/generated/external/connections/item/items/item/external_item_item_request_builder.py +3 -3
  34. msgraph/generated/groups/groups_request_builder.py +3 -3
  35. msgraph/generated/groups/item/team/team_request_builder.py +2 -2
  36. msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +7 -7
  37. msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +3 -3
  38. msgraph/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py +4 -4
  39. msgraph/generated/kiota-dom-export.txt +273 -8
  40. msgraph/generated/kiota-lock.json +1 -1
  41. msgraph/generated/models/access_package_assignment.py +1 -1
  42. msgraph/generated/models/ai_interaction.py +12 -12
  43. msgraph/generated/models/ai_interaction_attachment.py +16 -19
  44. msgraph/generated/models/ai_interaction_context.py +14 -17
  45. msgraph/generated/models/ai_interaction_link.py +14 -17
  46. msgraph/generated/models/ai_interaction_mention.py +14 -13
  47. msgraph/generated/models/ai_interaction_mentioned_identity_set.py +1 -1
  48. msgraph/generated/models/ai_user.py +1 -1
  49. msgraph/generated/models/app_scope.py +1 -1
  50. msgraph/generated/models/authentication_event_listener.py +8 -1
  51. msgraph/generated/models/auto_restart_notification_dismissal_method.py +1 -1
  52. msgraph/generated/models/call_options.py +4 -0
  53. msgraph/generated/models/cloud_pc_device_image.py +1 -1
  54. msgraph/generated/models/copilot_admin.py +1 -1
  55. msgraph/generated/models/copilot_admin_limited_mode.py +2 -2
  56. msgraph/generated/models/copilot_admin_setting.py +1 -1
  57. msgraph/generated/models/custom_authentication_extension.py +14 -0
  58. msgraph/generated/models/custom_callout_extension.py +7 -0
  59. msgraph/generated/models/custom_extension_behavior_on_error.py +66 -0
  60. msgraph/generated/models/custom_extension_overwrite_configuration.py +7 -0
  61. msgraph/generated/models/device_app_management.py +7 -0
  62. msgraph/generated/models/device_enrollment_type.py +2 -0
  63. msgraph/generated/models/device_management_reports.py +0 -3
  64. msgraph/generated/models/disk_type.py +1 -1
  65. msgraph/generated/models/entity.py +21 -0
  66. msgraph/generated/models/fallback_to_microsoft_provider_on_error.py +53 -0
  67. msgraph/generated/models/file_encryption_info.py +1 -1
  68. msgraph/generated/models/granular_mailbox_restore_artifact.py +1 -1
  69. msgraph/generated/models/group_members.py +1 -1
  70. msgraph/generated/models/ios_ddm_lob_app_assignment_settings.py +76 -0
  71. msgraph/generated/models/mailbox_restore_artifact.py +4 -0
  72. msgraph/generated/models/managed_app_availability.py +1 -1
  73. msgraph/generated/models/managed_app_data_storage_location.py +4 -4
  74. msgraph/generated/models/managed_device.py +1 -1
  75. msgraph/generated/models/managed_mobile_lob_app.py +1 -1
  76. msgraph/generated/models/mobile_app_assignment_settings.py +7 -0
  77. msgraph/generated/models/mobile_app_relationship.py +81 -0
  78. msgraph/generated/models/mobile_app_relationship_collection_response.py +58 -0
  79. msgraph/generated/models/mobile_lob_app.py +1 -1
  80. msgraph/generated/models/on_email_otp_send_listener.py +60 -0
  81. msgraph/generated/models/on_otp_send_custom_extension.py +53 -0
  82. msgraph/generated/models/on_otp_send_custom_extension_handler.py +67 -0
  83. msgraph/generated/models/on_otp_send_handler.py +66 -0
  84. msgraph/generated/models/online_meeting.py +1 -1
  85. msgraph/generated/models/online_meeting_base.py +6 -2
  86. msgraph/generated/models/out_of_office_settings.py +2 -2
  87. msgraph/generated/models/presence.py +3 -3
  88. msgraph/generated/models/restore_job_type.py +7 -0
  89. msgraph/generated/models/restore_session_artifact_count.py +66 -0
  90. msgraph/generated/models/restore_session_base.py +14 -0
  91. msgraph/generated/models/security/alert.py +1 -1
  92. msgraph/generated/models/security/case_type.py +7 -0
  93. msgraph/generated/models/security/ediscovery_add_to_review_set_operation.py +7 -0
  94. msgraph/generated/models/security/ediscovery_case_settings.py +14 -0
  95. msgraph/generated/models/security/ediscovery_estimate_operation.py +7 -0
  96. msgraph/generated/models/security/report_file_metadata.py +62 -0
  97. msgraph/generated/models/security/resource_access_event.py +67 -0
  98. msgraph/generated/models/security/review_set_settings.py +7 -0
  99. msgraph/generated/models/security/security_group_evidence.py +17 -0
  100. msgraph/generated/models/security/user_account.py +16 -0
  101. msgraph/generated/models/single_user.py +1 -1
  102. msgraph/generated/models/teams_tab.py +1 -1
  103. msgraph/generated/models/used_insight.py +2 -2
  104. msgraph/generated/models/win32_lob_app.py +4 -0
  105. msgraph/generated/models/windows_defender_product_status.py +3 -3
  106. msgraph/generated/models/windows_update_for_business_update_weeks.py +1 -1
  107. msgraph/generated/models/windows_update_notification_display_option.py +1 -1
  108. msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py +3 -3
  109. msgraph/generated/organization/item/organization_item_request_builder.py +4 -4
  110. msgraph/generated/security/attack_simulation/end_user_notifications/end_user_notifications_request_builder.py +4 -4
  111. msgraph/generated/sites/sites_request_builder.py +4 -4
  112. msgraph/generated/teams/item/channels/item/all_members/all_members_request_builder.py +3 -3
  113. msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +6 -6
  114. msgraph/generated/teams/item/channels/item/members/members_request_builder.py +3 -3
  115. msgraph/generated/teams/item/channels/item/messages/messages_request_builder.py +3 -3
  116. msgraph/generated/users/item/change_password/change_password_request_builder.py +2 -2
  117. msgraph/generated/users/item/user_item_request_builder.py +7 -7
  118. msgraph/generated/users/users_request_builder.py +4 -4
  119. msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +7 -7
  120. {msgraph_sdk-1.40.0.dist-info → msgraph_sdk-1.45.0.dist-info}/METADATA +2 -2
  121. {msgraph_sdk-1.40.0.dist-info → msgraph_sdk-1.45.0.dist-info}/RECORD +123 -105
  122. {msgraph_sdk-1.40.0.dist-info → msgraph_sdk-1.45.0.dist-info}/WHEEL +0 -0
  123. {msgraph_sdk-1.40.0.dist-info → msgraph_sdk-1.45.0.dist-info}/licenses/LICENSE +0 -0
msgraph/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # The SDK version
2
2
  # x-release-please-start-version
3
- VERSION: str = '1.40.0'
3
+ VERSION: str = '1.45.0'
4
4
  # x-release-please-end
@@ -51,10 +51,10 @@ class ConversationMemberItemRequestBuilder(BaseRequestBuilder):
51
51
 
52
52
  async def get(self,request_configuration: Optional[RequestConfiguration[ConversationMemberItemRequestBuilderGetQueryParameters]] = None) -> Optional[ConversationMember]:
53
53
  """
54
- Retrieve a conversationMember from a chat or channel.
54
+ Retrieve a conversationMember from a chat.
55
55
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
56
56
  Returns: Optional[ConversationMember]
57
- Find more info here: https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0
57
+ Find more info here: https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0
58
58
  """
59
59
  request_info = self.to_get_request_information(
60
60
  request_configuration
@@ -106,7 +106,7 @@ class ConversationMemberItemRequestBuilder(BaseRequestBuilder):
106
106
 
107
107
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ConversationMemberItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
108
108
  """
109
- Retrieve a conversationMember from a chat or channel.
109
+ Retrieve a conversationMember from a chat.
110
110
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
111
111
  Returns: RequestInformation
112
112
  """
@@ -150,7 +150,7 @@ class ConversationMemberItemRequestBuilder(BaseRequestBuilder):
150
150
  @dataclass
151
151
  class ConversationMemberItemRequestBuilderGetQueryParameters():
152
152
  """
153
- Retrieve a conversationMember from a chat or channel.
153
+ Retrieve a conversationMember from a chat.
154
154
  """
155
155
  def get_query_parameter(self,original_name: str) -> str:
156
156
  """
@@ -71,11 +71,11 @@ class MessagesRequestBuilder(BaseRequestBuilder):
71
71
 
72
72
  async def post(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ChatMessage]:
73
73
  """
74
- Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
74
+ Send a new chatMessage in the specified channel or a chat.
75
75
  param body: The request body
76
76
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
77
77
  Returns: Optional[ChatMessage]
78
- Find more info here: https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0
78
+ Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0
79
79
  """
80
80
  if body is None:
81
81
  raise TypeError("body cannot be null.")
@@ -106,7 +106,7 @@ class MessagesRequestBuilder(BaseRequestBuilder):
106
106
 
107
107
  def to_post_request_information(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
108
108
  """
109
- Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
109
+ Send a new chatMessage in the specified channel or a chat.
110
110
  param body: The request body
111
111
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
112
112
  Returns: RequestInformation
@@ -33,11 +33,11 @@ class InviteRequestBuilder(BaseRequestBuilder):
33
33
 
34
34
  async def post(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InviteParticipantsOperation]:
35
35
  """
36
- Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
36
+ Invite participants to the active call. For more information about how to handle operations, see commsOperation.
37
37
  param body: The request body
38
38
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
39
39
  Returns: Optional[InviteParticipantsOperation]
40
- Find more info here: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0
40
+ Find more info here: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0
41
41
  """
42
42
  if body is None:
43
43
  raise TypeError("body cannot be null.")
@@ -57,7 +57,7 @@ class InviteRequestBuilder(BaseRequestBuilder):
57
57
 
58
58
  def to_post_request_information(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
59
59
  """
60
- Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
60
+ Invite participants to the active call. For more information about how to handle operations, see commsOperation.
61
61
  param body: The request body
62
62
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
63
63
  Returns: RequestInformation
@@ -27,6 +27,7 @@ if TYPE_CHECKING:
27
27
  from .mobile_apps.mobile_apps_request_builder import MobileAppsRequestBuilder
28
28
  from .mobile_app_categories.mobile_app_categories_request_builder import MobileAppCategoriesRequestBuilder
29
29
  from .mobile_app_configurations.mobile_app_configurations_request_builder import MobileAppConfigurationsRequestBuilder
30
+ from .mobile_app_relationships.mobile_app_relationships_request_builder import MobileAppRelationshipsRequestBuilder
30
31
  from .sync_microsoft_store_for_business_apps.sync_microsoft_store_for_business_apps_request_builder import SyncMicrosoftStoreForBusinessAppsRequestBuilder
31
32
  from .targeted_managed_app_configurations.targeted_managed_app_configurations_request_builder import TargetedManagedAppConfigurationsRequestBuilder
32
33
  from .vpp_tokens.vpp_tokens_request_builder import VppTokensRequestBuilder
@@ -50,7 +51,7 @@ class DeviceAppManagementRequestBuilder(BaseRequestBuilder):
50
51
  Read properties and relationships of the deviceAppManagement object.
51
52
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
52
53
  Returns: Optional[DeviceAppManagement]
53
- Find more info here: https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0
54
+ Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-get?view=graph-rest-1.0
54
55
  """
55
56
  request_info = self.to_get_request_information(
56
57
  request_configuration
@@ -72,7 +73,7 @@ class DeviceAppManagementRequestBuilder(BaseRequestBuilder):
72
73
  param body: The request body
73
74
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
74
75
  Returns: Optional[DeviceAppManagement]
75
- Find more info here: https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-update?view=graph-rest-1.0
76
+ Find more info here: https://learn.microsoft.com/graph/api/intune-unlock-deviceappmanagement-update?view=graph-rest-1.0
76
77
  """
77
78
  if body is None:
78
79
  raise TypeError("body cannot be null.")
@@ -216,6 +217,15 @@ class DeviceAppManagementRequestBuilder(BaseRequestBuilder):
216
217
 
217
218
  return MobileAppConfigurationsRequestBuilder(self.request_adapter, self.path_parameters)
218
219
 
220
+ @property
221
+ def mobile_app_relationships(self) -> MobileAppRelationshipsRequestBuilder:
222
+ """
223
+ Provides operations to manage the mobileAppRelationships property of the microsoft.graph.deviceAppManagement entity.
224
+ """
225
+ from .mobile_app_relationships.mobile_app_relationships_request_builder import MobileAppRelationshipsRequestBuilder
226
+
227
+ return MobileAppRelationshipsRequestBuilder(self.request_adapter, self.path_parameters)
228
+
219
229
  @property
220
230
  def mobile_apps(self) -> MobileAppsRequestBuilder:
221
231
  """
@@ -51,10 +51,10 @@ class ManagedAppPolicyItemRequestBuilder(BaseRequestBuilder):
51
51
 
52
52
  async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppPolicyItemRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppPolicy]:
53
53
  """
54
- Read properties and relationships of the managedAppPolicy object.
54
+ Read properties and relationships of the managedAppProtection object.
55
55
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
56
56
  Returns: Optional[ManagedAppPolicy]
57
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-get?view=graph-rest-1.0
57
+ Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-get?view=graph-rest-1.0
58
58
  """
59
59
  request_info = self.to_get_request_information(
60
60
  request_configuration
@@ -106,7 +106,7 @@ class ManagedAppPolicyItemRequestBuilder(BaseRequestBuilder):
106
106
 
107
107
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppPolicyItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
108
108
  """
109
- Read properties and relationships of the managedAppPolicy object.
109
+ Read properties and relationships of the managedAppProtection object.
110
110
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
111
111
  Returns: RequestInformation
112
112
  """
@@ -159,7 +159,7 @@ class ManagedAppPolicyItemRequestBuilder(BaseRequestBuilder):
159
159
  @dataclass
160
160
  class ManagedAppPolicyItemRequestBuilderGetQueryParameters():
161
161
  """
162
- Read properties and relationships of the managedAppPolicy object.
162
+ Read properties and relationships of the managedAppProtection object.
163
163
  """
164
164
  def get_query_parameter(self,original_name: str) -> str:
165
165
  """
@@ -36,7 +36,7 @@ class TargetAppsRequestBuilder(BaseRequestBuilder):
36
36
  param body: The request body
37
37
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
38
38
  Returns: None
39
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0
39
+ Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0
40
40
  """
41
41
  if body is None:
42
42
  raise TypeError("body cannot be null.")
@@ -49,10 +49,10 @@ class ManagedAppPoliciesRequestBuilder(BaseRequestBuilder):
49
49
 
50
50
  async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppPoliciesRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppPolicyCollectionResponse]:
51
51
  """
52
- List properties and relationships of the targetedManagedAppProtection objects.
52
+ List properties and relationships of the managedAppProtection objects.
53
53
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
54
  Returns: Optional[ManagedAppPolicyCollectionResponse]
55
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-list?view=graph-rest-1.0
55
+ Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-list?view=graph-rest-1.0
56
56
  """
57
57
  request_info = self.to_get_request_information(
58
58
  request_configuration
@@ -93,7 +93,7 @@ class ManagedAppPoliciesRequestBuilder(BaseRequestBuilder):
93
93
 
94
94
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppPoliciesRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
95
95
  """
96
- List properties and relationships of the targetedManagedAppProtection objects.
96
+ List properties and relationships of the managedAppProtection objects.
97
97
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
98
98
  Returns: RequestInformation
99
99
  """
@@ -139,7 +139,7 @@ class ManagedAppPoliciesRequestBuilder(BaseRequestBuilder):
139
139
  @dataclass
140
140
  class ManagedAppPoliciesRequestBuilderGetQueryParameters():
141
141
  """
142
- List properties and relationships of the targetedManagedAppProtection objects.
142
+ List properties and relationships of the managedAppProtection objects.
143
143
  """
144
144
  def get_query_parameter(self,original_name: str) -> str:
145
145
  """
@@ -36,7 +36,7 @@ class TargetAppsRequestBuilder(BaseRequestBuilder):
36
36
  param body: The request body
37
37
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
38
38
  Returns: None
39
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0
39
+ Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0
40
40
  """
41
41
  if body is None:
42
42
  raise TypeError("body cannot be null.")
@@ -36,7 +36,7 @@ class TargetAppsRequestBuilder(BaseRequestBuilder):
36
36
  param body: The request body
37
37
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
38
38
  Returns: None
39
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0
39
+ Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0
40
40
  """
41
41
  if body is None:
42
42
  raise TypeError("body cannot be null.")
@@ -53,10 +53,10 @@ class ManagedAppRegistrationItemRequestBuilder(BaseRequestBuilder):
53
53
 
54
54
  async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppRegistrationItemRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppRegistration]:
55
55
  """
56
- Read properties and relationships of the androidManagedAppRegistration object.
56
+ Read properties and relationships of the iosManagedAppRegistration object.
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: Optional[ManagedAppRegistration]
59
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-get?view=graph-rest-1.0
59
+ Find more info here: https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0
60
60
  """
61
61
  request_info = self.to_get_request_information(
62
62
  request_configuration
@@ -108,7 +108,7 @@ class ManagedAppRegistrationItemRequestBuilder(BaseRequestBuilder):
108
108
 
109
109
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppRegistrationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
110
110
  """
111
- Read properties and relationships of the androidManagedAppRegistration object.
111
+ Read properties and relationships of the iosManagedAppRegistration object.
112
112
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
113
113
  Returns: RequestInformation
114
114
  """
@@ -179,7 +179,7 @@ class ManagedAppRegistrationItemRequestBuilder(BaseRequestBuilder):
179
179
  @dataclass
180
180
  class ManagedAppRegistrationItemRequestBuilderGetQueryParameters():
181
181
  """
182
- Read properties and relationships of the androidManagedAppRegistration object.
182
+ Read properties and relationships of the iosManagedAppRegistration object.
183
183
  """
184
184
  def get_query_parameter(self,original_name: str) -> str:
185
185
  """
@@ -70,11 +70,11 @@ class AssignmentsRequestBuilder(BaseRequestBuilder):
70
70
 
71
71
  async def post(self,body: ManagedEBookAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ManagedEBookAssignment]:
72
72
  """
73
- Create a new iosVppEBookAssignment object.
73
+ Create a new managedEBookAssignment object.
74
74
  param body: The request body
75
75
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
76
76
  Returns: Optional[ManagedEBookAssignment]
77
- Find more info here: https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0
77
+ Find more info here: https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0
78
78
  """
79
79
  if body is None:
80
80
  raise TypeError("body cannot be null.")
@@ -105,7 +105,7 @@ class AssignmentsRequestBuilder(BaseRequestBuilder):
105
105
 
106
106
  def to_post_request_information(self,body: ManagedEBookAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
107
107
  """
108
- Create a new iosVppEBookAssignment object.
108
+ Create a new managedEBookAssignment object.
109
109
  param body: The request body
110
110
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
111
111
  Returns: RequestInformation
@@ -72,11 +72,11 @@ class ManagedEBookAssignmentItemRequestBuilder(BaseRequestBuilder):
72
72
 
73
73
  async def patch(self,body: ManagedEBookAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ManagedEBookAssignment]:
74
74
  """
75
- Update the properties of a managedEBookAssignment object.
75
+ Update the properties of a iosVppEBookAssignment object.
76
76
  param body: The request body
77
77
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
78
78
  Returns: Optional[ManagedEBookAssignment]
79
- Find more info here: https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-update?view=graph-rest-1.0
79
+ Find more info here: https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-update?view=graph-rest-1.0
80
80
  """
81
81
  if body is None:
82
82
  raise TypeError("body cannot be null.")
@@ -118,7 +118,7 @@ class ManagedEBookAssignmentItemRequestBuilder(BaseRequestBuilder):
118
118
 
119
119
  def to_patch_request_information(self,body: ManagedEBookAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
120
120
  """
121
- Update the properties of a managedEBookAssignment object.
121
+ Update the properties of a iosVppEBookAssignment object.
122
122
  param body: The request body
123
123
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
124
124
  Returns: RequestInformation
@@ -56,10 +56,10 @@ class ManagedEBookItemRequestBuilder(BaseRequestBuilder):
56
56
 
57
57
  async def get(self,request_configuration: Optional[RequestConfiguration[ManagedEBookItemRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedEBook]:
58
58
  """
59
- Read properties and relationships of the iosVppEBook object.
59
+ Read properties and relationships of the managedEBook object.
60
60
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
61
61
  Returns: Optional[ManagedEBook]
62
- Find more info here: https://learn.microsoft.com/graph/api/intune-books-iosvppebook-get?view=graph-rest-1.0
62
+ Find more info here: https://learn.microsoft.com/graph/api/intune-books-managedebook-get?view=graph-rest-1.0
63
63
  """
64
64
  request_info = self.to_get_request_information(
65
65
  request_configuration
@@ -112,7 +112,7 @@ class ManagedEBookItemRequestBuilder(BaseRequestBuilder):
112
112
 
113
113
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedEBookItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
114
114
  """
115
- Read properties and relationships of the iosVppEBook object.
115
+ Read properties and relationships of the managedEBook object.
116
116
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
117
117
  Returns: RequestInformation
118
118
  """
@@ -201,7 +201,7 @@ class ManagedEBookItemRequestBuilder(BaseRequestBuilder):
201
201
  @dataclass
202
202
  class ManagedEBookItemRequestBuilderGetQueryParameters():
203
203
  """
204
- Read properties and relationships of the iosVppEBook object.
204
+ Read properties and relationships of the managedEBook object.
205
205
  """
206
206
  def get_query_parameter(self,original_name: str) -> str:
207
207
  """
@@ -49,10 +49,10 @@ class ManagedEBooksRequestBuilder(BaseRequestBuilder):
49
49
 
50
50
  async def get(self,request_configuration: Optional[RequestConfiguration[ManagedEBooksRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedEBookCollectionResponse]:
51
51
  """
52
- List properties and relationships of the managedEBook objects.
52
+ List properties and relationships of the iosVppEBook objects.
53
53
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
54
  Returns: Optional[ManagedEBookCollectionResponse]
55
- Find more info here: https://learn.microsoft.com/graph/api/intune-books-managedebook-list?view=graph-rest-1.0
55
+ Find more info here: https://learn.microsoft.com/graph/api/intune-books-iosvppebook-list?view=graph-rest-1.0
56
56
  """
57
57
  request_info = self.to_get_request_information(
58
58
  request_configuration
@@ -94,7 +94,7 @@ class ManagedEBooksRequestBuilder(BaseRequestBuilder):
94
94
 
95
95
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedEBooksRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
96
96
  """
97
- List properties and relationships of the managedEBook objects.
97
+ List properties and relationships of the iosVppEBook objects.
98
98
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
99
99
  Returns: RequestInformation
100
100
  """
@@ -140,7 +140,7 @@ class ManagedEBooksRequestBuilder(BaseRequestBuilder):
140
140
  @dataclass
141
141
  class ManagedEBooksRequestBuilderGetQueryParameters():
142
142
  """
143
- List properties and relationships of the managedEBook objects.
143
+ List properties and relationships of the iosVppEBook objects.
144
144
  """
145
145
  def get_query_parameter(self,original_name: str) -> str:
146
146
  """
@@ -49,10 +49,10 @@ class MobileAppConfigurationsRequestBuilder(BaseRequestBuilder):
49
49
 
50
50
  async def get(self,request_configuration: Optional[RequestConfiguration[MobileAppConfigurationsRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedDeviceMobileAppConfigurationCollectionResponse]:
51
51
  """
52
- List properties and relationships of the managedDeviceMobileAppConfiguration objects.
52
+ List properties and relationships of the iosMobileAppConfiguration objects.
53
53
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
54
  Returns: Optional[ManagedDeviceMobileAppConfigurationCollectionResponse]
55
- Find more info here: https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-list?view=graph-rest-1.0
55
+ Find more info here: https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-list?view=graph-rest-1.0
56
56
  """
57
57
  request_info = self.to_get_request_information(
58
58
  request_configuration
@@ -94,7 +94,7 @@ class MobileAppConfigurationsRequestBuilder(BaseRequestBuilder):
94
94
 
95
95
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[MobileAppConfigurationsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
96
96
  """
97
- List properties and relationships of the managedDeviceMobileAppConfiguration objects.
97
+ List properties and relationships of the iosMobileAppConfiguration objects.
98
98
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
99
99
  Returns: RequestInformation
100
100
  """
@@ -140,7 +140,7 @@ class MobileAppConfigurationsRequestBuilder(BaseRequestBuilder):
140
140
  @dataclass
141
141
  class MobileAppConfigurationsRequestBuilderGetQueryParameters():
142
142
  """
143
- List properties and relationships of the managedDeviceMobileAppConfiguration objects.
143
+ List properties and relationships of the iosMobileAppConfiguration objects.
144
144
  """
145
145
  def get_query_parameter(self,original_name: str) -> str:
146
146
  """
@@ -0,0 +1,104 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from ....models.o_data_errors.o_data_error import ODataError
18
+
19
+ class CountRequestBuilder(BaseRequestBuilder):
20
+ """
21
+ Provides operations to count the resources in the collection.
22
+ """
23
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
24
+ """
25
+ Instantiates a new CountRequestBuilder and sets the default values.
26
+ param path_parameters: The raw url or the url-template parameters for the request.
27
+ param request_adapter: The request adapter to use to execute the requests.
28
+ Returns: None
29
+ """
30
+ super().__init__(request_adapter, "{+baseurl}/deviceAppManagement/mobileAppRelationships/$count{?%24filter,%24search}", path_parameters)
31
+
32
+ async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> Optional[int]:
33
+ """
34
+ Get the number of the resource
35
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
+ Returns: Optional[int]
37
+ """
38
+ request_info = self.to_get_request_information(
39
+ request_configuration
40
+ )
41
+ from ....models.o_data_errors.o_data_error import ODataError
42
+
43
+ error_mapping: dict[str, type[ParsableFactory]] = {
44
+ "XXX": ODataError,
45
+ }
46
+ if not self.request_adapter:
47
+ raise Exception("Http core is null")
48
+ return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
49
+
50
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
51
+ """
52
+ Get the number of the resource
53
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
+ Returns: RequestInformation
55
+ """
56
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
57
+ request_info.configure(request_configuration)
58
+ request_info.headers.try_add("Accept", "text/plain;q=0.9")
59
+ return request_info
60
+
61
+ def with_url(self,raw_url: str) -> CountRequestBuilder:
62
+ """
63
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
64
+ param raw_url: The raw URL to use for the request builder.
65
+ Returns: CountRequestBuilder
66
+ """
67
+ if raw_url is None:
68
+ raise TypeError("raw_url cannot be null.")
69
+ return CountRequestBuilder(self.request_adapter, raw_url)
70
+
71
+ @dataclass
72
+ class CountRequestBuilderGetQueryParameters():
73
+ """
74
+ Get the number of the resource
75
+ """
76
+ def get_query_parameter(self,original_name: str) -> str:
77
+ """
78
+ Maps the query parameters names to their encoded names for the URI template parsing.
79
+ param original_name: The original query parameter name in the class.
80
+ Returns: str
81
+ """
82
+ if original_name is None:
83
+ raise TypeError("original_name cannot be null.")
84
+ if original_name == "filter":
85
+ return "%24filter"
86
+ if original_name == "search":
87
+ return "%24search"
88
+ return original_name
89
+
90
+ # Filter items by property values
91
+ filter: Optional[str] = None
92
+
93
+ # Search items by search phrases
94
+ search: Optional[str] = None
95
+
96
+
97
+ @dataclass
98
+ class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]):
99
+ """
100
+ Configuration for the request such as headers, query parameters, and middleware options.
101
+ """
102
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
103
+
104
+