From b0c3b2e08fe3b3132a2d642abf42d71eefb5e17f Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 18 Feb 2025 11:23:17 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 180616 --- ...esource_connection_item_request_builder.py | 8 +-- .../updatable_asset_item_request_builder.py | 14 ++-- .../compliance_change_item_request_builder.py | 8 +-- .../assignments_request_builder.py | 6 +- ...uration_assignment_item_request_builder.py | 6 +- ...log_collection_requests_request_builder.py | 6 +- ...collection_request_item_request_builder.py | 6 +- .../hardware_oath_devices_request_builder.py | 6 +- .../retention_label_request_builder.py | 6 +- .../tables/add/add_request_builder.py | 6 +- .../item/tables/add/add_request_builder.py | 6 +- .../item/schema/schema_request_builder.py | 6 +- .../inbound_flows_request_builder.py | 6 +- ..._running_operation_item_request_builder.py | 8 +-- .../groups/groups_request_builder.py | 6 +- .../conversations_request_builder.py | 6 +- .../named_location_item_request_builder.py | 14 ++-- ...tication_extension_item_request_builder.py | 8 +-- ..._callout_extension_item_request_builder.py | 6 +- ...workflow_extension_item_request_builder.py | 6 +- .../item/agreement_item_request_builder.py | 8 +-- .../risky_users_request_builder.py | 8 +-- msgraph_beta/generated/kiota-dom-export.txt | 44 +++++++++++++ msgraph_beta/generated/kiota-lock.json | 2 +- .../ai_interaction_mentioned_identity_set.py | 2 +- .../models/android_managed_app_protection.py | 4 +- .../models/authentication_event_listener.py | 7 ++ .../generated/models/cloud_pc_device_image.py | 4 +- .../generated/models/cloud_pc_export_job.py | 2 +- ...configuration_choice_setting_definition.py | 4 +- ...gement_configuration_setting_definition.py | 14 ++-- ...ion_setting_group_collection_definition.py | 4 +- ..._configuration_setting_group_definition.py | 2 +- ...uration_string_setting_value_definition.py | 6 +- msgraph_beta/generated/models/entity.py | 7 ++ msgraph_beta/generated/models/identity_set.py | 6 +- .../ios_lob_app_provisioning_configuration.py | 4 +- msgraph_beta/generated/models/key_value.py | 4 +- .../mobile_app_troubleshooting_event.py | 2 +- ..._load_start_external_users_auth_handler.py | 64 ++++++++++++++++++ .../on_phone_method_load_start_handler.py | 66 +++++++++++++++++++ .../on_phone_method_load_start_listener.py | 60 +++++++++++++++++ .../generated/models/phone_options.py | 62 +++++++++++++++++ msgraph_beta/generated/models/report.py | 2 +- .../windows_domain_join_configuration.py | 2 +- ...dentity_synchronization_request_builder.py | 6 +- .../sites/item/pages/pages_request_builder.py | 6 +- .../generated/sites/sites_request_builder.py | 8 +-- ...lti_tenant_organization_request_builder.py | 6 +- ...log_collection_requests_request_builder.py | 6 +- ...collection_request_item_request_builder.py | 6 +- 51 files changed, 441 insertions(+), 131 deletions(-) create mode 100644 msgraph_beta/generated/models/on_phone_method_load_start_external_users_auth_handler.py create mode 100644 msgraph_beta/generated/models/on_phone_method_load_start_handler.py create mode 100644 msgraph_beta/generated/models/on_phone_method_load_start_listener.py create mode 100644 msgraph_beta/generated/models/phone_options.py diff --git a/msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py b/msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py index a44db7bab6e..45e50af67b1 100644 --- a/msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py +++ b/msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py @@ -51,10 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[ResourceConnectionItemRequestBuilderGetQueryParameters]] = None) -> Optional[ResourceConnection]: """ - Read the properties and relationships of an operationalInsightsConnection object. + Read the properties and relationships of a resourceConnection object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ResourceConnection] - Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -106,7 +106,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ResourceConnectionItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read the properties and relationships of an operationalInsightsConnection object. + Read the properties and relationships of a resourceConnection object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -150,7 +150,7 @@ class ResourceConnectionItemRequestBuilderDeleteRequestConfiguration(RequestConf @dataclass class ResourceConnectionItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of an operationalInsightsConnection object. + Read the properties and relationships of a resourceConnection object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py b/msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py index 5a654ace4ff..e035cc74925 100644 --- a/msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py +++ b/msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py @@ -36,10 +36,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Delete an updatableAsset object. + Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta """ request_info = self.to_delete_request_information( request_configuration @@ -55,10 +55,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[UpdatableAssetItemRequestBuilderGetQueryParameters]] = None) -> Optional[UpdatableAsset]: """ - Read the properties and relationships of an updatableAssetGroup object. + Read the properties and relationships of an updatableAsset object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[UpdatableAsset] - Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -99,7 +99,7 @@ async def patch(self,body: UpdatableAsset, request_configuration: Optional[Reque def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Delete an updatableAsset object. + Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -110,7 +110,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UpdatableAssetItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read the properties and relationships of an updatableAssetGroup object. + Read the properties and relationships of an updatableAsset object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -190,7 +190,7 @@ class UpdatableAssetItemRequestBuilderDeleteRequestConfiguration(RequestConfigur @dataclass class UpdatableAssetItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of an updatableAssetGroup object. + Read the properties and relationships of an updatableAsset object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py b/msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py index 998a9f3a013..9dc5ebe3b4c 100644 --- a/msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py +++ b/msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py @@ -52,10 +52,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[ComplianceChangeItemRequestBuilderGetQueryParameters]] = None) -> Optional[ComplianceChange]: """ - Read the properties and relationships of a contentApproval object. + Read the properties and relationships of a complianceChange object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ComplianceChange] - Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -108,7 +108,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ComplianceChangeItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read the properties and relationships of a contentApproval object. + Read the properties and relationships of a complianceChange object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -161,7 +161,7 @@ class ComplianceChangeItemRequestBuilderDeleteRequestConfiguration(RequestConfig @dataclass class ComplianceChangeItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of a contentApproval object. + Read the properties and relationships of a complianceChange object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/device_app_management/ios_lob_app_provisioning_configurations/item/assignments/assignments_request_builder.py b/msgraph_beta/generated/device_app_management/ios_lob_app_provisioning_configurations/item/assignments/assignments_request_builder.py index ef159db0b1b..dc3e60042e2 100644 --- a/msgraph_beta/generated/device_app_management/ios_lob_app_provisioning_configurations/item/assignments/assignments_request_builder.py +++ b/msgraph_beta/generated/device_app_management/ios_lob_app_provisioning_configurations/item/assignments/assignments_request_builder.py @@ -49,7 +49,7 @@ def by_ios_lob_app_provisioning_configuration_assignment_id(self,ios_lob_app_pro async def get(self,request_configuration: Optional[RequestConfiguration[AssignmentsRequestBuilderGetQueryParameters]] = None) -> Optional[IosLobAppProvisioningConfigurationAssignmentCollectionResponse]: """ - The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. + The associated group assignments for IosLobAppProvisioningConfiguration. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[IosLobAppProvisioningConfigurationAssignmentCollectionResponse] """ @@ -92,7 +92,7 @@ async def post(self,body: IosLobAppProvisioningConfigurationAssignment, request_ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AssignmentsRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. + The associated group assignments for IosLobAppProvisioningConfiguration. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -138,7 +138,7 @@ def count(self) -> CountRequestBuilder: @dataclass class AssignmentsRequestBuilderGetQueryParameters(): """ - The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. + The associated group assignments for IosLobAppProvisioningConfiguration. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/device_app_management/ios_lob_app_provisioning_configurations/item/assignments/item/ios_lob_app_provisioning_configuration_assignment_item_request_builder.py b/msgraph_beta/generated/device_app_management/ios_lob_app_provisioning_configurations/item/assignments/item/ios_lob_app_provisioning_configuration_assignment_item_request_builder.py index 313b3485ab9..426f188bedc 100644 --- a/msgraph_beta/generated/device_app_management/ios_lob_app_provisioning_configurations/item/assignments/item/ios_lob_app_provisioning_configuration_assignment_item_request_builder.py +++ b/msgraph_beta/generated/device_app_management/ios_lob_app_provisioning_configurations/item/assignments/item/ios_lob_app_provisioning_configuration_assignment_item_request_builder.py @@ -50,7 +50,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[IosLobAppProvisioningConfigurationAssignmentItemRequestBuilderGetQueryParameters]] = None) -> Optional[IosLobAppProvisioningConfigurationAssignment]: """ - The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. + The associated group assignments for IosLobAppProvisioningConfiguration. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[IosLobAppProvisioningConfigurationAssignment] """ @@ -104,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[IosLobAppProvisioningConfigurationAssignmentItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. + The associated group assignments for IosLobAppProvisioningConfiguration. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -148,7 +148,7 @@ class IosLobAppProvisioningConfigurationAssignmentItemRequestBuilderDeleteReques @dataclass class IosLobAppProvisioningConfigurationAssignmentItemRequestBuilderGetQueryParameters(): """ - The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. + The associated group assignments for IosLobAppProvisioningConfiguration. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.py b/msgraph_beta/generated/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.py index 66700ae6d3f..e4ef8258b1f 100644 --- a/msgraph_beta/generated/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.py +++ b/msgraph_beta/generated/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.py @@ -49,7 +49,7 @@ def by_app_log_collection_request_id(self,app_log_collection_request_id: str) -> async def get(self,request_configuration: Optional[RequestConfiguration[AppLogCollectionRequestsRequestBuilderGetQueryParameters]] = None) -> Optional[AppLogCollectionRequestCollectionResponse]: """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AppLogCollectionRequestCollectionResponse] """ @@ -92,7 +92,7 @@ async def post(self,body: AppLogCollectionRequest, request_configuration: Option def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AppLogCollectionRequestsRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -138,7 +138,7 @@ def count(self) -> CountRequestBuilder: @dataclass class AppLogCollectionRequestsRequestBuilderGetQueryParameters(): """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.py b/msgraph_beta/generated/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.py index 64a5b0b2277..b5bdddedffd 100644 --- a/msgraph_beta/generated/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.py +++ b/msgraph_beta/generated/device_management/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.py @@ -51,7 +51,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[AppLogCollectionRequestItemRequestBuilderGetQueryParameters]] = None) -> Optional[AppLogCollectionRequest]: """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AppLogCollectionRequest] """ @@ -105,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AppLogCollectionRequestItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -158,7 +158,7 @@ class AppLogCollectionRequestItemRequestBuilderDeleteRequestConfiguration(Reques @dataclass class AppLogCollectionRequestItemRequestBuilderGetQueryParameters(): """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/directory/authentication_method_devices/hardware_oath_devices/hardware_oath_devices_request_builder.py b/msgraph_beta/generated/directory/authentication_method_devices/hardware_oath_devices/hardware_oath_devices_request_builder.py index 4814d5b5994..9231707d403 100644 --- a/msgraph_beta/generated/directory/authentication_method_devices/hardware_oath_devices/hardware_oath_devices_request_builder.py +++ b/msgraph_beta/generated/directory/authentication_method_devices/hardware_oath_devices/hardware_oath_devices_request_builder.py @@ -70,11 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Hardware async def post(self,body: HardwareOathTokenAuthenticationMethodDevice, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[HardwareOathTokenAuthenticationMethodDevice]: """ - Create a new hardwareOathTokenAuthenticationMethodDevice object. Supports bulk creation. + Create a new hardwareOathTokenAuthenticationMethodDevice object. You can optionally create and assign to a user in the same request; Or assign to a user via the assign API. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[HardwareOathTokenAuthenticationMethodDevice] - Find more info here: https://learn.microsoft.com/graph/api/authenticationmethoddevice-update?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/authenticationmethoddevice-post-hardwareoathdevices?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -105,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: HardwareOathTokenAuthenticationMethodDevice, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new hardwareOathTokenAuthenticationMethodDevice object. Supports bulk creation. + Create a new hardwareOathTokenAuthenticationMethodDevice object. You can optionally create and assign to a user in the same request; Or assign to a user via the assign API. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/drives/item/items/item/retention_label/retention_label_request_builder.py b/msgraph_beta/generated/drives/item/items/item/retention_label/retention_label_request_builder.py index 340a044831c..70ff82f190b 100644 --- a/msgraph_beta/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/retention_label/retention_label_request_builder.py @@ -71,11 +71,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Retentio async def patch(self,body: ItemRetentionLabel, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ItemRetentionLabel]: """ - 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. + Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ItemRetentionLabel] - Find more info here: https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/driveitem-lockorunlockrecord?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -117,7 +117,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: ItemRetentionLabel, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - 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. + Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py index 6f1c0a0318f..c571cb598c0 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py @@ -33,11 +33,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[WorkbookTable]: """ - Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + Use this API to create a new Table. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTable] - Find more info here: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -57,7 +57,7 @@ async def post(self,body: AddPostRequestBody, request_configuration: Optional[Re def to_post_request_information(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + Use this API to create a new Table. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py index 3cb2ed9dabd..6874e2ee1d9 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py @@ -33,11 +33,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[WorkbookTable]: """ - Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + Use this API to create a new Table. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTable] - Find more info here: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -57,7 +57,7 @@ async def post(self,body: AddPostRequestBody, request_configuration: Optional[Re def to_post_request_information(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + Use this API to create a new Table. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/external/connections/item/schema/schema_request_builder.py b/msgraph_beta/generated/external/connections/item/schema/schema_request_builder.py index 6d8c916f5bd..dde7c04adbb 100644 --- a/msgraph_beta/generated/external/connections/item/schema/schema_request_builder.py +++ b/msgraph_beta/generated/external/connections/item/schema/schema_request_builder.py @@ -53,11 +53,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[SchemaRe async def patch(self,body: Schema, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Schema]: """ - Update the properties of a schema for an externalConnection. + Create a new or update an existing schema for a Microsoft Search connection. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Schema] - Find more info here: https://learn.microsoft.com/graph/api/externalconnectors-schema-update?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -88,7 +88,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Schema, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Update the properties of a schema for an externalConnection. + Create a new or update an existing schema for a Microsoft Search connection. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/external/industry_data/inbound_flows/inbound_flows_request_builder.py b/msgraph_beta/generated/external/industry_data/inbound_flows/inbound_flows_request_builder.py index 3adea31a89c..580f37f8811 100644 --- a/msgraph_beta/generated/external/industry_data/inbound_flows/inbound_flows_request_builder.py +++ b/msgraph_beta/generated/external/industry_data/inbound_flows/inbound_flows_request_builder.py @@ -70,11 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[InboundF async def post(self,body: InboundFlow, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InboundFlow]: """ - Create a new inboundApiFlow object. + Create a new inboundFileFlow object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[InboundFlow] - Find more info here: https://learn.microsoft.com/graph/api/industrydata-inboundapiflow-post?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-post?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -105,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: InboundFlow, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new inboundApiFlow object. + Create a new inboundFileFlow object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/external/industry_data/operations/item/long_running_operation_item_request_builder.py b/msgraph_beta/generated/external/industry_data/operations/item/long_running_operation_item_request_builder.py index e40f54f84cc..c35c265fb8d 100644 --- a/msgraph_beta/generated/external/industry_data/operations/item/long_running_operation_item_request_builder.py +++ b/msgraph_beta/generated/external/industry_data/operations/item/long_running_operation_item_request_builder.py @@ -50,10 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[LongRunningOperationItemRequestBuilderGetQueryParameters]] = None) -> Optional[LongRunningOperation]: """ - Read the properties and relationships of a fileValidateOperation object. + Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[LongRunningOperation] - Find more info here: https://learn.microsoft.com/graph/api/industrydata-filevalidateoperation-get?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/longrunningoperation-get?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -105,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[LongRunningOperationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read the properties and relationships of a fileValidateOperation object. + Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -149,7 +149,7 @@ class LongRunningOperationItemRequestBuilderDeleteRequestConfiguration(RequestCo @dataclass class LongRunningOperationItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of a fileValidateOperation object. + Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/groups/groups_request_builder.py b/msgraph_beta/generated/groups/groups_request_builder.py index bbc94865639..efbfe77eb55 100644 --- a/msgraph_beta/generated/groups/groups_request_builder.py +++ b/msgraph_beta/generated/groups/groups_request_builder.py @@ -75,11 +75,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[GroupsRe async def post(self,body: Group, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Group]: """ - Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + Create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Group] - Find more info here: https://learn.microsoft.com/graph/api/group-upsert?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/group-post-groups?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -110,7 +110,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Group, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + Create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/conversations/conversations_request_builder.py b/msgraph_beta/generated/groups/item/conversations/conversations_request_builder.py index c6783172a3f..7f35c367cb6 100644 --- a/msgraph_beta/generated/groups/item/conversations/conversations_request_builder.py +++ b/msgraph_beta/generated/groups/item/conversations/conversations_request_builder.py @@ -70,11 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Conversa async def post(self,body: Conversation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Conversation]: """ - Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. + Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Conversation] - Find more info here: https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -105,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Conversation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. + Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py b/msgraph_beta/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py index 8a2ecb83332..e449277341e 100644 --- a/msgraph_beta/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +++ b/msgraph_beta/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py @@ -32,10 +32,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Delete a namedLocation object. + Delete an ipNamedLocation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-beta """ request_info = self.to_delete_request_information( request_configuration @@ -51,10 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[NamedLocationItemRequestBuilderGetQueryParameters]] = None) -> Optional[NamedLocation]: """ - Retrieve the properties and relationships of a countryNamedLocation object. + Retrieve the properties and relationships of an ipNamedLocation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[NamedLocation] - Find more info here: https://learn.microsoft.com/graph/api/countrynamedlocation-get?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/ipnamedlocation-get?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -96,7 +96,7 @@ async def patch(self,body: NamedLocation, request_configuration: Optional[Reques def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Delete a namedLocation object. + Delete an ipNamedLocation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -107,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[NamedLocationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Retrieve the properties and relationships of a countryNamedLocation object. + Retrieve the properties and relationships of an ipNamedLocation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -151,7 +151,7 @@ class NamedLocationItemRequestBuilderDeleteRequestConfiguration(RequestConfigura @dataclass class NamedLocationItemRequestBuilderGetQueryParameters(): """ - Retrieve the properties and relationships of a countryNamedLocation object. + Retrieve the properties and relationships of an ipNamedLocation object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.py b/msgraph_beta/generated/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.py index ff93b054f79..9ef31df1048 100644 --- a/msgraph_beta/generated/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.py +++ b/msgraph_beta/generated/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.py @@ -52,10 +52,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters]] = None) -> Optional[CustomAuthenticationExtension]: """ - Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. The following derived types are currently supported. + Read the properties and relationships of a customAuthenticationExtension object. The following derived types are currently supported. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CustomAuthenticationExtension] - Find more info here: https://learn.microsoft.com/graph/api/authenticationeventlistener-get?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/customauthenticationextension-get?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -107,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. The following derived types are currently supported. + Read the properties and relationships of a customAuthenticationExtension object. The following derived types are currently supported. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -160,7 +160,7 @@ class CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration( @dataclass class CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. The following derived types are currently supported. + Read the properties and relationships of a customAuthenticationExtension object. The following derived types are currently supported. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/access_package_custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py b/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/access_package_custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py index 9f85d2b4376..f29e732f050 100644 --- a/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/access_package_custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +++ b/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/access_package_custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py @@ -73,11 +73,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CustomCa async def patch(self,body: CustomCalloutExtension, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CustomCalloutExtension]: """ - Update the properties of an accessPackageAssignmentWorkflowExtension object. + Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CustomCalloutExtension] - Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-beta """ warn(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions", DeprecationWarning) if body is None: @@ -122,7 +122,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: CustomCalloutExtension, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Update the properties of an accessPackageAssignmentWorkflowExtension object. + Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/custom_access_package_workflow_extensions/item/custom_access_package_workflow_extension_item_request_builder.py b/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/custom_access_package_workflow_extensions/item/custom_access_package_workflow_extension_item_request_builder.py index 8081fdd7812..5f3ef898ea6 100644 --- a/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/custom_access_package_workflow_extensions/item/custom_access_package_workflow_extension_item_request_builder.py +++ b/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/custom_access_package_workflow_extensions/item/custom_access_package_workflow_extension_item_request_builder.py @@ -32,10 +32,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-delete?view=graph-rest-beta """ warn(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions", DeprecationWarning) request_info = self.to_delete_request_information( @@ -99,7 +99,7 @@ async def patch(self,body: CustomAccessPackageWorkflowExtension, request_configu def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py b/msgraph_beta/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py index 9de9cb10c00..c2df0820563 100644 --- a/msgraph_beta/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py +++ b/msgraph_beta/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py @@ -54,10 +54,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[AgreementItemRequestBuilderGetQueryParameters]] = None) -> Optional[Agreement]: """ - Retrieve the properties and relationships of an agreement object. + Retrieve all files related to an agreement. This includes the default file and all localized files. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Agreement] - Find more info here: https://learn.microsoft.com/graph/api/agreement-get?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/agreement-list-files?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -110,7 +110,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AgreementItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Retrieve the properties and relationships of an agreement object. + Retrieve all files related to an agreement. This includes the default file and all localized files. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -181,7 +181,7 @@ class AgreementItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration @dataclass class AgreementItemRequestBuilderGetQueryParameters(): """ - Retrieve the properties and relationships of an agreement object. + Retrieve all files related to an agreement. This includes the default file and all localized files. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/identity_protection/risky_users/risky_users_request_builder.py b/msgraph_beta/generated/identity_protection/risky_users/risky_users_request_builder.py index d56dddf7559..072072b8a14 100644 --- a/msgraph_beta/generated/identity_protection/risky_users/risky_users_request_builder.py +++ b/msgraph_beta/generated/identity_protection/risky_users/risky_users_request_builder.py @@ -51,10 +51,10 @@ def by_risky_user_id(self,risky_user_id: str) -> RiskyUserItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration[RiskyUsersRequestBuilderGetQueryParameters]] = None) -> Optional[RiskyUserCollectionResponse]: """ - Retrieve the properties and relationships of a collection of riskyUser objects. + Retrieve the properties and relationships of a riskyUser object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[RiskyUserCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/riskyusers-list?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/riskyusers-get?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -95,7 +95,7 @@ async def post(self,body: RiskyUser, request_configuration: Optional[RequestConf def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[RiskyUsersRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Retrieve the properties and relationships of a collection of riskyUser objects. + Retrieve the properties and relationships of a riskyUser object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -159,7 +159,7 @@ def dismiss(self) -> DismissRequestBuilder: @dataclass class RiskyUsersRequestBuilderGetQueryParameters(): """ - Retrieve the properties and relationships of a collection of riskyUser objects. + Retrieve the properties and relationships of a riskyUser object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/kiota-dom-export.txt b/msgraph_beta/generated/kiota-dom-export.txt index 5b9893e5156..e09cf385716 100644 --- a/msgraph_beta/generated/kiota-dom-export.txt +++ b/msgraph_beta/generated/kiota-dom-export.txt @@ -207091,6 +207091,34 @@ msgraph_beta.generated.models.OnOtpSendHandler::|public|odata_type(value:str):No msgraph_beta.generated.models.OnOtpSendHandler::|public|serialize(writer:SerializationWriter):None msgraph_beta.generated.models.OnOtpSendHandler::|static|public|create_from_discriminator_value(parse_node:ParseNode):OnOtpSendHandler msgraph_beta.generated.models.OnOtpSendHandler~~>AdditionalDataHolder; BackedModel; Parsable +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler-->OnPhoneMethodLoadStartHandler +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|public|constructor():None +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|public|odata_type:str +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|public|serialize(writer:SerializationWriter):None +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|public|sms_options():PhoneOptions +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|public|sms_options(value:PhoneOptions):None +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|public|voice_options():PhoneOptions +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|public|voice_options(value:PhoneOptions):None +msgraph_beta.generated.models.OnPhoneMethodLoadStartExternalUsersAuthHandler::|static|public|create_from_discriminator_value(parse_node:ParseNode):OnPhoneMethodLoadStartExternalUsersAuthHandler +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|public|additional_data():dict[str, Any] +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|public|additional_data(value:dict[str, Any]):None +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|public|backing_store:BackingStore +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|public|constructor():None +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|public|odata_type():str +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|public|odata_type(value:str):None +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|public|serialize(writer:SerializationWriter):None +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler::|static|public|create_from_discriminator_value(parse_node:ParseNode):OnPhoneMethodLoadStartHandler +msgraph_beta.generated.models.OnPhoneMethodLoadStartHandler~~>AdditionalDataHolder; BackedModel; Parsable +msgraph_beta.generated.models.OnPhoneMethodLoadStartListener-->AuthenticationEventListener +msgraph_beta.generated.models.OnPhoneMethodLoadStartListener::|public|constructor():None +msgraph_beta.generated.models.OnPhoneMethodLoadStartListener::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph_beta.generated.models.OnPhoneMethodLoadStartListener::|public|handler():OnPhoneMethodLoadStartHandler +msgraph_beta.generated.models.OnPhoneMethodLoadStartListener::|public|handler(value:OnPhoneMethodLoadStartHandler):None +msgraph_beta.generated.models.OnPhoneMethodLoadStartListener::|public|odata_type:str +msgraph_beta.generated.models.OnPhoneMethodLoadStartListener::|public|serialize(writer:SerializationWriter):None +msgraph_beta.generated.models.OnPhoneMethodLoadStartListener::|static|public|create_from_discriminator_value(parse_node:ParseNode):OnPhoneMethodLoadStartListener msgraph_beta.generated.models.OnPremisesAccidentalDeletionPrevention::|public|additional_data():dict[str, Any] msgraph_beta.generated.models.OnPremisesAccidentalDeletionPrevention::|public|additional_data(value:dict[str, Any]):None msgraph_beta.generated.models.OnPremisesAccidentalDeletionPrevention::|public|alert_threshold():int @@ -210450,6 +210478,22 @@ msgraph_beta.generated.models.PhoneAuthenticationMethodCollectionResponse::|publ msgraph_beta.generated.models.PhoneAuthenticationMethodCollectionResponse::|public|value():list[PhoneAuthenticationMethod] msgraph_beta.generated.models.PhoneAuthenticationMethodCollectionResponse::|public|value(value:list[PhoneAuthenticationMethod]):None msgraph_beta.generated.models.PhoneAuthenticationMethodCollectionResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):PhoneAuthenticationMethodCollectionResponse +msgraph_beta.generated.models.PhoneOptions::|public|additional_data():dict[str, Any] +msgraph_beta.generated.models.PhoneOptions::|public|additional_data(value:dict[str, Any]):None +msgraph_beta.generated.models.PhoneOptions::|public|backing_store:BackingStore +msgraph_beta.generated.models.PhoneOptions::|public|constructor():None +msgraph_beta.generated.models.PhoneOptions::|public|default_regions():list[int] +msgraph_beta.generated.models.PhoneOptions::|public|default_regions(value:list[int]):None +msgraph_beta.generated.models.PhoneOptions::|public|exclude_regions():list[int] +msgraph_beta.generated.models.PhoneOptions::|public|exclude_regions(value:list[int]):None +msgraph_beta.generated.models.PhoneOptions::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph_beta.generated.models.PhoneOptions::|public|include_additional_regions():list[int] +msgraph_beta.generated.models.PhoneOptions::|public|include_additional_regions(value:list[int]):None +msgraph_beta.generated.models.PhoneOptions::|public|odata_type():str +msgraph_beta.generated.models.PhoneOptions::|public|odata_type(value:str):None +msgraph_beta.generated.models.PhoneOptions::|public|serialize(writer:SerializationWriter):None +msgraph_beta.generated.models.PhoneOptions::|static|public|create_from_discriminator_value(parse_node:ParseNode):PhoneOptions +msgraph_beta.generated.models.PhoneOptions~~>AdditionalDataHolder; BackedModel; Parsable msgraph_beta.generated.models.PhoneType::0000-Home msgraph_beta.generated.models.PhoneType::0001-Business msgraph_beta.generated.models.PhoneType::0002-Mobile diff --git a/msgraph_beta/generated/kiota-lock.json b/msgraph_beta/generated/kiota-lock.json index 86dc38db77f..d1bb9df3bb2 100644 --- a/msgraph_beta/generated/kiota-lock.json +++ b/msgraph_beta/generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "F5E3DC0EFB22D17C794D6129DA7336D0C900C735A3EC41BBB79AACAA3CB4438ACCFF0FE1BAF0FAE8F890866DE6EE2F695FB332F227D81D90FE49245FF4EB68F6", + "descriptionHash": "91C39E725AD2906390795CBD6E50D64BB861CE9382FF3EA67F30384D5129D0D660768272F0784069F95BB8D2934C5423BD796A8221FCFEB798CE1596E95136C0", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.24.0", diff --git a/msgraph_beta/generated/models/ai_interaction_mentioned_identity_set.py b/msgraph_beta/generated/models/ai_interaction_mentioned_identity_set.py index bb10eb81ae1..9860f228050 100644 --- a/msgraph_beta/generated/models/ai_interaction_mentioned_identity_set.py +++ b/msgraph_beta/generated/models/ai_interaction_mentioned_identity_set.py @@ -15,7 +15,7 @@ class AiInteractionMentionedIdentitySet(IdentitySet, Parsable): # The OdataType property odata_type: Optional[str] = "#microsoft.graph.aiInteractionMentionedIdentitySet" - # The conversation property + # The conversation details. conversation: Optional[TeamworkConversationIdentity] = None # The tag details. tag: Optional[TeamworkTagIdentity] = None diff --git a/msgraph_beta/generated/models/android_managed_app_protection.py b/msgraph_beta/generated/models/android_managed_app_protection.py index 1dd139195e1..64186ae0a10 100644 --- a/msgraph_beta/generated/models/android_managed_app_protection.py +++ b/msgraph_beta/generated/models/android_managed_app_protection.py @@ -57,9 +57,9 @@ class AndroidManagedAppProtection(TargetedManagedAppProtection, Parsable): block_after_company_portal_update_deferral_in_days: Optional[int] = None # Whether the app should connect to the configured VPN on launch. connect_to_vpn_on_launch: Optional[bool] = None - # Friendly name of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. + # Friendly name of the preferred custom browser to open weblink on Android. custom_browser_display_name: Optional[str] = None - # Unique identifier of the preferred custom browser to open weblink on Android. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. + # Unique identifier of a custom browser to open weblink on Android. custom_browser_package_id: Optional[str] = None # Friendly name of a custom dialer app to click-to-open a phone number on Android. custom_dialer_app_display_name: Optional[str] = None diff --git a/msgraph_beta/generated/models/authentication_event_listener.py b/msgraph_beta/generated/models/authentication_event_listener.py index b52020dac3c..ad1015fae27 100644 --- a/msgraph_beta/generated/models/authentication_event_listener.py +++ b/msgraph_beta/generated/models/authentication_event_listener.py @@ -13,6 +13,7 @@ from .on_authentication_method_load_start_listener import OnAuthenticationMethodLoadStartListener from .on_email_otp_send_listener import OnEmailOtpSendListener from .on_interactive_auth_flow_start_listener import OnInteractiveAuthFlowStartListener + from .on_phone_method_load_start_listener import OnPhoneMethodLoadStartListener from .on_token_issuance_start_listener import OnTokenIssuanceStartListener from .on_user_create_start_listener import OnUserCreateStartListener @@ -67,6 +68,10 @@ def create_from_discriminator_value(parse_node: ParseNode) -> AuthenticationEven from .on_interactive_auth_flow_start_listener import OnInteractiveAuthFlowStartListener return OnInteractiveAuthFlowStartListener() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.onPhoneMethodLoadStartListener".casefold(): + from .on_phone_method_load_start_listener import OnPhoneMethodLoadStartListener + + return OnPhoneMethodLoadStartListener() if mapping_value and mapping_value.casefold() == "#microsoft.graph.onTokenIssuanceStartListener".casefold(): from .on_token_issuance_start_listener import OnTokenIssuanceStartListener @@ -90,6 +95,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .on_authentication_method_load_start_listener import OnAuthenticationMethodLoadStartListener from .on_email_otp_send_listener import OnEmailOtpSendListener from .on_interactive_auth_flow_start_listener import OnInteractiveAuthFlowStartListener + from .on_phone_method_load_start_listener import OnPhoneMethodLoadStartListener from .on_token_issuance_start_listener import OnTokenIssuanceStartListener from .on_user_create_start_listener import OnUserCreateStartListener @@ -101,6 +107,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .on_authentication_method_load_start_listener import OnAuthenticationMethodLoadStartListener from .on_email_otp_send_listener import OnEmailOtpSendListener from .on_interactive_auth_flow_start_listener import OnInteractiveAuthFlowStartListener + from .on_phone_method_load_start_listener import OnPhoneMethodLoadStartListener from .on_token_issuance_start_listener import OnTokenIssuanceStartListener from .on_user_create_start_listener import OnUserCreateStartListener diff --git a/msgraph_beta/generated/models/cloud_pc_device_image.py b/msgraph_beta/generated/models/cloud_pc_device_image.py index a8ee23e2eb8..1f0f55b1a53 100644 --- a/msgraph_beta/generated/models/cloud_pc_device_image.py +++ b/msgraph_beta/generated/models/cloud_pc_device_image.py @@ -18,7 +18,7 @@ class CloudPcDeviceImage(Entity, Parsable): # The display name of the associated device image. The device image display name and the version are used to uniquely identify the Cloud PC device image. Read-only. display_name: Optional[str] = None - # The error code of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Read-only. + # The error code of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation, sourceImageWithDataDiskNotSupported, sourceImageWithDiskEncryptionSetNotSupported. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation, sourceImageWithDataDiskNotSupported, sourceImageWithDiskEncryptionSetNotSupported. Read-only. error_code: Optional[CloudPcDeviceImageErrorCode] = None # The date when the image became unavailable. Read-only. expiration_date: Optional[datetime.date] = None @@ -38,7 +38,7 @@ class CloudPcDeviceImage(Entity, Parsable): scope_ids: Optional[list[str]] = None # The unique identifier (ID) of the source image resource on Azure. The required ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only. source_image_resource_id: Optional[str] = None - # The status of the image on the Cloud PC. Possible values are: pending, ready, failed, unknownFutureValue. Read-only. + # The status of the image on the Cloud PC. Possible values are: pending, ready, warning, failed, unknownFutureValue. Read-only. status: Optional[CloudPcDeviceImageStatus] = None # The details of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Read-only. The statusDetails property is deprecated and will stop returning data on January 31, 2024. Going forward, use the errorCode property. status_details: Optional[CloudPcDeviceImageStatusDetails] = None diff --git a/msgraph_beta/generated/models/cloud_pc_export_job.py b/msgraph_beta/generated/models/cloud_pc_export_job.py index 1c8599225f5..89667f56f9f 100644 --- a/msgraph_beta/generated/models/cloud_pc_export_job.py +++ b/msgraph_beta/generated/models/cloud_pc_export_job.py @@ -26,7 +26,7 @@ class CloudPcExportJob(Entity, Parsable): format: Optional[str] = None # The OdataType property odata_type: Optional[str] = None - # The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport, unknownFutureValue, noLicenseAvailableConnectivityFailureReport, frontlineLicenseUsageReport, frontlineLicenseUsageRealTimeReport, remoteConnectionQualityReports, inaccessibleCloudPcReports, actionStatusReport, rawRemoteConnectionReports, cloudPcUsageCategoryReports, crossRegionDisasterRecoveryReport, regionalConnectionQualityTrendReport, regionalConnectionQualityInsightsReport, remoteConnectionQualityReport, bulkActionStatusReport, cloudPcInsightReport. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: noLicenseAvailableConnectivityFailureReport, frontlineLicenseUsageReport, frontlineLicenseUsageRealTimeReport, remoteConnectionQualityReports, inaccessibleCloudPcReports, rawRemoteConnectionReports, cloudPcUsageCategoryReports, crossRegionDisasterRecoveryReport, cloudPcInsightReport. + # The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport, unknownFutureValue, noLicenseAvailableConnectivityFailureReport, frontlineLicenseUsageReport, frontlineLicenseUsageRealTimeReport, remoteConnectionQualityReports, inaccessibleCloudPcReports, actionStatusReport, rawRemoteConnectionReports, cloudPcUsageCategoryReports, crossRegionDisasterRecoveryReport, regionalConnectionQualityTrendReport, regionalConnectionQualityInsightsReport, remoteConnectionQualityReport, bulkActionStatusReport, cloudPcInsightReport, regionalInaccessibleCloudPcTrendReport. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: noLicenseAvailableConnectivityFailureReport, frontlineLicenseUsageReport, frontlineLicenseUsageRealTimeReport, remoteConnectionQualityReports, inaccessibleCloudPcReports, rawRemoteConnectionReports, cloudPcUsageCategoryReports, crossRegionDisasterRecoveryReport, cloudPcInsightReport, regionalInaccessibleCloudPcTrendReport. report_name: Optional[CloudPcReportName] = None # The date and time when the export job was requested. request_date_time: Optional[datetime.datetime] = None diff --git a/msgraph_beta/generated/models/device_management_configuration_choice_setting_definition.py b/msgraph_beta/generated/models/device_management_configuration_choice_setting_definition.py index 51e1f23e454..8cabcae53a8 100644 --- a/msgraph_beta/generated/models/device_management_configuration_choice_setting_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_choice_setting_definition.py @@ -13,11 +13,11 @@ @dataclass class DeviceManagementConfigurationChoiceSettingDefinition(DeviceManagementConfigurationSettingDefinition, Parsable): - # Default option for the choice setting. + # Default option for choice setting default_option_id: Optional[str] = None # The OdataType property odata_type: Optional[str] = None - # Options for the setting that can be selected. + # Options for the setting that can be selected options: Optional[list[DeviceManagementConfigurationOptionDefinition]] = None @staticmethod diff --git a/msgraph_beta/generated/models/device_management_configuration_setting_definition.py b/msgraph_beta/generated/models/device_management_configuration_setting_definition.py index 4de4354b540..f6ed83c37f3 100644 --- a/msgraph_beta/generated/models/device_management_configuration_setting_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_setting_definition.py @@ -28,19 +28,19 @@ class DeviceManagementConfigurationSettingDefinition(Entity, Parsable): # The accessTypes property access_types: Optional[DeviceManagementConfigurationSettingAccessTypes] = None - # Details which device setting is applicable on + # Details which device setting is applicable on. Supports: $filters. applicability: Optional[DeviceManagementConfigurationSettingApplicability] = None # Base CSP Path base_uri: Optional[str] = None - # Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) + # Specify category in which the setting is under. Support $filters. category_id: Optional[str] = None - # Description of the item + # Description of the setting. description: Optional[str] = None - # Display name of the item + # Name of the setting. For example: Allow Toast. display_name: Optional[str] = None - # Help text of the item + # Help text of the setting. Give more details of the setting. help_text: Optional[str] = None - # List of links more info for the setting can be found at + # List of links more info for the setting can be found at. info_urls: Optional[list[str]] = None # Tokens which to search settings on keywords: Optional[list[str]] = None @@ -56,7 +56,7 @@ class DeviceManagementConfigurationSettingDefinition(Entity, Parsable): referred_setting_information_list: Optional[list[DeviceManagementConfigurationReferredSettingInformation]] = None # Setting RiskLevel risk_level: Optional[DeviceManagementConfigurationSettingRiskLevel] = None - # Root setting definition if the setting is a child setting. + # Root setting definition id if the setting is a child setting. root_definition_id: Optional[str] = None # Supported setting types setting_usage: Optional[DeviceManagementConfigurationSettingUsage] = None diff --git a/msgraph_beta/generated/models/device_management_configuration_setting_group_collection_definition.py b/msgraph_beta/generated/models/device_management_configuration_setting_group_collection_definition.py index 87bf0f2aec5..f82b84785f3 100644 --- a/msgraph_beta/generated/models/device_management_configuration_setting_group_collection_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_setting_group_collection_definition.py @@ -11,9 +11,9 @@ @dataclass class DeviceManagementConfigurationSettingGroupCollectionDefinition(DeviceManagementConfigurationSettingGroupDefinition, Parsable): - # Maximum number of setting group count in the collection + # Maximum number of setting group count in the collection. Valid values 1 to 100 maximum_count: Optional[int] = None - # Minimum number of setting group count in the collection + # Minimum number of setting group count in the collection. Valid values 1 to 100 minimum_count: Optional[int] = None # The OdataType property odata_type: Optional[str] = None diff --git a/msgraph_beta/generated/models/device_management_configuration_setting_group_definition.py b/msgraph_beta/generated/models/device_management_configuration_setting_group_definition.py index 94b27c67cd3..3a4b2212735 100644 --- a/msgraph_beta/generated/models/device_management_configuration_setting_group_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_setting_group_definition.py @@ -14,7 +14,7 @@ @dataclass class DeviceManagementConfigurationSettingGroupDefinition(DeviceManagementConfigurationSettingDefinition, Parsable): - # Dependent child settings to this group of settings. + # Dependent child settings to this group of settings child_ids: Optional[list[str]] = None # List of child settings that depend on this setting depended_on_by: Optional[list[DeviceManagementConfigurationSettingDependedOnBy]] = None diff --git a/msgraph_beta/generated/models/device_management_configuration_string_setting_value_definition.py b/msgraph_beta/generated/models/device_management_configuration_string_setting_value_definition.py index 99e0d1ac5da..3dbb5ddbd24 100644 --- a/msgraph_beta/generated/models/device_management_configuration_string_setting_value_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_string_setting_value_definition.py @@ -19,15 +19,15 @@ class DeviceManagementConfigurationStringSettingValueDefinition(DeviceManagement odata_type: Optional[str] = "#microsoft.graph.deviceManagementConfigurationStringSettingValueDefinition" # Supported file types for this setting. file_types: Optional[list[str]] = None - # Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. + # Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. format: Optional[DeviceManagementConfigurationStringFormat] = None # Regular expression or any xml or json schema that the input string should match input_validation_schema: Optional[str] = None # Specifies whether the setting needs to be treated as a secret. Settings marked as yes will be encrypted in transit and at rest and will be displayed as asterisks when represented in the UX. is_secret: Optional[bool] = None - # Maximum length of string + # Maximum length of string. Valid values 0 to 87516 maximum_length: Optional[int] = None - # Minimum length of string + # Minimum length of string. Valid values 0 to 87516 minimum_length: Optional[int] = None @staticmethod diff --git a/msgraph_beta/generated/models/entity.py b/msgraph_beta/generated/models/entity.py index 60935e69252..ebb4293bd89 100644 --- a/msgraph_beta/generated/models/entity.py +++ b/msgraph_beta/generated/models/entity.py @@ -1188,6 +1188,7 @@ from .on_email_otp_send_listener import OnEmailOtpSendListener from .on_interactive_auth_flow_start_listener import OnInteractiveAuthFlowStartListener from .on_otp_send_custom_extension import OnOtpSendCustomExtension + from .on_phone_method_load_start_listener import OnPhoneMethodLoadStartListener from .on_premises_agent import OnPremisesAgent from .on_premises_agent_group import OnPremisesAgentGroup from .on_premises_conditional_access_settings import OnPremisesConditionalAccessSettings @@ -6848,6 +6849,10 @@ def create_from_discriminator_value(parse_node: ParseNode) -> Entity: from .on_otp_send_custom_extension import OnOtpSendCustomExtension return OnOtpSendCustomExtension() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.onPhoneMethodLoadStartListener".casefold(): + from .on_phone_method_load_start_listener import OnPhoneMethodLoadStartListener + + return OnPhoneMethodLoadStartListener() if mapping_value and mapping_value.casefold() == "#microsoft.graph.onPremisesAgent".casefold(): from .on_premises_agent import OnPremisesAgent @@ -11506,6 +11511,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .on_email_otp_send_listener import OnEmailOtpSendListener from .on_interactive_auth_flow_start_listener import OnInteractiveAuthFlowStartListener from .on_otp_send_custom_extension import OnOtpSendCustomExtension + from .on_phone_method_load_start_listener import OnPhoneMethodLoadStartListener from .on_premises_agent import OnPremisesAgent from .on_premises_agent_group import OnPremisesAgentGroup from .on_premises_conditional_access_settings import OnPremisesConditionalAccessSettings @@ -13551,6 +13557,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .on_email_otp_send_listener import OnEmailOtpSendListener from .on_interactive_auth_flow_start_listener import OnInteractiveAuthFlowStartListener from .on_otp_send_custom_extension import OnOtpSendCustomExtension + from .on_phone_method_load_start_listener import OnPhoneMethodLoadStartListener from .on_premises_agent import OnPremisesAgent from .on_premises_agent_group import OnPremisesAgentGroup from .on_premises_conditional_access_settings import OnPremisesConditionalAccessSettings diff --git a/msgraph_beta/generated/models/identity_set.py b/msgraph_beta/generated/models/identity_set.py index 2f3f647455a..62d38f25563 100644 --- a/msgraph_beta/generated/models/identity_set.py +++ b/msgraph_beta/generated/models/identity_set.py @@ -22,13 +22,13 @@ class IdentitySet(AdditionalDataHolder, BackedModel, Parsable): # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additional_data: dict[str, Any] = field(default_factory=dict) - # Optional. The application associated with this action. + # The Identity of the Application. This property is read-only. application: Optional[Identity] = None - # Optional. The device associated with this action. + # The Identity of the Device. This property is read-only. device: Optional[Identity] = None # The OdataType property odata_type: Optional[str] = None - # Optional. The user associated with this action. + # The Identity of the User. This property is read-only. user: Optional[Identity] = None @staticmethod diff --git a/msgraph_beta/generated/models/ios_lob_app_provisioning_configuration.py b/msgraph_beta/generated/models/ios_lob_app_provisioning_configuration.py index f5a0a2e53b1..a188a688d36 100644 --- a/msgraph_beta/generated/models/ios_lob_app_provisioning_configuration.py +++ b/msgraph_beta/generated/models/ios_lob_app_provisioning_configuration.py @@ -19,7 +19,7 @@ class IosLobAppProvisioningConfiguration(Entity, Parsable): """ This topic provides descriptions of the declared methods, properties and relationships exposed by the iOS Lob App Provisioning Configuration resource. """ - # The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. + # The associated group assignments for IosLobAppProvisioningConfiguration. assignments: Optional[list[IosLobAppProvisioningConfigurationAssignment]] = None # DateTime the object was created. created_date_time: Optional[datetime.datetime] = None @@ -29,7 +29,7 @@ class IosLobAppProvisioningConfiguration(Entity, Parsable): device_statuses: Optional[list[ManagedDeviceMobileAppConfigurationDeviceStatus]] = None # Admin provided name of the device configuration. display_name: Optional[str] = None - # Optional profile expiration date and time. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned by default. + # Optional profile expiration date and time. expiration_date_time: Optional[datetime.datetime] = None # The associated group assignments. group_assignments: Optional[list[MobileAppProvisioningConfigGroupAssignment]] = None diff --git a/msgraph_beta/generated/models/key_value.py b/msgraph_beta/generated/models/key_value.py index 3317bba6f74..740202b69b1 100644 --- a/msgraph_beta/generated/models/key_value.py +++ b/msgraph_beta/generated/models/key_value.py @@ -12,11 +12,11 @@ class KeyValue(AdditionalDataHolder, BackedModel, Parsable): # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additional_data: dict[str, Any] = field(default_factory=dict) - # Key. + # Contains the name of the field that a value is associated with. key: Optional[str] = None # The OdataType property odata_type: Optional[str] = None - # Value. + # Contains the corresponding value for the specified key. value: Optional[str] = None @staticmethod diff --git a/msgraph_beta/generated/models/mobile_app_troubleshooting_event.py b/msgraph_beta/generated/models/mobile_app_troubleshooting_event.py index cb895e3642b..ec9900ae5a7 100644 --- a/msgraph_beta/generated/models/mobile_app_troubleshooting_event.py +++ b/msgraph_beta/generated/models/mobile_app_troubleshooting_event.py @@ -16,7 +16,7 @@ class MobileAppTroubleshootingEvent(DeviceManagementTroubleshootingEvent, Parsab """ Event representing a users device application install status. """ - # The collection property of AppLogUploadRequest. + # Indicates collection of App Log Upload Request. app_log_collection_requests: Optional[list[AppLogCollectionRequest]] = None # Intune application identifier. application_id: Optional[str] = None diff --git a/msgraph_beta/generated/models/on_phone_method_load_start_external_users_auth_handler.py b/msgraph_beta/generated/models/on_phone_method_load_start_external_users_auth_handler.py new file mode 100644 index 00000000000..71b869f174b --- /dev/null +++ b/msgraph_beta/generated/models/on_phone_method_load_start_external_users_auth_handler.py @@ -0,0 +1,64 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .on_phone_method_load_start_handler import OnPhoneMethodLoadStartHandler + from .phone_options import PhoneOptions + +from .on_phone_method_load_start_handler import OnPhoneMethodLoadStartHandler + +@dataclass +class OnPhoneMethodLoadStartExternalUsersAuthHandler(OnPhoneMethodLoadStartHandler, Parsable): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.onPhoneMethodLoadStartExternalUsersAuthHandler" + # The smsOptions property + sms_options: Optional[PhoneOptions] = None + # The voiceOptions property + voice_options: Optional[PhoneOptions] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> OnPhoneMethodLoadStartExternalUsersAuthHandler: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: OnPhoneMethodLoadStartExternalUsersAuthHandler + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return OnPhoneMethodLoadStartExternalUsersAuthHandler() + + def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: dict[str, Callable[[ParseNode], None]] + """ + from .on_phone_method_load_start_handler import OnPhoneMethodLoadStartHandler + from .phone_options import PhoneOptions + + from .on_phone_method_load_start_handler import OnPhoneMethodLoadStartHandler + from .phone_options import PhoneOptions + + fields: dict[str, Callable[[Any], None]] = { + "smsOptions": lambda n : setattr(self, 'sms_options', n.get_object_value(PhoneOptions)), + "voiceOptions": lambda n : setattr(self, 'voice_options', n.get_object_value(PhoneOptions)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_object_value("smsOptions", self.sms_options) + writer.write_object_value("voiceOptions", self.voice_options) + + diff --git a/msgraph_beta/generated/models/on_phone_method_load_start_handler.py b/msgraph_beta/generated/models/on_phone_method_load_start_handler.py new file mode 100644 index 00000000000..e98e90e3fb2 --- /dev/null +++ b/msgraph_beta/generated/models/on_phone_method_load_start_handler.py @@ -0,0 +1,66 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter +from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .on_phone_method_load_start_external_users_auth_handler import OnPhoneMethodLoadStartExternalUsersAuthHandler + +@dataclass +class OnPhoneMethodLoadStartHandler(AdditionalDataHolder, BackedModel, Parsable): + # Stores model information. + backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False) + + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additional_data: dict[str, Any] = field(default_factory=dict) + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> OnPhoneMethodLoadStartHandler: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: OnPhoneMethodLoadStartHandler + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + try: + child_node = parse_node.get_child_node("@odata.type") + mapping_value = child_node.get_str_value() if child_node else None + except AttributeError: + mapping_value = None + if mapping_value and mapping_value.casefold() == "#microsoft.graph.onPhoneMethodLoadStartExternalUsersAuthHandler".casefold(): + from .on_phone_method_load_start_external_users_auth_handler import OnPhoneMethodLoadStartExternalUsersAuthHandler + + return OnPhoneMethodLoadStartExternalUsersAuthHandler() + return OnPhoneMethodLoadStartHandler() + + def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: dict[str, Callable[[ParseNode], None]] + """ + from .on_phone_method_load_start_external_users_auth_handler import OnPhoneMethodLoadStartExternalUsersAuthHandler + + from .on_phone_method_load_start_external_users_auth_handler import OnPhoneMethodLoadStartExternalUsersAuthHandler + + fields: dict[str, Callable[[Any], None]] = { + "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), + } + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if writer is None: + raise TypeError("writer cannot be null.") + writer.write_str_value("@odata.type", self.odata_type) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph_beta/generated/models/on_phone_method_load_start_listener.py b/msgraph_beta/generated/models/on_phone_method_load_start_listener.py new file mode 100644 index 00000000000..533bbd22943 --- /dev/null +++ b/msgraph_beta/generated/models/on_phone_method_load_start_listener.py @@ -0,0 +1,60 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .authentication_event_listener import AuthenticationEventListener + from .on_phone_method_load_start_handler import OnPhoneMethodLoadStartHandler + +from .authentication_event_listener import AuthenticationEventListener + +@dataclass +class OnPhoneMethodLoadStartListener(AuthenticationEventListener, Parsable): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.onPhoneMethodLoadStartListener" + # The handler property + handler: Optional[OnPhoneMethodLoadStartHandler] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> OnPhoneMethodLoadStartListener: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: OnPhoneMethodLoadStartListener + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return OnPhoneMethodLoadStartListener() + + def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: dict[str, Callable[[ParseNode], None]] + """ + from .authentication_event_listener import AuthenticationEventListener + from .on_phone_method_load_start_handler import OnPhoneMethodLoadStartHandler + + from .authentication_event_listener import AuthenticationEventListener + from .on_phone_method_load_start_handler import OnPhoneMethodLoadStartHandler + + fields: dict[str, Callable[[Any], None]] = { + "handler": lambda n : setattr(self, 'handler', n.get_object_value(OnPhoneMethodLoadStartHandler)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_object_value("handler", self.handler) + + diff --git a/msgraph_beta/generated/models/phone_options.py b/msgraph_beta/generated/models/phone_options.py new file mode 100644 index 00000000000..fedee03db9e --- /dev/null +++ b/msgraph_beta/generated/models/phone_options.py @@ -0,0 +1,62 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter +from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton +from typing import Any, Optional, TYPE_CHECKING, Union + +@dataclass +class PhoneOptions(AdditionalDataHolder, BackedModel, Parsable): + # Stores model information. + backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False) + + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additional_data: dict[str, Any] = field(default_factory=dict) + # A read-only, Microsoft-defined list of regions that already enable MFA. For more information, see the following list of countries. + default_regions: Optional[list[int]] = None + # A numbers-only set representing the region telecom codes to prevent or disable the telephony service. Validates against current International Subscriber Dialing (ISD) country codes where the maximum code length is 4. Values must be non-null. + exclude_regions: Optional[list[int]] = None + # A numbers-only set representing the country codes that can be manually added to enable telephony service in those regions, in addition to the list of countries that are already enabled. For more information about regions that require opt in, see Regions that need to opt in for MFA telephony verification. Validates against current International Subscriber Dialing (ISD) country codes where the maximum code length is 4. Values must be positive integers and can't overlap with 'excludeRegions'. + include_additional_regions: Optional[list[int]] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> PhoneOptions: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: PhoneOptions + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return PhoneOptions() + + def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: dict[str, Callable[[ParseNode], None]] + """ + fields: dict[str, Callable[[Any], None]] = { + "defaultRegions": lambda n : setattr(self, 'default_regions', n.get_collection_of_primitive_values(int)), + "excludeRegions": lambda n : setattr(self, 'exclude_regions', n.get_collection_of_primitive_values(int)), + "includeAdditionalRegions": lambda n : setattr(self, 'include_additional_regions', n.get_collection_of_primitive_values(int)), + "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), + } + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if writer is None: + raise TypeError("writer cannot be null.") + writer.write_collection_of_primitive_values("defaultRegions", self.default_regions) + writer.write_collection_of_primitive_values("excludeRegions", self.exclude_regions) + writer.write_collection_of_primitive_values("includeAdditionalRegions", self.include_additional_regions) + writer.write_str_value("@odata.type", self.odata_type) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph_beta/generated/models/report.py b/msgraph_beta/generated/models/report.py index 241030e3fab..4bca42797c2 100644 --- a/msgraph_beta/generated/models/report.py +++ b/msgraph_beta/generated/models/report.py @@ -15,7 +15,7 @@ class Report(AdditionalDataHolder, BackedModel, Parsable): # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additional_data: dict[str, Any] = field(default_factory=dict) - # The http content that has the data + # Report content; details vary by report type. content: Optional[bytes] = None # The OdataType property odata_type: Optional[str] = None diff --git a/msgraph_beta/generated/models/windows_domain_join_configuration.py b/msgraph_beta/generated/models/windows_domain_join_configuration.py index 343a52ff9c0..c01eaf7ff77 100644 --- a/msgraph_beta/generated/models/windows_domain_join_configuration.py +++ b/msgraph_beta/generated/models/windows_domain_join_configuration.py @@ -22,7 +22,7 @@ class WindowsDomainJoinConfiguration(DeviceConfiguration, Parsable): computer_name_static_prefix: Optional[str] = None # Dynamically generated characters used as suffix for computer name. Valid values 3 to 14 computer_name_suffix_random_char_count: Optional[int] = None - # Reference to device configurations required for network connectivity. This collection can contain a maximum of 2 elements. + # Reference to device configurations required for network connectivity network_access_configurations: Optional[list[DeviceConfiguration]] = None # Organizational unit (OU) where the computer account will be created. If this parameter is NULL, the well known computer object container will be used as published in the domain. organizational_unit: Optional[str] = None diff --git a/msgraph_beta/generated/policies/cross_tenant_access_policy/partners/item/identity_synchronization/identity_synchronization_request_builder.py b/msgraph_beta/generated/policies/cross_tenant_access_policy/partners/item/identity_synchronization/identity_synchronization_request_builder.py index 0b40a4660f9..e30d087d3a2 100644 --- a/msgraph_beta/generated/policies/cross_tenant_access_policy/partners/item/identity_synchronization/identity_synchronization_request_builder.py +++ b/msgraph_beta/generated/policies/cross_tenant_access_policy/partners/item/identity_synchronization/identity_synchronization_request_builder.py @@ -72,11 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Identity async def put(self,body: CrossTenantIdentitySyncPolicyPartner, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CrossTenantIdentitySyncPolicyPartner]: """ - Create a cross-tenant user synchronization policy for a partner-specific configuration. + Update the user synchronization policy of a partner-specific configuration. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CrossTenantIdentitySyncPolicyPartner] - Find more info here: https://learn.microsoft.com/graph/api/crosstenantaccesspolicyconfigurationpartner-put-identitysynchronization?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/crosstenantidentitysyncpolicypartner-update?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -118,7 +118,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_put_request_information(self,body: CrossTenantIdentitySyncPolicyPartner, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a cross-tenant user synchronization policy for a partner-specific configuration. + Update the user synchronization policy of a partner-specific configuration. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/sites/item/pages/pages_request_builder.py b/msgraph_beta/generated/sites/item/pages/pages_request_builder.py index e36603dc329..2b20eebbb8e 100644 --- a/msgraph_beta/generated/sites/item/pages/pages_request_builder.py +++ b/msgraph_beta/generated/sites/item/pages/pages_request_builder.py @@ -71,11 +71,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[PagesReq async def post(self,body: BaseSitePage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[BaseSitePage]: """ - Create a new newsLinkPage in the site pages list of a site. + Create a new sitePage in the site pages list in a site. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[BaseSitePage] - Find more info here: https://learn.microsoft.com/graph/api/newslinkpage-create?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/sitepage-create?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -106,7 +106,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: BaseSitePage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new newsLinkPage in the site pages list of a site. + Create a new sitePage in the site pages list in a site. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/sites/sites_request_builder.py b/msgraph_beta/generated/sites/sites_request_builder.py index 757b49cdd25..0d4c93e32f4 100644 --- a/msgraph_beta/generated/sites/sites_request_builder.py +++ b/msgraph_beta/generated/sites/sites_request_builder.py @@ -52,10 +52,10 @@ def by_site_id(self,site_id: str) -> SiteItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration[SitesRequestBuilderGetQueryParameters]] = None) -> Optional[SiteCollectionResponse]: """ - List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. + Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[SiteCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/site-list?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/site-search?view=graph-rest-beta """ request_info = self.to_get_request_information( request_configuration @@ -73,7 +73,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[SitesReq def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[SitesRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. + Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -140,7 +140,7 @@ def remove(self) -> RemoveRequestBuilder: @dataclass class SitesRequestBuilderGetQueryParameters(): """ - List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. + Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py b/msgraph_beta/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py index 358575ecf77..4160a4c76b2 100644 --- a/msgraph_beta/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py +++ b/msgraph_beta/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py @@ -55,11 +55,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[MultiTen async def patch(self,body: MultiTenantOrganization, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[MultiTenantOrganization]: """ - Update the properties of a multi-tenant organization. + Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MultiTenantOrganization] - Find more info here: https://learn.microsoft.com/graph/api/multitenantorganization-update?view=graph-rest-beta + Find more info here: https://learn.microsoft.com/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-beta """ if body is None: raise TypeError("body cannot be null.") @@ -90,7 +90,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: MultiTenantOrganization, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Update the properties of a multi-tenant organization. + Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.py b/msgraph_beta/generated/users/item/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.py index abf05deefdb..7917c7e7e6a 100644 --- a/msgraph_beta/generated/users/item/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.py +++ b/msgraph_beta/generated/users/item/mobile_app_troubleshooting_events/item/app_log_collection_requests/app_log_collection_requests_request_builder.py @@ -49,7 +49,7 @@ def by_app_log_collection_request_id(self,app_log_collection_request_id: str) -> async def get(self,request_configuration: Optional[RequestConfiguration[AppLogCollectionRequestsRequestBuilderGetQueryParameters]] = None) -> Optional[AppLogCollectionRequestCollectionResponse]: """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AppLogCollectionRequestCollectionResponse] """ @@ -92,7 +92,7 @@ async def post(self,body: AppLogCollectionRequest, request_configuration: Option def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AppLogCollectionRequestsRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -138,7 +138,7 @@ def count(self) -> CountRequestBuilder: @dataclass class AppLogCollectionRequestsRequestBuilderGetQueryParameters(): """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph_beta/generated/users/item/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.py b/msgraph_beta/generated/users/item/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.py index 8bbc46dcf39..22feb8c1262 100644 --- a/msgraph_beta/generated/users/item/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.py +++ b/msgraph_beta/generated/users/item/mobile_app_troubleshooting_events/item/app_log_collection_requests/item/app_log_collection_request_item_request_builder.py @@ -51,7 +51,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[AppLogCollectionRequestItemRequestBuilderGetQueryParameters]] = None) -> Optional[AppLogCollectionRequest]: """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AppLogCollectionRequest] """ @@ -105,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AppLogCollectionRequestItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -158,7 +158,7 @@ class AppLogCollectionRequestItemRequestBuilderDeleteRequestConfiguration(Reques @dataclass class AppLogCollectionRequestItemRequestBuilderGetQueryParameters(): """ - The collection property of AppLogUploadRequest. + Indicates collection of App Log Upload Request. """ def get_query_parameter(self,original_name: str) -> str: """