msgraph-sdk 1.31.0__py3-none-any.whl → 1.32.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.
- msgraph/_version.py +1 -1
- msgraph/generated/device_app_management/device_app_management_request_builder.py +2 -2
- msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_e_books/item/assignments/assignments_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +3 -3
- msgraph/generated/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.py +4 -4
- msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +10 -10
- msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +4 -4
- msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +7 -7
- msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +10 -10
- msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +7 -7
- msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +10 -10
- msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +7 -7
- msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +3 -3
- msgraph/generated/device_management/device_management_request_builder.py +2 -2
- msgraph/generated/drives/item/items/item/copy/copy_request_builder.py +2 -3
- msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/names/item/range/range_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py +3 -3
- msgraph/generated/education/classes/item/assignments/assignments_request_builder.py +1 -1
- msgraph/generated/education/classes/item/assignments/item/resources/resources_request_builder.py +1 -1
- msgraph/generated/groups/item/team/schedule/time_cards/clock_in/clock_in_post_request_body.py +4 -0
- msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +1 -1
- msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +6 -6
- msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +7 -7
- msgraph/generated/identity_protection/risky_users/confirm_safe/confirm_safe_post_request_body.py +50 -0
- msgraph/generated/identity_protection/risky_users/confirm_safe/confirm_safe_request_builder.py +86 -0
- msgraph/generated/identity_protection/risky_users/risky_users_request_builder.py +10 -0
- msgraph/generated/kiota-dom-export.txt +34 -24
- msgraph/generated/kiota-lock.json +1 -1
- msgraph/generated/models/ai_interaction.py +12 -12
- msgraph/generated/models/ai_interaction_attachment.py +19 -16
- msgraph/generated/models/ai_interaction_context.py +17 -14
- msgraph/generated/models/ai_interaction_link.py +17 -14
- msgraph/generated/models/ai_interaction_mention.py +13 -14
- msgraph/generated/models/ai_interaction_mentioned_identity_set.py +1 -1
- msgraph/generated/models/ai_user.py +1 -1
- msgraph/generated/models/app_scope.py +2 -2
- msgraph/generated/models/application.py +1 -1
- msgraph/generated/models/audit_activity_initiator.py +2 -2
- msgraph/generated/models/drive_protection_units_bulk_addition_job.py +2 -2
- msgraph/generated/models/drive_restore_artifacts_bulk_addition_request.py +2 -2
- msgraph/generated/models/exchange_restore_session.py +1 -1
- msgraph/generated/models/mailbox_protection_units_bulk_addition_job.py +2 -2
- msgraph/generated/models/mailbox_restore_artifacts_bulk_addition_request.py +2 -2
- msgraph/generated/models/offer_shift_request.py +4 -4
- msgraph/generated/models/one_drive_for_business_restore_session.py +2 -2
- msgraph/generated/models/protection_rule_base.py +1 -1
- msgraph/generated/models/protection_units_bulk_job_base.py +6 -6
- msgraph/generated/models/restore_artifacts_bulk_request_base.py +11 -11
- msgraph/generated/models/schedule_change_request.py +8 -8
- msgraph/generated/models/search_request.py +1 -1
- msgraph/generated/models/security/alert.py +2 -2
- msgraph/generated/models/share_point_restore_session.py +1 -1
- msgraph/generated/models/site_protection_units_bulk_addition_job.py +2 -2
- msgraph/generated/models/site_restore_artifacts_bulk_addition_request.py +2 -2
- msgraph/generated/models/swap_shifts_change_request.py +1 -1
- msgraph/generated/models/time_off_request.py +2 -2
- msgraph/generated/organization/item/organization_item_request_builder.py +4 -4
- msgraph/generated/organization/organization_request_builder.py +4 -4
- msgraph/generated/policies/cross_tenant_access_policy/partners/item/identity_synchronization/identity_synchronization_request_builder.py +3 -3
- msgraph/generated/sites/item/lists/item/list_item_request_builder.py +4 -4
- msgraph/generated/sites/sites_request_builder.py +4 -4
- msgraph/generated/solutions/backup_restore/exchange_protection_policies/item/mailbox_protection_units_bulk_addition_jobs/item/mailbox_protection_units_bulk_addition_job_item_request_builder.py +4 -3
- msgraph/generated/solutions/backup_restore/exchange_protection_policies/item/mailbox_protection_units_bulk_addition_jobs/mailbox_protection_units_bulk_addition_jobs_request_builder.py +4 -3
- msgraph/generated/solutions/backup_restore/exchange_restore_sessions/item/mailbox_restore_artifacts_bulk_addition_requests/item/mailbox_restore_artifacts_bulk_addition_request_item_request_builder.py +7 -5
- msgraph/generated/solutions/backup_restore/exchange_restore_sessions/item/mailbox_restore_artifacts_bulk_addition_requests/mailbox_restore_artifacts_bulk_addition_requests_request_builder.py +7 -5
- msgraph/generated/solutions/backup_restore/one_drive_for_business_protection_policies/item/drive_protection_units_bulk_addition_jobs/drive_protection_units_bulk_addition_jobs_request_builder.py +4 -3
- msgraph/generated/solutions/backup_restore/one_drive_for_business_protection_policies/item/drive_protection_units_bulk_addition_jobs/item/drive_protection_units_bulk_addition_job_item_request_builder.py +4 -3
- msgraph/generated/solutions/backup_restore/one_drive_for_business_restore_sessions/item/drive_restore_artifacts/item/drive_restore_artifact_item_request_builder.py +3 -3
- msgraph/generated/solutions/backup_restore/one_drive_for_business_restore_sessions/item/drive_restore_artifacts_bulk_addition_requests/drive_restore_artifacts_bulk_addition_requests_request_builder.py +7 -5
- msgraph/generated/solutions/backup_restore/one_drive_for_business_restore_sessions/item/drive_restore_artifacts_bulk_addition_requests/item/drive_restore_artifacts_bulk_addition_request_item_request_builder.py +7 -5
- msgraph/generated/solutions/backup_restore/share_point_protection_policies/item/site_protection_units_bulk_addition_jobs/item/site_protection_units_bulk_addition_job_item_request_builder.py +4 -3
- msgraph/generated/solutions/backup_restore/share_point_protection_policies/item/site_protection_units_bulk_addition_jobs/site_protection_units_bulk_addition_jobs_request_builder.py +4 -3
- msgraph/generated/solutions/backup_restore/share_point_restore_sessions/item/site_restore_artifacts_bulk_addition_requests/item/site_restore_artifacts_bulk_addition_request_item_request_builder.py +7 -5
- msgraph/generated/solutions/backup_restore/share_point_restore_sessions/item/site_restore_artifacts_bulk_addition_requests/site_restore_artifacts_bulk_addition_requests_request_builder.py +7 -5
- msgraph/generated/teams/item/channels/item/messages/item/replies/replies_request_builder.py +3 -3
- msgraph/generated/teams/item/schedule/time_cards/clock_in/clock_in_post_request_body.py +4 -0
- msgraph/generated/teams/item/schedule/time_off_requests/time_off_requests_request_builder.py +3 -2
- msgraph/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py +3 -3
- msgraph/generated/users/item/joined_teams/item/schedule/time_cards/clock_in/clock_in_post_request_body.py +4 -0
- msgraph/generated/users/item/presence/presence_request_builder.py +4 -4
- msgraph/generated/users/item/user_item_request_builder.py +3 -3
- msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +3 -3
- {msgraph_sdk-1.31.0.dist-info → msgraph_sdk-1.32.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.31.0.dist-info → msgraph_sdk-1.32.0.dist-info}/RECORD +94 -92
- {msgraph_sdk-1.31.0.dist-info → msgraph_sdk-1.32.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.31.0.dist-info → msgraph_sdk-1.32.0.dist-info}/licenses/LICENSE +0 -0
@@ -49,10 +49,10 @@ class DeviceEnrollmentConfigurationsRequestBuilder(BaseRequestBuilder):
|
|
49
49
|
|
50
50
|
async def get(self,request_configuration: Optional[RequestConfiguration[DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters]] = None) -> Optional[DeviceEnrollmentConfigurationCollectionResponse]:
|
51
51
|
"""
|
52
|
-
List properties and relationships of the
|
52
|
+
List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects.
|
53
53
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
54
54
|
Returns: Optional[DeviceEnrollmentConfigurationCollectionResponse]
|
55
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-
|
55
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-list?view=graph-rest-1.0
|
56
56
|
"""
|
57
57
|
request_info = self.to_get_request_information(
|
58
58
|
request_configuration
|
@@ -70,11 +70,11 @@ class DeviceEnrollmentConfigurationsRequestBuilder(BaseRequestBuilder):
|
|
70
70
|
|
71
71
|
async def post(self,body: DeviceEnrollmentConfiguration, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DeviceEnrollmentConfiguration]:
|
72
72
|
"""
|
73
|
-
Create a new
|
73
|
+
Create a new deviceEnrollmentLimitConfiguration 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[DeviceEnrollmentConfiguration]
|
77
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-
|
77
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-create?view=graph-rest-1.0
|
78
78
|
"""
|
79
79
|
if body is None:
|
80
80
|
raise TypeError("body cannot be null.")
|
@@ -94,7 +94,7 @@ class DeviceEnrollmentConfigurationsRequestBuilder(BaseRequestBuilder):
|
|
94
94
|
|
95
95
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
96
96
|
"""
|
97
|
-
List properties and relationships of the
|
97
|
+
List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects.
|
98
98
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
99
99
|
Returns: RequestInformation
|
100
100
|
"""
|
@@ -105,7 +105,7 @@ class DeviceEnrollmentConfigurationsRequestBuilder(BaseRequestBuilder):
|
|
105
105
|
|
106
106
|
def to_post_request_information(self,body: DeviceEnrollmentConfiguration, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
107
107
|
"""
|
108
|
-
Create a new
|
108
|
+
Create a new deviceEnrollmentLimitConfiguration 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
|
@@ -140,7 +140,7 @@ class DeviceEnrollmentConfigurationsRequestBuilder(BaseRequestBuilder):
|
|
140
140
|
@dataclass
|
141
141
|
class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters():
|
142
142
|
"""
|
143
|
-
List properties and relationships of the
|
143
|
+
List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects.
|
144
144
|
"""
|
145
145
|
def get_query_parameter(self,original_name: str) -> str:
|
146
146
|
"""
|
@@ -35,10 +35,10 @@ class DeviceEnrollmentConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
35
35
|
|
36
36
|
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
37
37
|
"""
|
38
|
-
Deletes a
|
38
|
+
Deletes a deviceEnrollmentLimitConfiguration.
|
39
39
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
40
40
|
Returns: None
|
41
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-
|
41
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-delete?view=graph-rest-1.0
|
42
42
|
"""
|
43
43
|
request_info = self.to_delete_request_information(
|
44
44
|
request_configuration
|
@@ -99,7 +99,7 @@ class DeviceEnrollmentConfigurationItemRequestBuilder(BaseRequestBuilder):
|
|
99
99
|
|
100
100
|
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
101
101
|
"""
|
102
|
-
Deletes a
|
102
|
+
Deletes a deviceEnrollmentLimitConfiguration.
|
103
103
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
104
104
|
Returns: RequestInformation
|
105
105
|
"""
|
@@ -96,7 +96,7 @@ class DeviceManagementRequestBuilder(BaseRequestBuilder):
|
|
96
96
|
Read properties and relationships of the deviceManagement object.
|
97
97
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
98
98
|
Returns: Optional[DeviceManagement]
|
99
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-
|
99
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-enrollment-devicemanagement-get?view=graph-rest-1.0
|
100
100
|
"""
|
101
101
|
request_info = self.to_get_request_information(
|
102
102
|
request_configuration
|
@@ -130,7 +130,7 @@ class DeviceManagementRequestBuilder(BaseRequestBuilder):
|
|
130
130
|
param body: The request body
|
131
131
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
132
132
|
Returns: Optional[DeviceManagement]
|
133
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-
|
133
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-remoteassistance-devicemanagement-update?view=graph-rest-1.0
|
134
134
|
"""
|
135
135
|
if body is None:
|
136
136
|
raise TypeError("body cannot be null.")
|
@@ -33,11 +33,10 @@ class CopyRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: CopyPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DriveItem]:
|
35
35
|
"""
|
36
|
-
|
36
|
+
Invoke action copy
|
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[DriveItem]
|
40
|
-
Find more info here: https://learn.microsoft.com/graph/api/driveitem-copy?view=graph-rest-1.0
|
41
40
|
"""
|
42
41
|
if body is None:
|
43
42
|
raise TypeError("body cannot be null.")
|
@@ -57,7 +56,7 @@ class CopyRequestBuilder(BaseRequestBuilder):
|
|
57
56
|
|
58
57
|
def to_post_request_information(self,body: CopyPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
58
|
"""
|
60
|
-
|
59
|
+
Invoke action copy
|
61
60
|
param body: The request body
|
62
61
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
62
|
Returns: RequestInformation
|
@@ -71,11 +71,11 @@ class RetentionLabelRequestBuilder(BaseRequestBuilder):
|
|
71
71
|
|
72
72
|
async def patch(self,body: ItemRetentionLabel, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ItemRetentionLabel]:
|
73
73
|
"""
|
74
|
-
|
74
|
+
Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.
|
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[ItemRetentionLabel]
|
78
|
-
Find more info here: https://learn.microsoft.com/graph/api/driveitem-
|
78
|
+
Find more info here: https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0
|
79
79
|
"""
|
80
80
|
if body is None:
|
81
81
|
raise TypeError("body cannot be null.")
|
@@ -116,7 +116,7 @@ class RetentionLabelRequestBuilder(BaseRequestBuilder):
|
|
116
116
|
|
117
117
|
def to_patch_request_information(self,body: ItemRetentionLabel, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
118
118
|
"""
|
119
|
-
|
119
|
+
Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.
|
120
120
|
param body: The request body
|
121
121
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
122
122
|
Returns: RequestInformation
|
@@ -126,10 +126,10 @@ class RangeRequestBuilder(BaseRequestBuilder):
|
|
126
126
|
|
127
127
|
async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[WorkbookRange]:
|
128
128
|
"""
|
129
|
-
|
129
|
+
Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range.
|
130
130
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
131
131
|
Returns: Optional[WorkbookRange]
|
132
|
-
Find more info here: https://learn.microsoft.com/graph/api/range
|
132
|
+
Find more info here: https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0
|
133
133
|
"""
|
134
134
|
request_info = self.to_get_request_information(
|
135
135
|
request_configuration
|
@@ -225,7 +225,7 @@ class RangeRequestBuilder(BaseRequestBuilder):
|
|
225
225
|
|
226
226
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
227
227
|
"""
|
228
|
-
|
228
|
+
Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range.
|
229
229
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
230
230
|
Returns: RequestInformation
|
231
231
|
"""
|
@@ -33,11 +33,11 @@ class AddRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[WorkbookTable]:
|
35
35
|
"""
|
36
|
-
|
36
|
+
Use this API to create a new Table.
|
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[WorkbookTable]
|
40
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
40
|
+
Find more info here: https://learn.microsoft.com/graph/api/workbook-post-tables?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 AddRequestBuilder(BaseRequestBuilder):
|
|
57
57
|
|
58
58
|
def to_post_request_information(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
59
|
"""
|
60
|
-
|
60
|
+
Use this API to create a new Table.
|
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
|
@@ -126,10 +126,10 @@ class RangeRequestBuilder(BaseRequestBuilder):
|
|
126
126
|
|
127
127
|
async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[WorkbookRange]:
|
128
128
|
"""
|
129
|
-
|
129
|
+
Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range.
|
130
130
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
131
131
|
Returns: Optional[WorkbookRange]
|
132
|
-
Find more info here: https://learn.microsoft.com/graph/api/range
|
132
|
+
Find more info here: https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0
|
133
133
|
"""
|
134
134
|
request_info = self.to_get_request_information(
|
135
135
|
request_configuration
|
@@ -225,7 +225,7 @@ class RangeRequestBuilder(BaseRequestBuilder):
|
|
225
225
|
|
226
226
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
227
227
|
"""
|
228
|
-
|
228
|
+
Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range.
|
229
229
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
230
230
|
Returns: RequestInformation
|
231
231
|
"""
|
msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py
CHANGED
@@ -33,11 +33,11 @@ class AddRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[WorkbookTable]:
|
35
35
|
"""
|
36
|
-
|
36
|
+
Use this API to create a new Table.
|
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[WorkbookTable]
|
40
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
40
|
+
Find more info here: https://learn.microsoft.com/graph/api/workbook-post-tables?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 AddRequestBuilder(BaseRequestBuilder):
|
|
57
57
|
|
58
58
|
def to_post_request_information(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
59
|
"""
|
60
|
-
|
60
|
+
Use this API to create a new Table.
|
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
|
@@ -75,7 +75,7 @@ class AssignmentsRequestBuilder(BaseRequestBuilder):
|
|
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[EducationAssignment]
|
78
|
-
Find more info here: https://learn.microsoft.com/graph/api/educationclass-post-
|
78
|
+
Find more info here: https://learn.microsoft.com/graph/api/educationclass-post-assignments?view=graph-rest-1.0
|
79
79
|
"""
|
80
80
|
if body is None:
|
81
81
|
raise TypeError("body cannot be null.")
|
msgraph/generated/education/classes/item/assignments/item/resources/resources_request_builder.py
CHANGED
@@ -74,7 +74,7 @@ class ResourcesRequestBuilder(BaseRequestBuilder):
|
|
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[EducationAssignmentResource]
|
77
|
-
Find more info here: https://learn.microsoft.com/graph/api/educationassignment-post-
|
77
|
+
Find more info here: https://learn.microsoft.com/graph/api/educationassignment-post-resources?view=graph-rest-1.0
|
78
78
|
"""
|
79
79
|
if body is None:
|
80
80
|
raise TypeError("body cannot be null.")
|
msgraph/generated/groups/item/team/schedule/time_cards/clock_in/clock_in_post_request_body.py
CHANGED
@@ -19,6 +19,8 @@ class ClockInPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
|
|
19
19
|
is_at_approved_location: Optional[bool] = None
|
20
20
|
# The notes property
|
21
21
|
notes: Optional[ItemBody] = None
|
22
|
+
# The onBehalfOfUserId property
|
23
|
+
on_behalf_of_user_id: Optional[str] = None
|
22
24
|
|
23
25
|
@staticmethod
|
24
26
|
def create_from_discriminator_value(parse_node: ParseNode) -> ClockInPostRequestBody:
|
@@ -43,6 +45,7 @@ class ClockInPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
|
|
43
45
|
fields: dict[str, Callable[[Any], None]] = {
|
44
46
|
"isAtApprovedLocation": lambda n : setattr(self, 'is_at_approved_location', n.get_bool_value()),
|
45
47
|
"notes": lambda n : setattr(self, 'notes', n.get_object_value(ItemBody)),
|
48
|
+
"onBehalfOfUserId": lambda n : setattr(self, 'on_behalf_of_user_id', n.get_str_value()),
|
46
49
|
}
|
47
50
|
return fields
|
48
51
|
|
@@ -56,6 +59,7 @@ class ClockInPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
|
|
56
59
|
raise TypeError("writer cannot be null.")
|
57
60
|
writer.write_bool_value("isAtApprovedLocation", self.is_at_approved_location)
|
58
61
|
writer.write_object_value("notes", self.notes)
|
62
|
+
writer.write_str_value("onBehalfOfUserId", self.on_behalf_of_user_id)
|
59
63
|
writer.write_additional_data_value(self.additional_data)
|
60
64
|
|
61
65
|
|
@@ -37,7 +37,7 @@ class ConversationThreadItemRequestBuilder(BaseRequestBuilder):
|
|
37
37
|
Delete conversationThread.
|
38
38
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
39
|
Returns: None
|
40
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
40
|
+
Find more info here: https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0
|
41
41
|
"""
|
42
42
|
request_info = self.to_delete_request_information(
|
43
43
|
request_configuration
|
@@ -32,10 +32,10 @@ class NamedLocationItemRequestBuilder(BaseRequestBuilder):
|
|
32
32
|
|
33
33
|
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
34
34
|
"""
|
35
|
-
Delete a
|
35
|
+
Delete a namedLocation object.
|
36
36
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
37
37
|
Returns: None
|
38
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
38
|
+
Find more info here: https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0
|
39
39
|
"""
|
40
40
|
request_info = self.to_delete_request_information(
|
41
41
|
request_configuration
|
@@ -72,11 +72,11 @@ class NamedLocationItemRequestBuilder(BaseRequestBuilder):
|
|
72
72
|
|
73
73
|
async def patch(self,body: NamedLocation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[NamedLocation]:
|
74
74
|
"""
|
75
|
-
Update the properties of
|
75
|
+
Update the properties of a countryNamedLocation 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[NamedLocation]
|
79
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
79
|
+
Find more info here: https://learn.microsoft.com/graph/api/countrynamedlocation-update?view=graph-rest-1.0
|
80
80
|
"""
|
81
81
|
if body is None:
|
82
82
|
raise TypeError("body cannot be null.")
|
@@ -96,7 +96,7 @@ class NamedLocationItemRequestBuilder(BaseRequestBuilder):
|
|
96
96
|
|
97
97
|
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
98
98
|
"""
|
99
|
-
Delete a
|
99
|
+
Delete a namedLocation object.
|
100
100
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
101
101
|
Returns: RequestInformation
|
102
102
|
"""
|
@@ -117,7 +117,7 @@ class NamedLocationItemRequestBuilder(BaseRequestBuilder):
|
|
117
117
|
|
118
118
|
def to_patch_request_information(self,body: NamedLocation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
119
119
|
"""
|
120
|
-
Update the properties of
|
120
|
+
Update the properties of a countryNamedLocation object.
|
121
121
|
param body: The request body
|
122
122
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
123
123
|
Returns: RequestInformation
|
@@ -51,10 +51,10 @@ class CustomCalloutExtensionItemRequestBuilder(BaseRequestBuilder):
|
|
51
51
|
|
52
52
|
async def get(self,request_configuration: Optional[RequestConfiguration[CustomCalloutExtensionItemRequestBuilderGetQueryParameters]] = None) -> Optional[CustomCalloutExtension]:
|
53
53
|
"""
|
54
|
-
Read the properties and relationships of an
|
54
|
+
Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object.
|
55
55
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
56
56
|
Returns: Optional[CustomCalloutExtension]
|
57
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
57
|
+
Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0
|
58
58
|
"""
|
59
59
|
request_info = self.to_get_request_information(
|
60
60
|
request_configuration
|
@@ -72,11 +72,11 @@ class CustomCalloutExtensionItemRequestBuilder(BaseRequestBuilder):
|
|
72
72
|
|
73
73
|
async def patch(self,body: CustomCalloutExtension, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CustomCalloutExtension]:
|
74
74
|
"""
|
75
|
-
Update the properties of an
|
75
|
+
Update the properties of an accessPackageAssignmentWorkflowExtension 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[CustomCalloutExtension]
|
79
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
79
|
+
Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0
|
80
80
|
"""
|
81
81
|
if body is None:
|
82
82
|
raise TypeError("body cannot be null.")
|
@@ -106,7 +106,7 @@ class CustomCalloutExtensionItemRequestBuilder(BaseRequestBuilder):
|
|
106
106
|
|
107
107
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CustomCalloutExtensionItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
108
108
|
"""
|
109
|
-
Read the properties and relationships of an
|
109
|
+
Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object.
|
110
110
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
111
111
|
Returns: RequestInformation
|
112
112
|
"""
|
@@ -117,7 +117,7 @@ class CustomCalloutExtensionItemRequestBuilder(BaseRequestBuilder):
|
|
117
117
|
|
118
118
|
def to_patch_request_information(self,body: CustomCalloutExtension, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
119
119
|
"""
|
120
|
-
Update the properties of an
|
120
|
+
Update the properties of an accessPackageAssignmentWorkflowExtension object.
|
121
121
|
param body: The request body
|
122
122
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
123
123
|
Returns: RequestInformation
|
@@ -150,7 +150,7 @@ class CustomCalloutExtensionItemRequestBuilder(BaseRequestBuilder):
|
|
150
150
|
@dataclass
|
151
151
|
class CustomCalloutExtensionItemRequestBuilderGetQueryParameters():
|
152
152
|
"""
|
153
|
-
Read the properties and relationships of an
|
153
|
+
Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object.
|
154
154
|
"""
|
155
155
|
def get_query_parameter(self,original_name: str) -> str:
|
156
156
|
"""
|
msgraph/generated/identity_protection/risky_users/confirm_safe/confirm_safe_post_request_body.py
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from collections.abc import Callable
|
3
|
+
from dataclasses import dataclass, field
|
4
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
5
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
6
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
7
|
+
|
8
|
+
@dataclass
|
9
|
+
class ConfirmSafePostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
|
10
|
+
# Stores model information.
|
11
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
12
|
+
|
13
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
14
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
15
|
+
# The userIds property
|
16
|
+
user_ids: Optional[list[str]] = None
|
17
|
+
|
18
|
+
@staticmethod
|
19
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> ConfirmSafePostRequestBody:
|
20
|
+
"""
|
21
|
+
Creates a new instance of the appropriate class based on discriminator value
|
22
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
23
|
+
Returns: ConfirmSafePostRequestBody
|
24
|
+
"""
|
25
|
+
if parse_node is None:
|
26
|
+
raise TypeError("parse_node cannot be null.")
|
27
|
+
return ConfirmSafePostRequestBody()
|
28
|
+
|
29
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
30
|
+
"""
|
31
|
+
The deserialization information for the current model
|
32
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
33
|
+
"""
|
34
|
+
fields: dict[str, Callable[[Any], None]] = {
|
35
|
+
"userIds": lambda n : setattr(self, 'user_ids', n.get_collection_of_primitive_values(str)),
|
36
|
+
}
|
37
|
+
return fields
|
38
|
+
|
39
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
40
|
+
"""
|
41
|
+
Serializes information the current object
|
42
|
+
param writer: Serialization writer to use to serialize this model
|
43
|
+
Returns: None
|
44
|
+
"""
|
45
|
+
if writer is None:
|
46
|
+
raise TypeError("writer cannot be null.")
|
47
|
+
writer.write_collection_of_primitive_values("userIds", self.user_ids)
|
48
|
+
writer.write_additional_data_value(self.additional_data)
|
49
|
+
|
50
|
+
|
msgraph/generated/identity_protection/risky_users/confirm_safe/confirm_safe_request_builder.py
ADDED
@@ -0,0 +1,86 @@
|
|
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
|
+
from .confirm_safe_post_request_body import ConfirmSafePostRequestBody
|
19
|
+
|
20
|
+
class ConfirmSafeRequestBuilder(BaseRequestBuilder):
|
21
|
+
"""
|
22
|
+
Provides operations to call the confirmSafe method.
|
23
|
+
"""
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
25
|
+
"""
|
26
|
+
Instantiates a new ConfirmSafeRequestBuilder and sets the default values.
|
27
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
28
|
+
param request_adapter: The request adapter to use to execute the requests.
|
29
|
+
Returns: None
|
30
|
+
"""
|
31
|
+
super().__init__(request_adapter, "{+baseurl}/identityProtection/riskyUsers/confirmSafe", path_parameters)
|
32
|
+
|
33
|
+
async def post(self,body: ConfirmSafePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
34
|
+
"""
|
35
|
+
Confirm one or more riskyUser objects as safe. This action sets the targeted user's risk level to none.
|
36
|
+
param body: The request body
|
37
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
38
|
+
Returns: None
|
39
|
+
Find more info here: https://learn.microsoft.com/graph/api/riskyuser-confirmsafe?view=graph-rest-1.0
|
40
|
+
"""
|
41
|
+
if body is None:
|
42
|
+
raise TypeError("body cannot be null.")
|
43
|
+
request_info = self.to_post_request_information(
|
44
|
+
body, request_configuration
|
45
|
+
)
|
46
|
+
from ....models.o_data_errors.o_data_error import ODataError
|
47
|
+
|
48
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
49
|
+
"XXX": ODataError,
|
50
|
+
}
|
51
|
+
if not self.request_adapter:
|
52
|
+
raise Exception("Http core is null")
|
53
|
+
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
|
54
|
+
|
55
|
+
def to_post_request_information(self,body: ConfirmSafePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
56
|
+
"""
|
57
|
+
Confirm one or more riskyUser objects as safe. This action sets the targeted user's risk level to none.
|
58
|
+
param body: The request body
|
59
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
60
|
+
Returns: RequestInformation
|
61
|
+
"""
|
62
|
+
if body is None:
|
63
|
+
raise TypeError("body cannot be null.")
|
64
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
65
|
+
request_info.configure(request_configuration)
|
66
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
67
|
+
return request_info
|
68
|
+
|
69
|
+
def with_url(self,raw_url: str) -> ConfirmSafeRequestBuilder:
|
70
|
+
"""
|
71
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
72
|
+
param raw_url: The raw URL to use for the request builder.
|
73
|
+
Returns: ConfirmSafeRequestBuilder
|
74
|
+
"""
|
75
|
+
if raw_url is None:
|
76
|
+
raise TypeError("raw_url cannot be null.")
|
77
|
+
return ConfirmSafeRequestBuilder(self.request_adapter, raw_url)
|
78
|
+
|
79
|
+
@dataclass
|
80
|
+
class ConfirmSafeRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
81
|
+
"""
|
82
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
83
|
+
"""
|
84
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
85
|
+
|
86
|
+
|
@@ -18,6 +18,7 @@ if TYPE_CHECKING:
|
|
18
18
|
from ...models.risky_user import RiskyUser
|
19
19
|
from ...models.risky_user_collection_response import RiskyUserCollectionResponse
|
20
20
|
from .confirm_compromised.confirm_compromised_request_builder import ConfirmCompromisedRequestBuilder
|
21
|
+
from .confirm_safe.confirm_safe_request_builder import ConfirmSafeRequestBuilder
|
21
22
|
from .count.count_request_builder import CountRequestBuilder
|
22
23
|
from .dismiss.dismiss_request_builder import DismissRequestBuilder
|
23
24
|
from .item.risky_user_item_request_builder import RiskyUserItemRequestBuilder
|
@@ -138,6 +139,15 @@ class RiskyUsersRequestBuilder(BaseRequestBuilder):
|
|
138
139
|
|
139
140
|
return ConfirmCompromisedRequestBuilder(self.request_adapter, self.path_parameters)
|
140
141
|
|
142
|
+
@property
|
143
|
+
def confirm_safe(self) -> ConfirmSafeRequestBuilder:
|
144
|
+
"""
|
145
|
+
Provides operations to call the confirmSafe method.
|
146
|
+
"""
|
147
|
+
from .confirm_safe.confirm_safe_request_builder import ConfirmSafeRequestBuilder
|
148
|
+
|
149
|
+
return ConfirmSafeRequestBuilder(self.request_adapter, self.path_parameters)
|
150
|
+
|
141
151
|
@property
|
142
152
|
def count(self) -> CountRequestBuilder:
|
143
153
|
"""
|