From d098c863de2b7ff10791639cde5707b4e80c659c Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 19 Dec 2023 10:38:07 +0000 Subject: [PATCH] Update generated files with build 130660 --- admin/admin_request_builder.go | 4 + ...ps_installation_options_request_builder.go | 157 ++++ admin/microsoft365_apps_request_builder.go | 155 ++++ ...esource_connection_item_request_builder.go | 8 +- ...ts_updatable_asset_item_request_builder.go | 14 +- ..._compliance_change_item_request_builder.go | 8 +- ...r_post_request_body_accepted_modalities.go | 0 ...ct_post_request_body_target_disposition.go | 0 .../reject/reject_post_request_body_reason.go | 0 app/calls_item_answer_post_request_body.go | 42 - app/calls_item_redirect_post_request_body.go | 37 - app/calls_item_reject_post_request_body.go | 38 - ...tings_item_registration_request_builder.go | 14 +- ...ointment_reminder_sms_post_request_body.go | 38 - ...rtual_appointment_sms_post_request_body.go | 38 - ...body_remind_before_time_in_minutes_type.go | 0 ...ointment_sms_post_request_body_sms_type.go | 0 ...r_post_request_body_accepted_modalities.go | 0 ...ct_post_request_body_target_disposition.go | 0 .../reject/reject_post_request_body_reason.go | 0 .../calls_item_answer_post_request_body.go | 42 - .../calls_item_redirect_post_request_body.go | 37 - .../calls_item_reject_post_request_body.go | 38 - ...tings_item_registration_request_builder.go | 14 +- ...ointment_reminder_sms_post_request_body.go | 38 - ...rtual_appointment_sms_post_request_body.go | 38 - ...body_remind_before_time_in_minutes_type.go | 0 ...ointment_sms_post_request_body_sms_type.go | 0 ...st_request_body_additional_data_options.go | 0 ...export_post_request_body_export_options.go | 0 ...set_add_to_review_set_post_request_body.go | 37 - ...scovery_export_export_post_request_body.go | 37 - connections/item_schema_request_builder.go | 6 +- ...ions_item_target_apps_post_request_body.go | 37 - ...t_apps_post_request_body_app_group_type.go | 0 ...bulk_restore_cloud_pc_post_request_body.go | 38 - ...ged_devices_item_wipe_post_request_body.go | 38 - ...e_cloud_pc_post_request_body_time_range.go | 0 ...post_request_body_obliteration_behavior.go | 0 ...bulk_restore_cloud_pc_post_request_body.go | 38 - ...ged_devices_item_wipe_post_request_body.go | 38 - ...e_cloud_pc_post_request_body_time_range.go | 0 ...post_request_body_obliteration_behavior.go | 0 ...nge_user_account_type_post_request_body.go | 38 - ...e_cloud_pc_access_state_request_builder.go | 8 +- ...k_cloud_pc_access_state_request_builder.go | 8 +- ...p_cs_item_reprovision_post_request_body.go | 75 -- ...policies_apply_config_post_request_body.go | 38 - ...g_policies_item_apply_post_request_body.go | 38 - ...pc_performance_report_post_request_body.go | 344 ++++++++ ...d_pc_performance_report_request_builder.go | 69 ++ ...ecommendation_reports_post_request_body.go | 38 - ..._get_frontline_report_post_request_body.go | 38 - ..._license_usage_report_post_request_body.go | 38 - ...irtual_endpoint_reports_request_builder.go | 4 + ...ype_post_request_body_user_account_type.go | 0 ...line_cloud_pc_access_state_get_response.go | 0 ...work_cloud_pc_access_state_get_response.go | 0 ...eprovision_post_request_body_os_version.go | 0 ...ion_post_request_body_user_account_type.go | 0 ...onfig_post_request_body_policy_settings.go | 0 ...apply_post_request_body_policy_settings.go | 0 ...ce_report_post_request_body_report_name.go | 0 ...n_reports_post_request_body_report_name.go | 0 ...ne_report_post_request_body_report_name.go | 0 ...c_reports_post_request_body_report_name.go | 0 ...ge_report_post_request_body_report_name.go | 0 ...bel_post_request_body_assignment_method.go | 0 ...ign_sensitivity_label_post_request_body.go | 38 - ...ms_item_retention_label_request_builder.go | 6 +- ...rkbook_names_item_range_request_builder.go | 6 +- ...ook_tables_item_columns_request_builder.go | 2 +- ...item_charts_item_series_request_builder.go | 2 +- ..._worksheets_item_charts_request_builder.go | 2 +- ...s_item_names_item_range_request_builder.go | 6 +- ...tem_tables_item_columns_request_builder.go | 2 +- ...tem_workbook_worksheets_request_builder.go | 2 +- ...tems_item_create_link_post_request_body.go | 36 + ...munities_community_item_request_builder.go | 162 ++++ .../communities_count_request_builder.go | 77 ++ .../communities_item_group_request_builder.go | 82 ++ ...ovisioning_errors_count_request_builder.go | 77 ++ ...ice_provisioning_errors_request_builder.go | 94 +++ ...ities_item_owners_count_request_builder.go | 77 ++ ...s_item_mailbox_settings_request_builder.go | 118 +++ ...ovisioning_errors_count_request_builder.go | 77 ++ ...ice_provisioning_errors_request_builder.go | 94 +++ ...communities_item_owners_request_builder.go | 105 +++ ...s_item_owners_user_item_request_builder.go | 86 ++ .../communities_request_builder.go | 148 ++++ .../employee_experience_request_builder.go | 8 + ..._async_operations_count_request_builder.go | 77 ++ ...nt_async_operation_item_request_builder.go | 154 ++++ ...gement_async_operations_request_builder.go | 145 ++++ ...connections_item_schema_request_builder.go | 6 +- ...try_data_connector_item_request_builder.go | 12 +- ...ry_data_data_connectors_request_builder.go | 6 +- ...flows_inbound_flow_item_request_builder.go | 8 +- ...stry_data_inbound_flows_request_builder.go | 14 +- graph_request_adapter.go | 3 +- ...r_view_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...events_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...r_view_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tions_conversation_item_request_builder.go | 6 +- groups/item_conversations_request_builder.go | 6 +- ...events_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...er_plans_item_archive_post_request_body.go | 110 +++ ...nner_plans_item_archive_request_builder.go | 66 ++ ..._plans_item_unarchive_post_request_body.go | 110 +++ ...er_plans_item_unarchive_request_builder.go | 66 ++ ...plans_planner_plan_item_request_builder.go | 8 + ...tems_item_create_link_post_request_body.go | 36 + ...m_channels_channel_item_request_builder.go | 8 + ...channels_item_archive_post_request_body.go | 110 +++ ...m_channels_item_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- ...channels_item_unarchive_request_builder.go | 62 ++ ...imary_channel_archive_post_request_body.go | 110 +++ ...primary_channel_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- ...em_team_primary_channel_request_builder.go | 8 + ...imary_channel_unarchive_request_builder.go | 62 ++ ..._allowed_combinations_post_request_body.go | 43 - ..._allowed_combinations_post_request_body.go | 43 - ...ons_named_location_item_request_builder.go | 20 +- ..._post_request_body_allowed_combinations.go | 0 ..._post_request_body_allowed_combinations.go | 0 ...tication_extension_item_request_builder.go | 8 +- ..._callout_extension_item_request_builder.go | 14 +- ...ges_access_package_item_request_builder.go | 8 +- ...ons_risk_detection_item_request_builder.go | 8 +- .../risky_users_request_builder.go | 8 +- kiota-lock.json | 2 +- ...ackage_assignment_request_callback_data.go | 14 +- ..._assignment_request_callback_data_stage.go | 0 ...package_custom_extension_handler_status.go | 40 - models/access_package_subject.go | 14 +- models/access_package_subject_lifecycle.go | 43 - ...ccess_package_subject_subject_lifecycle.go | 0 .../access_review_history_decision_filter.go | 49 -- models/access_review_history_definition.go | 32 +- ...ess_review_history_definition_decisions.go | 0 ...access_review_history_definition_status.go | 0 models/access_review_history_instance.go | 14 +- .../access_review_history_instance_status.go | 0 models/access_review_history_status.go | 46 - models/access_review_timeout_behavior.go | 43 - models/account_status.go | 49 -- models/account_target_content.go | 14 +- models/account_target_content_type.go | 43 - models/acl.go | 14 +- models/acl_identity_source.go | 0 models/action_capability.go | 40 - models/activity_domain.go | 43 - models/activity_history_item.go | 14 +- models/activity_history_item_status.go | 0 models/activity_statistics.go | 14 +- models/activity_statistics_activity.go | 0 models/activity_type.go | 43 - models/add_footer.go | 14 +- models/add_footer_alignment.go | 0 models/add_header.go | 14 +- models/add_header_alignment.go | 0 models/add_watermark.go | 14 +- models/add_watermark_orientation.go | 0 models/admin.go | 106 +-- models/admin_microsoft365_apps.go | 75 ++ models/admin_windows.go | 75 ++ models/advanced_bit_locker_state.go | 109 --- models/agreement_acceptance.go | 14 +- models/agreement_acceptance_state.go | 40 - models/alert.go | 14 +- models/alert_feedback.go | 46 - models/alert_history_state.go | 28 +- models/alert_history_state_feedback.go | 0 models/alert_history_state_status.go | 0 models/alignment.go | 40 - models/allow_invites_from.go | 46 - models/allowed_audiences.go | 65 -- models/allowed_role_principal_types.go | 53 -- models/alteration_response.go | 14 +- ...teration_response_query_alteration_type.go | 0 models/analytics_activity_type.go | 46 - ...evice_owner_app_auto_update_policy_type.go | 51 -- ...id_device_owner_certificate_access_type.go | 43 - ...d_device_owner_certificate_profile_base.go | 28 +- ...file_base_subject_alternative_name_type.go | 0 ...ficate_profile_base_subject_name_format.go | 0 .../android_device_owner_compliance_policy.go | 42 +- ...reat_protection_required_security_level.go | 0 ...reat_protection_required_security_level.go | 0 ...ompliance_policy_password_required_type.go | 0 ...device_owner_cross_profile_data_sharing.go | 51 -- ...wner_default_app_permission_policy_type.go | 47 -- ...credential_authentication_configuration.go | 14 +- ...n_configuration_certificate_access_type.go | 0 ...ce_owner_enterprise_wi_fi_configuration.go | 42 +- ..._fi_configuration_authentication_method.go | 0 ...er_authentication_protocol_for_eap_ttls.go | 0 ..._inner_authentication_protocol_for_peap.go | 0 ...vice_owner_general_device_configuration.go | 294 +++---- ...e_configuration_apps_auto_update_policy.go | 0 ...guration_apps_default_permission_policy.go | 0 ...oss_profile_policies_allow_data_sharing.go | 0 ...vice_configuration_device_location_mode.go | 0 ...guration_kiosk_customization_status_bar.go | 0 ...n_kiosk_customization_system_navigation.go | 0 ...ce_configuration_kiosk_mode_folder_icon.go | 0 ...vice_configuration_kiosk_mode_icon_size.go | 0 ...mode_managed_home_screen_pin_complexity.go | 0 ...iguration_kiosk_mode_screen_orientation.go | 0 ..._kiosk_mode_use_managed_home_screen_app.go | 0 ...ion_kiosk_mode_virtual_home_button_type.go | 0 ...ft_launcher_dock_presence_configuration.go | 0 ...cher_search_bar_placement_configuration.go | 0 ...e_configuration_password_require_unlock.go | 0 ...ce_configuration_password_required_type.go | 0 ...ration_personal_profile_play_store_mode.go | 0 ...al_device_configuration_play_store_mode.go | 0 ...onfiguration_system_update_install_type.go | 0 ...on_work_profile_password_require_unlock.go | 0 ...ion_work_profile_password_required_type.go | 0 ...wner_imported_p_f_x_certificate_profile.go | 14 +- ...ificate_profile_certificate_access_type.go | 0 ...ce_owner_kiosk_customization_status_bar.go | 43 - ...r_kiosk_customization_system_navigation.go | 43 - ...oid_device_owner_kiosk_mode_folder_icon.go | 51 -- ...droid_device_owner_kiosk_mode_icon_size.go | 55 -- ...ice_owner_kiosk_mode_screen_orientation.go | 47 -- models/android_device_owner_location_mode.go | 43 - ...d_device_owner_pkcs_certificate_profile.go | 14 +- ...ificate_profile_certificate_access_type.go | 0 .../android_device_owner_play_store_mode.go | 43 - ...oid_device_owner_required_password_type.go | 67 -- ...d_device_owner_required_password_unlock.go | 43 - ...d_device_owner_scep_certificate_profile.go | 28 +- ...ificate_profile_certificate_access_type.go | 0 ...p_certificate_profile_certificate_store.go | 0 ...device_owner_system_update_install_type.go | 47 -- ...d_device_owner_virtual_home_button_type.go | 43 - ...android_eas_email_profile_configuration.go | 14 +- ...e_configuration_user_domain_name_source.go | 0 .../android_enterprise_wi_fi_configuration.go | 42 +- ..._fi_configuration_authentication_method.go | 0 ...er_authentication_protocol_for_eap_ttls.go | 0 ..._inner_authentication_protocol_for_peap.go | 0 ...droid_for_work_certificate_profile_base.go | 14 +- ...file_base_subject_alternative_name_type.go | 0 ...for_work_enterprise_wi_fi_configuration.go | 42 +- ..._fi_configuration_authentication_method.go | 0 ...er_authentication_protocol_for_eap_ttls.go | 0 ..._inner_authentication_protocol_for_peap.go | 0 ...droid_for_work_scep_certificate_profile.go | 14 +- ...p_certificate_profile_certificate_store.go | 0 models/android_managed_app_protection.go | 70 +- ...on_app_action_if_account_is_clocked_out.go | 0 ...vice_passcode_complexity_less_than_high.go | 0 ...evice_passcode_complexity_less_than_low.go | 0 ...ce_passcode_complexity_less_than_medium.go | 0 ...on_if_samsung_knox_attestation_required.go | 0 ...d_work_profile_certificate_profile_base.go | 14 +- ...file_base_subject_alternative_name_type.go | 0 ..._profile_enterprise_wi_fi_configuration.go | 42 +- ..._fi_configuration_authentication_method.go | 0 ...er_authentication_protocol_for_eap_ttls.go | 0 ..._inner_authentication_protocol_for_peap.go | 0 ...d_work_profile_pkcs_certificate_profile.go | 14 +- ...s_certificate_profile_certificate_store.go | 0 ...d_work_profile_scep_certificate_profile.go | 14 +- ...p_certificate_profile_certificate_store.go | 0 models/answer_input_type.go | 40 - ...p_device_owner_certificate_profile_base.go | 28 +- ...file_base_subject_alternative_name_type.go | 0 ...ficate_profile_base_subject_name_format.go | 0 models/aosp_device_owner_compliance_policy.go | 14 +- ...ompliance_policy_password_required_type.go | 0 .../aosp_device_owner_device_configuration.go | 14 +- ...ce_configuration_password_required_type.go | 0 ...ce_owner_enterprise_wi_fi_configuration.go | 42 +- ..._fi_configuration_authentication_method.go | 0 ...er_authentication_protocol_for_eap_ttls.go | 0 ..._inner_authentication_protocol_for_peap.go | 0 ...p_device_owner_scep_certificate_profile.go | 14 +- ...p_certificate_profile_certificate_store.go | 0 models/app_credential_restriction_type.go | 49 -- models/app_credential_sign_in_activity.go | 28 +- ...pp_credential_sign_in_activity_key_type.go | 0 ...p_credential_sign_in_activity_key_usage.go | 0 models/app_key_credential_restriction_type.go | 40 - models/apple_vpn_always_on_configuration.go | 42 +- ...onfiguration_air_print_exception_action.go | 0 ...configuration_cellular_exception_action.go | 0 ...onfiguration_voicemail_exception_action.go | 0 models/apple_vpn_configuration.go | 14 +- .../apple_vpn_configuration_provider_type.go | 0 models/application_key_type.go | 40 - models/application_key_usage.go | 40 - models/application_mode.go | 40 - models/application_permissions_required.go | 52 -- .../applied_authentication_event_listener.go | 14 +- ...uthentication_event_listener_event_type.go | 0 models/applied_conditional_access_policy.go | 42 +- ..._access_policy_conditions_not_satisfied.go | 0 ...onal_access_policy_conditions_satisfied.go | 0 ...pplied_conditional_access_policy_result.go | 61 -- models/approval_state.go | 46 - models/apps_installation_options_for_mac.go | 182 ++++ .../apps_installation_options_for_windows.go | 254 ++++++ models/apps_update_channel_type.go | 43 + models/assignment_review_settings.go | 14 +- ...settings_access_review_timeout_behavior.go | 0 models/attachment_info.go | 14 +- models/attachment_info_attachment_type.go | 0 models/attachment_item.go | 14 +- models/attachment_item_attachment_type.go | 0 models/attachment_type.go | 40 - models/attack_simulation_operation.go | 14 +- models/attack_simulation_operation_type.go | 40 - models/attendee_availability.go | 14 +- models/attendee_availability_availability.go | 0 models/attendee_base.go | 14 +- models/attendee_base_type.go | 0 models/attendee_type.go | 40 - models/attestation_level.go | 40 - models/attribute_definition_metadata.go | 58 -- models/attribute_definition_metadata_entry.go | 14 +- ...attribute_definition_metadata_entry_key.go | 0 .../authentication_app_admin_configuration.go | 43 - models/authentication_app_evaluation.go | 40 - models/authentication_app_policy_details.go | 42 +- ..._app_policy_details_admin_configuration.go | 0 ...olicy_details_authentication_evaluation.go | 0 ...uthentication_app_policy_details_status.go | 0 models/authentication_app_policy_status.go | 85 -- models/authentication_context.go | 14 +- models/authentication_context_detail.go | 43 - models/authentication_event_listener.go | 4 + models/authentication_event_type.go | 40 - models/authentication_method_configuration.go | 14 +- ...thentication_method_configuration_state.go | 0 ...entication_method_feature_configuration.go | 14 +- ...tion_method_feature_configuration_state.go | 0 models/authentication_method_key_strength.go | 40 - models/authentication_method_platform.go | 52 -- models/authentication_method_sign_in_state.go | 52 -- models/authentication_method_state.go | 37 - models/authentication_methods_policy.go | 14 +- ...tication_methods_policy_migration_state.go | 43 - ...n_methods_policy_policy_migration_state.go | 0 models/authentication_phone_type.go | 43 - models/authentication_protocol.go | 40 - models/authentication_requirement_policy.go | 14 +- ...requirement_policy_requirement_provider.go | 0 models/authentication_strength.go | 14 +- ...strength_authentication_strength_result.go | 0 models/authentication_strength_result.go | 61 -- models/authentication_transform_constant.go | 55 -- models/authorization_policy.go | 14 +- ...authorization_policy_allow_invites_from.go | 0 models/authorization_system_action_type.go | 40 - models/authorization_system_info.go | 14 +- ...n_system_info_authorization_system_type.go | 0 models/authorization_system_type.go | 43 - models/authorization_system_type_action.go | 14 +- ...rization_system_type_action_action_type.go | 0 models/automatic_replies_setting.go | 28 +- ...matic_replies_setting_external_audience.go | 0 models/automatic_replies_setting_status.go | 0 models/automatic_replies_status.go | 40 - models/availability_item.go | 14 +- models/availability_item_status.go | 0 models/azure_a_d_join_policy.go | 8 +- models/azure_a_d_registration_policy.go | 8 +- models/b2b_identity_providers_type.go | 52 -- models/base_site_page.go | 14 +- models/base_site_page_page_layout.go | 0 models/bit_locker_encryption_method.go | 47 -- models/bit_locker_fixed_drive_policy.go | 14 +- ...er_fixed_drive_policy_encryption_method.go | 0 models/bit_locker_removable_drive_policy.go | 14 +- ...emovable_drive_policy_encryption_method.go | 0 models/bit_locker_system_drive_policy.go | 14 +- ...r_system_drive_policy_encryption_method.go | 0 models/bitlocker_recovery_key.go | 14 +- models/bitlocker_recovery_key_volume_type.go | 0 models/body_type.go | 37 - models/booking_custom_question.go | 14 +- ...oking_custom_question_answer_input_type.go | 0 models/booking_question_answer.go | 14 +- ...oking_question_answer_answer_input_type.go | 0 models/booking_type.go | 40 - models/bookings_availability_status.go | 46 - models/broadcast_meeting_audience.go | 43 - models/broadcast_meeting_settings.go | 14 +- ...dcast_meeting_settings_allowed_audience.go | 0 models/browser_shared_cookie_history.go | 14 +- ...hared_cookie_history_source_environment.go | 0 models/browser_site_history.go | 42 +- ...browser_site_history_compatibility_mode.go | 0 models/browser_site_history_merge_type.go | 0 ...browser_site_history_target_environment.go | 0 models/built_in_identity_provider.go | 14 +- models/built_in_identity_provider_state.go | 0 models/calendar.go | 46 +- ...lendar_allowed_online_meeting_providers.go | 0 models/calendar_color.go | 64 -- ...alendar_default_online_meeting_provider.go | 0 models/calendar_permission.go | 32 +- models/calendar_permission_allowed_roles.go | 0 models/calendar_permission_role.go | 0 models/calendar_sharing_action.go | 43 - models/calendar_sharing_action_importance.go | 37 - models/calendar_sharing_action_type.go | 34 - models/calendar_sharing_message_action.go | 42 +- .../calendar_sharing_message_action_action.go | 0 ...ndar_sharing_message_action_action_type.go | 0 ...endar_sharing_message_action_importance.go | 0 models/call.go | 82 +- models/call_active_modalities.go | 0 models/call_direction.go | 37 - models/call_disposition.go | 40 - models/call_ended_event_message_detail.go | 14 +- ...ed_event_message_detail_call_event_type.go | 0 models/call_event.go | 14 +- models/call_event_call_event_type.go | 0 models/call_event_type.go | 43 - models/call_media_state.go | 14 +- models/call_media_state_audio.go | 0 models/call_recording_event_message_detail.go | 14 +- ...nt_message_detail_call_recording_status.go | 0 models/call_recording_status.go | 46 - models/call_requested_modalities.go | 0 models/call_routing_policies.go | 0 models/call_started_event_message_detail.go | 14 +- ...ed_event_message_detail_call_event_type.go | 0 models/call_state.go | 64 -- models/callrecords/audio_codec.go | 100 --- models/callrecords/media_stream.go | 28 +- .../callrecords/media_stream_audio_codec.go | 0 .../callrecords/media_stream_video_codec.go | 0 .../callrecords/pstn_blocked_users_log_row.go | 14 +- ...n_blocked_users_log_row_user_block_mode.go | 0 .../callrecords/pstn_call_duration_source.go | 37 - models/callrecords/pstn_call_log_row.go | 14 +- .../pstn_call_log_row_call_duration_source.go | 0 models/callrecords/pstn_user_block_mode.go | 40 - models/callrecords/video_codec.go | 67 -- models/category_color.go | 109 --- models/channel.go | 50 +- models/channel_membership_type.go | 43 - models/channel_moderation_settings.go | 28 +- ...l_moderation_settings_reply_restriction.go | 0 ...n_settings_user_new_message_restriction.go | 0 models/chat_message_policy_violation.go | 42 +- ...hat_message_policy_violation_dlp_action.go | 0 ...ssage_policy_violation_dlp_action_types.go | 53 -- ...at_message_policy_violation_user_action.go | 0 ...sage_policy_violation_user_action_types.go | 50 -- ...essage_policy_violation_verdict_details.go | 0 ..._policy_violation_verdict_details_types.go | 53 -- models/classification_method.go | 43 - models/client_credential_type.go | 52 -- models/cloud_app_security_profile.go | 14 +- ...p_security_profile_permissions_required.go | 0 models/cloud_app_security_session_control.go | 14 +- ...session_control_cloud_app_security_type.go | 0 ...cloud_app_security_session_control_type.go | 43 - models/cloud_p_c.go | 84 +- models/cloud_p_c_disk_encryption_state.go | 0 models/cloud_p_c_os_version.go | 0 models/cloud_p_c_power_state.go | 0 models/cloud_p_c_provisioning_type.go | 0 models/cloud_p_c_service_plan_type.go | 0 models/cloud_p_c_user_account_type.go | 0 .../cloud_pc_audit_activity_operation_type.go | 8 +- models/cloud_pc_audit_activity_result.go | 8 +- models/cloud_pc_audit_actor_type.go | 8 +- models/cloud_pc_audit_category.go | 8 +- models/cloud_pc_bulk_action.go | 2 + ...oud_pc_bulk_modify_disk_encryption_type.go | 78 ++ models/cloud_pc_device_image.go | 79 +- models/cloud_pc_device_image_error_code.go | 0 models/cloud_pc_device_image_os_status.go | 40 - models/cloud_pc_device_image_status.go | 40 - .../cloud_pc_device_image_status_details.go | 61 -- models/cloud_pc_disk_encryption_state.go | 46 - models/cloud_pc_domain_join_configuration.go | 65 +- ...ain_join_configuration_domain_join_type.go | 0 ..._domain_join_configuration_region_group.go | 0 ...cloud_pc_domain_join_configuration_type.go | 0 models/cloud_pc_domain_join_type.go | 40 - models/cloud_pc_export_job.go | 28 +- .../cloud_pc_export_job_export_job_status.go | 0 models/cloud_pc_export_job_report_name.go | 0 models/cloud_pc_export_job_status.go | 46 - models/cloud_pc_gallery_image.go | 122 ++- models/cloud_pc_gallery_image_status.go | 43 - models/cloud_pc_on_premises_connection.go | 87 +- ..._on_premises_connection_connection_type.go | 0 ..._pc_on_premises_connection_health_check.go | 50 +- ...ises_connection_health_check_error_type.go | 235 ------ ...pc_on_premises_connection_status_detail.go | 231 +++++ .../cloud_pc_on_premises_connection_type.go | 40 - models/cloud_pc_operating_system.go | 40 - models/cloud_pc_organization_settings.go | 28 +- ...oud_pc_organization_settings_os_version.go | 0 ...organization_settings_user_account_type.go | 0 .../cloud_pc_partner_agent_install_result.go | 28 +- ...ner_agent_install_result_install_status.go | 0 ...agent_install_result_partner_agent_name.go | 0 .../cloud_pc_partner_agent_install_status.go | 52 -- models/cloud_pc_partner_agent_name.go | 43 - models/cloud_pc_policy_setting_type.go | 50 -- models/cloud_pc_power_state.go | 40 - models/cloud_pc_provisioning_policy.go | 50 +- ...cloud_pc_provisioning_policy_image_type.go | 5 +- ...c_provisioning_policy_provisioning_type.go | 0 models/cloud_pc_provisioning_type.go | 40 - models/cloud_pc_remote_action_capability.go | 28 +- ...ote_action_capability_action_capability.go | 0 ...pc_remote_action_capability_action_name.go | 0 models/cloud_pc_remote_action_name.go | 73 -- models/cloud_pc_remote_action_result.go | 14 +- ...ud_pc_remote_action_result_action_state.go | 0 models/cloud_pc_report_name.go | 70 -- models/cloud_pc_resize_validation_code.go | 52 -- models/cloud_pc_resize_validation_result.go | 14 +- ...ize_validation_result_validation_result.go | 0 models/cloud_pc_restore_point_setting.go | 37 + ...pc_restore_point_setting_frequency_type.go | 0 models/cloud_pc_service_plan.go | 28 +- ...cloud_pc_service_plan_provisioning_type.go | 0 models/cloud_pc_service_plan_type.go | 40 - models/cloud_pc_snapshot.go | 28 +- models/cloud_pc_snapshot_snapshot_type.go | 0 models/cloud_pc_snapshot_status.go | 37 - models/cloud_pc_snapshot_type.go | 40 - models/cloud_pc_source_device_image.go | 36 + models/cloud_pc_supported_region.go | 14 +- ...cloud_pc_supported_region_region_status.go | 0 models/cloud_pc_supported_region_status.go | 43 - models/cloud_pc_tenant_encryption_setting.go | 14 +- ...ion_setting_tenant_disk_encryption_type.go | 0 models/cloud_pc_user_account_type.go | 40 - models/cloud_pc_windows_setting.go | 146 ++++ models/coachmark_location.go | 14 +- models/coachmark_location_type.go | 52 -- models/column_definition.go | 14 +- models/column_definition_type.go | 0 models/column_types.go | 88 -- models/communications_identity_set.go | 14 +- ...mmunications_identity_set_endpoint_type.go | 0 models/community.go | 268 ++++++ models/community_collection_response.go | 87 ++ models/community_privacy.go | 40 + models/conditional_access_conditions.go | 95 --- models/conditional_access_external_tenants.go | 14 +- ...access_external_tenants_membership_kind.go | 40 - models/conditional_access_rule.go | 142 ---- models/conditional_access_rule_satisfied.go | 28 +- ..._satisfied_conditional_access_condition.go | 0 ...al_access_rule_satisfied_rule_satisfied.go | 0 models/conditional_access_status.go | 43 - models/confirmed_by.go | 53 -- models/connected_organization.go | 14 +- models/connected_organization_state.go | 40 - models/connection_direction.go | 43 - models/connection_operation.go | 14 +- models/connection_operation_status.go | 43 - models/connection_state.go | 46 - models/connection_status.go | 49 -- models/connector_group.go | 14 +- models/connector_group_region.go | 49 -- models/continuous_access_evaluation_mode.go | 43 - ...nuous_access_evaluation_session_control.go | 14 +- ..._access_evaluation_session_control_mode.go | 0 models/copy_notebook_model.go | 14 +- models/copy_notebook_model_user_role.go | 0 models/country_lookup_method_type.go | 40 - models/country_named_location.go | 14 +- ...ry_named_location_country_lookup_method.go | 0 models/course_status.go | 43 - models/cross_tenant_access_policy_target.go | 14 +- ...nant_access_policy_target_configuration.go | 14 +- ...policy_target_configuration_access_type.go | 40 - ...tenant_access_policy_target_target_type.go | 0 .../cross_tenant_access_policy_target_type.go | 43 - models/cryptography_suite.go | 84 +- ...uite_authentication_transform_constants.go | 0 ...graphy_suite_cipher_transform_constants.go | 0 models/cryptography_suite_dh_group.go | 0 .../cryptography_suite_encryption_method.go | 0 ...yptography_suite_integrity_check_method.go | 0 models/cryptography_suite_pfs_group.go | 0 models/current_label.go | 14 +- models/current_label_application_mode.go | 0 models/custom_authentication_extension.go | 4 + models/custom_callout_extension.go | 4 + models/custom_extension_callout_instance.go | 14 +- ...ustom_extension_callout_instance_status.go | 49 -- models/custom_extension_handler.go | 14 +- models/custom_extension_handler_instance.go | 28 +- ...custom_extension_handler_instance_stage.go | 0 ...ustom_extension_handler_instance_status.go | 0 models/custom_extension_handler_stage.go | 0 models/custom_security_attribute_audit.go | 14 +- .../custom_security_attribute_audit_result.go | 0 models/custom_training_setting.go | 18 +- models/custom_training_setting_assigned_to.go | 0 models/data_policy_operation.go | 14 +- models/data_policy_operation_status.go | 46 - models/data_subject_type.go | 58 -- models/default_managed_app_protection.go | 56 +- ...on_app_action_if_account_is_clocked_out.go | 0 ...vice_passcode_complexity_less_than_high.go | 0 ...evice_passcode_complexity_less_than_low.go | 0 ...ce_passcode_complexity_less_than_medium.go | 0 models/default_mfa_method_type.go | 52 -- ...efender_potentially_unwanted_app_action.go | 43 - models/defender_realtime_scan_direction.go | 43 - .../defender_submit_samples_consent_type.go | 47 -- ...legate_meeting_message_delivery_options.go | 40 - models/delegated_admin_access_assignment.go | 14 +- ...elegated_admin_access_assignment_status.go | 49 -- models/delegated_admin_relationship.go | 14 +- .../delegated_admin_relationship_request.go | 14 +- ...gated_admin_relationship_request_status.go | 46 - models/delegated_admin_relationship_status.go | 64 -- models/delegated_permission_classification.go | 14 +- ...ermission_classification_classification.go | 0 models/detected_sensitive_content.go | 42 +- ...sensitive_content_classification_method.go | 0 models/detected_sensitive_content_scope.go | 0 ...sensitive_content_sensitive_type_source.go | 0 models/device_config_assignment_intent.go | 39 - models/device_configuration_assignment.go | 14 +- .../device_configuration_assignment_intent.go | 0 ...figuration_referred_setting_information.go | 4 +- ...ion_setting_group_collection_definition.go | 8 +- ..._configuration_setting_group_definition.go | 4 +- ...configuration_simple_setting_definition.go | 16 +- ..._management_configuration_string_format.go | 98 --- ...uration_string_setting_value_definition.go | 14 +- ..._string_setting_value_definition_format.go | 0 models/devicemanagement/aggregation_type.go | 46 - models/devicemanagement/alert_impact.go | 14 +- .../alert_impact_aggregation_type.go | 0 models/devicemanagement/alert_record.go | 42 +- .../alert_record_alert_rule_template.go | 0 .../devicemanagement/alert_record_severity.go | 0 .../devicemanagement/alert_record_status.go | 0 models/devicemanagement/alert_rule.go | 76 +- .../alert_rule_alert_rule_template.go | 0 .../devicemanagement/alert_rule_severity.go | 0 .../devicemanagement/alert_rule_template.go | 49 -- models/devicemanagement/alert_status_type.go | 40 - .../devicemanagement/notification_channel.go | 14 +- ...ation_channel_notification_channel_type.go | 0 .../notification_channel_type.go | 46 - models/devicemanagement/operator_type.go | 52 -- .../devicemanagement/portal_notification.go | 28 +- ...portal_notification_alert_rule_template.go | 0 .../portal_notification_severity.go | 0 models/devicemanagement/rule_condition.go | 294 +++++++ .../rule_condition_aggregation.go | 0 .../rule_condition_condition_category.go | 0 .../rule_condition_operator.go | 0 .../rule_condition_relationship_type.go | 0 models/devicemanagement/rule_severity_type.go | 46 - models/devicemanagement/rule_threshold.go | 28 +- .../rule_threshold_aggregation.go | 0 .../rule_threshold_operator.go | 0 models/devices_filter.go | 14 +- models/devices_filter_mode.go | 0 models/diamond_model.go | 49 -- models/dictionary.go | 2 + models/diffie_hellman_group.go | 55 -- models/directory_audit.go | 14 +- models/directory_audit_result.go | 0 models/domain_name_source.go | 39 - models/drive_item_source.go | 14 +- models/drive_item_source_application.go | 55 -- models/eap_fast_configuration.go | 47 -- .../eas_email_profile_configuration_base.go | 28 +- ...figuration_base_user_domain_name_source.go | 0 ...onfiguration_base_username_a_a_d_source.go | 0 models/eas_services.go | 64 -- models/ediscovery/additional_data_options.go | 50 -- models/ediscovery/case_action.go | 58 -- models/ediscovery/case_escaped.go | 14 +- models/ediscovery/case_export_operation.go | 28 +- .../case_export_operation_export_options.go | 0 .../case_export_operation_export_structure.go | 0 models/ediscovery/case_operation.go | 28 +- models/ediscovery/case_operation_action.go | 0 models/ediscovery/case_operation_status.go | 49 -- models/ediscovery/case_status.go | 49 -- models/ediscovery/child_selectability.go | 37 - models/ediscovery/data_source.go | 14 +- models/ediscovery/data_source_container.go | 28 +- .../data_source_container_hold_status.go | 0 .../data_source_container_status.go | 40 - models/ediscovery/data_source_hold_status.go | 49 -- models/ediscovery/data_source_scopes.go | 59 -- models/ediscovery/export_options.go | 59 -- models/ediscovery/legal_hold.go | 14 +- models/ediscovery/legal_hold_status.go | 43 - models/ediscovery/source_collection.go | 14 +- .../source_collection_data_source_scopes.go | 0 models/ediscovery/source_type.go | 47 -- models/ediscovery/tag.go | 14 +- models/ediscovery/tag_child_selectability.go | 0 models/ediscovery/unified_group_source.go | 14 +- .../unified_group_source_included_sources.go | 0 models/ediscovery/user_source.go | 14 +- .../user_source_included_sources.go | 0 models/education_add_to_calendar_options.go | 46 - models/education_added_student_action.go | 40 - models/education_assignment.go | 42 +- ...ation_assignment_add_to_calendar_action.go | 0 ...ucation_assignment_added_student_action.go | 0 models/education_assignment_defaults.go | 28 +- ...ignment_defaults_add_to_calendar_action.go | 0 ...ssignment_defaults_added_student_action.go | 0 models/education_assignment_status.go | 46 - models/education_class.go | 14 +- models/education_class_external_source.go | 0 models/education_external_source.go | 43 - models/education_feedback_resource_outcome.go | 14 +- ...edback_resource_outcome_resource_status.go | 0 ...cation_feedback_resource_outcome_status.go | 46 - models/education_gender.go | 43 - models/education_item_body.go | 14 +- models/education_item_body_content_type.go | 0 models/education_module.go | 14 +- models/education_module_status.go | 40 - models/education_organization.go | 14 +- .../education_organization_external_source.go | 0 models/education_student.go | 14 +- models/education_student_gender.go | 0 models/education_submission.go | 14 +- models/education_submission_status.go | 52 -- ...tion_synchronization_license_assignment.go | 14 +- ...onization_license_assignment_applies_to.go | 0 models/education_synchronization_profile.go | 14 +- ...education_synchronization_profile_state.go | 49 -- ...ducation_synchronization_profile_status.go | 14 +- ...n_synchronization_profile_status_status.go | 0 models/education_synchronization_status.go | 58 -- models/education_user.go | 14 +- models/education_user_external_source.go | 0 .../eligibility_filtering_enabled_entities.go | 56 -- ...ail_authentication_method_configuration.go | 14 +- ...tion_allow_external_id_to_use_email_otp.go | 0 models/email_certificate_type.go | 43 - models/email_file_assessment_request.go | 14 +- ...ment_request_destination_routing_reason.go | 0 models/email_role.go | 43 - models/employee_experience.go | 96 +++ models/encrypt_content.go | 14 +- models/encrypt_content_encrypt_with.go | 0 models/encrypt_with.go | 37 - models/end_user_notification.go | 42 +- ...end_user_notification_notification_type.go | 0 models/end_user_notification_preference.go | 43 - models/end_user_notification_setting.go | 28 +- ...ication_setting_notification_preference.go | 0 ..._user_notification_setting_setting_type.go | 0 models/end_user_notification_setting_type.go | 46 - models/end_user_notification_source.go | 0 models/end_user_notification_status.go | 0 models/end_user_notification_type.go | 49 -- models/endpoint_type.go | 46 - models/engagement_async_operation.go | 112 +++ ...ent_async_operation_collection_response.go | 87 ++ ...gagement_async_operation_operation_type.go | 0 models/entity.go | 22 +- models/entity_type.go | 73 -- ...umerated_device_registration_membership.go | 8 +- models/event.go | 70 +- models/event_importance.go | 0 models/event_message.go | 28 +- models/event_message_meeting_message_type.go | 0 models/event_message_response.go | 14 +- .../event_message_response_response_type.go | 0 models/event_message_type.go | 0 models/event_online_meeting_provider.go | 0 models/event_sensitivity.go | 0 models/event_show_as.go | 0 models/event_type.go | 43 - models/expiration_pattern.go | 14 +- models/expiration_pattern_type.go | 43 - models/expiration_requirement.go | 52 -- models/external_audience_scope.go | 40 - models/external_authentication_type.go | 37 - models/external_connection.go | 14 +- models/external_connection_state.go | 0 models/external_email_otp_state.go | 43 - ..._users_self_service_sign_up_events_flow.go | 72 ++ models/externalconnectors/acl.go | 14 +- .../externalconnectors/acl_identity_source.go | 0 .../connection_operation.go | 14 +- .../connection_operation_status.go | 46 - models/externalconnectors/connection_state.go | 46 - .../content_experience_type.go | 50 -- .../externalconnectors/external_connection.go | 28 +- ..._connection_enabled_content_experiences.go | 0 .../external_connection_state.go | 0 models/externalconnectors/identity.go | 14 +- .../identity_source_type.go | 40 - models/externalconnectors/identity_type.go | 43 - models/externalconnectors/label.go | 70 -- models/externalconnectors/property.go | 18 +- models/externalconnectors/property_labels.go | 0 models/feature_target.go | 14 +- models/feature_target_target_type.go | 0 models/feature_target_type.go | 43 - models/federated_idp_mfa_behavior.go | 43 - models/fido2_authentication_method.go | 14 +- ...authentication_method_attestation_level.go | 0 models/fido2_key_restrictions.go | 14 +- ...fido2_key_restrictions_enforcement_type.go | 0 models/fido2_restriction_enforcement_type.go | 40 - models/file_hash.go | 14 +- models/file_hash_hash_type.go | 0 models/file_hash_type.go | 55 -- models/file_vault_state.go | 57 -- models/followup_flag.go | 14 +- models/followup_flag_flag_status.go | 0 models/followup_flag_status.go | 40 - models/free_busy_status.go | 49 -- models/frontline_cloud_pc_access_state.go | 52 -- models/giphy_rating_type.go | 40 - models/group.go | 14 +- models/group_access_type.go | 43 - models/group_privacy.go | 43 - models/group_type.go | 40 - models/horizontal_section.go | 28 +- models/horizontal_section_emphasis.go | 0 models/horizontal_section_layout.go | 0 models/horizontal_section_layout_type.go | 55 -- models/identity_provider_state.go | 40 - models/identity_source_type.go | 37 - .../custom_task_extension_callback_data.go | 14 +- ...xtension_callback_data_operation_status.go | 0 .../custom_task_extension_operation_status.go | 40 - models/image_tagging_choice.go | 43 - models/included_user_roles.go | 46 - models/included_user_types.go | 43 - models/incoming_token_type.go | 59 -- models/inference_classification_override.go | 14 +- ...nce_classification_override_classify_as.go | 0 models/inference_classification_type.go | 37 - models/initiator.go | 14 +- models/initiator_initiator_type.go | 0 models/initiator_type.go | 43 - models/internal_domain_federation.go | 28 +- ...n_federation_federated_idp_mfa_behavior.go | 0 ...domain_federation_prompt_login_behavior.go | 0 models/invitation_participant_info.go | 14 +- ...vitation_participant_info_endpoint_type.go | 0 ...emption_identity_provider_configuration.go | 32 +- ...onfiguration_fallback_identity_provider.go | 0 ...mary_identity_provider_precedence_order.go | 0 models/ios_certificate_profile_base.go | 14 +- ...file_base_subject_alternative_name_type.go | 0 models/ios_eas_email_profile_configuration.go | 56 +- ...ile_configuration_authentication_method.go | 0 ...mail_profile_configuration_eas_services.go | 0 ...nfiguration_encryption_certificate_type.go | 0 ..._configuration_signing_certificate_type.go | 0 models/ios_enterprise_wi_fi_configuration.go | 42 +- ..._fi_configuration_authentication_method.go | 0 ...fi_configuration_eap_fast_configuration.go | 0 ...er_authentication_protocol_for_eap_ttls.go | 0 models/ios_pkcs_certificate_profile.go | 14 +- ...s_certificate_profile_certificate_store.go | 0 models/ios_scep_certificate_profile.go | 14 +- ...p_certificate_profile_certificate_store.go | 0 ...ios_vpn_security_association_parameters.go | 28 +- ...arameters_security_encryption_algorithm.go | 0 ...parameters_security_integrity_algorithm.go | 0 models/iosik_ev2_vpn_configuration.go | 28 +- ..._configuration_dead_peer_detection_rate.go | 0 ...n_configuration_server_certificate_type.go | 0 models/ip_application_segment.go | 28 +- ...ip_application_segment_destination_type.go | 0 models/ip_application_segment_protocol.go | 0 models/item_body.go | 14 +- models/item_body_content_type.go | 0 models/item_facet.go | 14 +- models/item_facet_allowed_audiences.go | 0 ...kerberos_sign_on_mapping_attribute_type.go | 46 - models/kerberos_sign_on_settings.go | 14 +- ...kerberos_sign_on_mapping_attribute_type.go | 0 models/key_credential_configuration.go | 14 +- ...edential_configuration_restriction_type.go | 0 ...mode_managed_home_screen_pin_complexity.go | 43 - models/kiosk_mode_type.go | 43 - models/label.go | 58 -- models/landing_page.go | 28 +- models/landing_page_source.go | 0 models/landing_page_status.go | 0 models/language_proficiency.go | 56 +- models/language_proficiency_level.go | 52 -- models/language_proficiency_proficiency.go | 0 models/language_proficiency_reading.go | 0 models/language_proficiency_spoken.go | 0 models/language_proficiency_written.go | 0 models/layout_template_type.go | 40 - models/learning_course_activity.go | 14 +- models/learning_course_activity_status.go | 0 models/lobby_bypass_scope.go | 52 -- models/lobby_bypass_settings.go | 14 +- models/lobby_bypass_settings_scope.go | 0 models/location.go | 28 +- models/location_location_type.go | 0 models/location_type.go | 61 -- models/location_unique_id_type.go | 46 - models/login_page.go | 28 +- models/login_page_layout_configuration.go | 14 +- ...yout_configuration_layout_template_type.go | 0 models/login_page_source.go | 0 models/login_page_status.go | 0 models/logon_type.go | 52 -- models/logon_user.go | 32 +- models/logon_user_account_type.go | 0 models/logon_user_logon_types.go | 0 models/long_running_operation.go | 16 +- models/m365_apps_installation_options.go | 148 ++++ models/mac_o_s_certificate_profile_base.go | 14 +- ...file_base_subject_alternative_name_type.go | 0 .../mac_o_s_enterprise_wi_fi_configuration.go | 42 +- ..._fi_configuration_authentication_method.go | 0 ...fi_configuration_eap_fast_configuration.go | 0 ...er_authentication_protocol_for_eap_ttls.go | 0 .../mac_o_s_general_device_configuration.go | 14 +- ...evice_configuration_update_delay_policy.go | 0 models/mac_o_s_pkcs_certificate_profile.go | 14 +- ...s_certificate_profile_certificate_store.go | 0 models/mac_o_s_priority.go | 43 - models/mac_o_s_scep_certificate_profile.go | 28 +- ...p_certificate_profile_certificate_store.go | 0 ...scep_certificate_profile_hash_algorithm.go | 0 .../mac_o_s_software_update_configuration.go | 14 +- ..._software_update_configuration_priority.go | 0 .../mac_o_s_software_update_delay_policy.go | 61 -- models/mac_o_s_wired_network_configuration.go | 42 +- ...ork_configuration_authentication_method.go | 0 ...rk_configuration_eap_fast_configuration.go | 0 ..._eap_authentication_method_for_eap_ttls.go | 0 ...ine_learning_detected_sensitive_content.go | 14 +- ...ected_sensitive_content_match_tolerance.go | 0 models/mail_assessment_request.go | 14 +- ...ment_request_destination_routing_reason.go | 0 models/mail_destination_routing_reason.go | 79 -- models/mail_tips.go | 14 +- models/mail_tips_recipient_scope.go | 0 models/mail_tips_type.go | 71 -- models/mailbox_recipient_type.go | 52 -- models/mailbox_settings.go | 42 +- ...legate_meeting_message_delivery_options.go | 0 models/mailbox_settings_user_purpose.go | 0 models/mailbox_settings_user_purpose_v2.go | 0 models/malware_state_for_windows_device.go | 28 +- ...tate_for_windows_device_execution_state.go | 0 ...e_state_for_windows_device_threat_state.go | 0 models/managed_app_protection.go | 28 +- ...p_action_if_unable_to_authenticate_user.go | 0 ..._mobile_threat_defense_partner_priority.go | 0 models/managed_device_encryption_state.go | 28 +- ...yption_state_advanced_bit_locker_states.go | 0 ...vice_encryption_state_file_vault_states.go | 0 models/managed_identity.go | 14 +- models/managed_identity_msi_type.go | 0 .../alert_rule_definition_template.go | 14 +- ...le_definition_template_default_severity.go | 0 models/managedtenants/alert_severity.go | 49 -- models/managedtenants/alert_status.go | 49 -- .../delegated_privilege_status.go | 46 - models/managedtenants/managed_tenant_alert.go | 28 +- .../managed_tenant_alert_rule.go | 28 +- ...rt_rule_notification_final_destinations.go | 0 .../managed_tenant_alert_rule_severity.go | 0 .../managed_tenant_alert_severity.go | 0 .../managed_tenant_alert_status.go | 0 models/managedtenants/management_template.go | 14 +- .../management_template_category.go | 0 .../management_template_step.go | 14 +- .../management_template_step_category.go | 0 .../notification_destination.go | 56 -- models/managedtenants/role_assignment.go | 14 +- .../role_assignment_assignment_type.go | 0 .../tenant_onboarding_eligibility_reason.go | 49 -- .../tenant_onboarding_status.go | 46 - .../tenant_status_information.go | 42 +- ..._information_delegated_privilege_status.go | 0 ...nt_status_information_onboarding_status.go | 0 ...on_tenant_onboarding_eligibility_reason.go | 0 models/managedtenants/workload_action.go | 14 +- .../workload_action_category.go | 40 - models/matching_dlp_rule.go | 14 +- models/matching_dlp_rule_rule_mode.go | 0 models/matching_label.go | 14 +- models/matching_label_application_mode.go | 0 models/media_source.go | 14 +- models/media_source_content_category.go | 46 - models/media_state.go | 40 - models/meeting_audience.go | 40 - models/meeting_capabilities.go | 37 - models/meeting_chat_history_default_mode.go | 40 - models/meeting_chat_mode.go | 43 - models/meeting_message_type.go | 49 -- models/meeting_participant_info.go | 14 +- models/meeting_participant_info_role.go | 0 models/meeting_registrant.go | 14 +- models/meeting_registrant_status.go | 43 - models/meeting_registration_base.go | 14 +- ...ng_registration_base_allowed_registrant.go | 0 models/meeting_registration_question.go | 14 +- ...registration_question_answer_input_type.go | 0 models/meeting_time_suggestion.go | 14 +- ..._time_suggestion_organizer_availability.go | 0 models/membership_rule_processing_status.go | 14 +- ...mbership_rule_processing_status_details.go | 46 - ...embership_rule_processing_status_status.go | 0 models/message.go | 28 +- models/message_action_flag.go | 64 -- models/message_importance.go | 0 models/message_inference_classification.go | 0 models/message_rule_actions.go | 14 +- .../message_rule_actions_mark_importance.go | 0 models/message_rule_predicates.go | 42 +- models/message_rule_predicates_importance.go | 0 ...age_rule_predicates_message_action_flag.go | 0 models/message_rule_predicates_sensitivity.go | 0 models/metered_connection_limit_type.go | 43 - ...oft_authenticator_authentication_method.go | 14 +- ...r_authentication_method_client_app_name.go | 40 - models/microsoft_custom_training_setting.go | 14 +- ...ng_setting_training_completion_duration.go | 0 models/microsoft_launcher_dock_presence.go | 47 -- ...microsoft_launcher_search_bar_placement.go | 47 -- models/microsoft_managed_desktop.go | 51 +- .../microsoft_managed_desktop_managed_type.go | 0 models/microsoft_managed_desktop_type.go | 46 - models/microsoft_managed_training_setting.go | 14 +- ...ng_setting_training_completion_duration.go | 0 .../microsoft_training_assignment_mapping.go | 18 +- ...training_assignment_mapping_assigned_to.go | 0 models/ml_classification_match_tolerance.go | 47 -- .../mobile_threat_defense_partner_priority.go | 43 - models/mobility_management_policy.go | 14 +- .../mobility_management_policy_applies_to.go | 0 models/msi_type.go | 43 - models/multi_tenant_organization.go | 14 +- ...tenant_organization_join_request_record.go | 28 +- ...zation_join_request_record_member_state.go | 0 ...t_organization_join_request_record_role.go | 0 ...ization_join_request_transition_details.go | 28 +- ...transition_details_desired_member_state.go | 0 ..._join_request_transition_details_status.go | 0 models/multi_tenant_organization_member.go | 28 +- ...t_organization_member_processing_status.go | 46 - .../multi_tenant_organization_member_role.go | 40 - .../multi_tenant_organization_member_state.go | 43 - ..._organization_member_transition_details.go | 42 +- ..._member_transition_details_desired_role.go | 0 ...member_transition_details_desired_state.go | 0 ...zation_member_transition_details_status.go | 0 models/multi_tenant_organization_state.go | 40 - models/network_connection.go | 42 +- models/network_connection_direction.go | 0 models/network_connection_protocol.go | 0 models/network_connection_status.go | 0 models/network_location_detail.go | 14 +- .../network_location_detail_network_type.go | 0 models/network_single_sign_on_type.go | 43 - models/network_type.go | 49 -- .../bandwidth_capacity_in_mbps.go | 46 - models/networkaccess/branch_site.go | 14 +- .../branch_site_connectivity_state.go | 0 models/networkaccess/connectivity_state.go | 46 - models/networkaccess/destination_summary.go | 14 +- .../destination_summary_traffic_type.go | 0 models/networkaccess/device_category.go | 40 - models/networkaccess/device_link.go | 14 +- .../device_link_bandwidth_capacity_in_mbps.go | 0 .../networkaccess/network_access_traffic.go | 56 +- .../network_access_traffic_action.go | 0 .../network_access_traffic_device_category.go | 0 ...network_access_traffic_network_protocol.go | 0 ...twork_access_traffic_transport_protocol.go | 0 ...authentication_method_for_eap_ttls_type.go | 47 -- .../non_eap_authentication_method_for_peap.go | 39 - models/notebook.go | 14 +- models/notebook_user_role.go | 0 models/notification.go | 14 +- models/notification_delivery_frequency.go | 43 - models/notification_delivery_preference.go | 43 - models/notification_priority.go | 0 models/o_auth_app_scope.go | 58 -- models/o_auth_consent_app_detail.go | 14 +- models/o_auth_consent_app_detail_app_scope.go | 0 models/object_definition_metadata.go | 52 -- models/object_definition_metadata_entry.go | 14 +- .../object_definition_metadata_entry_key.go | 0 models/object_mapping_metadata.go | 52 -- models/object_mapping_metadata_entry.go | 14 +- models/object_mapping_metadata_entry_key.go | 0 models/obliteration_behavior.go | 51 -- ...ibute_collection_start_custom_extension.go | 41 + ...llection_start_custom_extension_handler.go | 113 +++ .../on_attribute_collection_start_handler.go | 128 +++ .../on_attribute_collection_start_listener.go | 77 ++ ...bute_collection_submit_custom_extension.go | 41 + ...lection_submit_custom_extension_handler.go | 113 +++ .../on_attribute_collection_submit_handler.go | 128 +++ ...on_attribute_collection_submit_listener.go | 77 ++ ...premises_accidental_deletion_prevention.go | 14 +- ...vention_synchronization_prevention_type.go | 0 ...ynchronization_deletion_prevention_type.go | 43 - models/on_premises_publishing.go | 14 +- ...publishing_external_authentication_type.go | 0 .../on_premises_publishing_single_sign_on.go | 14 +- ...hing_single_sign_on_single_sign_on_mode.go | 0 ...art_external_users_self_service_sign_up.go | 14 +- ...elf_service_sign_up_user_type_to_create.go | 0 models/onenote_patch_content_command.go | 14 +- .../onenote_patch_content_command_position.go | 0 models/onenote_patch_insert_position.go | 37 - models/onenote_source_service.go | 43 - models/onenote_user_role.go | 43 - models/online_meeting.go | 18 +- models/online_meeting_base.go | 60 +- .../online_meeting_base_allow_meeting_chat.go | 0 .../online_meeting_base_allowed_presenters.go | 0 ...eting_base_anonymize_identity_for_roles.go | 0 ...base_share_meeting_chat_history_default.go | 0 models/online_meeting_capabilities.go | 0 ...meeting_content_sharing_disabled_reason.go | 47 -- models/online_meeting_forwarders.go | 40 - models/online_meeting_presenters.go | 46 - models/online_meeting_provider_type.go | 43 - models/online_meeting_restricted.go | 28 +- ...ing_restricted_content_sharing_disabled.go | 0 ...nline_meeting_restricted_video_disabled.go | 0 models/online_meeting_role.go | 46 - .../online_meeting_video_disabled_reason.go | 47 -- models/operation.go | 14 +- models/operation_result.go | 43 - models/organization.go | 14 +- models/organization_partner_tenant_type.go | 0 models/original_transfer_methods.go | 43 - models/outlook_category.go | 14 +- models/outlook_category_color.go | 0 models/outlook_task.go | 42 +- models/outlook_task_importance.go | 0 models/outlook_task_sensitivity.go | 0 models/outlook_task_status.go | 0 models/page_layout_type.go | 43 - models/page_orientation.go | 37 - models/page_promotion_type.go | 43 - models/participant_info.go | 14 +- models/participant_info_endpoint_type.go | 0 models/partner_information.go | 14 +- models/partner_information_company_type.go | 0 models/partner_tenant_type.go | 52 -- models/password_credential_configuration.go | 14 +- ...edential_configuration_restriction_type.go | 0 models/payload.go | 112 +-- models/payload_brand.go | 94 --- models/payload_complexity.go | 46 - models/payload_delivery_platform.go | 46 - models/payload_industry.go | 97 --- models/payload_platform.go | 0 models/payload_simulation_attack_type.go | 0 models/payload_status.go | 0 models/payload_technique.go | 0 models/payload_theme.go | 127 --- models/perfect_forward_secrecy_group.go | 59 -- models/permission_classification_type.go | 43 - models/permission_grant_condition_set.go | 14 +- ...ion_grant_condition_set_permission_type.go | 0 models/permission_type.go | 40 - models/permissions_request_change.go | 14 +- ...request_change_active_occurrence_status.go | 0 .../permissions_request_occurrence_status.go | 52 -- models/persistent_browser_session_control.go | 14 +- ...persistent_browser_session_control_mode.go | 0 models/persistent_browser_session_mode.go | 37 - models/person_annual_event.go | 14 +- models/person_annual_event_type.go | 46 - models/person_relationship.go | 79 -- ...rsonal_profile_personal_play_store_mode.go | 43 - models/phone.go | 14 +- models/phone_authentication_method.go | 28 +- .../phone_authentication_method_phone_type.go | 0 ...authentication_method_sms_sign_in_state.go | 0 models/phone_type.go | 61 -- models/physical_address.go | 14 +- models/physical_address_type.go | 43 - models/planner_archival_info.go | 219 +++++ models/planner_bucket.go | 72 ++ models/planner_bucket_creation.go | 14 +- ...er_bucket_creation_creation_source_kind.go | 0 models/planner_container_type.go | 49 -- models/planner_creation_source_kind.go | 43 - models/planner_external_task_source.go | 14 +- ..._external_task_source_display_link_type.go | 0 ...anner_external_task_source_display_type.go | 40 - models/planner_forms_dictionary.go | 39 + models/planner_forms_requirement.go | 152 ++++ models/planner_plan.go | 72 ++ models/planner_plan_container.go | 14 +- models/planner_plan_container_type.go | 0 models/planner_plan_creation.go | 14 +- ...nner_plan_creation_creation_source_kind.go | 0 models/planner_preview_type.go | 46 - models/planner_property_rule.go | 14 +- models/planner_property_rule_rule_kind.go | 0 models/planner_rule_kind.go | 43 - models/planner_task.go | 172 +++- ...ner_task_completion_requirement_details.go | 36 + .../planner_task_completion_requirements.go | 50 -- models/planner_task_creation.go | 14 +- ...nner_task_creation_creation_source_kind.go | 0 models/planner_task_details.go | 50 +- models/planner_task_details_preview_type.go | 0 models/planner_task_preview_type.go | 0 models/planner_task_property_rule.go | 36 + ..._task_specified_completion_requirements.go | 0 ...atform_credential_authentication_method.go | 28 +- ...tial_authentication_method_key_strength.go | 0 ...edential_authentication_method_platform.go | 0 models/play_prompt_completion_reason.go | 43 - models/play_prompt_operation.go | 14 +- ...play_prompt_operation_completion_reason.go | 0 models/policy_scope.go | 43 - models/positive_reinforcement_notification.go | 14 +- ...cement_notification_delivery_preference.go | 0 models/post.go | 14 +- models/post_importance.go | 0 models/post_type.go | 43 - models/print_color_mode.go | 46 - models/print_duplex_mode.go | 43 - models/print_job_configuration.go | 116 +-- models/print_job_configuration_color_mode.go | 0 models/print_job_configuration_duplex_mode.go | 0 ...rint_job_configuration_feed_orientation.go | 0 models/print_job_configuration_finishings.go | 0 ...rint_job_configuration_multipage_layout.go | 0 models/print_job_configuration_orientation.go | 0 models/print_job_configuration_quality.go | 0 models/print_job_configuration_scaling.go | 0 models/print_job_status.go | 14 +- models/print_job_status_processing_state.go | 0 models/print_multipage_layout.go | 58 -- models/print_scaling.go | 49 -- models/printer_capabilities.go | 162 ++-- models/printer_capabilities_color_modes.go | 0 models/printer_capabilities_duplex_modes.go | 0 .../printer_capabilities_feed_directions.go | 0 .../printer_capabilities_feed_orientations.go | 0 models/printer_capabilities_finishings.go | 0 .../printer_capabilities_multipage_layouts.go | 0 models/printer_capabilities_orientations.go | 0 models/printer_capabilities_qualities.go | 0 models/printer_capabilities_scalings.go | 0 models/printer_defaults.go | 158 ++-- models/printer_defaults_color_mode.go | 0 .../printer_defaults_duplex_configuration.go | 0 models/printer_defaults_duplex_mode.go | 0 models/printer_defaults_finishings.go | 0 models/printer_defaults_multipage_layout.go | 0 models/printer_defaults_orientation.go | 0 ...printer_defaults_presentation_direction.go | 0 ...nter_defaults_print_color_configuration.go | 0 models/printer_defaults_print_quality.go | 0 models/printer_defaults_quality.go | 0 models/printer_defaults_scaling.go | 0 models/printer_document_configuration.go | 130 +-- ...inter_document_configuration_color_mode.go | 0 ...nter_document_configuration_duplex_mode.go | 0 ...r_document_configuration_feed_direction.go | 0 ...document_configuration_feed_orientation.go | 0 ...inter_document_configuration_finishings.go | 0 ...document_configuration_multipage_layout.go | 0 ...nter_document_configuration_orientation.go | 0 .../printer_document_configuration_quality.go | 0 .../printer_document_configuration_scaling.go | 0 models/printer_feed_direction.go | 37 - models/printer_feed_orientation.go | 37 - models/priority.go | 40 - models/private_network_destination_type.go | 49 -- models/private_network_protocol.go | 50 -- ...ileged_access_group_assignment_schedule.go | 42 +- ...ess_group_assignment_schedule_access_id.go | 0 ...oup_assignment_schedule_assignment_type.go | 0 ...cess_group_assignment_schedule_instance.go | 42 +- ..._assignment_schedule_instance_access_id.go | 0 ...nment_schedule_instance_assignment_type.go | 0 ...ssignment_schedule_instance_member_type.go | 0 ...s_group_assignment_schedule_member_type.go | 0 ...ccess_group_assignment_schedule_request.go | 14 +- ...p_assignment_schedule_request_access_id.go | 0 ...privileged_access_group_assignment_type.go | 40 - ...leged_access_group_eligibility_schedule.go | 28 +- ...ss_group_eligibility_schedule_access_id.go | 0 ...ess_group_eligibility_schedule_instance.go | 28 +- ...eligibility_schedule_instance_access_id.go | 0 ...igibility_schedule_instance_member_type.go | 0 ..._group_eligibility_schedule_member_type.go | 0 ...cess_group_eligibility_schedule_request.go | 14 +- ..._eligibility_schedule_request_access_id.go | 0 models/privileged_access_group_member_type.go | 40 - .../privileged_access_group_relationships.go | 40 - models/privileged_access_schedule_request.go | 14 +- ...ivileged_access_schedule_request_action.go | 0 models/privileged_approval.go | 14 +- models/privileged_approval_approval_state.go | 0 models/privileged_role_summary.go | 14 +- models/privileged_role_summary_status.go | 0 models/privileged_signup_status.go | 14 +- models/privileged_signup_status_status.go | 0 models/process.go | 14 +- models/process_integrity_level.go | 52 -- models/prompt_login_behavior.go | 43 - models/property.go | 18 +- models/property_labels.go | 0 models/protect_group.go | 14 +- models/protect_group_privacy.go | 0 models/protect_online_meeting_action.go | 28 +- ...nline_meeting_action_allowed_forwarders.go | 0 ...nline_meeting_action_allowed_presenters.go | 0 models/protect_site.go | 14 +- models/protect_site_access_type.go | 0 models/protocol_type.go | 65 -- models/provisioning_action.go | 52 -- models/provisioning_error_info.go | 14 +- .../provisioning_error_info_error_category.go | 0 models/provisioning_object_summary.go | 14 +- ...ning_object_summary_provisioning_action.go | 0 models/provisioning_result.go | 46 - models/provisioning_status_error_category.go | 43 - models/provisioning_status_info.go | 14 +- models/provisioning_status_info_status.go | 0 models/provisioning_step.go | 28 +- ...rovisioning_step_provisioning_step_type.go | 0 models/provisioning_step_status.go | 0 models/provisioning_step_type.go | 52 -- models/publication_facet.go | 4 +- models/recent_notebook.go | 14 +- models/recent_notebook_source_service.go | 0 models/recipient_scope_type.go | 56 -- models/recommendation_base.go | 32 +- models/recommendation_base_feature_areas.go | 0 ...recommendation_base_recommendation_type.go | 0 models/recommendation_feature_areas.go | 55 -- models/recommendation_type.go | 142 ---- models/record_completion_reason.go | 58 -- models/record_operation.go | 14 +- models/record_operation_completion_reason.go | 0 models/recurrence_pattern.go | 60 +- models/recurrence_pattern_days_of_week.go | 0 .../recurrence_pattern_first_day_of_week.go | 0 models/recurrence_pattern_index.go | 0 models/recurrence_pattern_type.go | 49 -- models/recurrence_range.go | 14 +- models/recurrence_range_type.go | 40 - models/reference_attachment.go | 28 +- models/reference_attachment_permission.go | 52 -- models/reference_attachment_provider.go | 43 - models/reference_attachment_provider_type.go | 0 models/registry_hive.go | 58 -- models/registry_key_state.go | 42 +- models/registry_key_state_hive.go | 0 models/registry_key_state_operation.go | 0 models/registry_key_state_value_type.go | 0 models/registry_operation.go | 46 - models/registry_value_type.go | 70 -- models/reject_reason.go | 43 - models/related_person.go | 14 +- models/related_person_relationship.go | 0 models/remind_before_time_in_minutes_type.go | 37 - models/reply_restriction.go | 40 - models/request_signature_verification.go | 14 +- ...re_verification_allowed_weak_algorithms.go | 0 models/requirement_provider.go | 94 --- models/response_status.go | 14 +- models/response_status_response.go | 0 models/response_type.go | 49 -- models/retention_label_settings.go | 37 + ...ttings_behavior_during_retention_period.go | 0 models/risk_detail.go | 76 -- models/risk_detection.go | 98 +-- models/risk_detection_activity.go | 0 .../risk_detection_detection_timing_type.go | 0 models/risk_detection_risk_detail.go | 0 models/risk_detection_risk_level.go | 0 models/risk_detection_risk_state.go | 0 models/risk_detection_risk_type.go | 0 models/risk_detection_timing_type.go | 46 - models/risk_detection_token_issuer_type.go | 0 models/risk_event_type.go | 76 -- models/risk_service_principal_activity.go | 14 +- .../risk_service_principal_activity_detail.go | 0 models/risk_state.go | 52 -- models/risk_user_activity.go | 32 +- models/risk_user_activity_detail.go | 0 models/risk_user_activity_event_types.go | 0 models/risky_service_principal.go | 42 +- models/risky_service_principal_risk_detail.go | 0 models/risky_service_principal_risk_level.go | 0 models/risky_service_principal_risk_state.go | 0 models/risky_user.go | 42 +- models/risky_user_risk_detail.go | 0 models/risky_user_risk_level.go | 0 models/risky_user_risk_state.go | 0 models/role_summary_status.go | 37 - models/room.go | 14 +- models/room_booking_type.go | 0 models/routing_policy.go | 49 -- models/rule_mode.go | 46 - models/saml_or_ws_fed_provider.go | 14 +- ...vider_preferred_authentication_protocol.go | 0 models/schedule.go | 28 +- models/schedule_change_request.go | 28 +- models/schedule_change_request_actor.go | 46 - models/schedule_change_request_assigned_to.go | 0 models/schedule_change_request_state.go | 0 models/schedule_change_state.go | 43 - models/schedule_item.go | 14 +- models/schedule_item_status.go | 0 models/schedule_provision_status.go | 0 models/schedule_request_actions.go | 61 -- models/schedule_start_day_of_week.go | 0 models/search/answer_variant.go | 15 +- models/search/answer_variant_platform.go | 0 models/search_alteration_type.go | 40 - models/search_content.go | 50 -- models/search_request.go | 18 +- models/search_request_entity_types.go | 0 models/section_emphasis_type.go | 46 - .../security/action_after_retention_period.go | 46 - models/security/additional_data_options.go | 50 -- models/security/additional_options.go | 62 -- models/security/alert.go | 42 +- models/security/alert_classification.go | 46 - models/security/alert_detection_source.go | 0 models/security/alert_determination.go | 79 -- models/security/audit_log_query.go | 32 +- .../audit_log_query_record_type_filters.go | 0 models/security/audit_log_query_status.go | 49 -- models/security/audit_log_record.go | 28 +- .../audit_log_record_audit_log_record_type.go | 0 models/security/audit_log_record_type.go | 790 ------------------ models/security/audit_log_record_user_type.go | 0 models/security/audit_log_user_type.go | 67 -- .../behavior_during_retention_period.go | 46 - models/security/case_action.go | 64 -- models/security/case_escaped.go | 14 +- models/security/case_operation.go | 28 +- models/security/case_operation_action.go | 0 models/security/case_operation_status.go | 52 -- models/security/case_status.go | 52 -- models/security/child_selectability.go | 40 - models/security/container_port_protocol.go | 43 - models/security/content_format.go | 43 - models/security/cvss_summary.go | 14 +- models/security/cvss_summary_severity.go | 0 models/security/data_source.go | 14 +- models/security/data_source_container.go | 28 +- .../data_source_container_hold_status.go | 0 .../security/data_source_container_status.go | 40 - models/security/data_source_hold_status.go | 49 -- models/security/data_source_scopes.go | 59 -- models/security/default_record_behavior.go | 40 - models/security/defender_av_status.go | 52 -- models/security/detection_source.go | 136 --- models/security/detection_status.go | 43 - models/security/device_evidence.go | 56 +- .../device_evidence_defender_av_status.go | 0 .../security/device_evidence_health_status.go | 0 .../device_evidence_onboarding_status.go | 0 models/security/device_evidence_risk_score.go | 0 models/security/device_health_status.go | 52 -- models/security/device_risk_score.go | 49 -- .../security/ediscovery_export_operation.go | 28 +- ...scovery_export_operation_export_options.go | 0 ...overy_export_operation_export_structure.go | 0 models/security/ediscovery_review_tag.go | 14 +- ...iscovery_review_tag_child_selectability.go | 0 models/security/ediscovery_search.go | 14 +- .../ediscovery_search_data_source_scopes.go | 0 .../ediscovery_search_export_operation.go | 56 +- ...rch_export_operation_additional_options.go | 0 ...search_export_operation_export_criteria.go | 0 ...y_search_export_operation_export_format.go | 0 ...search_export_operation_export_location.go | 0 models/security/email_threat_submission.go | 14 +- ...ail_threat_submission_original_category.go | 0 models/security/event_propagation_result.go | 14 +- .../event_propagation_result_status.go | 0 models/security/event_propagation_status.go | 46 - models/security/event_query.go | 14 +- models/security/event_query_query_type.go | 0 models/security/event_status_type.go | 46 - models/security/export_criteria.go | 50 -- models/security/export_file_structure.go | 43 - models/security/export_format.go | 43 - models/security/export_location.go | 50 -- models/security/export_options.go | 59 -- models/security/file.go | 28 +- models/security/file_evidence.go | 14 +- .../file_evidence_detection_status.go | 0 models/security/file_processing_status.go | 88 -- models/security/file_source_type.go | 0 models/security/formatted_content.go | 14 +- models/security/formatted_content_format.go | 0 models/security/google_cloud_location_type.go | 46 - .../google_cloud_resource_evidence.go | 14 +- ...e_cloud_resource_evidence_location_type.go | 0 models/security/host_port.go | 28 +- models/security/host_port_protocol.go | 40 - models/security/host_port_status.go | 43 - models/security/hunting_rule_error_code.go | 58 -- models/security/hunting_rule_run_status.go | 46 - models/security/incident.go | 28 +- models/security/incident_classification.go | 0 models/security/incident_determination.go | 0 .../security/kubernetes_cluster_evidence.go | 14 +- .../kubernetes_cluster_evidence_platform.go | 0 models/security/kubernetes_platform.go | 49 -- models/security/kubernetes_service_port.go | 14 +- .../kubernetes_service_port_protocol.go | 0 .../security/long_running_operation_status.go | 49 -- models/security/onboarding_status.go | 46 - models/security/policy_base.go | 14 +- models/security/policy_base_status.go | 0 models/security/policy_status.go | 43 - models/security/process_evidence.go | 14 +- .../process_evidence_detection_status.go | 0 models/security/purge_areas.go | 50 -- models/security/purge_type.go | 40 - models/security/query_type.go | 40 - models/security/retention_event_status.go | 14 +- .../security/retention_event_status_status.go | 0 models/security/retention_label.go | 56 +- ...ion_label_action_after_retention_period.go | 0 ..._label_behavior_during_retention_period.go | 0 ...retention_label_default_record_behavior.go | 0 .../retention_label_retention_trigger.go | 0 models/security/retention_trigger.go | 46 - models/security/run_details.go | 28 +- models/security/run_details_error_code.go | 0 models/security/run_details_status.go | 0 models/security/source_type.go | 50 -- models/security/submission_admin_review.go | 14 +- .../submission_admin_review_review_result.go | 0 models/security/submission_client_source.go | 40 - models/security/submission_content_type.go | 46 - models/security/submission_result.go | 42 +- models/security/submission_result_category.go | 61 -- models/security/submission_result_detail.go | 193 ----- .../submission_result_user_mailbox_setting.go | 0 models/security/submission_source.go | 40 - .../tenant_allow_block_list_action.go | 40 - .../tenant_allow_block_list_entry_result.go | 28 +- ...llow_block_list_entry_result_entry_type.go | 0 ...nt_allow_block_list_entry_result_status.go | 0 .../tenant_allow_block_list_entry_type.go | 46 - .../tenant_allow_or_block_list_action.go | 14 +- ...enant_allow_or_block_list_action_action.go | 0 models/security/threat_submission.go | 56 +- .../threat_submission_client_source.go | 0 .../threat_submission_content_type.go | 0 models/security/threat_submission_source.go | 0 models/security/threat_submission_status.go | 0 models/security/unified_group_source.go | 14 +- .../unified_group_source_included_sources.go | 0 models/security/user_mailbox_setting.go | 98 --- models/security/user_source.go | 14 +- .../security/user_source_included_sources.go | 0 models/security_action.go | 14 +- models/security_action_state.go | 14 +- models/security_action_state_status.go | 0 models/security_action_status.go | 0 models/security_network_protocol.go | 103 --- models/security_resource.go | 14 +- models/security_resource_resource_type.go | 0 models/security_resource_type.go | 43 - models/send_dtmf_completion_reason.go | 43 - models/send_dtmf_tones_operation.go | 14 +- ..._dtmf_tones_operation_completion_reason.go | 0 models/sensitive_type.go | 42 +- .../sensitive_type_classification_method.go | 0 models/sensitive_type_scope.go | 47 -- .../sensitive_type_sensitive_type_source.go | 0 models/sensitive_type_source.go | 37 - models/sensitivity.go | 43 - models/sensitivity_label.go | 28 +- models/sensitivity_label_applicable_to.go | 0 models/sensitivity_label_application_mode.go | 0 models/sensitivity_label_target.go | 56 -- models/sensitivity_policy_settings.go | 14 +- ...nsitivity_policy_settings_applicable_to.go | 0 models/service_health_issue_post.go | 14 +- models/service_health_issue_post_post_type.go | 0 models/service_principal_risk_detection.go | 84 +- ...rvice_principal_risk_detection_activity.go | 0 ...al_risk_detection_detection_timing_type.go | 0 ...ce_principal_risk_detection_risk_detail.go | 0 ...ice_principal_risk_detection_risk_level.go | 0 ...ice_principal_risk_detection_risk_state.go | 0 ...ncipal_risk_detection_token_issuer_type.go | 0 models/session_lifetime_policy.go | 14 +- ..._lifetime_policy_expiration_requirement.go | 0 models/setup_status.go | 55 -- models/share_point_one_drive_options.go | 14 +- ...point_one_drive_options_include_content.go | 0 models/sharepoint_settings.go | 42 +- ...harepoint_settings_image_tagging_option.go | 0 .../sharepoint_settings_sharing_capability.go | 0 ...ettings_sharing_domain_restriction_mode.go | 0 models/sharing_capabilities.go | 46 - models/sharing_domain_restriction_mode.go | 43 - models/shift_work_cloud_pc_access_state.go | 52 -- models/sign_in.go | 210 ++--- models/sign_in_access_type.go | 62 -- models/sign_in_app_token_protection_status.go | 0 models/sign_in_authentication_protocol.go | 0 models/sign_in_client_credential_type.go | 0 models/sign_in_conditional_access_status.go | 0 models/sign_in_cross_tenant_access_type.go | 0 .../sign_in_frequency_authentication_type.go | 40 - models/sign_in_frequency_interval.go | 40 - models/sign_in_frequency_session_control.go | 42 +- ...ncy_session_control_authentication_type.go | 0 ...ency_session_control_frequency_interval.go | 0 .../sign_in_frequency_session_control_type.go | 0 models/sign_in_identifier_type.go | 49 -- models/sign_in_incoming_token_type.go | 0 models/sign_in_original_transfer_method.go | 0 models/sign_in_preferences.go | 14 +- ...red_method_for_secondary_authentication.go | 0 models/sign_in_risk_detail.go | 0 models/sign_in_risk_level_aggregated.go | 0 models/sign_in_risk_level_during_sign_in.go | 0 models/sign_in_risk_state.go | 0 models/sign_in_sign_in_identifier_type.go | 0 ...sign_in_sign_in_token_protection_status.go | 0 models/sign_in_token_issuer_type.go | 0 models/sign_in_user_type.go | 40 - models/signin_frequency_type.go | 37 - models/simulation.go | 56 +- models/simulation_attack_technique.go | 55 -- models/simulation_attack_type.go | 46 - models/simulation_automation.go | 14 +- models/simulation_automation_run.go | 14 +- models/simulation_automation_run_status.go | 49 -- models/simulation_automation_status.go | 49 -- models/simulation_content_status.go | 49 -- models/simulation_notification.go | 14 +- ...lation_notification_targetted_user_type.go | 0 .../simulation_payload_delivery_platform.go | 0 models/simulation_status.go | 58 -- models/single_sign_on_mode.go | 52 -- models/site_access_type.go | 40 - models/site_page.go | 14 +- models/site_page_promotion_kind.go | 0 models/skill_proficiency.go | 14 +- models/skill_proficiency_level.go | 49 -- models/skill_proficiency_proficiency.go | 0 models/standard_time_zone_offset.go | 14 +- .../standard_time_zone_offset_day_of_week.go | 0 models/status.go | 46 - models/status_base.go | 14 +- models/status_base_status.go | 0 models/status_details.go | 14 +- models/status_details_error_category.go | 0 models/subject_rights_request.go | 42 +- ...ubject_rights_request_data_subject_type.go | 0 models/subject_rights_request_history.go | 28 +- .../subject_rights_request_history_stage.go | 0 ...ect_rights_request_history_stage_status.go | 0 models/subject_rights_request_stage.go | 55 -- models/subject_rights_request_stage_detail.go | 28 +- ...bject_rights_request_stage_detail_stage.go | 0 ...ject_rights_request_stage_detail_status.go | 0 models/subject_rights_request_stage_status.go | 46 - models/subject_rights_request_status.go | 40 - models/subject_rights_request_type.go | 46 - .../synchronization_job_restart_criteria.go | 14 +- ...zation_job_restart_criteria_reset_scope.go | 0 models/synchronization_job_restart_scope.go | 62 -- models/synchronization_metadata.go | 58 -- models/synchronization_metadata_entry.go | 14 +- models/synchronization_metadata_entry_key.go | 0 models/target_resource.go | 14 +- models/target_resource_group_type.go | 0 models/targetted_user_type.go | 46 - models/team.go | 28 +- models/team_fun_settings.go | 14 +- .../team_fun_settings_giphy_content_rating.go | 0 models/team_specialization.go | 55 -- models/team_template_audience.go | 43 - models/team_template_definition.go | 14 +- models/team_template_definition_audience.go | 0 models/team_visibility.go | 0 models/teams_app.go | 14 +- models/teams_app_definition.go | 28 +- ..._definition_allowed_installation_scopes.go | 0 .../teams_app_definition_publishing_state.go | 0 models/teams_app_distribution_method.go | 43 - models/teams_app_installation_scopes.go | 53 -- models/teams_app_publishing_state.go | 43 - .../teams_app_resource_specific_permission.go | 14 +- ...rce_specific_permission_permission_type.go | 0 ...s_app_resource_specific_permission_type.go | 40 - models/teams_async_operation_type.go | 8 +- models/teams_licensing_details.go | 75 ++ models/teamwork.go | 72 ++ models/teamwork_account_configuration.go | 14 +- ..._account_configuration_supported_client.go | 0 models/teamwork_activity_topic.go | 14 +- models/teamwork_activity_topic_source.go | 37 - models/teamwork_application_identity.go | 14 +- ...tion_identity_application_identity_type.go | 0 models/teamwork_application_identity_type.go | 49 -- models/teamwork_call_event_type.go | 43 - models/teamwork_connection.go | 14 +- .../teamwork_connection_connection_status.go | 0 models/teamwork_connection_status.go | 43 - models/teamwork_conversation_identity.go | 14 +- ...ion_identity_conversation_identity_type.go | 0 models/teamwork_conversation_identity_type.go | 43 - models/teamwork_device.go | 28 +- models/teamwork_device_activity_state.go | 46 - models/teamwork_device_health_status.go | 49 -- models/teamwork_software_freshness.go | 43 - models/teamwork_software_update_status.go | 14 +- ...ftware_update_status_software_freshness.go | 0 models/teamwork_supported_client.go | 49 -- models/teamwork_tag.go | 14 +- models/teamwork_tag_tag_type.go | 0 models/teamwork_tag_type.go | 37 - models/teamwork_user_identity.go | 14 +- models/teamwork_user_identity_type.go | 61 -- ...amwork_user_identity_user_identity_type.go | 0 models/tenant_setup_info.go | 14 +- models/tenant_setup_info_setup_status.go | 0 models/termstore/group.go | 14 +- models/termstore/group_scope.go | 0 models/termstore/relation.go | 14 +- models/termstore/relation_relationship.go | 0 models/termstore/relation_type.go | 37 - models/termstore/term_group_scope.go | 40 - models/text_classification_request.go | 28 +- ...ion_request_match_tolerances_to_include.go | 0 ...xt_classification_request_scopes_to_run.go | 0 models/threat_assessment_content_type.go | 40 - models/threat_assessment_request.go | 42 +- .../threat_assessment_request_content_type.go | 0 ...hreat_assessment_request_request_source.go | 0 models/threat_assessment_request_source.go | 40 - models/threat_assessment_request_status.go | 0 models/threat_assessment_result.go | 14 +- .../threat_assessment_result_result_type.go | 0 models/threat_assessment_result_type.go | 40 - models/threat_assessment_status.go | 37 - models/ti_action.go | 46 - models/ti_indicator.go | 56 +- models/ti_indicator_action.go | 0 models/ti_indicator_diamond_model.go | 0 models/ti_indicator_file_hash_type.go | 0 models/ti_indicator_tlp_level.go | 0 models/time_card.go | 28 +- models/time_card_confirmed_by.go | 0 models/time_card_state.go | 43 - models/time_constraint.go | 14 +- models/time_constraint_activity_domain.go | 0 models/time_off_reason.go | 14 +- models/time_off_reason_icon_type.go | 97 --- models/title_area.go | 28 +- models/title_area_layout.go | 0 models/title_area_layout_type.go | 46 - models/title_area_text_alignment.go | 0 models/title_area_text_alignment_type.go | 40 - models/tlp_level.go | 49 -- models/token_issuer_type.go | 49 -- models/token_protection_status.go | 43 - models/training.go | 42 +- models/training_assigned_to.go | 55 -- models/training_availability_status.go | 49 -- models/training_completion_duration.go | 43 - models/training_reminder_notification.go | 14 +- ...eminder_notification_delivery_frequency.go | 0 models/training_setting.go | 14 +- models/training_setting_setting_type.go | 0 models/training_setting_type.go | 46 - models/training_source.go | 0 models/training_status.go | 49 -- models/training_type.go | 40 - models/translation_behavior.go | 40 - models/translation_language_override.go | 14 +- ..._language_override_translation_behavior.go | 0 models/translation_preferences.go | 14 +- ...lation_preferences_translation_behavior.go | 0 models/typed_email_address.go | 14 +- models/typed_email_address_type.go | 0 models/unified_role_definition.go | 14 +- ...role_definition_allowed_principal_types.go | 0 ...nified_role_management_alert_definition.go | 14 +- ...agement_alert_definition_severity_level.go | 0 models/user_account.go | 14 +- models/user_account_security_type.go | 46 - models/user_account_status.go | 0 models/user_activity.go | 14 +- models/user_activity_status.go | 0 models/user_default_authentication_method.go | 55 -- ...user_default_authentication_method_type.go | 52 -- ..._sign_in_recommendation_insight_setting.go | 14 +- ...mendation_insight_setting_sign_in_scope.go | 0 models/user_new_message_restriction.go | 43 - models/user_purpose.go | 55 -- models/user_registration_details.go | 42 +- ...registration_details_default_mfa_method.go | 0 ...red_method_for_secondary_authentication.go | 0 models/user_registration_details_user_type.go | 0 models/user_registration_feature_summary.go | 28 +- ...registration_feature_summary_user_roles.go | 0 ...registration_feature_summary_user_types.go | 0 models/user_registration_method_summary.go | 28 +- ..._registration_method_summary_user_roles.go | 0 ..._registration_method_summary_user_types.go | 0 models/user_security_state.go | 42 +- models/user_security_state_email_role.go | 0 models/user_security_state_logon_type.go | 0 .../user_security_state_user_account_type.go | 0 models/user_sign_in_recommendation_scope.go | 40 - models/user_teamwork.go | 72 ++ models/user_training_event_info.go | 14 +- ...ining_event_info_latest_training_status.go | 0 models/user_training_status_info.go | 14 +- ...er_training_status_info_training_status.go | 0 models/user_type.go | 40 - models/username_source.go | 43 - models/vertical_section.go | 14 +- models/vertical_section_emphasis.go | 0 models/virtual_appointment_sms_type.go | 43 - models/virtual_event.go | 30 +- ...tual_event_attendee_registration_status.go | 49 -- models/virtual_event_registration.go | 14 +- ...ual_event_registration_custom_question.go} | 44 +- ...ation_custom_question_answer_input_type.go | 0 ..._event_registration_predefined_question.go | 14 +- ..._registration_predefined_question_label.go | 58 -- ...registration_question_answer_input_type.go | 49 -- ...irtual_event_registration_question_base.go | 4 +- models/virtual_event_registration_status.go | 0 models/virtual_event_status.go | 43 - models/virtual_event_townhall.go | 14 +- models/virtual_event_townhall_audience.go | 0 models/virtual_event_webinar.go | 14 +- models/virtual_event_webinar_audience.go | 0 models/volume_type.go | 43 - models/vpn_dead_peer_detection_rate.go | 47 -- models/vpn_encryption_algorithm_type.go | 67 -- models/vpn_integrity_algorithm_type.go | 55 -- models/vpn_provider_type.go | 43 - models/vpn_server_certificate_type.go | 47 -- models/vpn_service_exception_action.go | 43 - models/weak_algorithms.go | 47 -- models/website.go | 14 +- models/website_type.go | 46 - models/week_index.go | 46 - models/wi_fi_authentication_method.go | 43 - models/wifi_authentication_type.go | 51 -- .../win32_lob_app_power_shell_script_rule.go | 14 +- ..._power_shell_script_rule_run_as_account.go | 0 ...ows10_endpoint_protection_configuration.go | 84 +- ...onfiguration_defender_cloud_block_level.go | 0 ...efender_potentially_unwanted_app_action.go | 0 ...n_configuration_defender_scan_direction.go | 0 ...ection_configuration_defender_scan_type.go | 0 ...nfiguration_defender_scheduled_scan_day.go | 0 ...on_defender_submit_samples_consent_type.go | 0 models/windows10_general_configuration.go | 28 +- ...efender_potentially_unwanted_app_action.go | 0 ...on_defender_submit_samples_consent_type.go | 0 models/windows10_pkcs_certificate_profile.go | 14 +- ...s_certificate_profile_certificate_store.go | 0 models/windows10_vpn_configuration.go | 14 +- ...dows10_vpn_configuration_profile_target.go | 0 models/windows10_vpn_profile_target.go | 43 - .../windows81_s_c_e_p_certificate_profile.go | 14 +- ...p_certificate_profile_certificate_store.go | 0 models/windows_certificate_profile_base.go | 14 +- ...file_base_subject_alternative_name_type.go | 0 models/windows_defender_product_status.go | 145 ---- models/windows_device_health_state.go | 65 -- models/windows_device_malware_state.go | 70 +- .../windows_device_malware_state_category.go | 0 ...ws_device_malware_state_execution_state.go | 0 .../windows_device_malware_state_severity.go | 0 models/windows_device_malware_state_state.go | 0 ...ndows_device_malware_state_threat_state.go | 0 ...ello_for_business_authentication_method.go | 14 +- ...ness_authentication_method_key_strength.go | 0 models/windows_malware_information.go | 28 +- .../windows_malware_information_category.go | 0 .../windows_malware_information_severity.go | 0 models/windows_malware_state.go | 83 -- models/windows_managed_app_protection.go | 14 +- ...p_action_if_unable_to_authenticate_user.go | 0 ...phone_e_a_s_email_profile_configuration.go | 14 +- ...file_configuration_email_address_source.go | 0 models/windows_protection_state.go | 28 +- .../windows_protection_state_device_state.go | 0 ...windows_protection_state_product_status.go | 0 ...universal_app_x_app_assignment_settings.go | 4 +- ...ndows_update_for_business_configuration.go | 14 +- ...for_business_configuration_update_weeks.go | 0 ...indows_update_for_business_update_weeks.go | 69 -- models/windows_wifi_configuration.go | 42 +- ..._configuration_metered_connection_limit.go | 0 ...indows_wifi_configuration_proxy_setting.go | 0 ...s_wifi_configuration_wifi_security_type.go | 0 ...ows_wifi_enterprise_e_a_p_configuration.go | 56 +- ...a_p_configuration_authentication_method.go | 0 ...e_a_p_configuration_authentication_type.go | 0 ...thentication_protocol_for_e_a_p_t_t_l_s.go | 0 ..._p_configuration_network_single_sign_on.go | 0 models/windows_wired_network_configuration.go | 56 +- ...ork_configuration_authentication_method.go | 0 ...twork_configuration_authentication_type.go | 0 ...thentication_protocol_for_e_a_p_t_t_l_s.go | 0 ...uration_secondary_authentication_method.go | 0 models/windowsupdates/cve_severity_level.go | 43 - models/windowsupdates/monitoring_action.go | 43 - models/windowsupdates/monitoring_rule.go | 28 +- .../windowsupdates/monitoring_rule_action.go | 0 .../windowsupdates/monitoring_rule_signal.go | 0 models/windowsupdates/monitoring_signal.go | 40 - .../windowsupdates/quality_update_cadence.go | 40 - .../quality_update_catalog_entry.go | 14 +- ...te_catalog_entry_quality_update_cadence.go | 0 ...quality_update_cve_severity_information.go | 14 +- ...e_cve_severity_information_max_severity.go | 0 models/windowsupdates/resource_connection.go | 14 +- .../resource_connection_state.go | 43 - models/windowsupdates/safeguard_category.go | 37 - models/windowsupdates/safeguard_profile.go | 14 +- .../safeguard_profile_category.go | 0 models/wired_network_authentication_method.go | 47 -- models/wired_network_authentication_type.go | 55 -- models/workforce_integration.go | 42 +- ..._eligibility_filtering_enabled_entities.go | 0 models/workforce_integration_encryption.go | 14 +- ...rkforce_integration_encryption_protocol.go | 37 - ...orkforce_integration_supported_entities.go | 77 -- models/workforce_integration_supports.go | 0 models/working_hours.go | 18 +- models/working_hours_days_of_week.go | 0 models/x509_certificate_affinity_level.go | 40 - .../x509_certificate_authentication_mode.go | 40 - ...icate_authentication_mode_configuration.go | 28 +- ...certificate_authentication_default_mode.go | 0 ...ificate_default_required_affinity_level.go | 0 ..._certificate_issuer_hints_configuration.go | 14 +- ...ficate_issuer_hints_configuration_state.go | 0 models/x509_certificate_issuer_hints_state.go | 40 - models/x509_certificate_rule.go | 42 +- models/x509_certificate_rule_type.go | 43 - ...le_x509_certificate_authentication_mode.go | 0 ...509_certificate_required_affinity_level.go | 0 ...ificate_rule_x509_certificate_rule_type.go | 0 models/x509_certificate_user_binding.go | 14 +- ...icate_user_binding_trust_affinity_level.go | 0 .../item_connector_groups_request_builder.go | 6 +- .../plans_item_archive_post_request_body.go | 110 +++ planner/plans_item_archive_request_builder.go | 66 ++ .../plans_item_unarchive_post_request_body.go | 110 +++ .../plans_item_unarchive_request_builder.go | 66 ++ ...plans_planner_plan_item_request_builder.go | 8 + ..._allowed_combinations_post_request_body.go | 43 - ..._post_request_body_allowed_combinations.go | 0 .../risk_detections_request_builder.go | 8 +- ...st_request_body_additional_data_options.go | 0 ...export_post_request_body_export_options.go | 0 ...port_post_request_body_export_structure.go | 0 ...export_post_request_body_export_options.go | 0 ...port_post_request_body_export_structure.go | 0 ...rt_post_request_body_additional_options.go | 0 ...eport_post_request_body_export_criteria.go | 0 ...eport_post_request_body_export_location.go | 0 ...lt_post_request_body_additional_options.go | 0 ...esult_post_request_body_export_criteria.go | 0 ..._result_post_request_body_export_format.go | 0 ...esult_post_request_body_export_location.go | 0 ...urge_data_post_request_body_purge_areas.go | 0 ...purge_data_post_request_body_purge_type.go | 0 ...set_add_to_review_set_post_request_body.go | 37 - ...ecurity_export_export_post_request_body.go | 75 -- ...ecurity_export_export_post_request_body.go | 75 -- ..._report_export_report_post_request_body.go | 112 --- ..._result_export_result_post_request_body.go | 149 ---- ...purge_data_purge_data_post_request_body.go | 75 -- ...teams_licensing_details_request_builder.go | 66 ++ .../item_license_details_request_builder.go | 4 + ...tems_item_create_link_post_request_body.go | 36 + ...tems_item_create_link_post_request_body.go | 36 + sites/sites_request_builder.go | 8 +- ..._events_item_presenters_request_builder.go | 6 +- ...al_event_presenter_item_request_builder.go | 6 +- ...ts_events_item_sessions_request_builder.go | 6 +- ...tual_event_session_item_request_builder.go | 6 +- ...wnhalls_item_presenters_request_builder.go | 6 +- ...al_event_presenter_item_request_builder.go | 6 +- ...townhalls_item_sessions_request_builder.go | 6 +- ...tual_event_session_item_request_builder.go | 6 +- ...ebinars_item_presenters_request_builder.go | 6 +- ...al_event_presenter_item_request_builder.go | 6 +- ..._webinars_item_sessions_request_builder.go | 6 +- ...tual_event_session_item_request_builder.go | 6 +- ...virtual_events_webinars_request_builder.go | 6 +- ...m_channels_channel_item_request_builder.go | 8 + ...channels_item_archive_post_request_body.go | 110 +++ ...m_channels_item_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- ...channels_item_unarchive_request_builder.go | 62 ++ ...imary_channel_archive_post_request_body.go | 110 +++ ...primary_channel_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- teams/item_primary_channel_request_builder.go | 8 + ...imary_channel_unarchive_request_builder.go | 62 ++ ...n_channels_channel_item_request_builder.go | 8 + ...channels_item_archive_post_request_body.go | 110 +++ ...n_channels_item_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- ...channels_item_unarchive_request_builder.go | 62 ++ ...imary_channel_archive_post_request_body.go | 110 +++ ...primary_channel_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- ...inition_primary_channel_request_builder.go | 8 + ...imary_channel_unarchive_request_builder.go | 62 ++ ...m_channels_channel_item_request_builder.go | 8 + ...channels_item_archive_post_request_body.go | 110 +++ ...m_channels_item_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- ...channels_item_unarchive_request_builder.go | 62 ++ ...n_channels_channel_item_request_builder.go | 8 + ...channels_item_archive_post_request_body.go | 110 +++ ...n_channels_item_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- ...channels_item_unarchive_request_builder.go | 62 ++ ...imary_channel_archive_post_request_body.go | 110 +++ ...primary_channel_archive_request_builder.go | 66 ++ ...onversation_member_item_request_builder.go | 6 +- ...inition_primary_channel_request_builder.go | 8 + ...imary_channel_unarchive_request_builder.go | 62 ++ teamwork/team_templates_request_builder.go | 8 +- teamwork/teamwork_request_builder.go | 9 +- ...lti_tenant_organization_request_builder.go | 6 +- ...ype_post_request_body_user_account_type.go | 0 ...line_cloud_pc_access_state_get_response.go | 0 ...work_cloud_pc_access_state_get_response.go | 0 ...eprovision_post_request_body_os_version.go | 0 ...ion_post_request_body_user_account_type.go | 0 ...ips_post_request_body_mail_tips_options.go | 0 ...e_cloud_pc_post_request_body_time_range.go | 0 ...post_request_body_obliteration_behavior.go | 0 ...body_remind_before_time_in_minutes_type.go | 0 ...ointment_sms_post_request_body_sms_type.go | 0 ...r_view_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...events_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...r_view_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...events_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...r_view_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...r_view_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...events_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...nge_user_account_type_post_request_body.go | 38 - ...e_cloud_pc_access_state_request_builder.go | 8 +- ...k_cloud_pc_access_state_request_builder.go | 8 +- ...p_cs_item_reprovision_post_request_body.go | 75 -- ...events_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...tances_item_attachments_request_builder.go | 6 +- ...rences_item_attachments_request_builder.go | 6 +- users/item_get_mail_tips_post_request_body.go | 38 - ...teams_licensing_details_request_builder.go | 66 ++ users/item_license_details_request_builder.go | 4 + ...ssages_item_attachments_request_builder.go | 6 +- ...ders_item_child_folders_request_builder.go | 6 +- ...ssages_item_attachments_request_builder.go | 6 +- ...bulk_restore_cloud_pc_post_request_body.go | 38 - ...ged_devices_item_wipe_post_request_body.go | 38 - ...ssages_item_attachments_request_builder.go | 6 +- ...ages_item_value_content_request_builder.go | 2 +- ...m_messages_message_item_request_builder.go | 8 +- users/item_messages_request_builder.go | 2 +- ...tings_item_registration_request_builder.go | 14 +- ...ointment_reminder_sms_post_request_body.go | 38 - ...rtual_appointment_sms_post_request_body.go | 38 - ...er_plans_item_archive_post_request_body.go | 110 +++ ...nner_plans_item_archive_request_builder.go | 66 ++ ..._plans_item_unarchive_post_request_body.go | 110 +++ ...er_plans_item_unarchive_request_builder.go | 66 ++ ...plans_planner_plan_item_request_builder.go | 8 + users/item_presence_request_builder.go | 8 +- users/item_teamwork_request_builder.go | 9 +- 2157 files changed, 17008 insertions(+), 35870 deletions(-) create mode 100644 admin/microsoft365_apps_installation_options_request_builder.go create mode 100644 admin/microsoft365_apps_request_builder.go create mode 100644 app/calls/item/answer/answer_post_request_body_accepted_modalities.go create mode 100644 app/calls/item/redirect/redirect_post_request_body_target_disposition.go create mode 100644 app/calls/item/reject/reject_post_request_body_reason.go create mode 100644 app/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go create mode 100644 app/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go create mode 100644 communications/calls/item/answer/answer_post_request_body_accepted_modalities.go create mode 100644 communications/calls/item/redirect/redirect_post_request_body_target_disposition.go create mode 100644 communications/calls/item/reject/reject_post_request_body_reason.go create mode 100644 communications/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go create mode 100644 communications/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go create mode 100644 compliance/ediscovery/cases/item/reviewsets/item/microsoftgraphediscoveryaddtoreviewset/add_to_review_set_post_request_body_additional_data_options.go create mode 100644 compliance/ediscovery/cases/item/reviewsets/item/microsoftgraphediscoveryexport/export_post_request_body_export_options.go create mode 100644 deviceappmanagement/targetedmanagedappconfigurations/item/targetapps/target_apps_post_request_body_app_group_type.go create mode 100644 devicemanagement/comanageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go create mode 100644 devicemanagement/comanageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go create mode 100644 devicemanagement/manageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go create mode 100644 devicemanagement/manageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go create mode 100644 devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_post_request_body.go create mode 100644 devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_request_builder.go create mode 100644 devicemanagement/virtualendpoint/cloudpcs/item/changeuseraccounttype/change_user_account_type_post_request_body_user_account_type.go create mode 100644 devicemanagement/virtualendpoint/cloudpcs/item/getfrontlinecloudpcaccessstate/get_frontline_cloud_pc_access_state_get_response.go create mode 100644 devicemanagement/virtualendpoint/cloudpcs/item/getshiftworkcloudpcaccessstate/get_shift_work_cloud_pc_access_state_get_response.go create mode 100644 devicemanagement/virtualendpoint/cloudpcs/item/reprovision/reprovision_post_request_body_os_version.go create mode 100644 devicemanagement/virtualendpoint/cloudpcs/item/reprovision/reprovision_post_request_body_user_account_type.go create mode 100644 devicemanagement/virtualendpoint/provisioningpolicies/applyconfig/apply_config_post_request_body_policy_settings.go create mode 100644 devicemanagement/virtualendpoint/provisioningpolicies/item/apply/apply_post_request_body_policy_settings.go create mode 100644 devicemanagement/virtualendpoint/reports/getcloudpcperformancereport/get_cloud_pc_performance_report_post_request_body_report_name.go create mode 100644 devicemanagement/virtualendpoint/reports/getcloudpcrecommendationreports/get_cloud_pc_recommendation_reports_post_request_body_report_name.go create mode 100644 devicemanagement/virtualendpoint/reports/getfrontlinereport/get_frontline_report_post_request_body_report_name.go create mode 100644 devicemanagement/virtualendpoint/reports/getinaccessiblecloudpcreports/get_inaccessible_cloud_pc_reports_post_request_body_report_name.go create mode 100644 devicemanagement/virtualendpoint/reports/getshareduselicenseusagereport/get_shared_use_license_usage_report_post_request_body_report_name.go create mode 100644 drives/item/items/item/assignsensitivitylabel/assign_sensitivity_label_post_request_body_assignment_method.go create mode 100644 employeeexperience/communities_community_item_request_builder.go create mode 100644 employeeexperience/communities_count_request_builder.go create mode 100644 employeeexperience/communities_item_group_request_builder.go create mode 100644 employeeexperience/communities_item_group_service_provisioning_errors_count_request_builder.go create mode 100644 employeeexperience/communities_item_group_service_provisioning_errors_request_builder.go create mode 100644 employeeexperience/communities_item_owners_count_request_builder.go create mode 100644 employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go create mode 100644 employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go create mode 100644 employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go create mode 100644 employeeexperience/communities_item_owners_request_builder.go create mode 100644 employeeexperience/communities_item_owners_user_item_request_builder.go create mode 100644 employeeexperience/communities_request_builder.go create mode 100644 employeeexperience/engagement_async_operations_count_request_builder.go create mode 100644 employeeexperience/engagement_async_operations_engagement_async_operation_item_request_builder.go create mode 100644 employeeexperience/engagement_async_operations_request_builder.go create mode 100644 groups/item_planner_plans_item_archive_post_request_body.go create mode 100644 groups/item_planner_plans_item_archive_request_builder.go create mode 100644 groups/item_planner_plans_item_unarchive_post_request_body.go create mode 100644 groups/item_planner_plans_item_unarchive_request_builder.go create mode 100644 groups/item_team_channels_item_archive_post_request_body.go create mode 100644 groups/item_team_channels_item_archive_request_builder.go create mode 100644 groups/item_team_channels_item_unarchive_request_builder.go create mode 100644 groups/item_team_primary_channel_archive_post_request_body.go create mode 100644 groups/item_team_primary_channel_archive_request_builder.go create mode 100644 groups/item_team_primary_channel_unarchive_request_builder.go create mode 100644 identity/conditionalaccess/authenticationstrength/policies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go create mode 100644 identity/conditionalaccess/authenticationstrengths/policies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go create mode 100644 models/access_package_assignment_request_callback_data_stage.go delete mode 100644 models/access_package_custom_extension_handler_status.go delete mode 100644 models/access_package_subject_lifecycle.go create mode 100644 models/access_package_subject_subject_lifecycle.go delete mode 100644 models/access_review_history_decision_filter.go create mode 100644 models/access_review_history_definition_decisions.go create mode 100644 models/access_review_history_definition_status.go create mode 100644 models/access_review_history_instance_status.go delete mode 100644 models/access_review_history_status.go delete mode 100644 models/access_review_timeout_behavior.go delete mode 100644 models/account_status.go create mode 100644 models/acl_identity_source.go delete mode 100644 models/action_capability.go delete mode 100644 models/activity_domain.go create mode 100644 models/activity_history_item_status.go create mode 100644 models/activity_statistics_activity.go delete mode 100644 models/activity_type.go create mode 100644 models/add_footer_alignment.go create mode 100644 models/add_header_alignment.go create mode 100644 models/add_watermark_orientation.go create mode 100644 models/admin_microsoft365_apps.go create mode 100644 models/admin_windows.go delete mode 100644 models/advanced_bit_locker_state.go create mode 100644 models/alert_history_state_feedback.go create mode 100644 models/alert_history_state_status.go delete mode 100644 models/alignment.go delete mode 100644 models/allow_invites_from.go delete mode 100644 models/allowed_audiences.go delete mode 100644 models/allowed_role_principal_types.go create mode 100644 models/alteration_response_query_alteration_type.go delete mode 100644 models/analytics_activity_type.go delete mode 100644 models/android_device_owner_app_auto_update_policy_type.go delete mode 100644 models/android_device_owner_certificate_access_type.go create mode 100644 models/android_device_owner_certificate_profile_base_subject_alternative_name_type.go create mode 100644 models/android_device_owner_certificate_profile_base_subject_name_format.go create mode 100644 models/android_device_owner_compliance_policy_advanced_threat_protection_required_security_level.go create mode 100644 models/android_device_owner_compliance_policy_device_threat_protection_required_security_level.go create mode 100644 models/android_device_owner_compliance_policy_password_required_type.go delete mode 100644 models/android_device_owner_cross_profile_data_sharing.go delete mode 100644 models/android_device_owner_default_app_permission_policy_type.go create mode 100644 models/android_device_owner_derived_credential_authentication_configuration_certificate_access_type.go create mode 100644 models/android_device_owner_enterprise_wi_fi_configuration_authentication_method.go create mode 100644 models/android_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go create mode 100644 models/android_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go create mode 100644 models/android_device_owner_general_device_configuration_apps_auto_update_policy.go create mode 100644 models/android_device_owner_general_device_configuration_apps_default_permission_policy.go create mode 100644 models/android_device_owner_general_device_configuration_cross_profile_policies_allow_data_sharing.go create mode 100644 models/android_device_owner_general_device_configuration_device_location_mode.go create mode 100644 models/android_device_owner_general_device_configuration_kiosk_customization_status_bar.go create mode 100644 models/android_device_owner_general_device_configuration_kiosk_customization_system_navigation.go create mode 100644 models/android_device_owner_general_device_configuration_kiosk_mode_folder_icon.go create mode 100644 models/android_device_owner_general_device_configuration_kiosk_mode_icon_size.go create mode 100644 models/android_device_owner_general_device_configuration_kiosk_mode_managed_home_screen_pin_complexity.go create mode 100644 models/android_device_owner_general_device_configuration_kiosk_mode_screen_orientation.go create mode 100644 models/android_device_owner_general_device_configuration_kiosk_mode_use_managed_home_screen_app.go create mode 100644 models/android_device_owner_general_device_configuration_kiosk_mode_virtual_home_button_type.go create mode 100644 models/android_device_owner_general_device_configuration_microsoft_launcher_dock_presence_configuration.go create mode 100644 models/android_device_owner_general_device_configuration_microsoft_launcher_search_bar_placement_configuration.go create mode 100644 models/android_device_owner_general_device_configuration_password_require_unlock.go create mode 100644 models/android_device_owner_general_device_configuration_password_required_type.go create mode 100644 models/android_device_owner_general_device_configuration_personal_profile_play_store_mode.go create mode 100644 models/android_device_owner_general_device_configuration_play_store_mode.go create mode 100644 models/android_device_owner_general_device_configuration_system_update_install_type.go create mode 100644 models/android_device_owner_general_device_configuration_work_profile_password_require_unlock.go create mode 100644 models/android_device_owner_general_device_configuration_work_profile_password_required_type.go create mode 100644 models/android_device_owner_imported_p_f_x_certificate_profile_certificate_access_type.go delete mode 100644 models/android_device_owner_kiosk_customization_status_bar.go delete mode 100644 models/android_device_owner_kiosk_customization_system_navigation.go delete mode 100644 models/android_device_owner_kiosk_mode_folder_icon.go delete mode 100644 models/android_device_owner_kiosk_mode_icon_size.go delete mode 100644 models/android_device_owner_kiosk_mode_screen_orientation.go delete mode 100644 models/android_device_owner_location_mode.go create mode 100644 models/android_device_owner_pkcs_certificate_profile_certificate_access_type.go delete mode 100644 models/android_device_owner_play_store_mode.go delete mode 100644 models/android_device_owner_required_password_type.go delete mode 100644 models/android_device_owner_required_password_unlock.go create mode 100644 models/android_device_owner_scep_certificate_profile_certificate_access_type.go create mode 100644 models/android_device_owner_scep_certificate_profile_certificate_store.go delete mode 100644 models/android_device_owner_system_update_install_type.go delete mode 100644 models/android_device_owner_virtual_home_button_type.go create mode 100644 models/android_eas_email_profile_configuration_user_domain_name_source.go create mode 100644 models/android_enterprise_wi_fi_configuration_authentication_method.go create mode 100644 models/android_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go create mode 100644 models/android_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go create mode 100644 models/android_for_work_certificate_profile_base_subject_alternative_name_type.go create mode 100644 models/android_for_work_enterprise_wi_fi_configuration_authentication_method.go create mode 100644 models/android_for_work_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go create mode 100644 models/android_for_work_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go create mode 100644 models/android_for_work_scep_certificate_profile_certificate_store.go create mode 100644 models/android_managed_app_protection_app_action_if_account_is_clocked_out.go create mode 100644 models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_high.go create mode 100644 models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_low.go create mode 100644 models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_medium.go create mode 100644 models/android_managed_app_protection_app_action_if_samsung_knox_attestation_required.go create mode 100644 models/android_work_profile_certificate_profile_base_subject_alternative_name_type.go create mode 100644 models/android_work_profile_enterprise_wi_fi_configuration_authentication_method.go create mode 100644 models/android_work_profile_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go create mode 100644 models/android_work_profile_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go create mode 100644 models/android_work_profile_pkcs_certificate_profile_certificate_store.go create mode 100644 models/android_work_profile_scep_certificate_profile_certificate_store.go delete mode 100644 models/answer_input_type.go create mode 100644 models/aosp_device_owner_certificate_profile_base_subject_alternative_name_type.go create mode 100644 models/aosp_device_owner_certificate_profile_base_subject_name_format.go create mode 100644 models/aosp_device_owner_compliance_policy_password_required_type.go create mode 100644 models/aosp_device_owner_device_configuration_password_required_type.go create mode 100644 models/aosp_device_owner_enterprise_wi_fi_configuration_authentication_method.go create mode 100644 models/aosp_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go create mode 100644 models/aosp_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go create mode 100644 models/aosp_device_owner_scep_certificate_profile_certificate_store.go delete mode 100644 models/app_credential_restriction_type.go create mode 100644 models/app_credential_sign_in_activity_key_type.go create mode 100644 models/app_credential_sign_in_activity_key_usage.go delete mode 100644 models/app_key_credential_restriction_type.go create mode 100644 models/apple_vpn_always_on_configuration_air_print_exception_action.go create mode 100644 models/apple_vpn_always_on_configuration_cellular_exception_action.go create mode 100644 models/apple_vpn_always_on_configuration_voicemail_exception_action.go create mode 100644 models/apple_vpn_configuration_provider_type.go delete mode 100644 models/application_key_type.go delete mode 100644 models/application_key_usage.go delete mode 100644 models/application_mode.go delete mode 100644 models/application_permissions_required.go create mode 100644 models/applied_authentication_event_listener_event_type.go create mode 100644 models/applied_conditional_access_policy_conditions_not_satisfied.go create mode 100644 models/applied_conditional_access_policy_conditions_satisfied.go delete mode 100644 models/approval_state.go create mode 100644 models/apps_installation_options_for_mac.go create mode 100644 models/apps_installation_options_for_windows.go create mode 100644 models/apps_update_channel_type.go create mode 100644 models/assignment_review_settings_access_review_timeout_behavior.go create mode 100644 models/attachment_info_attachment_type.go create mode 100644 models/attachment_item_attachment_type.go delete mode 100644 models/attachment_type.go create mode 100644 models/attendee_availability_availability.go create mode 100644 models/attendee_base_type.go delete mode 100644 models/attendee_type.go delete mode 100644 models/attestation_level.go delete mode 100644 models/attribute_definition_metadata.go create mode 100644 models/attribute_definition_metadata_entry_key.go delete mode 100644 models/authentication_app_admin_configuration.go delete mode 100644 models/authentication_app_evaluation.go create mode 100644 models/authentication_app_policy_details_admin_configuration.go create mode 100644 models/authentication_app_policy_details_authentication_evaluation.go create mode 100644 models/authentication_app_policy_details_status.go delete mode 100644 models/authentication_app_policy_status.go delete mode 100644 models/authentication_event_type.go create mode 100644 models/authentication_method_configuration_state.go create mode 100644 models/authentication_method_feature_configuration_state.go delete mode 100644 models/authentication_method_key_strength.go delete mode 100644 models/authentication_method_platform.go delete mode 100644 models/authentication_method_sign_in_state.go delete mode 100644 models/authentication_method_state.go delete mode 100644 models/authentication_methods_policy_migration_state.go create mode 100644 models/authentication_methods_policy_policy_migration_state.go delete mode 100644 models/authentication_phone_type.go delete mode 100644 models/authentication_protocol.go create mode 100644 models/authentication_requirement_policy_requirement_provider.go create mode 100644 models/authentication_strength_authentication_strength_result.go delete mode 100644 models/authentication_strength_result.go delete mode 100644 models/authentication_transform_constant.go create mode 100644 models/authorization_policy_allow_invites_from.go delete mode 100644 models/authorization_system_action_type.go create mode 100644 models/authorization_system_info_authorization_system_type.go delete mode 100644 models/authorization_system_type.go create mode 100644 models/authorization_system_type_action_action_type.go create mode 100644 models/automatic_replies_setting_external_audience.go create mode 100644 models/automatic_replies_setting_status.go delete mode 100644 models/automatic_replies_status.go create mode 100644 models/availability_item_status.go delete mode 100644 models/b2b_identity_providers_type.go create mode 100644 models/base_site_page_page_layout.go delete mode 100644 models/bit_locker_encryption_method.go create mode 100644 models/bit_locker_fixed_drive_policy_encryption_method.go create mode 100644 models/bit_locker_removable_drive_policy_encryption_method.go create mode 100644 models/bit_locker_system_drive_policy_encryption_method.go create mode 100644 models/bitlocker_recovery_key_volume_type.go delete mode 100644 models/body_type.go create mode 100644 models/booking_custom_question_answer_input_type.go create mode 100644 models/booking_question_answer_answer_input_type.go delete mode 100644 models/booking_type.go delete mode 100644 models/bookings_availability_status.go delete mode 100644 models/broadcast_meeting_audience.go create mode 100644 models/broadcast_meeting_settings_allowed_audience.go create mode 100644 models/browser_shared_cookie_history_source_environment.go create mode 100644 models/browser_site_history_compatibility_mode.go create mode 100644 models/browser_site_history_merge_type.go create mode 100644 models/browser_site_history_target_environment.go create mode 100644 models/built_in_identity_provider_state.go create mode 100644 models/calendar_allowed_online_meeting_providers.go create mode 100644 models/calendar_default_online_meeting_provider.go create mode 100644 models/calendar_permission_allowed_roles.go create mode 100644 models/calendar_permission_role.go delete mode 100644 models/calendar_sharing_action.go delete mode 100644 models/calendar_sharing_action_importance.go delete mode 100644 models/calendar_sharing_action_type.go create mode 100644 models/calendar_sharing_message_action_action.go create mode 100644 models/calendar_sharing_message_action_action_type.go create mode 100644 models/calendar_sharing_message_action_importance.go create mode 100644 models/call_active_modalities.go delete mode 100644 models/call_disposition.go create mode 100644 models/call_ended_event_message_detail_call_event_type.go create mode 100644 models/call_event_call_event_type.go delete mode 100644 models/call_event_type.go create mode 100644 models/call_media_state_audio.go create mode 100644 models/call_recording_event_message_detail_call_recording_status.go delete mode 100644 models/call_recording_status.go create mode 100644 models/call_requested_modalities.go create mode 100644 models/call_routing_policies.go create mode 100644 models/call_started_event_message_detail_call_event_type.go delete mode 100644 models/callrecords/audio_codec.go create mode 100644 models/callrecords/media_stream_audio_codec.go create mode 100644 models/callrecords/media_stream_video_codec.go create mode 100644 models/callrecords/pstn_blocked_users_log_row_user_block_mode.go delete mode 100644 models/callrecords/pstn_call_duration_source.go create mode 100644 models/callrecords/pstn_call_log_row_call_duration_source.go delete mode 100644 models/callrecords/pstn_user_block_mode.go delete mode 100644 models/callrecords/video_codec.go delete mode 100644 models/category_color.go create mode 100644 models/channel_moderation_settings_reply_restriction.go create mode 100644 models/channel_moderation_settings_user_new_message_restriction.go create mode 100644 models/chat_message_policy_violation_dlp_action.go delete mode 100644 models/chat_message_policy_violation_dlp_action_types.go create mode 100644 models/chat_message_policy_violation_user_action.go delete mode 100644 models/chat_message_policy_violation_user_action_types.go create mode 100644 models/chat_message_policy_violation_verdict_details.go delete mode 100644 models/chat_message_policy_violation_verdict_details_types.go delete mode 100644 models/classification_method.go delete mode 100644 models/client_credential_type.go create mode 100644 models/cloud_app_security_profile_permissions_required.go create mode 100644 models/cloud_app_security_session_control_cloud_app_security_type.go delete mode 100644 models/cloud_app_security_session_control_type.go create mode 100644 models/cloud_p_c_disk_encryption_state.go create mode 100644 models/cloud_p_c_os_version.go create mode 100644 models/cloud_p_c_power_state.go create mode 100644 models/cloud_p_c_provisioning_type.go create mode 100644 models/cloud_p_c_service_plan_type.go create mode 100644 models/cloud_p_c_user_account_type.go create mode 100644 models/cloud_pc_bulk_modify_disk_encryption_type.go create mode 100644 models/cloud_pc_device_image_error_code.go delete mode 100644 models/cloud_pc_disk_encryption_state.go create mode 100644 models/cloud_pc_domain_join_configuration_domain_join_type.go create mode 100644 models/cloud_pc_domain_join_configuration_region_group.go create mode 100644 models/cloud_pc_domain_join_configuration_type.go delete mode 100644 models/cloud_pc_domain_join_type.go create mode 100644 models/cloud_pc_export_job_export_job_status.go create mode 100644 models/cloud_pc_export_job_report_name.go delete mode 100644 models/cloud_pc_export_job_status.go create mode 100644 models/cloud_pc_on_premises_connection_connection_type.go create mode 100644 models/cloud_pc_on_premises_connection_status_detail.go delete mode 100644 models/cloud_pc_operating_system.go create mode 100644 models/cloud_pc_organization_settings_os_version.go create mode 100644 models/cloud_pc_organization_settings_user_account_type.go create mode 100644 models/cloud_pc_partner_agent_install_result_install_status.go create mode 100644 models/cloud_pc_partner_agent_install_result_partner_agent_name.go delete mode 100644 models/cloud_pc_partner_agent_install_status.go delete mode 100644 models/cloud_pc_partner_agent_name.go delete mode 100644 models/cloud_pc_policy_setting_type.go delete mode 100644 models/cloud_pc_power_state.go create mode 100644 models/cloud_pc_provisioning_policy_provisioning_type.go delete mode 100644 models/cloud_pc_provisioning_type.go create mode 100644 models/cloud_pc_remote_action_capability_action_capability.go create mode 100644 models/cloud_pc_remote_action_capability_action_name.go delete mode 100644 models/cloud_pc_remote_action_name.go create mode 100644 models/cloud_pc_remote_action_result_action_state.go delete mode 100644 models/cloud_pc_report_name.go delete mode 100644 models/cloud_pc_resize_validation_code.go create mode 100644 models/cloud_pc_resize_validation_result_validation_result.go create mode 100644 models/cloud_pc_restore_point_setting_frequency_type.go create mode 100644 models/cloud_pc_service_plan_provisioning_type.go create mode 100644 models/cloud_pc_snapshot_snapshot_type.go delete mode 100644 models/cloud_pc_snapshot_type.go create mode 100644 models/cloud_pc_supported_region_region_status.go delete mode 100644 models/cloud_pc_supported_region_status.go create mode 100644 models/cloud_pc_tenant_encryption_setting_tenant_disk_encryption_type.go delete mode 100644 models/cloud_pc_user_account_type.go create mode 100644 models/cloud_pc_windows_setting.go create mode 100644 models/column_definition_type.go delete mode 100644 models/column_types.go create mode 100644 models/communications_identity_set_endpoint_type.go create mode 100644 models/community.go create mode 100644 models/community_collection_response.go create mode 100644 models/community_privacy.go delete mode 100644 models/conditional_access_conditions.go delete mode 100644 models/conditional_access_rule.go create mode 100644 models/conditional_access_rule_satisfied_conditional_access_condition.go create mode 100644 models/conditional_access_rule_satisfied_rule_satisfied.go delete mode 100644 models/conditional_access_status.go delete mode 100644 models/confirmed_by.go delete mode 100644 models/connection_direction.go delete mode 100644 models/connection_state.go delete mode 100644 models/connection_status.go delete mode 100644 models/continuous_access_evaluation_mode.go create mode 100644 models/continuous_access_evaluation_session_control_mode.go create mode 100644 models/copy_notebook_model_user_role.go delete mode 100644 models/country_lookup_method_type.go create mode 100644 models/country_named_location_country_lookup_method.go delete mode 100644 models/course_status.go create mode 100644 models/cross_tenant_access_policy_target_target_type.go delete mode 100644 models/cross_tenant_access_policy_target_type.go create mode 100644 models/cryptography_suite_authentication_transform_constants.go create mode 100644 models/cryptography_suite_cipher_transform_constants.go create mode 100644 models/cryptography_suite_dh_group.go create mode 100644 models/cryptography_suite_encryption_method.go create mode 100644 models/cryptography_suite_integrity_check_method.go create mode 100644 models/cryptography_suite_pfs_group.go create mode 100644 models/current_label_application_mode.go create mode 100644 models/custom_extension_handler_instance_stage.go create mode 100644 models/custom_extension_handler_instance_status.go create mode 100644 models/custom_extension_handler_stage.go create mode 100644 models/custom_security_attribute_audit_result.go create mode 100644 models/custom_training_setting_assigned_to.go delete mode 100644 models/data_subject_type.go create mode 100644 models/default_managed_app_protection_app_action_if_account_is_clocked_out.go create mode 100644 models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_high.go create mode 100644 models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_low.go create mode 100644 models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_medium.go delete mode 100644 models/default_mfa_method_type.go delete mode 100644 models/defender_potentially_unwanted_app_action.go delete mode 100644 models/defender_realtime_scan_direction.go delete mode 100644 models/defender_submit_samples_consent_type.go delete mode 100644 models/delegate_meeting_message_delivery_options.go create mode 100644 models/delegated_permission_classification_classification.go create mode 100644 models/detected_sensitive_content_classification_method.go create mode 100644 models/detected_sensitive_content_scope.go create mode 100644 models/detected_sensitive_content_sensitive_type_source.go delete mode 100644 models/device_config_assignment_intent.go create mode 100644 models/device_configuration_assignment_intent.go delete mode 100644 models/device_management_configuration_string_format.go create mode 100644 models/device_management_configuration_string_setting_value_definition_format.go delete mode 100644 models/devicemanagement/aggregation_type.go create mode 100644 models/devicemanagement/alert_impact_aggregation_type.go create mode 100644 models/devicemanagement/alert_record_alert_rule_template.go create mode 100644 models/devicemanagement/alert_record_severity.go create mode 100644 models/devicemanagement/alert_record_status.go create mode 100644 models/devicemanagement/alert_rule_alert_rule_template.go create mode 100644 models/devicemanagement/alert_rule_severity.go delete mode 100644 models/devicemanagement/alert_rule_template.go delete mode 100644 models/devicemanagement/alert_status_type.go create mode 100644 models/devicemanagement/notification_channel_notification_channel_type.go delete mode 100644 models/devicemanagement/notification_channel_type.go delete mode 100644 models/devicemanagement/operator_type.go create mode 100644 models/devicemanagement/portal_notification_alert_rule_template.go create mode 100644 models/devicemanagement/portal_notification_severity.go create mode 100644 models/devicemanagement/rule_condition.go create mode 100644 models/devicemanagement/rule_condition_aggregation.go create mode 100644 models/devicemanagement/rule_condition_condition_category.go create mode 100644 models/devicemanagement/rule_condition_operator.go create mode 100644 models/devicemanagement/rule_condition_relationship_type.go delete mode 100644 models/devicemanagement/rule_severity_type.go create mode 100644 models/devicemanagement/rule_threshold_aggregation.go create mode 100644 models/devicemanagement/rule_threshold_operator.go create mode 100644 models/devices_filter_mode.go delete mode 100644 models/diamond_model.go delete mode 100644 models/diffie_hellman_group.go create mode 100644 models/directory_audit_result.go delete mode 100644 models/domain_name_source.go delete mode 100644 models/eap_fast_configuration.go create mode 100644 models/eas_email_profile_configuration_base_user_domain_name_source.go create mode 100644 models/eas_email_profile_configuration_base_username_a_a_d_source.go delete mode 100644 models/eas_services.go delete mode 100644 models/ediscovery/additional_data_options.go delete mode 100644 models/ediscovery/case_action.go create mode 100644 models/ediscovery/case_export_operation_export_options.go create mode 100644 models/ediscovery/case_export_operation_export_structure.go create mode 100644 models/ediscovery/case_operation_action.go delete mode 100644 models/ediscovery/child_selectability.go create mode 100644 models/ediscovery/data_source_container_hold_status.go delete mode 100644 models/ediscovery/data_source_scopes.go delete mode 100644 models/ediscovery/export_options.go create mode 100644 models/ediscovery/source_collection_data_source_scopes.go delete mode 100644 models/ediscovery/source_type.go create mode 100644 models/ediscovery/tag_child_selectability.go create mode 100644 models/ediscovery/unified_group_source_included_sources.go create mode 100644 models/ediscovery/user_source_included_sources.go delete mode 100644 models/education_add_to_calendar_options.go delete mode 100644 models/education_added_student_action.go create mode 100644 models/education_assignment_add_to_calendar_action.go create mode 100644 models/education_assignment_added_student_action.go create mode 100644 models/education_assignment_defaults_add_to_calendar_action.go create mode 100644 models/education_assignment_defaults_added_student_action.go create mode 100644 models/education_class_external_source.go delete mode 100644 models/education_external_source.go create mode 100644 models/education_feedback_resource_outcome_resource_status.go delete mode 100644 models/education_feedback_resource_outcome_status.go delete mode 100644 models/education_gender.go create mode 100644 models/education_item_body_content_type.go create mode 100644 models/education_organization_external_source.go create mode 100644 models/education_student_gender.go create mode 100644 models/education_synchronization_license_assignment_applies_to.go create mode 100644 models/education_synchronization_profile_status_status.go delete mode 100644 models/education_synchronization_status.go create mode 100644 models/education_user_external_source.go delete mode 100644 models/eligibility_filtering_enabled_entities.go create mode 100644 models/email_authentication_method_configuration_allow_external_id_to_use_email_otp.go delete mode 100644 models/email_certificate_type.go create mode 100644 models/email_file_assessment_request_destination_routing_reason.go delete mode 100644 models/email_role.go create mode 100644 models/encrypt_content_encrypt_with.go delete mode 100644 models/encrypt_with.go create mode 100644 models/end_user_notification_notification_type.go delete mode 100644 models/end_user_notification_preference.go create mode 100644 models/end_user_notification_setting_notification_preference.go create mode 100644 models/end_user_notification_setting_setting_type.go delete mode 100644 models/end_user_notification_setting_type.go create mode 100644 models/end_user_notification_source.go create mode 100644 models/end_user_notification_status.go delete mode 100644 models/end_user_notification_type.go delete mode 100644 models/endpoint_type.go create mode 100644 models/engagement_async_operation.go create mode 100644 models/engagement_async_operation_collection_response.go create mode 100644 models/engagement_async_operation_operation_type.go delete mode 100644 models/entity_type.go create mode 100644 models/event_importance.go create mode 100644 models/event_message_meeting_message_type.go create mode 100644 models/event_message_response_response_type.go create mode 100644 models/event_message_type.go create mode 100644 models/event_online_meeting_provider.go create mode 100644 models/event_sensitivity.go create mode 100644 models/event_show_as.go delete mode 100644 models/expiration_requirement.go delete mode 100644 models/external_audience_scope.go delete mode 100644 models/external_authentication_type.go create mode 100644 models/external_connection_state.go delete mode 100644 models/external_email_otp_state.go create mode 100644 models/externalconnectors/acl_identity_source.go delete mode 100644 models/externalconnectors/connection_state.go delete mode 100644 models/externalconnectors/content_experience_type.go create mode 100644 models/externalconnectors/external_connection_enabled_content_experiences.go create mode 100644 models/externalconnectors/external_connection_state.go delete mode 100644 models/externalconnectors/identity_source_type.go delete mode 100644 models/externalconnectors/label.go create mode 100644 models/externalconnectors/property_labels.go create mode 100644 models/feature_target_target_type.go delete mode 100644 models/feature_target_type.go delete mode 100644 models/federated_idp_mfa_behavior.go create mode 100644 models/fido2_authentication_method_attestation_level.go create mode 100644 models/fido2_key_restrictions_enforcement_type.go delete mode 100644 models/fido2_restriction_enforcement_type.go create mode 100644 models/file_hash_hash_type.go delete mode 100644 models/file_hash_type.go delete mode 100644 models/file_vault_state.go create mode 100644 models/followup_flag_flag_status.go delete mode 100644 models/followup_flag_status.go delete mode 100644 models/free_busy_status.go delete mode 100644 models/frontline_cloud_pc_access_state.go delete mode 100644 models/giphy_rating_type.go delete mode 100644 models/group_privacy.go delete mode 100644 models/group_type.go create mode 100644 models/horizontal_section_emphasis.go create mode 100644 models/horizontal_section_layout.go delete mode 100644 models/horizontal_section_layout_type.go delete mode 100644 models/identity_provider_state.go delete mode 100644 models/identity_source_type.go create mode 100644 models/identitygovernance/custom_task_extension_callback_data_operation_status.go delete mode 100644 models/identitygovernance/custom_task_extension_operation_status.go delete mode 100644 models/image_tagging_choice.go delete mode 100644 models/included_user_roles.go delete mode 100644 models/included_user_types.go delete mode 100644 models/incoming_token_type.go create mode 100644 models/inference_classification_override_classify_as.go delete mode 100644 models/inference_classification_type.go create mode 100644 models/initiator_initiator_type.go delete mode 100644 models/initiator_type.go create mode 100644 models/internal_domain_federation_federated_idp_mfa_behavior.go create mode 100644 models/internal_domain_federation_prompt_login_behavior.go create mode 100644 models/invitation_participant_info_endpoint_type.go create mode 100644 models/invitation_redemption_identity_provider_configuration_fallback_identity_provider.go create mode 100644 models/invitation_redemption_identity_provider_configuration_primary_identity_provider_precedence_order.go create mode 100644 models/ios_certificate_profile_base_subject_alternative_name_type.go create mode 100644 models/ios_eas_email_profile_configuration_authentication_method.go create mode 100644 models/ios_eas_email_profile_configuration_eas_services.go create mode 100644 models/ios_eas_email_profile_configuration_encryption_certificate_type.go create mode 100644 models/ios_eas_email_profile_configuration_signing_certificate_type.go create mode 100644 models/ios_enterprise_wi_fi_configuration_authentication_method.go create mode 100644 models/ios_enterprise_wi_fi_configuration_eap_fast_configuration.go create mode 100644 models/ios_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go create mode 100644 models/ios_pkcs_certificate_profile_certificate_store.go create mode 100644 models/ios_scep_certificate_profile_certificate_store.go create mode 100644 models/ios_vpn_security_association_parameters_security_encryption_algorithm.go create mode 100644 models/ios_vpn_security_association_parameters_security_integrity_algorithm.go create mode 100644 models/iosik_ev2_vpn_configuration_dead_peer_detection_rate.go create mode 100644 models/iosik_ev2_vpn_configuration_server_certificate_type.go create mode 100644 models/ip_application_segment_destination_type.go create mode 100644 models/ip_application_segment_protocol.go create mode 100644 models/item_body_content_type.go create mode 100644 models/item_facet_allowed_audiences.go delete mode 100644 models/kerberos_sign_on_mapping_attribute_type.go create mode 100644 models/kerberos_sign_on_settings_kerberos_sign_on_mapping_attribute_type.go create mode 100644 models/key_credential_configuration_restriction_type.go delete mode 100644 models/kiosk_mode_managed_home_screen_pin_complexity.go delete mode 100644 models/kiosk_mode_type.go delete mode 100644 models/label.go create mode 100644 models/landing_page_source.go create mode 100644 models/landing_page_status.go delete mode 100644 models/language_proficiency_level.go create mode 100644 models/language_proficiency_proficiency.go create mode 100644 models/language_proficiency_reading.go create mode 100644 models/language_proficiency_spoken.go create mode 100644 models/language_proficiency_written.go delete mode 100644 models/layout_template_type.go create mode 100644 models/learning_course_activity_status.go delete mode 100644 models/lobby_bypass_scope.go create mode 100644 models/lobby_bypass_settings_scope.go create mode 100644 models/location_location_type.go delete mode 100644 models/location_type.go create mode 100644 models/login_page_layout_configuration_layout_template_type.go create mode 100644 models/login_page_source.go create mode 100644 models/login_page_status.go delete mode 100644 models/logon_type.go create mode 100644 models/logon_user_account_type.go create mode 100644 models/logon_user_logon_types.go create mode 100644 models/m365_apps_installation_options.go create mode 100644 models/mac_o_s_certificate_profile_base_subject_alternative_name_type.go create mode 100644 models/mac_o_s_enterprise_wi_fi_configuration_authentication_method.go create mode 100644 models/mac_o_s_enterprise_wi_fi_configuration_eap_fast_configuration.go create mode 100644 models/mac_o_s_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go create mode 100644 models/mac_o_s_general_device_configuration_update_delay_policy.go create mode 100644 models/mac_o_s_pkcs_certificate_profile_certificate_store.go delete mode 100644 models/mac_o_s_priority.go create mode 100644 models/mac_o_s_scep_certificate_profile_certificate_store.go create mode 100644 models/mac_o_s_scep_certificate_profile_hash_algorithm.go create mode 100644 models/mac_o_s_software_update_configuration_priority.go delete mode 100644 models/mac_o_s_software_update_delay_policy.go create mode 100644 models/mac_o_s_wired_network_configuration_authentication_method.go create mode 100644 models/mac_o_s_wired_network_configuration_eap_fast_configuration.go create mode 100644 models/mac_o_s_wired_network_configuration_non_eap_authentication_method_for_eap_ttls.go create mode 100644 models/machine_learning_detected_sensitive_content_match_tolerance.go create mode 100644 models/mail_assessment_request_destination_routing_reason.go delete mode 100644 models/mail_destination_routing_reason.go create mode 100644 models/mail_tips_recipient_scope.go delete mode 100644 models/mail_tips_type.go delete mode 100644 models/mailbox_recipient_type.go create mode 100644 models/mailbox_settings_delegate_meeting_message_delivery_options.go create mode 100644 models/mailbox_settings_user_purpose.go create mode 100644 models/mailbox_settings_user_purpose_v2.go create mode 100644 models/malware_state_for_windows_device_execution_state.go create mode 100644 models/malware_state_for_windows_device_threat_state.go create mode 100644 models/managed_app_protection_app_action_if_unable_to_authenticate_user.go create mode 100644 models/managed_app_protection_mobile_threat_defense_partner_priority.go create mode 100644 models/managed_device_encryption_state_advanced_bit_locker_states.go create mode 100644 models/managed_device_encryption_state_file_vault_states.go create mode 100644 models/managed_identity_msi_type.go create mode 100644 models/managedtenants/alert_rule_definition_template_default_severity.go delete mode 100644 models/managedtenants/alert_severity.go delete mode 100644 models/managedtenants/alert_status.go delete mode 100644 models/managedtenants/delegated_privilege_status.go create mode 100644 models/managedtenants/managed_tenant_alert_rule_notification_final_destinations.go create mode 100644 models/managedtenants/managed_tenant_alert_rule_severity.go create mode 100644 models/managedtenants/managed_tenant_alert_severity.go create mode 100644 models/managedtenants/managed_tenant_alert_status.go create mode 100644 models/managedtenants/management_template_category.go create mode 100644 models/managedtenants/management_template_step_category.go delete mode 100644 models/managedtenants/notification_destination.go create mode 100644 models/managedtenants/role_assignment_assignment_type.go delete mode 100644 models/managedtenants/tenant_onboarding_eligibility_reason.go delete mode 100644 models/managedtenants/tenant_onboarding_status.go create mode 100644 models/managedtenants/tenant_status_information_delegated_privilege_status.go create mode 100644 models/managedtenants/tenant_status_information_onboarding_status.go create mode 100644 models/managedtenants/tenant_status_information_tenant_onboarding_eligibility_reason.go create mode 100644 models/matching_dlp_rule_rule_mode.go create mode 100644 models/matching_label_application_mode.go delete mode 100644 models/media_state.go delete mode 100644 models/meeting_audience.go delete mode 100644 models/meeting_capabilities.go delete mode 100644 models/meeting_chat_history_default_mode.go delete mode 100644 models/meeting_chat_mode.go delete mode 100644 models/meeting_message_type.go create mode 100644 models/meeting_participant_info_role.go create mode 100644 models/meeting_registration_base_allowed_registrant.go create mode 100644 models/meeting_registration_question_answer_input_type.go create mode 100644 models/meeting_time_suggestion_organizer_availability.go delete mode 100644 models/membership_rule_processing_status_details.go create mode 100644 models/membership_rule_processing_status_status.go delete mode 100644 models/message_action_flag.go create mode 100644 models/message_importance.go create mode 100644 models/message_inference_classification.go create mode 100644 models/message_rule_actions_mark_importance.go create mode 100644 models/message_rule_predicates_importance.go create mode 100644 models/message_rule_predicates_message_action_flag.go create mode 100644 models/message_rule_predicates_sensitivity.go delete mode 100644 models/metered_connection_limit_type.go create mode 100644 models/microsoft_custom_training_setting_training_completion_duration.go delete mode 100644 models/microsoft_launcher_dock_presence.go delete mode 100644 models/microsoft_launcher_search_bar_placement.go create mode 100644 models/microsoft_managed_desktop_managed_type.go create mode 100644 models/microsoft_managed_training_setting_training_completion_duration.go create mode 100644 models/microsoft_training_assignment_mapping_assigned_to.go delete mode 100644 models/ml_classification_match_tolerance.go delete mode 100644 models/mobile_threat_defense_partner_priority.go create mode 100644 models/mobility_management_policy_applies_to.go delete mode 100644 models/msi_type.go create mode 100644 models/multi_tenant_organization_join_request_record_member_state.go create mode 100644 models/multi_tenant_organization_join_request_record_role.go create mode 100644 models/multi_tenant_organization_join_request_transition_details_desired_member_state.go create mode 100644 models/multi_tenant_organization_join_request_transition_details_status.go delete mode 100644 models/multi_tenant_organization_member_processing_status.go create mode 100644 models/multi_tenant_organization_member_transition_details_desired_role.go create mode 100644 models/multi_tenant_organization_member_transition_details_desired_state.go create mode 100644 models/multi_tenant_organization_member_transition_details_status.go create mode 100644 models/network_connection_direction.go create mode 100644 models/network_connection_protocol.go create mode 100644 models/network_connection_status.go create mode 100644 models/network_location_detail_network_type.go delete mode 100644 models/network_single_sign_on_type.go delete mode 100644 models/network_type.go delete mode 100644 models/networkaccess/bandwidth_capacity_in_mbps.go create mode 100644 models/networkaccess/branch_site_connectivity_state.go delete mode 100644 models/networkaccess/connectivity_state.go create mode 100644 models/networkaccess/destination_summary_traffic_type.go delete mode 100644 models/networkaccess/device_category.go create mode 100644 models/networkaccess/device_link_bandwidth_capacity_in_mbps.go create mode 100644 models/networkaccess/network_access_traffic_action.go create mode 100644 models/networkaccess/network_access_traffic_device_category.go create mode 100644 models/networkaccess/network_access_traffic_network_protocol.go create mode 100644 models/networkaccess/network_access_traffic_transport_protocol.go delete mode 100644 models/non_eap_authentication_method_for_eap_ttls_type.go delete mode 100644 models/non_eap_authentication_method_for_peap.go create mode 100644 models/notebook_user_role.go delete mode 100644 models/notification_delivery_frequency.go delete mode 100644 models/notification_delivery_preference.go create mode 100644 models/notification_priority.go delete mode 100644 models/o_auth_app_scope.go create mode 100644 models/o_auth_consent_app_detail_app_scope.go delete mode 100644 models/object_definition_metadata.go create mode 100644 models/object_definition_metadata_entry_key.go delete mode 100644 models/object_mapping_metadata.go create mode 100644 models/object_mapping_metadata_entry_key.go delete mode 100644 models/obliteration_behavior.go create mode 100644 models/on_attribute_collection_start_custom_extension.go create mode 100644 models/on_attribute_collection_start_custom_extension_handler.go create mode 100644 models/on_attribute_collection_start_handler.go create mode 100644 models/on_attribute_collection_start_listener.go create mode 100644 models/on_attribute_collection_submit_custom_extension.go create mode 100644 models/on_attribute_collection_submit_custom_extension_handler.go create mode 100644 models/on_attribute_collection_submit_handler.go create mode 100644 models/on_attribute_collection_submit_listener.go create mode 100644 models/on_premises_accidental_deletion_prevention_synchronization_prevention_type.go delete mode 100644 models/on_premises_directory_synchronization_deletion_prevention_type.go create mode 100644 models/on_premises_publishing_external_authentication_type.go create mode 100644 models/on_premises_publishing_single_sign_on_single_sign_on_mode.go create mode 100644 models/on_user_create_start_external_users_self_service_sign_up_user_type_to_create.go create mode 100644 models/onenote_patch_content_command_position.go delete mode 100644 models/onenote_patch_insert_position.go delete mode 100644 models/onenote_source_service.go delete mode 100644 models/onenote_user_role.go create mode 100644 models/online_meeting_base_allow_meeting_chat.go create mode 100644 models/online_meeting_base_allowed_presenters.go create mode 100644 models/online_meeting_base_anonymize_identity_for_roles.go create mode 100644 models/online_meeting_base_share_meeting_chat_history_default.go create mode 100644 models/online_meeting_capabilities.go delete mode 100644 models/online_meeting_content_sharing_disabled_reason.go delete mode 100644 models/online_meeting_forwarders.go delete mode 100644 models/online_meeting_presenters.go delete mode 100644 models/online_meeting_provider_type.go create mode 100644 models/online_meeting_restricted_content_sharing_disabled.go create mode 100644 models/online_meeting_restricted_video_disabled.go delete mode 100644 models/online_meeting_role.go delete mode 100644 models/online_meeting_video_disabled_reason.go delete mode 100644 models/operation_result.go create mode 100644 models/organization_partner_tenant_type.go delete mode 100644 models/original_transfer_methods.go create mode 100644 models/outlook_category_color.go create mode 100644 models/outlook_task_importance.go create mode 100644 models/outlook_task_sensitivity.go create mode 100644 models/outlook_task_status.go delete mode 100644 models/page_layout_type.go delete mode 100644 models/page_orientation.go delete mode 100644 models/page_promotion_type.go create mode 100644 models/participant_info_endpoint_type.go create mode 100644 models/partner_information_company_type.go delete mode 100644 models/partner_tenant_type.go create mode 100644 models/password_credential_configuration_restriction_type.go delete mode 100644 models/payload_delivery_platform.go create mode 100644 models/payload_platform.go create mode 100644 models/payload_simulation_attack_type.go create mode 100644 models/payload_status.go create mode 100644 models/payload_technique.go delete mode 100644 models/perfect_forward_secrecy_group.go delete mode 100644 models/permission_classification_type.go create mode 100644 models/permission_grant_condition_set_permission_type.go delete mode 100644 models/permission_type.go create mode 100644 models/permissions_request_change_active_occurrence_status.go delete mode 100644 models/permissions_request_occurrence_status.go create mode 100644 models/persistent_browser_session_control_mode.go delete mode 100644 models/persistent_browser_session_mode.go delete mode 100644 models/person_relationship.go delete mode 100644 models/personal_profile_personal_play_store_mode.go create mode 100644 models/phone_authentication_method_phone_type.go create mode 100644 models/phone_authentication_method_sms_sign_in_state.go create mode 100644 models/planner_archival_info.go create mode 100644 models/planner_bucket_creation_creation_source_kind.go delete mode 100644 models/planner_container_type.go delete mode 100644 models/planner_creation_source_kind.go create mode 100644 models/planner_external_task_source_display_link_type.go delete mode 100644 models/planner_external_task_source_display_type.go create mode 100644 models/planner_forms_dictionary.go create mode 100644 models/planner_forms_requirement.go create mode 100644 models/planner_plan_container_type.go create mode 100644 models/planner_plan_creation_creation_source_kind.go delete mode 100644 models/planner_preview_type.go create mode 100644 models/planner_property_rule_rule_kind.go delete mode 100644 models/planner_rule_kind.go delete mode 100644 models/planner_task_completion_requirements.go create mode 100644 models/planner_task_creation_creation_source_kind.go create mode 100644 models/planner_task_details_preview_type.go create mode 100644 models/planner_task_preview_type.go create mode 100644 models/planner_task_specified_completion_requirements.go create mode 100644 models/platform_credential_authentication_method_key_strength.go create mode 100644 models/platform_credential_authentication_method_platform.go delete mode 100644 models/play_prompt_completion_reason.go create mode 100644 models/play_prompt_operation_completion_reason.go delete mode 100644 models/policy_scope.go create mode 100644 models/positive_reinforcement_notification_delivery_preference.go create mode 100644 models/post_importance.go delete mode 100644 models/post_type.go delete mode 100644 models/print_color_mode.go delete mode 100644 models/print_duplex_mode.go create mode 100644 models/print_job_configuration_color_mode.go create mode 100644 models/print_job_configuration_duplex_mode.go create mode 100644 models/print_job_configuration_feed_orientation.go create mode 100644 models/print_job_configuration_finishings.go create mode 100644 models/print_job_configuration_multipage_layout.go create mode 100644 models/print_job_configuration_orientation.go create mode 100644 models/print_job_configuration_quality.go create mode 100644 models/print_job_configuration_scaling.go create mode 100644 models/print_job_status_processing_state.go delete mode 100644 models/print_multipage_layout.go delete mode 100644 models/print_scaling.go create mode 100644 models/printer_capabilities_color_modes.go create mode 100644 models/printer_capabilities_duplex_modes.go create mode 100644 models/printer_capabilities_feed_directions.go create mode 100644 models/printer_capabilities_feed_orientations.go create mode 100644 models/printer_capabilities_finishings.go create mode 100644 models/printer_capabilities_multipage_layouts.go create mode 100644 models/printer_capabilities_orientations.go create mode 100644 models/printer_capabilities_qualities.go create mode 100644 models/printer_capabilities_scalings.go create mode 100644 models/printer_defaults_color_mode.go create mode 100644 models/printer_defaults_duplex_configuration.go create mode 100644 models/printer_defaults_duplex_mode.go create mode 100644 models/printer_defaults_finishings.go create mode 100644 models/printer_defaults_multipage_layout.go create mode 100644 models/printer_defaults_orientation.go create mode 100644 models/printer_defaults_presentation_direction.go create mode 100644 models/printer_defaults_print_color_configuration.go create mode 100644 models/printer_defaults_print_quality.go create mode 100644 models/printer_defaults_quality.go create mode 100644 models/printer_defaults_scaling.go create mode 100644 models/printer_document_configuration_color_mode.go create mode 100644 models/printer_document_configuration_duplex_mode.go create mode 100644 models/printer_document_configuration_feed_direction.go create mode 100644 models/printer_document_configuration_feed_orientation.go create mode 100644 models/printer_document_configuration_finishings.go create mode 100644 models/printer_document_configuration_multipage_layout.go create mode 100644 models/printer_document_configuration_orientation.go create mode 100644 models/printer_document_configuration_quality.go create mode 100644 models/printer_document_configuration_scaling.go delete mode 100644 models/printer_feed_direction.go delete mode 100644 models/printer_feed_orientation.go delete mode 100644 models/priority.go delete mode 100644 models/private_network_destination_type.go delete mode 100644 models/private_network_protocol.go create mode 100644 models/privileged_access_group_assignment_schedule_access_id.go create mode 100644 models/privileged_access_group_assignment_schedule_assignment_type.go create mode 100644 models/privileged_access_group_assignment_schedule_instance_access_id.go create mode 100644 models/privileged_access_group_assignment_schedule_instance_assignment_type.go create mode 100644 models/privileged_access_group_assignment_schedule_instance_member_type.go create mode 100644 models/privileged_access_group_assignment_schedule_member_type.go create mode 100644 models/privileged_access_group_assignment_schedule_request_access_id.go delete mode 100644 models/privileged_access_group_assignment_type.go create mode 100644 models/privileged_access_group_eligibility_schedule_access_id.go create mode 100644 models/privileged_access_group_eligibility_schedule_instance_access_id.go create mode 100644 models/privileged_access_group_eligibility_schedule_instance_member_type.go create mode 100644 models/privileged_access_group_eligibility_schedule_member_type.go create mode 100644 models/privileged_access_group_eligibility_schedule_request_access_id.go delete mode 100644 models/privileged_access_group_member_type.go delete mode 100644 models/privileged_access_group_relationships.go create mode 100644 models/privileged_access_schedule_request_action.go create mode 100644 models/privileged_approval_approval_state.go create mode 100644 models/privileged_role_summary_status.go create mode 100644 models/privileged_signup_status_status.go delete mode 100644 models/prompt_login_behavior.go create mode 100644 models/property_labels.go create mode 100644 models/protect_group_privacy.go create mode 100644 models/protect_online_meeting_action_allowed_forwarders.go create mode 100644 models/protect_online_meeting_action_allowed_presenters.go create mode 100644 models/protect_site_access_type.go delete mode 100644 models/protocol_type.go delete mode 100644 models/provisioning_action.go create mode 100644 models/provisioning_error_info_error_category.go create mode 100644 models/provisioning_object_summary_provisioning_action.go delete mode 100644 models/provisioning_result.go delete mode 100644 models/provisioning_status_error_category.go create mode 100644 models/provisioning_status_info_status.go create mode 100644 models/provisioning_step_provisioning_step_type.go create mode 100644 models/provisioning_step_status.go delete mode 100644 models/provisioning_step_type.go create mode 100644 models/recent_notebook_source_service.go delete mode 100644 models/recipient_scope_type.go create mode 100644 models/recommendation_base_feature_areas.go create mode 100644 models/recommendation_base_recommendation_type.go delete mode 100644 models/recommendation_feature_areas.go delete mode 100644 models/recommendation_type.go delete mode 100644 models/record_completion_reason.go create mode 100644 models/record_operation_completion_reason.go create mode 100644 models/recurrence_pattern_days_of_week.go create mode 100644 models/recurrence_pattern_first_day_of_week.go create mode 100644 models/recurrence_pattern_index.go delete mode 100644 models/reference_attachment_provider.go create mode 100644 models/reference_attachment_provider_type.go delete mode 100644 models/registry_hive.go create mode 100644 models/registry_key_state_hive.go create mode 100644 models/registry_key_state_operation.go create mode 100644 models/registry_key_state_value_type.go delete mode 100644 models/registry_operation.go delete mode 100644 models/registry_value_type.go delete mode 100644 models/reject_reason.go create mode 100644 models/related_person_relationship.go delete mode 100644 models/remind_before_time_in_minutes_type.go delete mode 100644 models/reply_restriction.go create mode 100644 models/request_signature_verification_allowed_weak_algorithms.go delete mode 100644 models/requirement_provider.go create mode 100644 models/response_status_response.go delete mode 100644 models/response_type.go create mode 100644 models/retention_label_settings_behavior_during_retention_period.go delete mode 100644 models/risk_detail.go create mode 100644 models/risk_detection_activity.go create mode 100644 models/risk_detection_detection_timing_type.go create mode 100644 models/risk_detection_risk_detail.go create mode 100644 models/risk_detection_risk_level.go create mode 100644 models/risk_detection_risk_state.go create mode 100644 models/risk_detection_risk_type.go delete mode 100644 models/risk_detection_timing_type.go create mode 100644 models/risk_detection_token_issuer_type.go delete mode 100644 models/risk_event_type.go create mode 100644 models/risk_service_principal_activity_detail.go delete mode 100644 models/risk_state.go create mode 100644 models/risk_user_activity_detail.go create mode 100644 models/risk_user_activity_event_types.go create mode 100644 models/risky_service_principal_risk_detail.go create mode 100644 models/risky_service_principal_risk_level.go create mode 100644 models/risky_service_principal_risk_state.go create mode 100644 models/risky_user_risk_detail.go create mode 100644 models/risky_user_risk_level.go create mode 100644 models/risky_user_risk_state.go delete mode 100644 models/role_summary_status.go create mode 100644 models/room_booking_type.go delete mode 100644 models/routing_policy.go delete mode 100644 models/rule_mode.go create mode 100644 models/saml_or_ws_fed_provider_preferred_authentication_protocol.go delete mode 100644 models/schedule_change_request_actor.go create mode 100644 models/schedule_change_request_assigned_to.go create mode 100644 models/schedule_change_request_state.go delete mode 100644 models/schedule_change_state.go create mode 100644 models/schedule_item_status.go create mode 100644 models/schedule_provision_status.go delete mode 100644 models/schedule_request_actions.go create mode 100644 models/schedule_start_day_of_week.go create mode 100644 models/search/answer_variant_platform.go delete mode 100644 models/search_alteration_type.go delete mode 100644 models/search_content.go create mode 100644 models/search_request_entity_types.go delete mode 100644 models/section_emphasis_type.go delete mode 100644 models/security/action_after_retention_period.go delete mode 100644 models/security/additional_data_options.go delete mode 100644 models/security/additional_options.go create mode 100644 models/security/alert_detection_source.go create mode 100644 models/security/audit_log_query_record_type_filters.go create mode 100644 models/security/audit_log_record_audit_log_record_type.go delete mode 100644 models/security/audit_log_record_type.go create mode 100644 models/security/audit_log_record_user_type.go delete mode 100644 models/security/audit_log_user_type.go delete mode 100644 models/security/behavior_during_retention_period.go delete mode 100644 models/security/case_action.go create mode 100644 models/security/case_operation_action.go delete mode 100644 models/security/child_selectability.go delete mode 100644 models/security/container_port_protocol.go delete mode 100644 models/security/content_format.go create mode 100644 models/security/cvss_summary_severity.go create mode 100644 models/security/data_source_container_hold_status.go delete mode 100644 models/security/data_source_scopes.go delete mode 100644 models/security/default_record_behavior.go delete mode 100644 models/security/defender_av_status.go delete mode 100644 models/security/detection_source.go delete mode 100644 models/security/detection_status.go create mode 100644 models/security/device_evidence_defender_av_status.go create mode 100644 models/security/device_evidence_health_status.go create mode 100644 models/security/device_evidence_onboarding_status.go create mode 100644 models/security/device_evidence_risk_score.go delete mode 100644 models/security/device_health_status.go delete mode 100644 models/security/device_risk_score.go create mode 100644 models/security/ediscovery_export_operation_export_options.go create mode 100644 models/security/ediscovery_export_operation_export_structure.go create mode 100644 models/security/ediscovery_review_tag_child_selectability.go create mode 100644 models/security/ediscovery_search_data_source_scopes.go create mode 100644 models/security/ediscovery_search_export_operation_additional_options.go create mode 100644 models/security/ediscovery_search_export_operation_export_criteria.go create mode 100644 models/security/ediscovery_search_export_operation_export_format.go create mode 100644 models/security/ediscovery_search_export_operation_export_location.go create mode 100644 models/security/email_threat_submission_original_category.go create mode 100644 models/security/event_propagation_result_status.go delete mode 100644 models/security/event_propagation_status.go create mode 100644 models/security/event_query_query_type.go delete mode 100644 models/security/event_status_type.go delete mode 100644 models/security/export_criteria.go delete mode 100644 models/security/export_file_structure.go delete mode 100644 models/security/export_format.go delete mode 100644 models/security/export_location.go delete mode 100644 models/security/export_options.go create mode 100644 models/security/file_evidence_detection_status.go create mode 100644 models/security/file_source_type.go create mode 100644 models/security/formatted_content_format.go delete mode 100644 models/security/google_cloud_location_type.go create mode 100644 models/security/google_cloud_resource_evidence_location_type.go delete mode 100644 models/security/hunting_rule_error_code.go delete mode 100644 models/security/hunting_rule_run_status.go create mode 100644 models/security/incident_classification.go create mode 100644 models/security/incident_determination.go create mode 100644 models/security/kubernetes_cluster_evidence_platform.go delete mode 100644 models/security/kubernetes_platform.go create mode 100644 models/security/kubernetes_service_port_protocol.go delete mode 100644 models/security/long_running_operation_status.go delete mode 100644 models/security/onboarding_status.go create mode 100644 models/security/policy_base_status.go delete mode 100644 models/security/policy_status.go create mode 100644 models/security/process_evidence_detection_status.go delete mode 100644 models/security/purge_areas.go delete mode 100644 models/security/purge_type.go delete mode 100644 models/security/query_type.go create mode 100644 models/security/retention_event_status_status.go create mode 100644 models/security/retention_label_action_after_retention_period.go create mode 100644 models/security/retention_label_behavior_during_retention_period.go create mode 100644 models/security/retention_label_default_record_behavior.go create mode 100644 models/security/retention_label_retention_trigger.go delete mode 100644 models/security/retention_trigger.go create mode 100644 models/security/run_details_error_code.go create mode 100644 models/security/run_details_status.go delete mode 100644 models/security/source_type.go create mode 100644 models/security/submission_admin_review_review_result.go delete mode 100644 models/security/submission_client_source.go delete mode 100644 models/security/submission_content_type.go create mode 100644 models/security/submission_result_user_mailbox_setting.go delete mode 100644 models/security/submission_source.go delete mode 100644 models/security/tenant_allow_block_list_action.go create mode 100644 models/security/tenant_allow_block_list_entry_result_entry_type.go create mode 100644 models/security/tenant_allow_block_list_entry_result_status.go delete mode 100644 models/security/tenant_allow_block_list_entry_type.go create mode 100644 models/security/tenant_allow_or_block_list_action_action.go create mode 100644 models/security/threat_submission_client_source.go create mode 100644 models/security/threat_submission_content_type.go create mode 100644 models/security/threat_submission_source.go create mode 100644 models/security/threat_submission_status.go create mode 100644 models/security/unified_group_source_included_sources.go delete mode 100644 models/security/user_mailbox_setting.go create mode 100644 models/security/user_source_included_sources.go create mode 100644 models/security_action_state_status.go create mode 100644 models/security_action_status.go delete mode 100644 models/security_network_protocol.go create mode 100644 models/security_resource_resource_type.go delete mode 100644 models/security_resource_type.go delete mode 100644 models/send_dtmf_completion_reason.go create mode 100644 models/send_dtmf_tones_operation_completion_reason.go create mode 100644 models/sensitive_type_classification_method.go create mode 100644 models/sensitive_type_sensitive_type_source.go delete mode 100644 models/sensitive_type_source.go delete mode 100644 models/sensitivity.go create mode 100644 models/sensitivity_label_applicable_to.go create mode 100644 models/sensitivity_label_application_mode.go delete mode 100644 models/sensitivity_label_target.go create mode 100644 models/sensitivity_policy_settings_applicable_to.go create mode 100644 models/service_health_issue_post_post_type.go create mode 100644 models/service_principal_risk_detection_activity.go create mode 100644 models/service_principal_risk_detection_detection_timing_type.go create mode 100644 models/service_principal_risk_detection_risk_detail.go create mode 100644 models/service_principal_risk_detection_risk_level.go create mode 100644 models/service_principal_risk_detection_risk_state.go create mode 100644 models/service_principal_risk_detection_token_issuer_type.go create mode 100644 models/session_lifetime_policy_expiration_requirement.go delete mode 100644 models/setup_status.go create mode 100644 models/share_point_one_drive_options_include_content.go create mode 100644 models/sharepoint_settings_image_tagging_option.go create mode 100644 models/sharepoint_settings_sharing_capability.go create mode 100644 models/sharepoint_settings_sharing_domain_restriction_mode.go delete mode 100644 models/sharing_capabilities.go delete mode 100644 models/sharing_domain_restriction_mode.go delete mode 100644 models/shift_work_cloud_pc_access_state.go delete mode 100644 models/sign_in_access_type.go create mode 100644 models/sign_in_app_token_protection_status.go create mode 100644 models/sign_in_authentication_protocol.go create mode 100644 models/sign_in_client_credential_type.go create mode 100644 models/sign_in_conditional_access_status.go create mode 100644 models/sign_in_cross_tenant_access_type.go delete mode 100644 models/sign_in_frequency_authentication_type.go delete mode 100644 models/sign_in_frequency_interval.go create mode 100644 models/sign_in_frequency_session_control_authentication_type.go create mode 100644 models/sign_in_frequency_session_control_frequency_interval.go create mode 100644 models/sign_in_frequency_session_control_type.go delete mode 100644 models/sign_in_identifier_type.go create mode 100644 models/sign_in_incoming_token_type.go create mode 100644 models/sign_in_original_transfer_method.go create mode 100644 models/sign_in_preferences_user_preferred_method_for_secondary_authentication.go create mode 100644 models/sign_in_risk_detail.go create mode 100644 models/sign_in_risk_level_aggregated.go create mode 100644 models/sign_in_risk_level_during_sign_in.go create mode 100644 models/sign_in_risk_state.go create mode 100644 models/sign_in_sign_in_identifier_type.go create mode 100644 models/sign_in_sign_in_token_protection_status.go create mode 100644 models/sign_in_token_issuer_type.go delete mode 100644 models/signin_frequency_type.go delete mode 100644 models/simulation_content_status.go create mode 100644 models/simulation_notification_targetted_user_type.go create mode 100644 models/simulation_payload_delivery_platform.go delete mode 100644 models/single_sign_on_mode.go delete mode 100644 models/site_access_type.go create mode 100644 models/site_page_promotion_kind.go delete mode 100644 models/skill_proficiency_level.go create mode 100644 models/skill_proficiency_proficiency.go create mode 100644 models/standard_time_zone_offset_day_of_week.go delete mode 100644 models/status.go create mode 100644 models/status_base_status.go create mode 100644 models/status_details_error_category.go create mode 100644 models/subject_rights_request_data_subject_type.go create mode 100644 models/subject_rights_request_history_stage.go create mode 100644 models/subject_rights_request_history_stage_status.go delete mode 100644 models/subject_rights_request_stage.go create mode 100644 models/subject_rights_request_stage_detail_stage.go create mode 100644 models/subject_rights_request_stage_detail_status.go delete mode 100644 models/subject_rights_request_stage_status.go create mode 100644 models/synchronization_job_restart_criteria_reset_scope.go delete mode 100644 models/synchronization_job_restart_scope.go delete mode 100644 models/synchronization_metadata.go create mode 100644 models/synchronization_metadata_entry_key.go create mode 100644 models/target_resource_group_type.go delete mode 100644 models/targetted_user_type.go create mode 100644 models/team_fun_settings_giphy_content_rating.go delete mode 100644 models/team_template_audience.go create mode 100644 models/team_template_definition_audience.go create mode 100644 models/team_visibility.go create mode 100644 models/teams_app_definition_allowed_installation_scopes.go create mode 100644 models/teams_app_definition_publishing_state.go delete mode 100644 models/teams_app_installation_scopes.go delete mode 100644 models/teams_app_publishing_state.go create mode 100644 models/teams_app_resource_specific_permission_permission_type.go delete mode 100644 models/teams_app_resource_specific_permission_type.go create mode 100644 models/teams_licensing_details.go create mode 100644 models/teamwork_account_configuration_supported_client.go create mode 100644 models/teamwork_application_identity_application_identity_type.go delete mode 100644 models/teamwork_application_identity_type.go delete mode 100644 models/teamwork_call_event_type.go create mode 100644 models/teamwork_connection_connection_status.go delete mode 100644 models/teamwork_connection_status.go create mode 100644 models/teamwork_conversation_identity_conversation_identity_type.go delete mode 100644 models/teamwork_conversation_identity_type.go delete mode 100644 models/teamwork_software_freshness.go create mode 100644 models/teamwork_software_update_status_software_freshness.go delete mode 100644 models/teamwork_supported_client.go create mode 100644 models/teamwork_tag_tag_type.go delete mode 100644 models/teamwork_tag_type.go delete mode 100644 models/teamwork_user_identity_type.go create mode 100644 models/teamwork_user_identity_user_identity_type.go create mode 100644 models/tenant_setup_info_setup_status.go create mode 100644 models/termstore/group_scope.go create mode 100644 models/termstore/relation_relationship.go delete mode 100644 models/termstore/relation_type.go delete mode 100644 models/termstore/term_group_scope.go create mode 100644 models/text_classification_request_match_tolerances_to_include.go create mode 100644 models/text_classification_request_scopes_to_run.go delete mode 100644 models/threat_assessment_content_type.go create mode 100644 models/threat_assessment_request_content_type.go create mode 100644 models/threat_assessment_request_request_source.go delete mode 100644 models/threat_assessment_request_source.go create mode 100644 models/threat_assessment_request_status.go create mode 100644 models/threat_assessment_result_result_type.go delete mode 100644 models/threat_assessment_result_type.go delete mode 100644 models/threat_assessment_status.go delete mode 100644 models/ti_action.go create mode 100644 models/ti_indicator_action.go create mode 100644 models/ti_indicator_diamond_model.go create mode 100644 models/ti_indicator_file_hash_type.go create mode 100644 models/ti_indicator_tlp_level.go create mode 100644 models/time_card_confirmed_by.go create mode 100644 models/time_constraint_activity_domain.go create mode 100644 models/title_area_layout.go delete mode 100644 models/title_area_layout_type.go create mode 100644 models/title_area_text_alignment.go delete mode 100644 models/title_area_text_alignment_type.go delete mode 100644 models/tlp_level.go delete mode 100644 models/token_issuer_type.go delete mode 100644 models/token_protection_status.go delete mode 100644 models/training_assigned_to.go delete mode 100644 models/training_completion_duration.go create mode 100644 models/training_reminder_notification_delivery_frequency.go create mode 100644 models/training_setting_setting_type.go delete mode 100644 models/training_setting_type.go create mode 100644 models/training_source.go delete mode 100644 models/training_status.go delete mode 100644 models/translation_behavior.go create mode 100644 models/translation_language_override_translation_behavior.go create mode 100644 models/translation_preferences_translation_behavior.go create mode 100644 models/typed_email_address_type.go create mode 100644 models/unified_role_definition_allowed_principal_types.go create mode 100644 models/unified_role_management_alert_definition_severity_level.go delete mode 100644 models/user_account_security_type.go create mode 100644 models/user_account_status.go create mode 100644 models/user_activity_status.go delete mode 100644 models/user_default_authentication_method.go delete mode 100644 models/user_default_authentication_method_type.go create mode 100644 models/user_last_sign_in_recommendation_insight_setting_sign_in_scope.go delete mode 100644 models/user_new_message_restriction.go delete mode 100644 models/user_purpose.go create mode 100644 models/user_registration_details_default_mfa_method.go create mode 100644 models/user_registration_details_user_preferred_method_for_secondary_authentication.go create mode 100644 models/user_registration_details_user_type.go create mode 100644 models/user_registration_feature_summary_user_roles.go create mode 100644 models/user_registration_feature_summary_user_types.go create mode 100644 models/user_registration_method_summary_user_roles.go create mode 100644 models/user_registration_method_summary_user_types.go create mode 100644 models/user_security_state_email_role.go create mode 100644 models/user_security_state_logon_type.go create mode 100644 models/user_security_state_user_account_type.go delete mode 100644 models/user_sign_in_recommendation_scope.go create mode 100644 models/user_training_event_info_latest_training_status.go create mode 100644 models/user_training_status_info_training_status.go delete mode 100644 models/user_type.go delete mode 100644 models/username_source.go create mode 100644 models/vertical_section_emphasis.go delete mode 100644 models/virtual_appointment_sms_type.go delete mode 100644 models/virtual_event_attendee_registration_status.go rename models/{virtual_event_registratio_custom_question.go => virtual_event_registration_custom_question.go} (58%) create mode 100644 models/virtual_event_registration_custom_question_answer_input_type.go delete mode 100644 models/virtual_event_registration_question_answer_input_type.go create mode 100644 models/virtual_event_registration_status.go create mode 100644 models/virtual_event_townhall_audience.go create mode 100644 models/virtual_event_webinar_audience.go delete mode 100644 models/volume_type.go delete mode 100644 models/vpn_dead_peer_detection_rate.go delete mode 100644 models/vpn_encryption_algorithm_type.go delete mode 100644 models/vpn_integrity_algorithm_type.go delete mode 100644 models/vpn_provider_type.go delete mode 100644 models/vpn_server_certificate_type.go delete mode 100644 models/vpn_service_exception_action.go delete mode 100644 models/weak_algorithms.go delete mode 100644 models/week_index.go delete mode 100644 models/wi_fi_authentication_method.go delete mode 100644 models/wifi_authentication_type.go create mode 100644 models/win32_lob_app_power_shell_script_rule_run_as_account.go create mode 100644 models/windows10_endpoint_protection_configuration_defender_cloud_block_level.go create mode 100644 models/windows10_endpoint_protection_configuration_defender_potentially_unwanted_app_action.go create mode 100644 models/windows10_endpoint_protection_configuration_defender_scan_direction.go create mode 100644 models/windows10_endpoint_protection_configuration_defender_scan_type.go create mode 100644 models/windows10_endpoint_protection_configuration_defender_scheduled_scan_day.go create mode 100644 models/windows10_endpoint_protection_configuration_defender_submit_samples_consent_type.go create mode 100644 models/windows10_general_configuration_defender_potentially_unwanted_app_action.go create mode 100644 models/windows10_general_configuration_defender_submit_samples_consent_type.go create mode 100644 models/windows10_pkcs_certificate_profile_certificate_store.go create mode 100644 models/windows10_vpn_configuration_profile_target.go delete mode 100644 models/windows10_vpn_profile_target.go create mode 100644 models/windows81_s_c_e_p_certificate_profile_certificate_store.go create mode 100644 models/windows_certificate_profile_base_subject_alternative_name_type.go delete mode 100644 models/windows_defender_product_status.go delete mode 100644 models/windows_device_health_state.go create mode 100644 models/windows_device_malware_state_category.go create mode 100644 models/windows_device_malware_state_execution_state.go create mode 100644 models/windows_device_malware_state_severity.go create mode 100644 models/windows_device_malware_state_state.go create mode 100644 models/windows_device_malware_state_threat_state.go create mode 100644 models/windows_hello_for_business_authentication_method_key_strength.go create mode 100644 models/windows_malware_information_category.go create mode 100644 models/windows_malware_information_severity.go delete mode 100644 models/windows_malware_state.go create mode 100644 models/windows_managed_app_protection_app_action_if_unable_to_authenticate_user.go create mode 100644 models/windows_phone_e_a_s_email_profile_configuration_email_address_source.go create mode 100644 models/windows_protection_state_device_state.go create mode 100644 models/windows_protection_state_product_status.go create mode 100644 models/windows_update_for_business_configuration_update_weeks.go delete mode 100644 models/windows_update_for_business_update_weeks.go create mode 100644 models/windows_wifi_configuration_metered_connection_limit.go create mode 100644 models/windows_wifi_configuration_proxy_setting.go create mode 100644 models/windows_wifi_configuration_wifi_security_type.go create mode 100644 models/windows_wifi_enterprise_e_a_p_configuration_authentication_method.go create mode 100644 models/windows_wifi_enterprise_e_a_p_configuration_authentication_type.go create mode 100644 models/windows_wifi_enterprise_e_a_p_configuration_inner_authentication_protocol_for_e_a_p_t_t_l_s.go create mode 100644 models/windows_wifi_enterprise_e_a_p_configuration_network_single_sign_on.go create mode 100644 models/windows_wired_network_configuration_authentication_method.go create mode 100644 models/windows_wired_network_configuration_authentication_type.go create mode 100644 models/windows_wired_network_configuration_inner_authentication_protocol_for_e_a_p_t_t_l_s.go create mode 100644 models/windows_wired_network_configuration_secondary_authentication_method.go delete mode 100644 models/windowsupdates/cve_severity_level.go delete mode 100644 models/windowsupdates/monitoring_action.go create mode 100644 models/windowsupdates/monitoring_rule_action.go create mode 100644 models/windowsupdates/monitoring_rule_signal.go delete mode 100644 models/windowsupdates/monitoring_signal.go delete mode 100644 models/windowsupdates/quality_update_cadence.go create mode 100644 models/windowsupdates/quality_update_catalog_entry_quality_update_cadence.go create mode 100644 models/windowsupdates/quality_update_cve_severity_information_max_severity.go delete mode 100644 models/windowsupdates/safeguard_category.go create mode 100644 models/windowsupdates/safeguard_profile_category.go delete mode 100644 models/wired_network_authentication_method.go delete mode 100644 models/wired_network_authentication_type.go create mode 100644 models/workforce_integration_eligibility_filtering_enabled_entities.go create mode 100644 models/workforce_integration_supports.go create mode 100644 models/working_hours_days_of_week.go delete mode 100644 models/x509_certificate_affinity_level.go delete mode 100644 models/x509_certificate_authentication_mode.go create mode 100644 models/x509_certificate_authentication_mode_configuration_x509_certificate_authentication_default_mode.go create mode 100644 models/x509_certificate_authentication_mode_configuration_x509_certificate_default_required_affinity_level.go create mode 100644 models/x509_certificate_issuer_hints_configuration_state.go delete mode 100644 models/x509_certificate_issuer_hints_state.go delete mode 100644 models/x509_certificate_rule_type.go create mode 100644 models/x509_certificate_rule_x509_certificate_authentication_mode.go create mode 100644 models/x509_certificate_rule_x509_certificate_required_affinity_level.go create mode 100644 models/x509_certificate_rule_x509_certificate_rule_type.go create mode 100644 models/x509_certificate_user_binding_trust_affinity_level.go create mode 100644 planner/plans_item_archive_post_request_body.go create mode 100644 planner/plans_item_archive_request_builder.go create mode 100644 planner/plans_item_unarchive_post_request_body.go create mode 100644 planner/plans_item_unarchive_request_builder.go create mode 100644 policies/authenticationstrengthpolicies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go create mode 100644 security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityaddtoreviewset/add_to_review_set_post_request_body_additional_data_options.go create mode 100644 security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityexport/export_post_request_body_export_options.go create mode 100644 security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityexport/export_post_request_body_export_structure.go create mode 100644 security/cases/ediscoverycases/item/reviewsets/item/queries/item/microsoftgraphsecurityexport/export_post_request_body_export_options.go create mode 100644 security/cases/ediscoverycases/item/reviewsets/item/queries/item/microsoftgraphsecurityexport/export_post_request_body_export_structure.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_additional_options.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_export_criteria.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_export_location.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_additional_options.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_criteria.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_format.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_location.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecuritypurgedata/purge_data_post_request_body_purge_areas.go create mode 100644 security/cases/ediscoverycases/item/searches/item/microsoftgraphsecuritypurgedata/purge_data_post_request_body_purge_type.go create mode 100644 serviceprincipals/item_license_details_get_teams_licensing_details_request_builder.go create mode 100644 teams/item_channels_item_archive_post_request_body.go create mode 100644 teams/item_channels_item_archive_request_builder.go create mode 100644 teams/item_channels_item_unarchive_request_builder.go create mode 100644 teams/item_primary_channel_archive_post_request_body.go create mode 100644 teams/item_primary_channel_archive_request_builder.go create mode 100644 teams/item_primary_channel_unarchive_request_builder.go create mode 100644 teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go create mode 100644 teamtemplatedefinition/item_team_definition_channels_item_archive_request_builder.go create mode 100644 teamtemplatedefinition/item_team_definition_channels_item_unarchive_request_builder.go create mode 100644 teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go create mode 100644 teamtemplatedefinition/item_team_definition_primary_channel_archive_request_builder.go create mode 100644 teamtemplatedefinition/item_team_definition_primary_channel_unarchive_request_builder.go create mode 100644 teamwork/deleted_teams_item_channels_item_archive_post_request_body.go create mode 100644 teamwork/deleted_teams_item_channels_item_archive_request_builder.go create mode 100644 teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go create mode 100644 teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go create mode 100644 teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_request_builder.go create mode 100644 teamwork/team_templates_item_definitions_item_team_definition_channels_item_unarchive_request_builder.go create mode 100644 teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go create mode 100644 teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_request_builder.go create mode 100644 teamwork/team_templates_item_definitions_item_team_definition_primary_channel_unarchive_request_builder.go create mode 100644 users/item/cloudpcs/item/changeuseraccounttype/change_user_account_type_post_request_body_user_account_type.go create mode 100644 users/item/cloudpcs/item/getfrontlinecloudpcaccessstate/get_frontline_cloud_pc_access_state_get_response.go create mode 100644 users/item/cloudpcs/item/getshiftworkcloudpcaccessstate/get_shift_work_cloud_pc_access_state_get_response.go create mode 100644 users/item/cloudpcs/item/reprovision/reprovision_post_request_body_os_version.go create mode 100644 users/item/cloudpcs/item/reprovision/reprovision_post_request_body_user_account_type.go create mode 100644 users/item/getmailtips/get_mail_tips_post_request_body_mail_tips_options.go create mode 100644 users/item/manageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go create mode 100644 users/item/manageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go create mode 100644 users/item/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go create mode 100644 users/item/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go create mode 100644 users/item_license_details_get_teams_licensing_details_request_builder.go create mode 100644 users/item_planner_plans_item_archive_post_request_body.go create mode 100644 users/item_planner_plans_item_archive_request_builder.go create mode 100644 users/item_planner_plans_item_unarchive_post_request_body.go create mode 100644 users/item_planner_plans_item_unarchive_request_builder.go diff --git a/admin/admin_request_builder.go b/admin/admin_request_builder.go index 43ea2cf9123..606efe50162 100644 --- a/admin/admin_request_builder.go +++ b/admin/admin_request_builder.go @@ -82,6 +82,10 @@ func (m *AdminRequestBuilder) Get(ctx context.Context, requestConfiguration *Adm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Adminable), nil } +// Microsoft365Apps provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity. +func (m *AdminRequestBuilder) Microsoft365Apps()(*Microsoft365AppsRequestBuilder) { + return NewMicrosoft365AppsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Patch update admin func (m *AdminRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Adminable, requestConfiguration *AdminRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Adminable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); diff --git a/admin/microsoft365_apps_installation_options_request_builder.go b/admin/microsoft365_apps_installation_options_request_builder.go new file mode 100644 index 00000000000..77298f7c68e --- /dev/null +++ b/admin/microsoft365_apps_installation_options_request_builder.go @@ -0,0 +1,157 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// Microsoft365AppsInstallationOptionsRequestBuilder provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity. +type Microsoft365AppsInstallationOptionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// Microsoft365AppsInstallationOptionsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsInstallationOptionsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Microsoft365AppsInstallationOptionsRequestBuilderGetQueryParameters read the properties and relationships of an m365AppsInstallationOptions object. +type Microsoft365AppsInstallationOptionsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// Microsoft365AppsInstallationOptionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsInstallationOptionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *Microsoft365AppsInstallationOptionsRequestBuilderGetQueryParameters +} +// Microsoft365AppsInstallationOptionsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsInstallationOptionsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMicrosoft365AppsInstallationOptionsRequestBuilderInternal instantiates a new InstallationOptionsRequestBuilder and sets the default values. +func NewMicrosoft365AppsInstallationOptionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*Microsoft365AppsInstallationOptionsRequestBuilder) { + m := &Microsoft365AppsInstallationOptionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/microsoft365Apps/installationOptions{?%24select,%24expand}", pathParameters), + } + return m +} +// NewMicrosoft365AppsInstallationOptionsRequestBuilder instantiates a new InstallationOptionsRequestBuilder and sets the default values. +func NewMicrosoft365AppsInstallationOptionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*Microsoft365AppsInstallationOptionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMicrosoft365AppsInstallationOptionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property installationOptions for admin +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) Delete(ctx context.Context, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties and relationships of an m365AppsInstallationOptions object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/m365appsinstallationoptions-get?view=graph-rest-1.0 +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) Get(ctx context.Context, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateM365AppsInstallationOptionsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable), nil +} +// Patch update the properties of an m365AppsInstallationOptions object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/m365appsinstallationoptions-update?view=graph-rest-1.0 +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateM365AppsInstallationOptionsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable), nil +} +// ToDeleteRequestInformation delete navigation property installationOptions for admin +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation read the properties and relationships of an m365AppsInstallationOptions object. +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the properties of an m365AppsInstallationOptions object. +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.M365AppsInstallationOptionsable, requestConfiguration *Microsoft365AppsInstallationOptionsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *Microsoft365AppsInstallationOptionsRequestBuilder) WithUrl(rawUrl string)(*Microsoft365AppsInstallationOptionsRequestBuilder) { + return NewMicrosoft365AppsInstallationOptionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/microsoft365_apps_request_builder.go b/admin/microsoft365_apps_request_builder.go new file mode 100644 index 00000000000..ed0f6e171f7 --- /dev/null +++ b/admin/microsoft365_apps_request_builder.go @@ -0,0 +1,155 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// Microsoft365AppsRequestBuilder provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity. +type Microsoft365AppsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// Microsoft365AppsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Microsoft365AppsRequestBuilderGetQueryParameters a container for the Microsoft 365 apps admin functionality. +type Microsoft365AppsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// Microsoft365AppsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *Microsoft365AppsRequestBuilderGetQueryParameters +} +// Microsoft365AppsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type Microsoft365AppsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMicrosoft365AppsRequestBuilderInternal instantiates a new Microsoft365AppsRequestBuilder and sets the default values. +func NewMicrosoft365AppsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*Microsoft365AppsRequestBuilder) { + m := &Microsoft365AppsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/microsoft365Apps{?%24select,%24expand}", pathParameters), + } + return m +} +// NewMicrosoft365AppsRequestBuilder instantiates a new Microsoft365AppsRequestBuilder and sets the default values. +func NewMicrosoft365AppsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*Microsoft365AppsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMicrosoft365AppsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property microsoft365Apps for admin +func (m *Microsoft365AppsRequestBuilder) Delete(ctx context.Context, requestConfiguration *Microsoft365AppsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get a container for the Microsoft 365 apps admin functionality. +func (m *Microsoft365AppsRequestBuilder) Get(ctx context.Context, requestConfiguration *Microsoft365AppsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAdminMicrosoft365AppsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable), nil +} +// InstallationOptions provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity. +func (m *Microsoft365AppsRequestBuilder) InstallationOptions()(*Microsoft365AppsInstallationOptionsRequestBuilder) { + return NewMicrosoft365AppsInstallationOptionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property microsoft365Apps in admin +func (m *Microsoft365AppsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable, requestConfiguration *Microsoft365AppsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAdminMicrosoft365AppsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable), nil +} +// ToDeleteRequestInformation delete navigation property microsoft365Apps for admin +func (m *Microsoft365AppsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *Microsoft365AppsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation a container for the Microsoft 365 apps admin functionality. +func (m *Microsoft365AppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *Microsoft365AppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property microsoft365Apps in admin +func (m *Microsoft365AppsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminMicrosoft365Appsable, requestConfiguration *Microsoft365AppsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *Microsoft365AppsRequestBuilder) WithUrl(rawUrl string)(*Microsoft365AppsRequestBuilder) { + return NewMicrosoft365AppsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go b/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go index 95e32161c37..f4fc553640f 100644 --- a/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go +++ b/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go @@ -18,7 +18,7 @@ type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDelete // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of an operationalInsightsConnection object. +// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of a resourceConnection object. type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return nil } -// Get read the properties and relationships of an operationalInsightsConnection object. +// Get read the properties and relationships of a resourceConnection object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-1.0 func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ResourceConnectionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an operationalInsightsConnection object. +// ToGetRequestInformation read the properties and relationships of a resourceConnection object. func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go b/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go index 5dd534f2ba4..3835e7f0041 100644 --- a/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go +++ b/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go @@ -18,7 +18,7 @@ type WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestC // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties and relationships of an updatableAsset object. +// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties of an azureADDevice object. type WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,10 +54,10 @@ func NewWindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. +// Delete delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered from the deployment service and automatically unenrolled from management by the service for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,10 +73,10 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Delete(c } return nil } -// Get read the properties and relationships of an updatableAsset object. +// Get read the properties of an azureADDevice object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.UpdatableAssetable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Patch(ct } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.UpdatableAssetable), nil } -// ToDeleteRequestInformation delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. +// ToDeleteRequestInformation delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered from the deployment service and automatically unenrolled from management by the service for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup. func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -140,7 +140,7 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDelete requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an updatableAsset object. +// ToGetRequestInformation read the properties of an azureADDevice object. func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go b/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go index 6cdc212c749..ec5e822ca2a 100644 --- a/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go +++ b/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go @@ -18,7 +18,7 @@ type WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters read the properties and relationships of a contentApproval object. +// WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters read the properties and relationships of a complianceChange object. type WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return nil } -// Get read the properties and relationships of a contentApproval object. +// Get read the properties and relationships of a complianceChange object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a contentApproval object. +// ToGetRequestInformation read the properties and relationships of a complianceChange object. func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/app/calls/item/answer/answer_post_request_body_accepted_modalities.go b/app/calls/item/answer/answer_post_request_body_accepted_modalities.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/app/calls/item/redirect/redirect_post_request_body_target_disposition.go b/app/calls/item/redirect/redirect_post_request_body_target_disposition.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/app/calls/item/reject/reject_post_request_body_reason.go b/app/calls/item/reject/reject_post_request_body_reason.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/app/calls_item_answer_post_request_body.go b/app/calls_item_answer_post_request_body.go index 68506db7ee5..e7b2c344f62 100644 --- a/app/calls_item_answer_post_request_body.go +++ b/app/calls_item_answer_post_request_body.go @@ -23,17 +23,6 @@ func NewCallsItemAnswerPostRequestBody()(*CallsItemAnswerPostRequestBody) { func CreateCallsItemAnswerPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCallsItemAnswerPostRequestBody(), nil } -// GetAcceptedModalities gets the acceptedModalities property value. The acceptedModalities property -func (m *CallsItemAnswerPostRequestBody) GetAcceptedModalities()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality) { - val, err := m.GetBackingStore().Get("acceptedModalities") - if err != nil { - panic(err) - } - if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality) - } - return nil -} // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. func (m *CallsItemAnswerPostRequestBody) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") @@ -75,22 +64,6 @@ func (m *CallsItemAnswerPostRequestBody) GetCallOptions()(ie233ee762e29b4ba6970a // GetFieldDeserializers the deserialization information for the current model func (m *CallsItemAnswerPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["acceptedModalities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseModality) - if err != nil { - return err - } - if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality)) - } - } - m.SetAcceptedModalities(res) - } - return nil - } res["callbackUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -157,12 +130,6 @@ func (m *CallsItemAnswerPostRequestBody) GetParticipantCapacity()(*int32) { } // Serialize serializes information the current object func (m *CallsItemAnswerPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAcceptedModalities() != nil { - err := writer.WriteCollectionOfStringValues("acceptedModalities", ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SerializeModality(m.GetAcceptedModalities())) - if err != nil { - return err - } - } { err := writer.WriteStringValue("callbackUri", m.GetCallbackUri()) if err != nil { @@ -195,13 +162,6 @@ func (m *CallsItemAnswerPostRequestBody) Serialize(writer i878a80d2330e89d268963 } return nil } -// SetAcceptedModalities sets the acceptedModalities property value. The acceptedModalities property -func (m *CallsItemAnswerPostRequestBody) SetAcceptedModalities(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality)() { - err := m.GetBackingStore().Set("acceptedModalities", value) - if err != nil { - panic(err) - } -} // SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. func (m *CallsItemAnswerPostRequestBody) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) @@ -246,13 +206,11 @@ type CallsItemAnswerPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAcceptedModalities()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCallbackUri()(*string) GetCallOptions()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IncomingCallOptionsable) GetMediaConfig()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MediaConfigable) GetParticipantCapacity()(*int32) - SetAcceptedModalities(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCallbackUri(value *string)() SetCallOptions(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IncomingCallOptionsable)() diff --git a/app/calls_item_redirect_post_request_body.go b/app/calls_item_redirect_post_request_body.go index 80ffa011fbd..79638d211b0 100644 --- a/app/calls_item_redirect_post_request_body.go +++ b/app/calls_item_redirect_post_request_body.go @@ -83,16 +83,6 @@ func (m *CallsItemRedirectPostRequestBody) GetFieldDeserializers()(map[string]fu } return nil } - res["targetDisposition"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCallDisposition) - if err != nil { - return err - } - if val != nil { - m.SetTargetDisposition(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition)) - } - return nil - } res["targets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateInvitationParticipantInfoFromDiscriminatorValue) if err != nil { @@ -143,17 +133,6 @@ func (m *CallsItemRedirectPostRequestBody) GetMaskCaller()(*bool) { } return nil } -// GetTargetDisposition gets the targetDisposition property value. The targetDisposition property -func (m *CallsItemRedirectPostRequestBody) GetTargetDisposition()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition) { - val, err := m.GetBackingStore().Get("targetDisposition") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition) - } - return nil -} // GetTargets gets the targets property value. The targets property func (m *CallsItemRedirectPostRequestBody) GetTargets()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InvitationParticipantInfoable) { val, err := m.GetBackingStore().Get("targets") @@ -196,13 +175,6 @@ func (m *CallsItemRedirectPostRequestBody) Serialize(writer i878a80d2330e89d2689 return err } } - if m.GetTargetDisposition() != nil { - cast := (*m.GetTargetDisposition()).String() - err := writer.WriteStringValue("targetDisposition", &cast) - if err != nil { - return err - } - } if m.GetTargets() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTargets())) for i, v := range m.GetTargets() { @@ -261,13 +233,6 @@ func (m *CallsItemRedirectPostRequestBody) SetMaskCaller(value *bool)() { panic(err) } } -// SetTargetDisposition sets the targetDisposition property value. The targetDisposition property -func (m *CallsItemRedirectPostRequestBody) SetTargetDisposition(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition)() { - err := m.GetBackingStore().Set("targetDisposition", value) - if err != nil { - panic(err) - } -} // SetTargets sets the targets property value. The targets property func (m *CallsItemRedirectPostRequestBody) SetTargets(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InvitationParticipantInfoable)() { err := m.GetBackingStore().Set("targets", value) @@ -291,14 +256,12 @@ type CallsItemRedirectPostRequestBodyable interface { GetCallbackUri()(*string) GetMaskCallee()(*bool) GetMaskCaller()(*bool) - GetTargetDisposition()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition) GetTargets()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InvitationParticipantInfoable) GetTimeout()(*int32) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCallbackUri(value *string)() SetMaskCallee(value *bool)() SetMaskCaller(value *bool)() - SetTargetDisposition(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition)() SetTargets(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InvitationParticipantInfoable)() SetTimeout(value *int32)() } diff --git a/app/calls_item_reject_post_request_body.go b/app/calls_item_reject_post_request_body.go index 103a76d06d2..acac8b39a87 100644 --- a/app/calls_item_reject_post_request_body.go +++ b/app/calls_item_reject_post_request_body.go @@ -2,7 +2,6 @@ package app import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -63,29 +62,8 @@ func (m *CallsItemRejectPostRequestBody) GetFieldDeserializers()(map[string]func } return nil } - res["reason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseRejectReason) - if err != nil { - return err - } - if val != nil { - m.SetReason(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason)) - } - return nil - } return res } -// GetReason gets the reason property value. The reason property -func (m *CallsItemRejectPostRequestBody) GetReason()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason) { - val, err := m.GetBackingStore().Get("reason") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason) - } - return nil -} // Serialize serializes information the current object func (m *CallsItemRejectPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { @@ -94,13 +72,6 @@ func (m *CallsItemRejectPostRequestBody) Serialize(writer i878a80d2330e89d268963 return err } } - if m.GetReason() != nil { - cast := (*m.GetReason()).String() - err := writer.WriteStringValue("reason", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -127,13 +98,6 @@ func (m *CallsItemRejectPostRequestBody) SetCallbackUri(value *string)() { panic(err) } } -// SetReason sets the reason property value. The reason property -func (m *CallsItemRejectPostRequestBody) SetReason(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason)() { - err := m.GetBackingStore().Set("reason", value) - if err != nil { - panic(err) - } -} // CallsItemRejectPostRequestBodyable type CallsItemRejectPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -141,8 +105,6 @@ type CallsItemRejectPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCallbackUri()(*string) - GetReason()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCallbackUri(value *string)() - SetReason(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason)() } diff --git a/app/online_meetings_item_registration_request_builder.go b/app/online_meetings_item_registration_request_builder.go index d80677c1a1d..97f408195f1 100644 --- a/app/online_meetings_item_registration_request_builder.go +++ b/app/online_meetings_item_registration_request_builder.go @@ -18,7 +18,7 @@ type OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the externalMeetingRegistration details associated with an onlineMeeting. type OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -58,10 +58,10 @@ func NewOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestAdapt func (m *OnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*OnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. +// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -77,10 +77,10 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Contex } return nil } -// Get get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// Get get the externalMeetingRegistration details associated with an onlineMeeting. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-get?view=graph-rest-1.0 func (m *OnlineMeetingsItemRegistrationRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Context func (m *OnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*OnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. +// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -135,7 +135,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// ToGetRequestInformation get the externalMeetingRegistration details associated with an onlineMeeting. func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/app/online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go b/app/online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go index 19965451643..bef4080ecc2 100644 --- a/app/online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go +++ b/app/online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go @@ -2,7 +2,6 @@ package app import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -58,16 +57,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Get } return nil } - res["remindBeforeTimeInMinutesType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseRemindBeforeTimeInMinutesType) - if err != nil { - return err - } - if val != nil { - m.SetRemindBeforeTimeInMinutesType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)) - } - return nil - } return res } // GetPhoneNumbers gets the phoneNumbers property value. The phoneNumbers property @@ -81,17 +70,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Get } return nil } -// GetRemindBeforeTimeInMinutesType gets the remindBeforeTimeInMinutesType property value. The remindBeforeTimeInMinutesType property -func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) GetRemindBeforeTimeInMinutesType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) { - val, err := m.GetBackingStore().Get("remindBeforeTimeInMinutesType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) - } - return nil -} // Serialize serializes information the current object func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetPhoneNumbers() != nil { @@ -100,13 +78,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Ser return err } } - if m.GetRemindBeforeTimeInMinutesType() != nil { - cast := (*m.GetRemindBeforeTimeInMinutesType()).String() - err := writer.WriteStringValue("remindBeforeTimeInMinutesType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -133,13 +104,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Set panic(err) } } -// SetRemindBeforeTimeInMinutesType sets the remindBeforeTimeInMinutesType property value. The remindBeforeTimeInMinutesType property -func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) SetRemindBeforeTimeInMinutesType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)() { - err := m.GetBackingStore().Set("remindBeforeTimeInMinutesType", value) - if err != nil { - panic(err) - } -} // OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable type OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -147,8 +111,6 @@ type OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable inte i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetPhoneNumbers()([]string) - GetRemindBeforeTimeInMinutesType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetPhoneNumbers(value []string)() - SetRemindBeforeTimeInMinutesType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)() } diff --git a/app/online_meetings_item_send_virtual_appointment_sms_post_request_body.go b/app/online_meetings_item_send_virtual_appointment_sms_post_request_body.go index 25016bcc3a8..1a1d163919b 100644 --- a/app/online_meetings_item_send_virtual_appointment_sms_post_request_body.go +++ b/app/online_meetings_item_send_virtual_appointment_sms_post_request_body.go @@ -2,7 +2,6 @@ package app import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -58,16 +57,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetFieldDes } return nil } - res["smsType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseVirtualAppointmentSmsType) - if err != nil { - return err - } - if val != nil { - m.SetSmsType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)) - } - return nil - } return res } // GetPhoneNumbers gets the phoneNumbers property value. The phoneNumbers property @@ -81,17 +70,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetPhoneNum } return nil } -// GetSmsType gets the smsType property value. The smsType property -func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetSmsType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) { - val, err := m.GetBackingStore().Get("smsType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) - } - return nil -} // Serialize serializes information the current object func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetPhoneNumbers() != nil { @@ -100,13 +78,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) Serialize(w return err } } - if m.GetSmsType() != nil { - cast := (*m.GetSmsType()).String() - err := writer.WriteStringValue("smsType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -133,13 +104,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) SetPhoneNum panic(err) } } -// SetSmsType sets the smsType property value. The smsType property -func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) SetSmsType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)() { - err := m.GetBackingStore().Set("smsType", value) - if err != nil { - panic(err) - } -} // OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable type OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -147,8 +111,6 @@ type OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetPhoneNumbers()([]string) - GetSmsType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetPhoneNumbers(value []string)() - SetSmsType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)() } diff --git a/app/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go b/app/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/app/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go b/app/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/communications/calls/item/answer/answer_post_request_body_accepted_modalities.go b/communications/calls/item/answer/answer_post_request_body_accepted_modalities.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/communications/calls/item/redirect/redirect_post_request_body_target_disposition.go b/communications/calls/item/redirect/redirect_post_request_body_target_disposition.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/communications/calls/item/reject/reject_post_request_body_reason.go b/communications/calls/item/reject/reject_post_request_body_reason.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/communications/calls_item_answer_post_request_body.go b/communications/calls_item_answer_post_request_body.go index 788425f7018..0c84d379702 100644 --- a/communications/calls_item_answer_post_request_body.go +++ b/communications/calls_item_answer_post_request_body.go @@ -23,17 +23,6 @@ func NewCallsItemAnswerPostRequestBody()(*CallsItemAnswerPostRequestBody) { func CreateCallsItemAnswerPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCallsItemAnswerPostRequestBody(), nil } -// GetAcceptedModalities gets the acceptedModalities property value. The acceptedModalities property -func (m *CallsItemAnswerPostRequestBody) GetAcceptedModalities()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality) { - val, err := m.GetBackingStore().Get("acceptedModalities") - if err != nil { - panic(err) - } - if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality) - } - return nil -} // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. func (m *CallsItemAnswerPostRequestBody) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") @@ -75,22 +64,6 @@ func (m *CallsItemAnswerPostRequestBody) GetCallOptions()(ie233ee762e29b4ba6970a // GetFieldDeserializers the deserialization information for the current model func (m *CallsItemAnswerPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["acceptedModalities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseModality) - if err != nil { - return err - } - if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality)) - } - } - m.SetAcceptedModalities(res) - } - return nil - } res["callbackUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -157,12 +130,6 @@ func (m *CallsItemAnswerPostRequestBody) GetParticipantCapacity()(*int32) { } // Serialize serializes information the current object func (m *CallsItemAnswerPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAcceptedModalities() != nil { - err := writer.WriteCollectionOfStringValues("acceptedModalities", ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SerializeModality(m.GetAcceptedModalities())) - if err != nil { - return err - } - } { err := writer.WriteStringValue("callbackUri", m.GetCallbackUri()) if err != nil { @@ -195,13 +162,6 @@ func (m *CallsItemAnswerPostRequestBody) Serialize(writer i878a80d2330e89d268963 } return nil } -// SetAcceptedModalities sets the acceptedModalities property value. The acceptedModalities property -func (m *CallsItemAnswerPostRequestBody) SetAcceptedModalities(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality)() { - err := m.GetBackingStore().Set("acceptedModalities", value) - if err != nil { - panic(err) - } -} // SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. func (m *CallsItemAnswerPostRequestBody) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) @@ -246,13 +206,11 @@ type CallsItemAnswerPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAcceptedModalities()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCallbackUri()(*string) GetCallOptions()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IncomingCallOptionsable) GetMediaConfig()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MediaConfigable) GetParticipantCapacity()(*int32) - SetAcceptedModalities(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Modality)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCallbackUri(value *string)() SetCallOptions(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IncomingCallOptionsable)() diff --git a/communications/calls_item_redirect_post_request_body.go b/communications/calls_item_redirect_post_request_body.go index ea9152c1cc9..3c4655b0d3c 100644 --- a/communications/calls_item_redirect_post_request_body.go +++ b/communications/calls_item_redirect_post_request_body.go @@ -83,16 +83,6 @@ func (m *CallsItemRedirectPostRequestBody) GetFieldDeserializers()(map[string]fu } return nil } - res["targetDisposition"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCallDisposition) - if err != nil { - return err - } - if val != nil { - m.SetTargetDisposition(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition)) - } - return nil - } res["targets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateInvitationParticipantInfoFromDiscriminatorValue) if err != nil { @@ -143,17 +133,6 @@ func (m *CallsItemRedirectPostRequestBody) GetMaskCaller()(*bool) { } return nil } -// GetTargetDisposition gets the targetDisposition property value. The targetDisposition property -func (m *CallsItemRedirectPostRequestBody) GetTargetDisposition()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition) { - val, err := m.GetBackingStore().Get("targetDisposition") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition) - } - return nil -} // GetTargets gets the targets property value. The targets property func (m *CallsItemRedirectPostRequestBody) GetTargets()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InvitationParticipantInfoable) { val, err := m.GetBackingStore().Get("targets") @@ -196,13 +175,6 @@ func (m *CallsItemRedirectPostRequestBody) Serialize(writer i878a80d2330e89d2689 return err } } - if m.GetTargetDisposition() != nil { - cast := (*m.GetTargetDisposition()).String() - err := writer.WriteStringValue("targetDisposition", &cast) - if err != nil { - return err - } - } if m.GetTargets() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTargets())) for i, v := range m.GetTargets() { @@ -261,13 +233,6 @@ func (m *CallsItemRedirectPostRequestBody) SetMaskCaller(value *bool)() { panic(err) } } -// SetTargetDisposition sets the targetDisposition property value. The targetDisposition property -func (m *CallsItemRedirectPostRequestBody) SetTargetDisposition(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition)() { - err := m.GetBackingStore().Set("targetDisposition", value) - if err != nil { - panic(err) - } -} // SetTargets sets the targets property value. The targets property func (m *CallsItemRedirectPostRequestBody) SetTargets(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InvitationParticipantInfoable)() { err := m.GetBackingStore().Set("targets", value) @@ -291,14 +256,12 @@ type CallsItemRedirectPostRequestBodyable interface { GetCallbackUri()(*string) GetMaskCallee()(*bool) GetMaskCaller()(*bool) - GetTargetDisposition()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition) GetTargets()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InvitationParticipantInfoable) GetTimeout()(*int32) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCallbackUri(value *string)() SetMaskCallee(value *bool)() SetMaskCaller(value *bool)() - SetTargetDisposition(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallDisposition)() SetTargets(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InvitationParticipantInfoable)() SetTimeout(value *int32)() } diff --git a/communications/calls_item_reject_post_request_body.go b/communications/calls_item_reject_post_request_body.go index 485c2fdb7a7..9e897a89642 100644 --- a/communications/calls_item_reject_post_request_body.go +++ b/communications/calls_item_reject_post_request_body.go @@ -2,7 +2,6 @@ package communications import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -63,29 +62,8 @@ func (m *CallsItemRejectPostRequestBody) GetFieldDeserializers()(map[string]func } return nil } - res["reason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseRejectReason) - if err != nil { - return err - } - if val != nil { - m.SetReason(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason)) - } - return nil - } return res } -// GetReason gets the reason property value. The reason property -func (m *CallsItemRejectPostRequestBody) GetReason()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason) { - val, err := m.GetBackingStore().Get("reason") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason) - } - return nil -} // Serialize serializes information the current object func (m *CallsItemRejectPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { @@ -94,13 +72,6 @@ func (m *CallsItemRejectPostRequestBody) Serialize(writer i878a80d2330e89d268963 return err } } - if m.GetReason() != nil { - cast := (*m.GetReason()).String() - err := writer.WriteStringValue("reason", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -127,13 +98,6 @@ func (m *CallsItemRejectPostRequestBody) SetCallbackUri(value *string)() { panic(err) } } -// SetReason sets the reason property value. The reason property -func (m *CallsItemRejectPostRequestBody) SetReason(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason)() { - err := m.GetBackingStore().Set("reason", value) - if err != nil { - panic(err) - } -} // CallsItemRejectPostRequestBodyable type CallsItemRejectPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -141,8 +105,6 @@ type CallsItemRejectPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCallbackUri()(*string) - GetReason()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCallbackUri(value *string)() - SetReason(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RejectReason)() } diff --git a/communications/online_meetings_item_registration_request_builder.go b/communications/online_meetings_item_registration_request_builder.go index a07eb2c4ba8..61b12d05b62 100644 --- a/communications/online_meetings_item_registration_request_builder.go +++ b/communications/online_meetings_item_registration_request_builder.go @@ -18,7 +18,7 @@ type OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the externalMeetingRegistration details associated with an onlineMeeting. type OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -58,10 +58,10 @@ func NewOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestAdapt func (m *OnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*OnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. +// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -77,10 +77,10 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Contex } return nil } -// Get get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// Get get the externalMeetingRegistration details associated with an onlineMeeting. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-get?view=graph-rest-1.0 func (m *OnlineMeetingsItemRegistrationRequestBuilder) Get(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Context func (m *OnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*OnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. +// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -135,7 +135,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// ToGetRequestInformation get the externalMeetingRegistration details associated with an onlineMeeting. func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/communications/online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go b/communications/online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go index a09cafac24c..0653998a9e6 100644 --- a/communications/online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go +++ b/communications/online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go @@ -2,7 +2,6 @@ package communications import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -58,16 +57,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Get } return nil } - res["remindBeforeTimeInMinutesType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseRemindBeforeTimeInMinutesType) - if err != nil { - return err - } - if val != nil { - m.SetRemindBeforeTimeInMinutesType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)) - } - return nil - } return res } // GetPhoneNumbers gets the phoneNumbers property value. The phoneNumbers property @@ -81,17 +70,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Get } return nil } -// GetRemindBeforeTimeInMinutesType gets the remindBeforeTimeInMinutesType property value. The remindBeforeTimeInMinutesType property -func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) GetRemindBeforeTimeInMinutesType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) { - val, err := m.GetBackingStore().Get("remindBeforeTimeInMinutesType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) - } - return nil -} // Serialize serializes information the current object func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetPhoneNumbers() != nil { @@ -100,13 +78,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Ser return err } } - if m.GetRemindBeforeTimeInMinutesType() != nil { - cast := (*m.GetRemindBeforeTimeInMinutesType()).String() - err := writer.WriteStringValue("remindBeforeTimeInMinutesType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -133,13 +104,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Set panic(err) } } -// SetRemindBeforeTimeInMinutesType sets the remindBeforeTimeInMinutesType property value. The remindBeforeTimeInMinutesType property -func (m *OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) SetRemindBeforeTimeInMinutesType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)() { - err := m.GetBackingStore().Set("remindBeforeTimeInMinutesType", value) - if err != nil { - panic(err) - } -} // OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable type OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -147,8 +111,6 @@ type OnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable inte i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetPhoneNumbers()([]string) - GetRemindBeforeTimeInMinutesType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetPhoneNumbers(value []string)() - SetRemindBeforeTimeInMinutesType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)() } diff --git a/communications/online_meetings_item_send_virtual_appointment_sms_post_request_body.go b/communications/online_meetings_item_send_virtual_appointment_sms_post_request_body.go index 9751e07bf82..71f512baadc 100644 --- a/communications/online_meetings_item_send_virtual_appointment_sms_post_request_body.go +++ b/communications/online_meetings_item_send_virtual_appointment_sms_post_request_body.go @@ -2,7 +2,6 @@ package communications import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -58,16 +57,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetFieldDes } return nil } - res["smsType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseVirtualAppointmentSmsType) - if err != nil { - return err - } - if val != nil { - m.SetSmsType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)) - } - return nil - } return res } // GetPhoneNumbers gets the phoneNumbers property value. The phoneNumbers property @@ -81,17 +70,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetPhoneNum } return nil } -// GetSmsType gets the smsType property value. The smsType property -func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetSmsType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) { - val, err := m.GetBackingStore().Get("smsType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) - } - return nil -} // Serialize serializes information the current object func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetPhoneNumbers() != nil { @@ -100,13 +78,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) Serialize(w return err } } - if m.GetSmsType() != nil { - cast := (*m.GetSmsType()).String() - err := writer.WriteStringValue("smsType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -133,13 +104,6 @@ func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) SetPhoneNum panic(err) } } -// SetSmsType sets the smsType property value. The smsType property -func (m *OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) SetSmsType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)() { - err := m.GetBackingStore().Set("smsType", value) - if err != nil { - panic(err) - } -} // OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable type OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -147,8 +111,6 @@ type OnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetPhoneNumbers()([]string) - GetSmsType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetPhoneNumbers(value []string)() - SetSmsType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)() } diff --git a/communications/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go b/communications/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/communications/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go b/communications/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/compliance/ediscovery/cases/item/reviewsets/item/microsoftgraphediscoveryaddtoreviewset/add_to_review_set_post_request_body_additional_data_options.go b/compliance/ediscovery/cases/item/reviewsets/item/microsoftgraphediscoveryaddtoreviewset/add_to_review_set_post_request_body_additional_data_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/compliance/ediscovery/cases/item/reviewsets/item/microsoftgraphediscoveryexport/export_post_request_body_export_options.go b/compliance/ediscovery/cases/item/reviewsets/item/microsoftgraphediscoveryexport/export_post_request_body_export_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/compliance/ediscovery_cases_item_review_sets_item_microsoft_graph_ediscovery_add_to_review_set_add_to_review_set_post_request_body.go b/compliance/ediscovery_cases_item_review_sets_item_microsoft_graph_ediscovery_add_to_review_set_add_to_review_set_post_request_body.go index 5f6e5aaa824..00dcd0565d9 100644 --- a/compliance/ediscovery_cases_item_review_sets_item_microsoft_graph_ediscovery_add_to_review_set_add_to_review_set_post_request_body.go +++ b/compliance/ediscovery_cases_item_review_sets_item_microsoft_graph_ediscovery_add_to_review_set_add_to_review_set_post_request_body.go @@ -35,17 +35,6 @@ func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSet } return val.(map[string]any) } -// GetAdditionalDataOptions gets the additionalDataOptions property value. The additionalDataOptions property -func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSetAddToReviewSetPostRequestBody) GetAdditionalDataOptions()(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.AdditionalDataOptions) { - val, err := m.GetBackingStore().Get("additionalDataOptions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.AdditionalDataOptions) - } - return nil -} // GetBackingStore gets the BackingStore property value. Stores model information. func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSetAddToReviewSetPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -53,16 +42,6 @@ func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSet // GetFieldDeserializers the deserialization information for the current model func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSetAddToReviewSetPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["additionalDataOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ParseAdditionalDataOptions) - if err != nil { - return err - } - if val != nil { - m.SetAdditionalDataOptions(val.(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.AdditionalDataOptions)) - } - return nil - } res["sourceCollection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.CreateSourceCollectionFromDiscriminatorValue) if err != nil { @@ -88,13 +67,6 @@ func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSet } // Serialize serializes information the current object func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSetAddToReviewSetPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAdditionalDataOptions() != nil { - cast := (*m.GetAdditionalDataOptions()).String() - err := writer.WriteStringValue("additionalDataOptions", &cast) - if err != nil { - return err - } - } { err := writer.WriteObjectValue("sourceCollection", m.GetSourceCollection()) if err != nil { @@ -116,13 +88,6 @@ func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSet panic(err) } } -// SetAdditionalDataOptions sets the additionalDataOptions property value. The additionalDataOptions property -func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSetAddToReviewSetPostRequestBody) SetAdditionalDataOptions(value *ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.AdditionalDataOptions)() { - err := m.GetBackingStore().Set("additionalDataOptions", value) - if err != nil { - panic(err) - } -} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSetAddToReviewSetPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -139,10 +104,8 @@ type EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryAddToReviewSetAddT i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdditionalDataOptions()(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.AdditionalDataOptions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetSourceCollection()(ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.SourceCollectionable) - SetAdditionalDataOptions(value *ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.AdditionalDataOptions)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetSourceCollection(value ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.SourceCollectionable)() } diff --git a/compliance/ediscovery_cases_item_review_sets_item_microsoft_graph_ediscovery_export_export_post_request_body.go b/compliance/ediscovery_cases_item_review_sets_item_microsoft_graph_ediscovery_export_export_post_request_body.go index c2b092b6f9e..6d2707ba766 100644 --- a/compliance/ediscovery_cases_item_review_sets_item_microsoft_graph_ediscovery_export_export_post_request_body.go +++ b/compliance/ediscovery_cases_item_review_sets_item_microsoft_graph_ediscovery_export_export_post_request_body.go @@ -72,17 +72,6 @@ func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPo } return nil } -// GetExportOptions gets the exportOptions property value. The exportOptions property -func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPostRequestBody) GetExportOptions()(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportOptions) { - val, err := m.GetBackingStore().Get("exportOptions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportOptions) - } - return nil -} // GetExportStructure gets the exportStructure property value. The exportStructure property func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPostRequestBody) GetExportStructure()(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportFileStructure) { val, err := m.GetBackingStore().Get("exportStructure") @@ -127,16 +116,6 @@ func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPo } return nil } - res["exportOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ParseExportOptions) - if err != nil { - return err - } - if val != nil { - m.SetExportOptions(val.(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportOptions)) - } - return nil - } res["exportStructure"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ParseExportFileStructure) if err != nil { @@ -190,13 +169,6 @@ func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPo return err } } - if m.GetExportOptions() != nil { - cast := (*m.GetExportOptions()).String() - err := writer.WriteStringValue("exportOptions", &cast) - if err != nil { - return err - } - } if m.GetExportStructure() != nil { cast := (*m.GetExportStructure()).String() err := writer.WriteStringValue("exportStructure", &cast) @@ -250,13 +222,6 @@ func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPo panic(err) } } -// SetExportOptions sets the exportOptions property value. The exportOptions property -func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPostRequestBody) SetExportOptions(value *ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportOptions)() { - err := m.GetBackingStore().Set("exportOptions", value) - if err != nil { - panic(err) - } -} // SetExportStructure sets the exportStructure property value. The exportStructure property func (m *EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPostRequestBody) SetExportStructure(value *ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportFileStructure)() { err := m.GetBackingStore().Set("exportStructure", value) @@ -280,14 +245,12 @@ type EdiscoveryCasesItemReviewSetsItemMicrosoftGraphEdiscoveryExportExportPostRe GetAzureBlobToken()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDescription()(*string) - GetExportOptions()(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportOptions) GetExportStructure()(*ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportFileStructure) GetOutputName()(*string) SetAzureBlobContainer(value *string)() SetAzureBlobToken(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDescription(value *string)() - SetExportOptions(value *ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportOptions)() SetExportStructure(value *ic154d683aa4025ee28853b9c1a3c35cd1f093a1c4542feba4c07682e2752db13.ExportFileStructure)() SetOutputName(value *string)() } diff --git a/connections/item_schema_request_builder.go b/connections/item_schema_request_builder.go index dbe5f1f21b5..e298f58fa0a 100644 --- a/connections/item_schema_request_builder.go +++ b/connections/item_schema_request_builder.go @@ -69,10 +69,10 @@ func (m *ItemSchemaRequestBuilder) Get(ctx context.Context, requestConfiguration } return res.(ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable), nil } -// Patch update the properties of a schema for an externalConnection. +// Patch create the schema for a Microsoft Search connection. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-schema-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-1.0 func (m *ItemSchemaRequestBuilder) Patch(ctx context.Context, body ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, requestConfiguration *ItemSchemaRequestBuilderPatchRequestConfiguration)(ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -104,7 +104,7 @@ func (m *ItemSchemaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a schema for an externalConnection. +// ToPatchRequestInformation create the schema for a Microsoft Search connection. func (m *ItemSchemaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, requestConfiguration *ItemSchemaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/deviceappmanagement/targeted_managed_app_configurations_item_target_apps_post_request_body.go b/deviceappmanagement/targeted_managed_app_configurations_item_target_apps_post_request_body.go index 58814b2a9d5..77ef953910c 100644 --- a/deviceappmanagement/targeted_managed_app_configurations_item_target_apps_post_request_body.go +++ b/deviceappmanagement/targeted_managed_app_configurations_item_target_apps_post_request_body.go @@ -35,17 +35,6 @@ func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) GetAddit } return val.(map[string]any) } -// GetAppGroupType gets the appGroupType property value. The appGroupType property -func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) GetAppGroupType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TargetedManagedAppGroupType) { - val, err := m.GetBackingStore().Get("appGroupType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TargetedManagedAppGroupType) - } - return nil -} // GetApps gets the apps property value. The apps property func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) GetApps()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedMobileAppable) { val, err := m.GetBackingStore().Get("apps") @@ -64,16 +53,6 @@ func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) GetBacki // GetFieldDeserializers the deserialization information for the current model func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["appGroupType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseTargetedManagedAppGroupType) - if err != nil { - return err - } - if val != nil { - m.SetAppGroupType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TargetedManagedAppGroupType)) - } - return nil - } res["apps"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateManagedMobileAppFromDiscriminatorValue) if err != nil { @@ -94,13 +73,6 @@ func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) GetField } // Serialize serializes information the current object func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAppGroupType() != nil { - cast := (*m.GetAppGroupType()).String() - err := writer.WriteStringValue("appGroupType", &cast) - if err != nil { - return err - } - } if m.GetApps() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetApps())) for i, v := range m.GetApps() { @@ -128,13 +100,6 @@ func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) SetAddit panic(err) } } -// SetAppGroupType sets the appGroupType property value. The appGroupType property -func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) SetAppGroupType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TargetedManagedAppGroupType)() { - err := m.GetBackingStore().Set("appGroupType", value) - if err != nil { - panic(err) - } -} // SetApps sets the apps property value. The apps property func (m *TargetedManagedAppConfigurationsItemTargetAppsPostRequestBody) SetApps(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedMobileAppable)() { err := m.GetBackingStore().Set("apps", value) @@ -151,10 +116,8 @@ type TargetedManagedAppConfigurationsItemTargetAppsPostRequestBodyable interface i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAppGroupType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TargetedManagedAppGroupType) GetApps()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedMobileAppable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - SetAppGroupType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TargetedManagedAppGroupType)() SetApps(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedMobileAppable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() } diff --git a/deviceappmanagement/targetedmanagedappconfigurations/item/targetapps/target_apps_post_request_body_app_group_type.go b/deviceappmanagement/targetedmanagedappconfigurations/item/targetapps/target_apps_post_request_body_app_group_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/comanaged_devices_bulk_restore_cloud_pc_post_request_body.go b/devicemanagement/comanaged_devices_bulk_restore_cloud_pc_post_request_body.go index d2c80968d2c..6de09a34baa 100644 --- a/devicemanagement/comanaged_devices_bulk_restore_cloud_pc_post_request_body.go +++ b/devicemanagement/comanaged_devices_bulk_restore_cloud_pc_post_request_body.go @@ -3,7 +3,6 @@ package devicemanagement import ( i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -69,16 +68,6 @@ func (m *ComanagedDevicesBulkRestoreCloudPcPostRequestBody) GetFieldDeserializer } return nil } - res["timeRange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseRestoreTimeRange) - if err != nil { - return err - } - if val != nil { - m.SetTimeRange(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)) - } - return nil - } return res } // GetManagedDeviceIds gets the managedDeviceIds property value. The managedDeviceIds property @@ -103,17 +92,6 @@ func (m *ComanagedDevicesBulkRestoreCloudPcPostRequestBody) GetRestorePointDateT } return nil } -// GetTimeRange gets the timeRange property value. The timeRange property -func (m *ComanagedDevicesBulkRestoreCloudPcPostRequestBody) GetTimeRange()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) { - val, err := m.GetBackingStore().Get("timeRange") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) - } - return nil -} // Serialize serializes information the current object func (m *ComanagedDevicesBulkRestoreCloudPcPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetManagedDeviceIds() != nil { @@ -128,13 +106,6 @@ func (m *ComanagedDevicesBulkRestoreCloudPcPostRequestBody) Serialize(writer i87 return err } } - if m.GetTimeRange() != nil { - cast := (*m.GetTimeRange()).String() - err := writer.WriteStringValue("timeRange", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -168,13 +139,6 @@ func (m *ComanagedDevicesBulkRestoreCloudPcPostRequestBody) SetRestorePointDateT panic(err) } } -// SetTimeRange sets the timeRange property value. The timeRange property -func (m *ComanagedDevicesBulkRestoreCloudPcPostRequestBody) SetTimeRange(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)() { - err := m.GetBackingStore().Set("timeRange", value) - if err != nil { - panic(err) - } -} // ComanagedDevicesBulkRestoreCloudPcPostRequestBodyable type ComanagedDevicesBulkRestoreCloudPcPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -183,9 +147,7 @@ type ComanagedDevicesBulkRestoreCloudPcPostRequestBodyable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetManagedDeviceIds()([]string) GetRestorePointDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetTimeRange()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetManagedDeviceIds(value []string)() SetRestorePointDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetTimeRange(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)() } diff --git a/devicemanagement/comanaged_devices_item_wipe_post_request_body.go b/devicemanagement/comanaged_devices_item_wipe_post_request_body.go index d4d026bb053..ad01b1dabb0 100644 --- a/devicemanagement/comanaged_devices_item_wipe_post_request_body.go +++ b/devicemanagement/comanaged_devices_item_wipe_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -72,16 +71,6 @@ func (m *ComanagedDevicesItemWipePostRequestBody) GetFieldDeserializers()(map[st } return nil } - res["obliterationBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseObliterationBehavior) - if err != nil { - return err - } - if val != nil { - m.SetObliterationBehavior(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)) - } - return nil - } res["persistEsimDataPlan"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -137,17 +126,6 @@ func (m *ComanagedDevicesItemWipePostRequestBody) GetMacOsUnlockCode()(*string) } return nil } -// GetObliterationBehavior gets the obliterationBehavior property value. The obliterationBehavior property -func (m *ComanagedDevicesItemWipePostRequestBody) GetObliterationBehavior()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) { - val, err := m.GetBackingStore().Get("obliterationBehavior") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) - } - return nil -} // GetPersistEsimDataPlan gets the persistEsimDataPlan property value. The persistEsimDataPlan property func (m *ComanagedDevicesItemWipePostRequestBody) GetPersistEsimDataPlan()(*bool) { val, err := m.GetBackingStore().Get("persistEsimDataPlan") @@ -190,13 +168,6 @@ func (m *ComanagedDevicesItemWipePostRequestBody) Serialize(writer i878a80d2330e return err } } - if m.GetObliterationBehavior() != nil { - cast := (*m.GetObliterationBehavior()).String() - err := writer.WriteStringValue("obliterationBehavior", &cast) - if err != nil { - return err - } - } { err := writer.WriteBoolValue("persistEsimDataPlan", m.GetPersistEsimDataPlan()) if err != nil { @@ -249,13 +220,6 @@ func (m *ComanagedDevicesItemWipePostRequestBody) SetMacOsUnlockCode(value *stri panic(err) } } -// SetObliterationBehavior sets the obliterationBehavior property value. The obliterationBehavior property -func (m *ComanagedDevicesItemWipePostRequestBody) SetObliterationBehavior(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)() { - err := m.GetBackingStore().Set("obliterationBehavior", value) - if err != nil { - panic(err) - } -} // SetPersistEsimDataPlan sets the persistEsimDataPlan property value. The persistEsimDataPlan property func (m *ComanagedDevicesItemWipePostRequestBody) SetPersistEsimDataPlan(value *bool)() { err := m.GetBackingStore().Set("persistEsimDataPlan", value) @@ -279,14 +243,12 @@ type ComanagedDevicesItemWipePostRequestBodyable interface { GetKeepEnrollmentData()(*bool) GetKeepUserData()(*bool) GetMacOsUnlockCode()(*string) - GetObliterationBehavior()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) GetPersistEsimDataPlan()(*bool) GetUseProtectedWipe()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetKeepEnrollmentData(value *bool)() SetKeepUserData(value *bool)() SetMacOsUnlockCode(value *string)() - SetObliterationBehavior(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)() SetPersistEsimDataPlan(value *bool)() SetUseProtectedWipe(value *bool)() } diff --git a/devicemanagement/comanageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go b/devicemanagement/comanageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/comanageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go b/devicemanagement/comanageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/managed_devices_bulk_restore_cloud_pc_post_request_body.go b/devicemanagement/managed_devices_bulk_restore_cloud_pc_post_request_body.go index 6d2def5868e..fce8acf72d6 100644 --- a/devicemanagement/managed_devices_bulk_restore_cloud_pc_post_request_body.go +++ b/devicemanagement/managed_devices_bulk_restore_cloud_pc_post_request_body.go @@ -3,7 +3,6 @@ package devicemanagement import ( i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -69,16 +68,6 @@ func (m *ManagedDevicesBulkRestoreCloudPcPostRequestBody) GetFieldDeserializers( } return nil } - res["timeRange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseRestoreTimeRange) - if err != nil { - return err - } - if val != nil { - m.SetTimeRange(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)) - } - return nil - } return res } // GetManagedDeviceIds gets the managedDeviceIds property value. The managedDeviceIds property @@ -103,17 +92,6 @@ func (m *ManagedDevicesBulkRestoreCloudPcPostRequestBody) GetRestorePointDateTim } return nil } -// GetTimeRange gets the timeRange property value. The timeRange property -func (m *ManagedDevicesBulkRestoreCloudPcPostRequestBody) GetTimeRange()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) { - val, err := m.GetBackingStore().Get("timeRange") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) - } - return nil -} // Serialize serializes information the current object func (m *ManagedDevicesBulkRestoreCloudPcPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetManagedDeviceIds() != nil { @@ -128,13 +106,6 @@ func (m *ManagedDevicesBulkRestoreCloudPcPostRequestBody) Serialize(writer i878a return err } } - if m.GetTimeRange() != nil { - cast := (*m.GetTimeRange()).String() - err := writer.WriteStringValue("timeRange", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -168,13 +139,6 @@ func (m *ManagedDevicesBulkRestoreCloudPcPostRequestBody) SetRestorePointDateTim panic(err) } } -// SetTimeRange sets the timeRange property value. The timeRange property -func (m *ManagedDevicesBulkRestoreCloudPcPostRequestBody) SetTimeRange(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)() { - err := m.GetBackingStore().Set("timeRange", value) - if err != nil { - panic(err) - } -} // ManagedDevicesBulkRestoreCloudPcPostRequestBodyable type ManagedDevicesBulkRestoreCloudPcPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -183,9 +147,7 @@ type ManagedDevicesBulkRestoreCloudPcPostRequestBodyable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetManagedDeviceIds()([]string) GetRestorePointDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetTimeRange()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetManagedDeviceIds(value []string)() SetRestorePointDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetTimeRange(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)() } diff --git a/devicemanagement/managed_devices_item_wipe_post_request_body.go b/devicemanagement/managed_devices_item_wipe_post_request_body.go index a713d0dcfdb..2df921e9f6b 100644 --- a/devicemanagement/managed_devices_item_wipe_post_request_body.go +++ b/devicemanagement/managed_devices_item_wipe_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -72,16 +71,6 @@ func (m *ManagedDevicesItemWipePostRequestBody) GetFieldDeserializers()(map[stri } return nil } - res["obliterationBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseObliterationBehavior) - if err != nil { - return err - } - if val != nil { - m.SetObliterationBehavior(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)) - } - return nil - } res["persistEsimDataPlan"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -137,17 +126,6 @@ func (m *ManagedDevicesItemWipePostRequestBody) GetMacOsUnlockCode()(*string) { } return nil } -// GetObliterationBehavior gets the obliterationBehavior property value. The obliterationBehavior property -func (m *ManagedDevicesItemWipePostRequestBody) GetObliterationBehavior()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) { - val, err := m.GetBackingStore().Get("obliterationBehavior") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) - } - return nil -} // GetPersistEsimDataPlan gets the persistEsimDataPlan property value. The persistEsimDataPlan property func (m *ManagedDevicesItemWipePostRequestBody) GetPersistEsimDataPlan()(*bool) { val, err := m.GetBackingStore().Get("persistEsimDataPlan") @@ -190,13 +168,6 @@ func (m *ManagedDevicesItemWipePostRequestBody) Serialize(writer i878a80d2330e89 return err } } - if m.GetObliterationBehavior() != nil { - cast := (*m.GetObliterationBehavior()).String() - err := writer.WriteStringValue("obliterationBehavior", &cast) - if err != nil { - return err - } - } { err := writer.WriteBoolValue("persistEsimDataPlan", m.GetPersistEsimDataPlan()) if err != nil { @@ -249,13 +220,6 @@ func (m *ManagedDevicesItemWipePostRequestBody) SetMacOsUnlockCode(value *string panic(err) } } -// SetObliterationBehavior sets the obliterationBehavior property value. The obliterationBehavior property -func (m *ManagedDevicesItemWipePostRequestBody) SetObliterationBehavior(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)() { - err := m.GetBackingStore().Set("obliterationBehavior", value) - if err != nil { - panic(err) - } -} // SetPersistEsimDataPlan sets the persistEsimDataPlan property value. The persistEsimDataPlan property func (m *ManagedDevicesItemWipePostRequestBody) SetPersistEsimDataPlan(value *bool)() { err := m.GetBackingStore().Set("persistEsimDataPlan", value) @@ -279,14 +243,12 @@ type ManagedDevicesItemWipePostRequestBodyable interface { GetKeepEnrollmentData()(*bool) GetKeepUserData()(*bool) GetMacOsUnlockCode()(*string) - GetObliterationBehavior()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) GetPersistEsimDataPlan()(*bool) GetUseProtectedWipe()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetKeepEnrollmentData(value *bool)() SetKeepUserData(value *bool)() SetMacOsUnlockCode(value *string)() - SetObliterationBehavior(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)() SetPersistEsimDataPlan(value *bool)() SetUseProtectedWipe(value *bool)() } diff --git a/devicemanagement/manageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go b/devicemanagement/manageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/manageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go b/devicemanagement/manageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtual_endpoint_cloud_p_cs_item_change_user_account_type_post_request_body.go b/devicemanagement/virtual_endpoint_cloud_p_cs_item_change_user_account_type_post_request_body.go index 41d5cdbbcd6..d5bd5cd2587 100644 --- a/devicemanagement/virtual_endpoint_cloud_p_cs_item_change_user_account_type_post_request_body.go +++ b/devicemanagement/virtual_endpoint_cloud_p_cs_item_change_user_account_type_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -42,38 +41,10 @@ func (m *VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBody) GetBac // GetFieldDeserializers the deserialization information for the current model func (m *VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["userAccountType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcUserAccountType) - if err != nil { - return err - } - if val != nil { - m.SetUserAccountType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)) - } - return nil - } return res } -// GetUserAccountType gets the userAccountType property value. The userAccountType property -func (m *VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBody) GetUserAccountType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) { - val, err := m.GetBackingStore().Get("userAccountType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) - } - return nil -} // Serialize serializes information the current object func (m *VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetUserAccountType() != nil { - cast := (*m.GetUserAccountType()).String() - err := writer.WriteStringValue("userAccountType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -93,20 +64,11 @@ func (m *VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBody) SetAdd func (m *VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetUserAccountType sets the userAccountType property value. The userAccountType property -func (m *VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBody) SetUserAccountType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)() { - err := m.GetBackingStore().Set("userAccountType", value) - if err != nil { - panic(err) - } -} // VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBodyable type VirtualEndpointCloudPCsItemChangeUserAccountTypePostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetUserAccountType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetUserAccountType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)() } diff --git a/devicemanagement/virtual_endpoint_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go b/devicemanagement/virtual_endpoint_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go index 0314186f95f..be3d205cd7a 100644 --- a/devicemanagement/virtual_endpoint_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go @@ -3,8 +3,8 @@ package devicemanagement import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i3e7bfbc115fa935e142d212a729dbd28cef8afacc4f26b50744a689586890d96 "github.com/microsoftgraph/msgraph-beta-sdk-go/devicemanagement/virtualendpoint/cloudpcs/item/getfrontlinecloudpcaccessstate" ) // VirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder provides operations to call the getFrontlineCloudPcAccessState method. @@ -32,7 +32,7 @@ func NewVirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder( return NewVirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function getFrontlineCloudPcAccessState -func (m *VirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FrontlineCloudPcAccessState, error) { +func (m *VirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*i3e7bfbc115fa935e142d212a729dbd28cef8afacc4f26b50744a689586890d96.GetFrontlineCloudPcAccessStateGetResponse, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -41,14 +41,14 @@ func (m *VirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.SendEnum(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseFrontlineCloudPcAccessState, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.SendEnum(ctx, requestInfo, i3e7bfbc115fa935e142d212a729dbd28cef8afacc4f26b50744a689586890d96.ParseGetFrontlineCloudPcAccessStateGetResponse, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FrontlineCloudPcAccessState), nil + return res.(*i3e7bfbc115fa935e142d212a729dbd28cef8afacc4f26b50744a689586890d96.GetFrontlineCloudPcAccessStateGetResponse), nil } // ToGetRequestInformation invoke function getFrontlineCloudPcAccessState func (m *VirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/devicemanagement/virtual_endpoint_cloud_p_cs_item_get_shift_work_cloud_pc_access_state_request_builder.go b/devicemanagement/virtual_endpoint_cloud_p_cs_item_get_shift_work_cloud_pc_access_state_request_builder.go index 317007043b2..74ce80988a1 100644 --- a/devicemanagement/virtual_endpoint_cloud_p_cs_item_get_shift_work_cloud_pc_access_state_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_p_cs_item_get_shift_work_cloud_pc_access_state_request_builder.go @@ -3,8 +3,8 @@ package devicemanagement import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i815cec36ab0a5a098b725f6afda5515f885ca99f72ebf6ddd64f51c7554880c7 "github.com/microsoftgraph/msgraph-beta-sdk-go/devicemanagement/virtualendpoint/cloudpcs/item/getshiftworkcloudpcaccessstate" ) // VirtualEndpointCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder provides operations to call the getShiftWorkCloudPcAccessState method. @@ -33,7 +33,7 @@ func NewVirtualEndpointCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder( } // Get invoke function getShiftWorkCloudPcAccessState // Deprecated: The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState on 2023-09-05 and will be removed 2023-12-31 -func (m *VirtualEndpointCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftWorkCloudPcAccessState, error) { +func (m *VirtualEndpointCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*i815cec36ab0a5a098b725f6afda5515f885ca99f72ebf6ddd64f51c7554880c7.GetShiftWorkCloudPcAccessStateGetResponse, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -42,14 +42,14 @@ func (m *VirtualEndpointCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.SendEnum(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseShiftWorkCloudPcAccessState, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.SendEnum(ctx, requestInfo, i815cec36ab0a5a098b725f6afda5515f885ca99f72ebf6ddd64f51c7554880c7.ParseGetShiftWorkCloudPcAccessStateGetResponse, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftWorkCloudPcAccessState), nil + return res.(*i815cec36ab0a5a098b725f6afda5515f885ca99f72ebf6ddd64f51c7554880c7.GetShiftWorkCloudPcAccessStateGetResponse), nil } // ToGetRequestInformation invoke function getShiftWorkCloudPcAccessState // Deprecated: The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState on 2023-09-05 and will be removed 2023-12-31 diff --git a/devicemanagement/virtual_endpoint_cloud_p_cs_item_reprovision_post_request_body.go b/devicemanagement/virtual_endpoint_cloud_p_cs_item_reprovision_post_request_body.go index 7007e5287f4..c857cb50875 100644 --- a/devicemanagement/virtual_endpoint_cloud_p_cs_item_reprovision_post_request_body.go +++ b/devicemanagement/virtual_endpoint_cloud_p_cs_item_reprovision_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -42,66 +41,10 @@ func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) GetBackingStore( // GetFieldDeserializers the deserialization information for the current model func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["osVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcOperatingSystem) - if err != nil { - return err - } - if val != nil { - m.SetOsVersion(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem)) - } - return nil - } - res["userAccountType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcUserAccountType) - if err != nil { - return err - } - if val != nil { - m.SetUserAccountType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)) - } - return nil - } return res } -// GetOsVersion gets the osVersion property value. The osVersion property -func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) GetOsVersion()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem) { - val, err := m.GetBackingStore().Get("osVersion") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem) - } - return nil -} -// GetUserAccountType gets the userAccountType property value. The userAccountType property -func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) GetUserAccountType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) { - val, err := m.GetBackingStore().Get("userAccountType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) - } - return nil -} // Serialize serializes information the current object func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetOsVersion() != nil { - cast := (*m.GetOsVersion()).String() - err := writer.WriteStringValue("osVersion", &cast) - if err != nil { - return err - } - } - if m.GetUserAccountType() != nil { - cast := (*m.GetUserAccountType()).String() - err := writer.WriteStringValue("userAccountType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -121,29 +64,11 @@ func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) SetAdditionalDat func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetOsVersion sets the osVersion property value. The osVersion property -func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) SetOsVersion(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem)() { - err := m.GetBackingStore().Set("osVersion", value) - if err != nil { - panic(err) - } -} -// SetUserAccountType sets the userAccountType property value. The userAccountType property -func (m *VirtualEndpointCloudPCsItemReprovisionPostRequestBody) SetUserAccountType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)() { - err := m.GetBackingStore().Set("userAccountType", value) - if err != nil { - panic(err) - } -} // VirtualEndpointCloudPCsItemReprovisionPostRequestBodyable type VirtualEndpointCloudPCsItemReprovisionPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetOsVersion()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem) - GetUserAccountType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetOsVersion(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem)() - SetUserAccountType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)() } diff --git a/devicemanagement/virtual_endpoint_provisioning_policies_apply_config_post_request_body.go b/devicemanagement/virtual_endpoint_provisioning_policies_apply_config_post_request_body.go index 9846ba418c2..6be569edab4 100644 --- a/devicemanagement/virtual_endpoint_provisioning_policies_apply_config_post_request_body.go +++ b/devicemanagement/virtual_endpoint_provisioning_policies_apply_config_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -69,29 +68,8 @@ func (m *VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBody) GetField } return nil } - res["policySettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcPolicySettingType) - if err != nil { - return err - } - if val != nil { - m.SetPolicySettings(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType)) - } - return nil - } return res } -// GetPolicySettings gets the policySettings property value. The policySettings property -func (m *VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBody) GetPolicySettings()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType) { - val, err := m.GetBackingStore().Get("policySettings") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType) - } - return nil -} // Serialize serializes information the current object func (m *VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetCloudPcIds() != nil { @@ -100,13 +78,6 @@ func (m *VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBody) Serializ return err } } - if m.GetPolicySettings() != nil { - cast := (*m.GetPolicySettings()).String() - err := writer.WriteStringValue("policySettings", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -133,13 +104,6 @@ func (m *VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBody) SetCloud panic(err) } } -// SetPolicySettings sets the policySettings property value. The policySettings property -func (m *VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBody) SetPolicySettings(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType)() { - err := m.GetBackingStore().Set("policySettings", value) - if err != nil { - panic(err) - } -} // VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBodyable type VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -147,8 +111,6 @@ type VirtualEndpointProvisioningPoliciesApplyConfigPostRequestBodyable interface i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCloudPcIds()([]string) - GetPolicySettings()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCloudPcIds(value []string)() - SetPolicySettings(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType)() } diff --git a/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_post_request_body.go b/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_post_request_body.go index f6f8d9172db..943c30ba2fc 100644 --- a/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_post_request_body.go +++ b/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -42,38 +41,10 @@ func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetBacking // GetFieldDeserializers the deserialization information for the current model func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["policySettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcPolicySettingType) - if err != nil { - return err - } - if val != nil { - m.SetPolicySettings(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType)) - } - return nil - } return res } -// GetPolicySettings gets the policySettings property value. The policySettings property -func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetPolicySettings()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType) { - val, err := m.GetBackingStore().Get("policySettings") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType) - } - return nil -} // Serialize serializes information the current object func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetPolicySettings() != nil { - cast := (*m.GetPolicySettings()).String() - err := writer.WriteStringValue("policySettings", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -93,20 +64,11 @@ func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) SetAdditio func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetPolicySettings sets the policySettings property value. The policySettings property -func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) SetPolicySettings(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType)() { - err := m.GetBackingStore().Set("policySettings", value) - if err != nil { - panic(err) - } -} // VirtualEndpointProvisioningPoliciesItemApplyPostRequestBodyable type VirtualEndpointProvisioningPoliciesItemApplyPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPolicySettings()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPolicySettings(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType)() } diff --git a/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_post_request_body.go b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_post_request_body.go new file mode 100644 index 00000000000..bfddbbd0004 --- /dev/null +++ b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_post_request_body.go @@ -0,0 +1,344 @@ +package devicemanagement + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody +type VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody instantiates a new VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody and sets the default values. +func NewVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody()(*VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) { + m := &VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["filter"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilter(val) + } + return nil + } + res["groupBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetGroupBy(res) + } + return nil + } + res["orderBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetOrderBy(res) + } + return nil + } + res["search"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSearch(val) + } + return nil + } + res["select"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetSelectEscaped(res) + } + return nil + } + res["skip"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetSkip(val) + } + return nil + } + res["top"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTop(val) + } + return nil + } + return res +} +// GetFilter gets the filter property value. The filter property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetFilter()(*string) { + val, err := m.GetBackingStore().Get("filter") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetGroupBy gets the groupBy property value. The groupBy property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetGroupBy()([]string) { + val, err := m.GetBackingStore().Get("groupBy") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetOrderBy gets the orderBy property value. The orderBy property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetOrderBy()([]string) { + val, err := m.GetBackingStore().Get("orderBy") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetSearch gets the search property value. The search property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetSearch()(*string) { + val, err := m.GetBackingStore().Get("search") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSelectEscaped gets the select property value. The select property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetSelectEscaped()([]string) { + val, err := m.GetBackingStore().Get("selectEscaped") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetSkip gets the skip property value. The skip property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetSkip()(*int32) { + val, err := m.GetBackingStore().Get("skip") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetTop gets the top property value. The top property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) GetTop()(*int32) { + val, err := m.GetBackingStore().Get("top") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("filter", m.GetFilter()) + if err != nil { + return err + } + } + if m.GetGroupBy() != nil { + err := writer.WriteCollectionOfStringValues("groupBy", m.GetGroupBy()) + if err != nil { + return err + } + } + if m.GetOrderBy() != nil { + err := writer.WriteCollectionOfStringValues("orderBy", m.GetOrderBy()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("search", m.GetSearch()) + if err != nil { + return err + } + } + if m.GetSelectEscaped() != nil { + err := writer.WriteCollectionOfStringValues("select", m.GetSelectEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("skip", m.GetSkip()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("top", m.GetTop()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetFilter sets the filter property value. The filter property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetFilter(value *string)() { + err := m.GetBackingStore().Set("filter", value) + if err != nil { + panic(err) + } +} +// SetGroupBy sets the groupBy property value. The groupBy property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetGroupBy(value []string)() { + err := m.GetBackingStore().Set("groupBy", value) + if err != nil { + panic(err) + } +} +// SetOrderBy sets the orderBy property value. The orderBy property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetOrderBy(value []string)() { + err := m.GetBackingStore().Set("orderBy", value) + if err != nil { + panic(err) + } +} +// SetSearch sets the search property value. The search property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetSearch(value *string)() { + err := m.GetBackingStore().Set("search", value) + if err != nil { + panic(err) + } +} +// SetSelectEscaped sets the select property value. The select property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetSelectEscaped(value []string)() { + err := m.GetBackingStore().Set("selectEscaped", value) + if err != nil { + panic(err) + } +} +// SetSkip sets the skip property value. The skip property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetSkip(value *int32)() { + err := m.GetBackingStore().Set("skip", value) + if err != nil { + panic(err) + } +} +// SetTop sets the top property value. The top property +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBody) SetTop(value *int32)() { + err := m.GetBackingStore().Set("top", value) + if err != nil { + panic(err) + } +} +// VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyable +type VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetFilter()(*string) + GetGroupBy()([]string) + GetOrderBy()([]string) + GetSearch()(*string) + GetSelectEscaped()([]string) + GetSkip()(*int32) + GetTop()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetFilter(value *string)() + SetGroupBy(value []string)() + SetOrderBy(value []string)() + SetSearch(value *string)() + SetSelectEscaped(value []string)() + SetSkip(value *int32)() + SetTop(value *int32)() +} diff --git a/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_request_builder.go b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_request_builder.go new file mode 100644 index 00000000000..07eced1e2a9 --- /dev/null +++ b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_performance_report_request_builder.go @@ -0,0 +1,69 @@ +package devicemanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder provides operations to call the getCloudPcPerformanceReport method. +type VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderInternal instantiates a new GetCloudPcPerformanceReportRequestBuilder and sets the default values. +func NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) { + m := &VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/reports/getCloudPcPerformanceReport", pathParameters), + } + return m +} +// NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder instantiates a new GetCloudPcPerformanceReportRequestBuilder and sets the default values. +func NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action getCloudPcPerformanceReport +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) Post(ctx context.Context, body VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyable, requestConfiguration *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderPostRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// ToPostRequestInformation invoke action getCloudPcPerformanceReport +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) ToPostRequestInformation(ctx context.Context, body VirtualEndpointReportsGetCloudPcPerformanceReportPostRequestBodyable, requestConfiguration *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) { + return NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/devicemanagement/virtual_endpoint_reports_get_cloud_pc_recommendation_reports_post_request_body.go b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_recommendation_reports_post_request_body.go index 702ed036021..091a1ffbcdf 100644 --- a/devicemanagement/virtual_endpoint_reports_get_cloud_pc_recommendation_reports_post_request_body.go +++ b/devicemanagement/virtual_endpoint_reports_get_cloud_pc_recommendation_reports_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -84,16 +83,6 @@ func (m *VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBody) G } return nil } - res["reportName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcReportName) - if err != nil { - return err - } - if val != nil { - m.SetReportName(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)) - } - return nil - } res["search"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -175,17 +164,6 @@ func (m *VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBody) G } return nil } -// GetReportName gets the reportName property value. The reportName property -func (m *VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBody) GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) { - val, err := m.GetBackingStore().Get("reportName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) - } - return nil -} // GetSearch gets the search property value. The search property func (m *VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBody) GetSearch()(*string) { val, err := m.GetBackingStore().Get("search") @@ -250,13 +228,6 @@ func (m *VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBody) S return err } } - if m.GetReportName() != nil { - cast := (*m.GetReportName()).String() - err := writer.WriteStringValue("reportName", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("search", m.GetSearch()) if err != nil { @@ -321,13 +292,6 @@ func (m *VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBody) S panic(err) } } -// SetReportName sets the reportName property value. The reportName property -func (m *VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBody) SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)() { - err := m.GetBackingStore().Set("reportName", value) - if err != nil { - panic(err) - } -} // SetSearch sets the search property value. The search property func (m *VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBody) SetSearch(value *string)() { err := m.GetBackingStore().Set("search", value) @@ -365,7 +329,6 @@ type VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBodyable in GetFilter()(*string) GetGroupBy()([]string) GetOrderBy()([]string) - GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) GetSearch()(*string) GetSelectEscaped()([]string) GetSkip()(*int32) @@ -374,7 +337,6 @@ type VirtualEndpointReportsGetCloudPcRecommendationReportsPostRequestBodyable in SetFilter(value *string)() SetGroupBy(value []string)() SetOrderBy(value []string)() - SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)() SetSearch(value *string)() SetSelectEscaped(value []string)() SetSkip(value *int32)() diff --git a/devicemanagement/virtual_endpoint_reports_get_frontline_report_post_request_body.go b/devicemanagement/virtual_endpoint_reports_get_frontline_report_post_request_body.go index ae34828e568..083ce3cd66c 100644 --- a/devicemanagement/virtual_endpoint_reports_get_frontline_report_post_request_body.go +++ b/devicemanagement/virtual_endpoint_reports_get_frontline_report_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -84,16 +83,6 @@ func (m *VirtualEndpointReportsGetFrontlineReportPostRequestBody) GetFieldDeseri } return nil } - res["reportName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcReportName) - if err != nil { - return err - } - if val != nil { - m.SetReportName(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)) - } - return nil - } res["search"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -175,17 +164,6 @@ func (m *VirtualEndpointReportsGetFrontlineReportPostRequestBody) GetOrderBy()([ } return nil } -// GetReportName gets the reportName property value. The reportName property -func (m *VirtualEndpointReportsGetFrontlineReportPostRequestBody) GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) { - val, err := m.GetBackingStore().Get("reportName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) - } - return nil -} // GetSearch gets the search property value. The search property func (m *VirtualEndpointReportsGetFrontlineReportPostRequestBody) GetSearch()(*string) { val, err := m.GetBackingStore().Get("search") @@ -250,13 +228,6 @@ func (m *VirtualEndpointReportsGetFrontlineReportPostRequestBody) Serialize(writ return err } } - if m.GetReportName() != nil { - cast := (*m.GetReportName()).String() - err := writer.WriteStringValue("reportName", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("search", m.GetSearch()) if err != nil { @@ -321,13 +292,6 @@ func (m *VirtualEndpointReportsGetFrontlineReportPostRequestBody) SetOrderBy(val panic(err) } } -// SetReportName sets the reportName property value. The reportName property -func (m *VirtualEndpointReportsGetFrontlineReportPostRequestBody) SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)() { - err := m.GetBackingStore().Set("reportName", value) - if err != nil { - panic(err) - } -} // SetSearch sets the search property value. The search property func (m *VirtualEndpointReportsGetFrontlineReportPostRequestBody) SetSearch(value *string)() { err := m.GetBackingStore().Set("search", value) @@ -365,7 +329,6 @@ type VirtualEndpointReportsGetFrontlineReportPostRequestBodyable interface { GetFilter()(*string) GetGroupBy()([]string) GetOrderBy()([]string) - GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) GetSearch()(*string) GetSelectEscaped()([]string) GetSkip()(*int32) @@ -374,7 +337,6 @@ type VirtualEndpointReportsGetFrontlineReportPostRequestBodyable interface { SetFilter(value *string)() SetGroupBy(value []string)() SetOrderBy(value []string)() - SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)() SetSearch(value *string)() SetSelectEscaped(value []string)() SetSkip(value *int32)() diff --git a/devicemanagement/virtual_endpoint_reports_get_shared_use_license_usage_report_post_request_body.go b/devicemanagement/virtual_endpoint_reports_get_shared_use_license_usage_report_post_request_body.go index 270b8d0abc4..309d2e75f76 100644 --- a/devicemanagement/virtual_endpoint_reports_get_shared_use_license_usage_report_post_request_body.go +++ b/devicemanagement/virtual_endpoint_reports_get_shared_use_license_usage_report_post_request_body.go @@ -2,7 +2,6 @@ package devicemanagement import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -84,16 +83,6 @@ func (m *VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBody) Ge } return nil } - res["reportName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcReportName) - if err != nil { - return err - } - if val != nil { - m.SetReportName(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)) - } - return nil - } res["search"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -175,17 +164,6 @@ func (m *VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBody) Ge } return nil } -// GetReportName gets the reportName property value. The reportName property -func (m *VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBody) GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) { - val, err := m.GetBackingStore().Get("reportName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) - } - return nil -} // GetSearch gets the search property value. The search property func (m *VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBody) GetSearch()(*string) { val, err := m.GetBackingStore().Get("search") @@ -250,13 +228,6 @@ func (m *VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBody) Se return err } } - if m.GetReportName() != nil { - cast := (*m.GetReportName()).String() - err := writer.WriteStringValue("reportName", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("search", m.GetSearch()) if err != nil { @@ -321,13 +292,6 @@ func (m *VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBody) Se panic(err) } } -// SetReportName sets the reportName property value. The reportName property -func (m *VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBody) SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)() { - err := m.GetBackingStore().Set("reportName", value) - if err != nil { - panic(err) - } -} // SetSearch sets the search property value. The search property func (m *VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBody) SetSearch(value *string)() { err := m.GetBackingStore().Set("search", value) @@ -365,7 +329,6 @@ type VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBodyable int GetFilter()(*string) GetGroupBy()([]string) GetOrderBy()([]string) - GetReportName()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName) GetSearch()(*string) GetSelectEscaped()([]string) GetSkip()(*int32) @@ -374,7 +337,6 @@ type VirtualEndpointReportsGetSharedUseLicenseUsageReportPostRequestBodyable int SetFilter(value *string)() SetGroupBy(value []string)() SetOrderBy(value []string)() - SetReportName(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReportName)() SetSearch(value *string)() SetSelectEscaped(value []string)() SetSkip(value *int32)() diff --git a/devicemanagement/virtual_endpoint_reports_request_builder.go b/devicemanagement/virtual_endpoint_reports_request_builder.go index d0113f267d2..dc850fccc9d 100644 --- a/devicemanagement/virtual_endpoint_reports_request_builder.go +++ b/devicemanagement/virtual_endpoint_reports_request_builder.go @@ -97,6 +97,10 @@ func (m *VirtualEndpointReportsRequestBuilder) Get(ctx context.Context, requestC func (m *VirtualEndpointReportsRequestBuilder) GetActionStatusReports()(*VirtualEndpointReportsGetActionStatusReportsRequestBuilder) { return NewVirtualEndpointReportsGetActionStatusReportsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetCloudPcPerformanceReport provides operations to call the getCloudPcPerformanceReport method. +func (m *VirtualEndpointReportsRequestBuilder) GetCloudPcPerformanceReport()(*VirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilder) { + return NewVirtualEndpointReportsGetCloudPcPerformanceReportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GetCloudPcRecommendationReports provides operations to call the getCloudPcRecommendationReports method. func (m *VirtualEndpointReportsRequestBuilder) GetCloudPcRecommendationReports()(*VirtualEndpointReportsGetCloudPcRecommendationReportsRequestBuilder) { return NewVirtualEndpointReportsGetCloudPcRecommendationReportsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/devicemanagement/virtualendpoint/cloudpcs/item/changeuseraccounttype/change_user_account_type_post_request_body_user_account_type.go b/devicemanagement/virtualendpoint/cloudpcs/item/changeuseraccounttype/change_user_account_type_post_request_body_user_account_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/cloudpcs/item/getfrontlinecloudpcaccessstate/get_frontline_cloud_pc_access_state_get_response.go b/devicemanagement/virtualendpoint/cloudpcs/item/getfrontlinecloudpcaccessstate/get_frontline_cloud_pc_access_state_get_response.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/cloudpcs/item/getshiftworkcloudpcaccessstate/get_shift_work_cloud_pc_access_state_get_response.go b/devicemanagement/virtualendpoint/cloudpcs/item/getshiftworkcloudpcaccessstate/get_shift_work_cloud_pc_access_state_get_response.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/cloudpcs/item/reprovision/reprovision_post_request_body_os_version.go b/devicemanagement/virtualendpoint/cloudpcs/item/reprovision/reprovision_post_request_body_os_version.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/cloudpcs/item/reprovision/reprovision_post_request_body_user_account_type.go b/devicemanagement/virtualendpoint/cloudpcs/item/reprovision/reprovision_post_request_body_user_account_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/provisioningpolicies/applyconfig/apply_config_post_request_body_policy_settings.go b/devicemanagement/virtualendpoint/provisioningpolicies/applyconfig/apply_config_post_request_body_policy_settings.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/provisioningpolicies/item/apply/apply_post_request_body_policy_settings.go b/devicemanagement/virtualendpoint/provisioningpolicies/item/apply/apply_post_request_body_policy_settings.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/reports/getcloudpcperformancereport/get_cloud_pc_performance_report_post_request_body_report_name.go b/devicemanagement/virtualendpoint/reports/getcloudpcperformancereport/get_cloud_pc_performance_report_post_request_body_report_name.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/reports/getcloudpcrecommendationreports/get_cloud_pc_recommendation_reports_post_request_body_report_name.go b/devicemanagement/virtualendpoint/reports/getcloudpcrecommendationreports/get_cloud_pc_recommendation_reports_post_request_body_report_name.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/reports/getfrontlinereport/get_frontline_report_post_request_body_report_name.go b/devicemanagement/virtualendpoint/reports/getfrontlinereport/get_frontline_report_post_request_body_report_name.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/reports/getinaccessiblecloudpcreports/get_inaccessible_cloud_pc_reports_post_request_body_report_name.go b/devicemanagement/virtualendpoint/reports/getinaccessiblecloudpcreports/get_inaccessible_cloud_pc_reports_post_request_body_report_name.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/devicemanagement/virtualendpoint/reports/getshareduselicenseusagereport/get_shared_use_license_usage_report_post_request_body_report_name.go b/devicemanagement/virtualendpoint/reports/getshareduselicenseusagereport/get_shared_use_license_usage_report_post_request_body_report_name.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/drives/item/items/item/assignsensitivitylabel/assign_sensitivity_label_post_request_body_assignment_method.go b/drives/item/items/item/assignsensitivitylabel/assign_sensitivity_label_post_request_body_assignment_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/drives/item_items_item_assign_sensitivity_label_post_request_body.go b/drives/item_items_item_assign_sensitivity_label_post_request_body.go index 4edfdabcfa2..2dfd458cd55 100644 --- a/drives/item_items_item_assign_sensitivity_label_post_request_body.go +++ b/drives/item_items_item_assign_sensitivity_label_post_request_body.go @@ -2,7 +2,6 @@ package drives import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -35,17 +34,6 @@ func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) GetAdditionalData() } return val.(map[string]any) } -// GetAssignmentMethod gets the assignmentMethod property value. The assignmentMethod property -func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) GetAssignmentMethod()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelAssignmentMethod) { - val, err := m.GetBackingStore().Get("assignmentMethod") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelAssignmentMethod) - } - return nil -} // GetBackingStore gets the BackingStore property value. Stores model information. func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -53,16 +41,6 @@ func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) GetBackingStore()(i // GetFieldDeserializers the deserialization information for the current model func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["assignmentMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseSensitivityLabelAssignmentMethod) - if err != nil { - return err - } - if val != nil { - m.SetAssignmentMethod(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelAssignmentMethod)) - } - return nil - } res["justificationText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -109,13 +87,6 @@ func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) GetSensitivityLabel } // Serialize serializes information the current object func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAssignmentMethod() != nil { - cast := (*m.GetAssignmentMethod()).String() - err := writer.WriteStringValue("assignmentMethod", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("justificationText", m.GetJustificationText()) if err != nil { @@ -143,13 +114,6 @@ func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) SetAdditionalData(v panic(err) } } -// SetAssignmentMethod sets the assignmentMethod property value. The assignmentMethod property -func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) SetAssignmentMethod(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelAssignmentMethod)() { - err := m.GetBackingStore().Set("assignmentMethod", value) - if err != nil { - panic(err) - } -} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *ItemItemsItemAssignSensitivityLabelPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -173,11 +137,9 @@ type ItemItemsItemAssignSensitivityLabelPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAssignmentMethod()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelAssignmentMethod) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetJustificationText()(*string) GetSensitivityLabelId()(*string) - SetAssignmentMethod(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelAssignmentMethod)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetJustificationText(value *string)() SetSensitivityLabelId(value *string)() diff --git a/drives/item_items_item_retention_label_request_builder.go b/drives/item_items_item_retention_label_request_builder.go index 467cc55b39c..9637a5c4f16 100644 --- a/drives/item_items_item_retention_label_request_builder.go +++ b/drives/item_items_item_retention_label_request_builder.go @@ -92,10 +92,10 @@ func (m *ItemItemsItemRetentionLabelRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable), nil } -// Patch 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. +// Patch 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-lockorunlockrecord?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0 func (m *ItemItemsItemRetentionLabelRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -137,7 +137,7 @@ func (m *ItemItemsItemRetentionLabelRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation 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. +// ToPatchRequestInformation 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. func (m *ItemItemsItemRetentionLabelRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/drives/item_items_item_workbook_names_item_range_request_builder.go b/drives/item_items_item_workbook_names_item_range_request_builder.go index 3146452c2ff..0a5035f492a 100644 --- a/drives/item_items_item_workbook_names_item_range_request_builder.go +++ b/drives/item_items_item_workbook_names_item_range_request_builder.go @@ -31,10 +31,10 @@ func NewItemItemsItemWorkbookNamesItemRangeRequestBuilder(rawUrl string, request urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } -// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// Get retrieve the properties and relationships of range object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -53,7 +53,7 @@ func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Get(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } -// ToGetRequestInformation returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// ToGetRequestInformation retrieve the properties and relationships of range object. func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/drives/item_items_item_workbook_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_request_builder.go index 54a5ef36828..14a9ae438ae 100644 --- a/drives/item_items_item_workbook_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Count()(*ItemItem // Get retrieve a list of tablecolumn objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_series_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_series_request_builder.go index cef2751f74a..b93ada8ca8a 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_series_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_series_request_builder.go @@ -77,7 +77,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) Coun // Get retrieve a list of chartseries objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chartseries-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chart-list-series?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartSeriesCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go index 13194176a9a..793440549ab 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Count()(*ItemI // Get retrieve a list of chart objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chart-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go index f43a70b7cd7..bb13271ef2a 100644 --- a/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go @@ -31,10 +31,10 @@ func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } -// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// Get retrieve the properties and relationships of range object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -53,7 +53,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } -// ToGetRequestInformation returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// ToGetRequestInformation retrieve the properties and relationships of range object. func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go index 6f5fd749242..bdf951e5898 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Cou // Get retrieve a list of tablecolumn objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_request_builder.go b/drives/item_items_item_workbook_worksheets_request_builder.go index 073d8c603f2..75500ddef93 100644 --- a/drives/item_items_item_workbook_worksheets_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsRequestBuilder) Count()(*ItemItemsItemWo // Get retrieve a list of worksheet objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-list-worksheets?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/worksheet-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_list_items_item_create_link_post_request_body.go b/drives/item_list_items_item_create_link_post_request_body.go index ed608025189..46f141c656c 100644 --- a/drives/item_list_items_item_create_link_post_request_body.go +++ b/drives/item_list_items_item_create_link_post_request_body.go @@ -64,6 +64,16 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map } return nil } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -132,6 +142,17 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map } return res } +// GetMessage gets the message property value. The message property +func (m *ItemListItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password property func (m *ItemListItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -206,6 +227,12 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) Serialize(writer i878a80d23 return err } } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -274,6 +301,13 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) SetExpirationDateTime(value panic(err) } } +// SetMessage sets the message property value. The message property +func (m *ItemListItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password property func (m *ItemListItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -323,6 +357,7 @@ type ItemListItemsItemCreateLinkPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMessage()(*string) GetPassword()(*string) GetRecipients()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable) GetRetainInheritedPermissions()(*bool) @@ -331,6 +366,7 @@ type ItemListItemsItemCreateLinkPostRequestBodyable interface { GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMessage(value *string)() SetPassword(value *string)() SetRecipients(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable)() SetRetainInheritedPermissions(value *bool)() diff --git a/employeeexperience/communities_community_item_request_builder.go b/employeeexperience/communities_community_item_request_builder.go new file mode 100644 index 00000000000..2067856c877 --- /dev/null +++ b/employeeexperience/communities_community_item_request_builder.go @@ -0,0 +1,162 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesCommunityItemRequestBuilder provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. +type CommunitiesCommunityItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesCommunityItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesCommunityItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CommunitiesCommunityItemRequestBuilderGetQueryParameters read the properties and relationships of a community object. +type CommunitiesCommunityItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// CommunitiesCommunityItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesCommunityItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesCommunityItemRequestBuilderGetQueryParameters +} +// CommunitiesCommunityItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesCommunityItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCommunitiesCommunityItemRequestBuilderInternal instantiates a new CommunityItemRequestBuilder and sets the default values. +func NewCommunitiesCommunityItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesCommunityItemRequestBuilder) { + m := &CommunitiesCommunityItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesCommunityItemRequestBuilder instantiates a new CommunityItemRequestBuilder and sets the default values. +func NewCommunitiesCommunityItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesCommunityItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesCommunityItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property communities for employeeExperience +func (m *CommunitiesCommunityItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *CommunitiesCommunityItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties and relationships of a community object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/community-get?view=graph-rest-1.0 +func (m *CommunitiesCommunityItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesCommunityItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunityFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable), nil +} +// Group provides operations to manage the group property of the microsoft.graph.community entity. +func (m *CommunitiesCommunityItemRequestBuilder) Group()(*CommunitiesItemGroupRequestBuilder) { + return NewCommunitiesItemGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Owners provides operations to manage the owners property of the microsoft.graph.community entity. +func (m *CommunitiesCommunityItemRequestBuilder) Owners()(*CommunitiesItemOwnersRequestBuilder) { + return NewCommunitiesItemOwnersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property communities in employeeExperience +func (m *CommunitiesCommunityItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, requestConfiguration *CommunitiesCommunityItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunityFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable), nil +} +// ToDeleteRequestInformation delete navigation property communities for employeeExperience +func (m *CommunitiesCommunityItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *CommunitiesCommunityItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation read the properties and relationships of a community object. +func (m *CommunitiesCommunityItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesCommunityItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property communities in employeeExperience +func (m *CommunitiesCommunityItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, requestConfiguration *CommunitiesCommunityItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesCommunityItemRequestBuilder) WithUrl(rawUrl string)(*CommunitiesCommunityItemRequestBuilder) { + return NewCommunitiesCommunityItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_count_request_builder.go b/employeeexperience/communities_count_request_builder.go new file mode 100644 index 00000000000..012680acec5 --- /dev/null +++ b/employeeexperience/communities_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesCountRequestBuilder provides operations to count the resources in the collection. +type CommunitiesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesCountRequestBuilderGetQueryParameters get the number of the resource +type CommunitiesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// CommunitiesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesCountRequestBuilderGetQueryParameters +} +// NewCommunitiesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesCountRequestBuilder) { + m := &CommunitiesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewCommunitiesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *CommunitiesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +func (m *CommunitiesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesCountRequestBuilder) { + return NewCommunitiesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_group_request_builder.go b/employeeexperience/communities_item_group_request_builder.go new file mode 100644 index 00000000000..c14225897a9 --- /dev/null +++ b/employeeexperience/communities_item_group_request_builder.go @@ -0,0 +1,82 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemGroupRequestBuilder provides operations to manage the group property of the microsoft.graph.community entity. +type CommunitiesItemGroupRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemGroupRequestBuilderGetQueryParameters the Microsoft 365 group that manages the membership of this community. +type CommunitiesItemGroupRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// CommunitiesItemGroupRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemGroupRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemGroupRequestBuilderGetQueryParameters +} +// NewCommunitiesItemGroupRequestBuilderInternal instantiates a new GroupRequestBuilder and sets the default values. +func NewCommunitiesItemGroupRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupRequestBuilder) { + m := &CommunitiesItemGroupRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group{?%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemGroupRequestBuilder instantiates a new GroupRequestBuilder and sets the default values. +func NewCommunitiesItemGroupRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemGroupRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the Microsoft 365 group that manages the membership of this community. +func (m *CommunitiesItemGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGroupFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil +} +// ServiceProvisioningErrors the serviceProvisioningErrors property +func (m *CommunitiesItemGroupRequestBuilder) ServiceProvisioningErrors()(*CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) { + return NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the Microsoft 365 group that manages the membership of this community. +func (m *CommunitiesItemGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemGroupRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemGroupRequestBuilder) { + return NewCommunitiesItemGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_group_service_provisioning_errors_count_request_builder.go b/employeeexperience/communities_item_group_service_provisioning_errors_count_request_builder.go new file mode 100644 index 00000000000..8015d1006b0 --- /dev/null +++ b/employeeexperience/communities_item_group_service_provisioning_errors_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. +type CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource +type CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetQueryParameters +} +// NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) { + m := &CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +func (m *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) { + return NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_group_service_provisioning_errors_request_builder.go b/employeeexperience/communities_item_group_service_provisioning_errors_request_builder.go new file mode 100644 index 00000000000..ab3a8ea9d06 --- /dev/null +++ b/employeeexperience/communities_item_group_service_provisioning_errors_request_builder.go @@ -0,0 +1,94 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \employeeExperience\communities\{community-id}\group\serviceProvisioningErrors +type CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. +type CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetQueryParameters +} +// NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilderInternal instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) { + m := &CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/group/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilder instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) Count()(*CommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilder) { + return NewCommunitiesItemGroupServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. +func (m *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil +} +// ToGetRequestInformation errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. +func (m *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemGroupServiceProvisioningErrorsRequestBuilder) { + return NewCommunitiesItemGroupServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_count_request_builder.go b/employeeexperience/communities_item_owners_count_request_builder.go new file mode 100644 index 00000000000..ff27e9652bc --- /dev/null +++ b/employeeexperience/communities_item_owners_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersCountRequestBuilder provides operations to count the resources in the collection. +type CommunitiesItemOwnersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersCountRequestBuilderGetQueryParameters get the number of the resource +type CommunitiesItemOwnersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersCountRequestBuilderGetQueryParameters +} +// NewCommunitiesItemOwnersCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersCountRequestBuilder) { + m := &CommunitiesItemOwnersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *CommunitiesItemOwnersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +func (m *CommunitiesItemOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemOwnersCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersCountRequestBuilder) { + return NewCommunitiesItemOwnersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go b/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go new file mode 100644 index 00000000000..39dcb573c04 --- /dev/null +++ b/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go @@ -0,0 +1,118 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersItemMailboxSettingsRequestBuilder builds and executes requests for operations under \employeeExperience\communities\{community-id}\owners\{user-id}\mailboxSettings +type CommunitiesItemOwnersItemMailboxSettingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Returned only on $select. +type CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetQueryParameters +} +// CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal instantiates a new MailboxSettingsRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { + m := &CommunitiesItemOwnersItemMailboxSettingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/mailboxSettings{?%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilder instantiates a new MailboxSettingsRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Returned only on $select. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// Patch update property mailboxSettings value. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Returned only on $select. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update property mailboxSettings value. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { + return NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go b/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go new file mode 100644 index 00000000000..8245578f731 --- /dev/null +++ b/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. +type CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource +type CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetQueryParameters +} +// NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { + m := &CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go b/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go new file mode 100644 index 00000000000..270b1dbe18d --- /dev/null +++ b/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go @@ -0,0 +1,94 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \employeeExperience\communities\{community-id}\owners\{user-id}\serviceProvisioningErrors +type CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +type CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetQueryParameters +} +// NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { + m := &CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}/serviceProvisioningErrors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder instantiates a new ServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) Count()(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil +} +// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_request_builder.go b/employeeexperience/communities_item_owners_request_builder.go new file mode 100644 index 00000000000..ef81db9c374 --- /dev/null +++ b/employeeexperience/communities_item_owners_request_builder.go @@ -0,0 +1,105 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersRequestBuilder provides operations to manage the owners property of the microsoft.graph.community entity. +type CommunitiesItemOwnersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersRequestBuilderGetQueryParameters the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +type CommunitiesItemOwnersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// CommunitiesItemOwnersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersRequestBuilderGetQueryParameters +} +// ByUserId provides operations to manage the owners property of the microsoft.graph.community entity. +func (m *CommunitiesItemOwnersRequestBuilder) ByUserId(userId string)(*CommunitiesItemOwnersUserItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if userId != "" { + urlTplParams["user%2Did"] = userId + } + return NewCommunitiesItemOwnersUserItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewCommunitiesItemOwnersRequestBuilderInternal instantiates a new OwnersRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersRequestBuilder) { + m := &CommunitiesItemOwnersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersRequestBuilder instantiates a new OwnersRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *CommunitiesItemOwnersRequestBuilder) Count()(*CommunitiesItemOwnersCountRequestBuilder) { + return NewCommunitiesItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *CommunitiesItemOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil +} +// ToGetRequestInformation the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *CommunitiesItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemOwnersRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersRequestBuilder) { + return NewCommunitiesItemOwnersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_item_owners_user_item_request_builder.go b/employeeexperience/communities_item_owners_user_item_request_builder.go new file mode 100644 index 00000000000..fd2170c8b93 --- /dev/null +++ b/employeeexperience/communities_item_owners_user_item_request_builder.go @@ -0,0 +1,86 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesItemOwnersUserItemRequestBuilder provides operations to manage the owners property of the microsoft.graph.community entity. +type CommunitiesItemOwnersUserItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesItemOwnersUserItemRequestBuilderGetQueryParameters the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +type CommunitiesItemOwnersUserItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesItemOwnersUserItemRequestBuilderGetQueryParameters +} +// NewCommunitiesItemOwnersUserItemRequestBuilderInternal instantiates a new UserItemRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersUserItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersUserItemRequestBuilder) { + m := &CommunitiesItemOwnersUserItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}/owners/{user%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesItemOwnersUserItemRequestBuilder instantiates a new UserItemRequestBuilder and sets the default values. +func NewCommunitiesItemOwnersUserItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesItemOwnersUserItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesItemOwnersUserItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *CommunitiesItemOwnersUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil +} +// MailboxSettings the mailboxSettings property +func (m *CommunitiesItemOwnersUserItemRequestBuilder) MailboxSettings()(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { + return NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ServiceProvisioningErrors the serviceProvisioningErrors property +func (m *CommunitiesItemOwnersUserItemRequestBuilder) ServiceProvisioningErrors()(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { + return NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *CommunitiesItemOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesItemOwnersUserItemRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersUserItemRequestBuilder) { + return NewCommunitiesItemOwnersUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/communities_request_builder.go b/employeeexperience/communities_request_builder.go new file mode 100644 index 00000000000..d33de8d0338 --- /dev/null +++ b/employeeexperience/communities_request_builder.go @@ -0,0 +1,148 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CommunitiesRequestBuilder provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. +type CommunitiesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CommunitiesRequestBuilderGetQueryParameters read the properties and relationships of a community object. +type CommunitiesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// CommunitiesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CommunitiesRequestBuilderGetQueryParameters +} +// CommunitiesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CommunitiesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByCommunityId provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. +func (m *CommunitiesRequestBuilder) ByCommunityId(communityId string)(*CommunitiesCommunityItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if communityId != "" { + urlTplParams["community%2Did"] = communityId + } + return NewCommunitiesCommunityItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewCommunitiesRequestBuilderInternal instantiates a new CommunitiesRequestBuilder and sets the default values. +func NewCommunitiesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesRequestBuilder) { + m := &CommunitiesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/communities{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewCommunitiesRequestBuilder instantiates a new CommunitiesRequestBuilder and sets the default values. +func NewCommunitiesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CommunitiesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCommunitiesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *CommunitiesRequestBuilder) Count()(*CommunitiesCountRequestBuilder) { + return NewCommunitiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get read the properties and relationships of a community object. +func (m *CommunitiesRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommunityCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunityCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommunityCollectionResponseable), nil +} +// Post create a new community in Viva Engage. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/employeeexperience-post-communities?view=graph-rest-1.0 +func (m *CommunitiesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, requestConfiguration *CommunitiesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCommunityFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable), nil +} +// ToGetRequestInformation read the properties and relationships of a community object. +func (m *CommunitiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create a new community in Viva Engage. +func (m *CommunitiesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Communityable, requestConfiguration *CommunitiesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *CommunitiesRequestBuilder) WithUrl(rawUrl string)(*CommunitiesRequestBuilder) { + return NewCommunitiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/employee_experience_request_builder.go b/employeeexperience/employee_experience_request_builder.go index 838146e36eb..3578871ce54 100644 --- a/employeeexperience/employee_experience_request_builder.go +++ b/employeeexperience/employee_experience_request_builder.go @@ -32,6 +32,10 @@ type EmployeeExperienceRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Communities provides operations to manage the communities property of the microsoft.graph.employeeExperience entity. +func (m *EmployeeExperienceRequestBuilder) Communities()(*CommunitiesRequestBuilder) { + return NewCommunitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewEmployeeExperienceRequestBuilderInternal instantiates a new EmployeeExperienceRequestBuilder and sets the default values. func NewEmployeeExperienceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EmployeeExperienceRequestBuilder) { m := &EmployeeExperienceRequestBuilder{ @@ -45,6 +49,10 @@ func NewEmployeeExperienceRequestBuilder(rawUrl string, requestAdapter i2ae4187f urlParams["request-raw-url"] = rawUrl return NewEmployeeExperienceRequestBuilderInternal(urlParams, requestAdapter) } +// EngagementAsyncOperations provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. +func (m *EmployeeExperienceRequestBuilder) EngagementAsyncOperations()(*EngagementAsyncOperationsRequestBuilder) { + return NewEngagementAsyncOperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get get employeeExperience func (m *EmployeeExperienceRequestBuilder) Get(ctx context.Context, requestConfiguration *EmployeeExperienceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmployeeExperienceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); diff --git a/employeeexperience/engagement_async_operations_count_request_builder.go b/employeeexperience/engagement_async_operations_count_request_builder.go new file mode 100644 index 00000000000..a19d84f570d --- /dev/null +++ b/employeeexperience/engagement_async_operations_count_request_builder.go @@ -0,0 +1,77 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EngagementAsyncOperationsCountRequestBuilder provides operations to count the resources in the collection. +type EngagementAsyncOperationsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EngagementAsyncOperationsCountRequestBuilderGetQueryParameters get the number of the resource +type EngagementAsyncOperationsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// EngagementAsyncOperationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EngagementAsyncOperationsCountRequestBuilderGetQueryParameters +} +// NewEngagementAsyncOperationsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsCountRequestBuilder) { + m := &EngagementAsyncOperationsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/engagementAsyncOperations/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewEngagementAsyncOperationsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEngagementAsyncOperationsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *EngagementAsyncOperationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *EngagementAsyncOperationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +func (m *EngagementAsyncOperationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EngagementAsyncOperationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *EngagementAsyncOperationsCountRequestBuilder) WithUrl(rawUrl string)(*EngagementAsyncOperationsCountRequestBuilder) { + return NewEngagementAsyncOperationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/engagement_async_operations_engagement_async_operation_item_request_builder.go b/employeeexperience/engagement_async_operations_engagement_async_operation_item_request_builder.go new file mode 100644 index 00000000000..59c32eb4b5c --- /dev/null +++ b/employeeexperience/engagement_async_operations_engagement_async_operation_item_request_builder.go @@ -0,0 +1,154 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetQueryParameters get an engagementAsyncOperation to track a long-running operation request. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetQueryParameters +} +// EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderInternal instantiates a new EngagementAsyncOperationItemRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) { + m := &EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/engagementAsyncOperations/{engagementAsyncOperation%2Did}{?%24select,%24expand}", pathParameters), + } + return m +} +// NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder instantiates a new EngagementAsyncOperationItemRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property engagementAsyncOperations for employeeExperience +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get an engagementAsyncOperation to track a long-running operation request. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/engagementasyncoperation-get?view=graph-rest-1.0 +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEngagementAsyncOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable), nil +} +// Patch update the navigation property engagementAsyncOperations in employeeExperience +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEngagementAsyncOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable), nil +} +// ToDeleteRequestInformation delete navigation property engagementAsyncOperations for employeeExperience +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get an engagementAsyncOperation to track a long-running operation request. +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property engagementAsyncOperations in employeeExperience +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, requestConfiguration *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) WithUrl(rawUrl string)(*EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) { + return NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/employeeexperience/engagement_async_operations_request_builder.go b/employeeexperience/engagement_async_operations_request_builder.go new file mode 100644 index 00000000000..44cc1f0e399 --- /dev/null +++ b/employeeexperience/engagement_async_operations_request_builder.go @@ -0,0 +1,145 @@ +package employeeexperience + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EngagementAsyncOperationsRequestBuilder provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. +type EngagementAsyncOperationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EngagementAsyncOperationsRequestBuilderGetQueryParameters get an engagementAsyncOperation to track a long-running operation request. +type EngagementAsyncOperationsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// EngagementAsyncOperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EngagementAsyncOperationsRequestBuilderGetQueryParameters +} +// EngagementAsyncOperationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EngagementAsyncOperationsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByEngagementAsyncOperationId provides operations to manage the engagementAsyncOperations property of the microsoft.graph.employeeExperience entity. +func (m *EngagementAsyncOperationsRequestBuilder) ByEngagementAsyncOperationId(engagementAsyncOperationId string)(*EngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if engagementAsyncOperationId != "" { + urlTplParams["engagementAsyncOperation%2Did"] = engagementAsyncOperationId + } + return NewEngagementAsyncOperationsEngagementAsyncOperationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewEngagementAsyncOperationsRequestBuilderInternal instantiates a new EngagementAsyncOperationsRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsRequestBuilder) { + m := &EngagementAsyncOperationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/employeeExperience/engagementAsyncOperations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewEngagementAsyncOperationsRequestBuilder instantiates a new EngagementAsyncOperationsRequestBuilder and sets the default values. +func NewEngagementAsyncOperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EngagementAsyncOperationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEngagementAsyncOperationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *EngagementAsyncOperationsRequestBuilder) Count()(*EngagementAsyncOperationsCountRequestBuilder) { + return NewEngagementAsyncOperationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get an engagementAsyncOperation to track a long-running operation request. +func (m *EngagementAsyncOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *EngagementAsyncOperationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEngagementAsyncOperationCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationCollectionResponseable), nil +} +// Post create new navigation property to engagementAsyncOperations for employeeExperience +func (m *EngagementAsyncOperationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, requestConfiguration *EngagementAsyncOperationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEngagementAsyncOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable), nil +} +// ToGetRequestInformation get an engagementAsyncOperation to track a long-running operation request. +func (m *EngagementAsyncOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EngagementAsyncOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to engagementAsyncOperations for employeeExperience +func (m *EngagementAsyncOperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EngagementAsyncOperationable, requestConfiguration *EngagementAsyncOperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *EngagementAsyncOperationsRequestBuilder) WithUrl(rawUrl string)(*EngagementAsyncOperationsRequestBuilder) { + return NewEngagementAsyncOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/external/connections_item_schema_request_builder.go b/external/connections_item_schema_request_builder.go index 70b75f6d3c9..6334d91076f 100644 --- a/external/connections_item_schema_request_builder.go +++ b/external/connections_item_schema_request_builder.go @@ -69,10 +69,10 @@ func (m *ConnectionsItemSchemaRequestBuilder) Get(ctx context.Context, requestCo } return res.(ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable), nil } -// Patch update the properties of a schema for an externalConnection. +// Patch create the schema for a Microsoft Search connection. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-schema-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-1.0 func (m *ConnectionsItemSchemaRequestBuilder) Patch(ctx context.Context, body ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, requestConfiguration *ConnectionsItemSchemaRequestBuilderPatchRequestConfiguration)(ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -104,7 +104,7 @@ func (m *ConnectionsItemSchemaRequestBuilder) ToGetRequestInformation(ctx contex requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a schema for an externalConnection. +// ToPatchRequestInformation create the schema for a Microsoft Search connection. func (m *ConnectionsItemSchemaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, requestConfiguration *ConnectionsItemSchemaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go b/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go index 127b622ad7b..c370db11f50 100644 --- a/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go +++ b/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go @@ -54,10 +54,10 @@ func NewIndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewIndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an industryDataConnector object. +// Delete delete an azureDataLakeConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-delete?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,10 +99,10 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Get( func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) MicrosoftGraphIndustryDataValidate()(*IndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilder) { return NewIndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an industryDataConnector object. +// Patch update the properties of an azureDataLakeConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-update?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Patc func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) SourceSystem()(*IndustryDataDataConnectorsItemSourceSystemRequestBuilder) { return NewIndustryDataDataConnectorsItemSourceSystemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete an industryDataConnector object. +// ToDeleteRequestInformation delete an azureDataLakeConnector object. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -148,7 +148,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an industryDataConnector object. +// ToPatchRequestInformation update the properties of an azureDataLakeConnector object. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/external/industry_data_data_connectors_request_builder.go b/external/industry_data_data_connectors_request_builder.go index 86089bccffe..5f3b4b3a794 100644 --- a/external/industry_data_data_connectors_request_builder.go +++ b/external/industry_data_data_connectors_request_builder.go @@ -96,10 +96,10 @@ func (m *IndustryDataDataConnectorsRequestBuilder) Get(ctx context.Context, requ } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorCollectionResponseable), nil } -// Post create a new industryDataConnector object. +// Post create a new azureDataLakeConnector object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-post?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsRequestBuilder) Post(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -131,7 +131,7 @@ func (m *IndustryDataDataConnectorsRequestBuilder) ToGetRequestInformation(ctx c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new industryDataConnector object. +// ToPostRequestInformation create a new azureDataLakeConnector object. func (m *IndustryDataDataConnectorsRequestBuilder) ToPostRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go b/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go index 8e8944013f8..1124210ef68 100644 --- a/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go +++ b/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go @@ -18,7 +18,7 @@ type IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfigura // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFlow object. +// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFileFlow object. type IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -77,10 +77,10 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Delete(ctx conte } return nil } -// Get read the properties and relationships of an inboundFlow object. +// Get read the properties and relationships of an inboundFileFlow object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-get?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -131,7 +131,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an inboundFlow object. +// ToGetRequestInformation read the properties and relationships of an inboundFileFlow object. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/external/industry_data_inbound_flows_request_builder.go b/external/industry_data_inbound_flows_request_builder.go index 393eaa08723..1d6e36a4b94 100644 --- a/external/industry_data_inbound_flows_request_builder.go +++ b/external/industry_data_inbound_flows_request_builder.go @@ -11,7 +11,7 @@ import ( type IndustryDataInboundFlowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// IndustryDataInboundFlowsRequestBuilderGetQueryParameters get a list of the inboundFileFlow objects and their properties. +// IndustryDataInboundFlowsRequestBuilderGetQueryParameters get a list of the inboundFlow objects and their properties. type IndustryDataInboundFlowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,10 @@ func NewIndustryDataInboundFlowsRequestBuilder(rawUrl string, requestAdapter i2a func (m *IndustryDataInboundFlowsRequestBuilder) Count()(*IndustryDataInboundFlowsCountRequestBuilder) { return NewIndustryDataInboundFlowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of the inboundFileFlow objects and their properties. +// Get get a list of the inboundFlow objects and their properties. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-list?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,10 +96,10 @@ func (m *IndustryDataInboundFlowsRequestBuilder) Get(ctx context.Context, reques } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowCollectionResponseable), nil } -// Post create a new inboundFileFlow object. The following prerequisite resources are required when you create an inboundFileFlow: +// Post create a new inboundFlow object. The following prerequisite resources are required when you create an inboundFlow: // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-post?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsRequestBuilder) Post(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsRequestBuilderPostRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -118,7 +118,7 @@ func (m *IndustryDataInboundFlowsRequestBuilder) Post(ctx context.Context, body } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// ToGetRequestInformation get a list of the inboundFileFlow objects and their properties. +// ToGetRequestInformation get a list of the inboundFlow objects and their properties. func (m *IndustryDataInboundFlowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -131,7 +131,7 @@ func (m *IndustryDataInboundFlowsRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new inboundFileFlow object. The following prerequisite resources are required when you create an inboundFileFlow: +// ToPostRequestInformation create a new inboundFlow object. The following prerequisite resources are required when you create an inboundFlow: func (m *IndustryDataInboundFlowsRequestBuilder) ToPostRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/graph_request_adapter.go b/graph_request_adapter.go index bc79f8fbdd4..97400273594 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "beta", - GraphServiceLibraryVersion: "0.88.0", + GraphServiceLibraryVersion: "0.89.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -76,3 +76,4 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH + diff --git a/groups/item_calendar_calendar_view_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_attachments_request_builder.go index ba453de6a3f..815ed56ef12 100644 --- a/groups/item_calendar_calendar_view_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Get(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index d94c5609458..b297a856df7 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 2639c69f2a4..b0cbc023d19 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go index 643e733e981..afe00d29f7e 100644 --- a/groups/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToG requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 0743b5abe4f..0f934637379 100644 --- a/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_attachments_request_builder.go b/groups/item_calendar_events_item_attachments_request_builder.go index 2ed33c50383..d8f9acd4c48 100644 --- a/groups/item_calendar_events_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Get(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToGetRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go index 6a8032baea5..a8bbc686755 100644 --- a/groups/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index a79ba3b651e..0495aa9919c 100644 --- a/groups/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_instances_item_attachments_request_builder.go b/groups/item_calendar_events_item_instances_item_attachments_request_builder.go index 7729553a92f..8c40e3efafa 100644 --- a/groups/item_calendar_events_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index b5d7180a582..281f2a71cf6 100644 --- a/groups/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_attachments_request_builder.go b/groups/item_calendar_view_item_attachments_request_builder.go index ba51c365376..c9434122f47 100644 --- a/groups/item_calendar_view_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index e18a0c3d7fd..a3f56ed4ea5 100644 --- a/groups/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 21426a46f68..35b39de05a3 100644 --- a/groups/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_instances_item_attachments_request_builder.go b/groups/item_calendar_view_item_instances_item_attachments_request_builder.go index 143f854fc1e..a78a46fd551 100644 --- a/groups/item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index b233a206a57..921adc99cfc 100644 --- a/groups/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_conversations_conversation_item_request_builder.go b/groups/item_conversations_conversation_item_request_builder.go index 1fe42a4ef57..069dd9126d2 100644 --- a/groups/item_conversations_conversation_item_request_builder.go +++ b/groups/item_conversations_conversation_item_request_builder.go @@ -45,10 +45,10 @@ func NewItemConversationsConversationItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemConversationsConversationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a conversation object. +// Delete delete conversation. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0 func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -90,7 +90,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Contex func (m *ItemConversationsConversationItemRequestBuilder) Threads()(*ItemConversationsItemThreadsRequestBuilder) { return NewItemConversationsItemThreadsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete a conversation object. +// ToDeleteRequestInformation delete conversation. func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_conversations_request_builder.go b/groups/item_conversations_request_builder.go index b0032ede677..e043e40451e 100644 --- a/groups/item_conversations_request_builder.go +++ b/groups/item_conversations_request_builder.go @@ -94,10 +94,10 @@ func (m *ItemConversationsRequestBuilder) Get(ctx context.Context, requestConfig } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationCollectionResponseable), nil } -// Post 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. +// Post create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0 func (m *ItemConversationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *ItemConversationsRequestBuilder) ToGetRequestInformation(ctx context.Co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation 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. +// ToPostRequestInformation create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. func (m *ItemConversationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_attachments_request_builder.go b/groups/item_events_item_attachments_request_builder.go index d0f9cbd0c3d..27cabfded8f 100644 --- a/groups/item_events_item_attachments_request_builder.go +++ b/groups/item_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, reque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_events_item_exception_occurrences_item_attachments_request_builder.go index a0a4d333025..3a3fbb45f52 100644 --- a/groups/item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/groups/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 0236da9f5be..9e2c8e30065 100644 --- a/groups/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/groups/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_instances_item_attachments_request_builder.go b/groups/item_events_item_instances_item_attachments_request_builder.go index db5898e46d1..b04d075d90c 100644 --- a/groups/item_events_item_instances_item_attachments_request_builder.go +++ b/groups/item_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/groups/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 82eb65d8f23..4b845a1faab 100644 --- a/groups/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/groups/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_planner_plans_item_archive_post_request_body.go b/groups/item_planner_plans_item_archive_post_request_body.go new file mode 100644 index 00000000000..fda56dd08f7 --- /dev/null +++ b/groups/item_planner_plans_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPlannerPlansItemArchivePostRequestBody +type ItemPlannerPlansItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPlannerPlansItemArchivePostRequestBody instantiates a new ItemPlannerPlansItemArchivePostRequestBody and sets the default values. +func NewItemPlannerPlansItemArchivePostRequestBody()(*ItemPlannerPlansItemArchivePostRequestBody) { + m := &ItemPlannerPlansItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPlannerPlansItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPlannerPlansItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPlannerPlansItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPlannerPlansItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// ItemPlannerPlansItemArchivePostRequestBodyable +type ItemPlannerPlansItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/groups/item_planner_plans_item_archive_request_builder.go b/groups/item_planner_plans_item_archive_request_builder.go new file mode 100644 index 00000000000..950b97391c1 --- /dev/null +++ b/groups/item_planner_plans_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemArchiveRequestBuilder provides operations to call the archive method. +type ItemPlannerPlansItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemArchiveRequestBuilder) { + m := &ItemPlannerPlansItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/archive", pathParameters), + } + return m +} +// NewItemPlannerPlansItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemPlannerPlansItemArchiveRequestBuilder) Post(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemPlannerPlansItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPlannerPlansItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemArchiveRequestBuilder) { + return NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_planner_plans_item_unarchive_post_request_body.go b/groups/item_planner_plans_item_unarchive_post_request_body.go new file mode 100644 index 00000000000..675880fa5e2 --- /dev/null +++ b/groups/item_planner_plans_item_unarchive_post_request_body.go @@ -0,0 +1,110 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPlannerPlansItemUnarchivePostRequestBody +type ItemPlannerPlansItemUnarchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPlannerPlansItemUnarchivePostRequestBody instantiates a new ItemPlannerPlansItemUnarchivePostRequestBody and sets the default values. +func NewItemPlannerPlansItemUnarchivePostRequestBody()(*ItemPlannerPlansItemUnarchivePostRequestBody) { + m := &ItemPlannerPlansItemUnarchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPlannerPlansItemUnarchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPlannerPlansItemUnarchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPlannerPlansItemUnarchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// ItemPlannerPlansItemUnarchivePostRequestBodyable +type ItemPlannerPlansItemUnarchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/groups/item_planner_plans_item_unarchive_request_builder.go b/groups/item_planner_plans_item_unarchive_request_builder.go new file mode 100644 index 00000000000..f2638d3d608 --- /dev/null +++ b/groups/item_planner_plans_item_unarchive_request_builder.go @@ -0,0 +1,66 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemPlannerPlansItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + m := &ItemPlannerPlansItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemPlannerPlansItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) Post(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + return NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_planner_plans_planner_plan_item_request_builder.go b/groups/item_planner_plans_planner_plan_item_request_builder.go index e31fcd87c00..8862222672c 100644 --- a/groups/item_planner_plans_planner_plan_item_request_builder.go +++ b/groups/item_planner_plans_planner_plan_item_request_builder.go @@ -41,6 +41,10 @@ type ItemPlannerPlansPlannerPlanItemRequestBuilderPatchRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Archive()(*ItemPlannerPlansItemArchiveRequestBuilder) { + return NewItemPlannerPlansItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Buckets provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Buckets()(*ItemPlannerPlansItemBucketsRequestBuilder) { return NewItemPlannerPlansItemBucketsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -161,6 +165,10 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToPatchRequestInformatio } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Unarchive()(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansPlannerPlanItemRequestBuilder) { return NewItemPlannerPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go b/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go index c47fad4354a..9c8d6a62e52 100644 --- a/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go +++ b/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go @@ -64,6 +64,16 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeser } return nil } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -132,6 +142,17 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeser } return res } +// GetMessage gets the message property value. The message property +func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password property func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -206,6 +227,12 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) Serialize(wri return err } } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -274,6 +301,13 @@ func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetExpiration panic(err) } } +// SetMessage sets the message property value. The message property +func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password property func (m *ItemSitesItemListsItemItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -323,6 +357,7 @@ type ItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMessage()(*string) GetPassword()(*string) GetRecipients()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable) GetRetainInheritedPermissions()(*bool) @@ -331,6 +366,7 @@ type ItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyable interface { GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMessage(value *string)() SetPassword(value *string)() SetRecipients(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable)() SetRetainInheritedPermissions(value *bool)() diff --git a/groups/item_team_channels_channel_item_request_builder.go b/groups/item_team_channels_channel_item_request_builder.go index 74aad6f824d..3dc23334635 100644 --- a/groups/item_team_channels_channel_item_request_builder.go +++ b/groups/item_team_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type ItemTeamChannelsChannelItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemTeamChannelsChannelItemRequestBuilder) Archive()(*ItemTeamChannelsItemArchiveRequestBuilder) { + return NewItemTeamChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemTeamChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemTeamChannelsItemCompleteMigrationRequestBuilder) { return NewItemTeamChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -190,6 +194,10 @@ func (m *ItemTeamChannelsChannelItemRequestBuilder) ToPatchRequestInformation(ct } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemTeamChannelsChannelItemRequestBuilder) Unarchive()(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemTeamChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsChannelItemRequestBuilder) { return NewItemTeamChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_channels_item_archive_post_request_body.go b/groups/item_team_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..5fe907dc8fd --- /dev/null +++ b/groups/item_team_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemTeamChannelsItemArchivePostRequestBody +type ItemTeamChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamChannelsItemArchivePostRequestBody instantiates a new ItemTeamChannelsItemArchivePostRequestBody and sets the default values. +func NewItemTeamChannelsItemArchivePostRequestBody()(*ItemTeamChannelsItemArchivePostRequestBody) { + m := &ItemTeamChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemTeamChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemTeamChannelsItemArchivePostRequestBodyable +type ItemTeamChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/groups/item_team_channels_item_archive_request_builder.go b/groups/item_team_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..934ede2a82a --- /dev/null +++ b/groups/item_team_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemArchiveRequestBuilder) { + m := &ItemTeamChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemTeamChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemTeamChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemTeamChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemArchiveRequestBuilder) { + return NewItemTeamChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_members_conversation_member_item_request_builder.go b/groups/item_team_channels_item_members_conversation_member_item_request_builder.go index f7cfefff6c4..588f040ece1 100644 --- a/groups/item_team_channels_item_members_conversation_member_item_request_builder.go +++ b/groups/item_team_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) ToGetR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_team_channels_item_unarchive_request_builder.go b/groups/item_team_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..cc4db02b782 --- /dev/null +++ b/groups/item_team_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + m := &ItemTeamChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemTeamChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_archive_post_request_body.go b/groups/item_team_primary_channel_archive_post_request_body.go new file mode 100644 index 00000000000..86da6552af9 --- /dev/null +++ b/groups/item_team_primary_channel_archive_post_request_body.go @@ -0,0 +1,110 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemTeamPrimaryChannelArchivePostRequestBody +type ItemTeamPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamPrimaryChannelArchivePostRequestBody instantiates a new ItemTeamPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemTeamPrimaryChannelArchivePostRequestBody()(*ItemTeamPrimaryChannelArchivePostRequestBody) { + m := &ItemTeamPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemTeamPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemTeamPrimaryChannelArchivePostRequestBodyable +type ItemTeamPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/groups/item_team_primary_channel_archive_request_builder.go b/groups/item_team_primary_channel_archive_request_builder.go new file mode 100644 index 00000000000..44a1037602d --- /dev/null +++ b/groups/item_team_primary_channel_archive_request_builder.go @@ -0,0 +1,66 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + m := &ItemTeamPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go b/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go index 74caa25cdef..b39503fed37 100644 --- a/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go +++ b/groups/item_team_primary_channel_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/groups/item_team_primary_channel_request_builder.go b/groups/item_team_primary_channel_request_builder.go index 07961124222..35be7054ab4 100644 --- a/groups/item_team_primary_channel_request_builder.go +++ b/groups/item_team_primary_channel_request_builder.go @@ -41,6 +41,10 @@ type ItemTeamPrimaryChannelRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemTeamPrimaryChannelRequestBuilder) Archive()(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemTeamPrimaryChannelRequestBuilder) CompleteMigration()(*ItemTeamPrimaryChannelCompleteMigrationRequestBuilder) { return NewItemTeamPrimaryChannelCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -184,6 +188,10 @@ func (m *ItemTeamPrimaryChannelRequestBuilder) ToPatchRequestInformation(ctx con } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemTeamPrimaryChannelRequestBuilder) Unarchive()(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemTeamPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelRequestBuilder) { return NewItemTeamPrimaryChannelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_primary_channel_unarchive_request_builder.go b/groups/item_team_primary_channel_unarchive_request_builder.go new file mode 100644 index 00000000000..2320d9e87b1 --- /dev/null +++ b/groups/item_team_primary_channel_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemTeamPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identity/conditional_access_authentication_strength_policies_item_update_allowed_combinations_post_request_body.go b/identity/conditional_access_authentication_strength_policies_item_update_allowed_combinations_post_request_body.go index 25659d86984..f5e29d565e8 100644 --- a/identity/conditional_access_authentication_strength_policies_item_update_allowed_combinations_post_request_body.go +++ b/identity/conditional_access_authentication_strength_policies_item_update_allowed_combinations_post_request_body.go @@ -2,7 +2,6 @@ package identity import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -35,17 +34,6 @@ func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombina } return val.(map[string]any) } -// GetAllowedCombinations gets the allowedCombinations property value. The allowedCombinations property -func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetAllowedCombinations()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) { - val, err := m.GetBackingStore().Get("allowedCombinations") - if err != nil { - panic(err) - } - if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) - } - return nil -} // GetBackingStore gets the BackingStore property value. Stores model information. func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -53,32 +41,10 @@ func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombina // GetFieldDeserializers the deserialization information for the current model func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["allowedCombinations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseAuthenticationMethodModes) - if err != nil { - return err - } - if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)) - } - } - m.SetAllowedCombinations(res) - } - return nil - } return res } // Serialize serializes information the current object func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAllowedCombinations() != nil { - err := writer.WriteCollectionOfStringValues("allowedCombinations", ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SerializeAuthenticationMethodModes(m.GetAllowedCombinations())) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -94,13 +60,6 @@ func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombina panic(err) } } -// SetAllowedCombinations sets the allowedCombinations property value. The allowedCombinations property -func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) SetAllowedCombinations(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)() { - err := m.GetBackingStore().Set("allowedCombinations", value) - if err != nil { - panic(err) - } -} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -110,8 +69,6 @@ type ConditionalAccessAuthenticationStrengthPoliciesItemUpdateAllowedCombination i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedCombinations()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - SetAllowedCombinations(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() } diff --git a/identity/conditional_access_authentication_strengths_policies_item_update_allowed_combinations_post_request_body.go b/identity/conditional_access_authentication_strengths_policies_item_update_allowed_combinations_post_request_body.go index 417fc4d3f63..e969fef2023 100644 --- a/identity/conditional_access_authentication_strengths_policies_item_update_allowed_combinations_post_request_body.go +++ b/identity/conditional_access_authentication_strengths_policies_item_update_allowed_combinations_post_request_body.go @@ -2,7 +2,6 @@ package identity import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -35,17 +34,6 @@ func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombin } return val.(map[string]any) } -// GetAllowedCombinations gets the allowedCombinations property value. The allowedCombinations property -func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetAllowedCombinations()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) { - val, err := m.GetBackingStore().Get("allowedCombinations") - if err != nil { - panic(err) - } - if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) - } - return nil -} // GetBackingStore gets the BackingStore property value. Stores model information. func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -53,32 +41,10 @@ func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombin // GetFieldDeserializers the deserialization information for the current model func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["allowedCombinations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseAuthenticationMethodModes) - if err != nil { - return err - } - if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)) - } - } - m.SetAllowedCombinations(res) - } - return nil - } return res } // Serialize serializes information the current object func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombinationsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAllowedCombinations() != nil { - err := writer.WriteCollectionOfStringValues("allowedCombinations", ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SerializeAuthenticationMethodModes(m.GetAllowedCombinations())) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -94,13 +60,6 @@ func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombin panic(err) } } -// SetAllowedCombinations sets the allowedCombinations property value. The allowedCombinations property -func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombinationsPostRequestBody) SetAllowedCombinations(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)() { - err := m.GetBackingStore().Set("allowedCombinations", value) - if err != nil { - panic(err) - } -} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombinationsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -110,8 +69,6 @@ type ConditionalAccessAuthenticationStrengthsPoliciesItemUpdateAllowedCombinatio i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedCombinations()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - SetAllowedCombinations(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() } diff --git a/identity/conditional_access_named_locations_named_location_item_request_builder.go b/identity/conditional_access_named_locations_named_location_item_request_builder.go index fe02be9c018..a183acc86c8 100644 --- a/identity/conditional_access_named_locations_named_location_item_request_builder.go +++ b/identity/conditional_access_named_locations_named_location_item_request_builder.go @@ -18,7 +18,7 @@ type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an ipNamedLocation object. +// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a namedLocation object. type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,10 +54,10 @@ func NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a countryNamedLocation object. +// Delete delete an ipNamedLocation object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,10 +73,10 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete( } return nil } -// Get retrieve the properties and relationships of an ipNamedLocation object. +// Get retrieve the properties and relationships of a namedLocation object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/namedlocation-get?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -95,10 +95,10 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable), nil } -// Patch update the properties of an ipNamedLocation object. +// Patch update the properties of a countryNamedLocation object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-update?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -117,7 +117,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable), nil } -// ToDeleteRequestInformation delete a countryNamedLocation object. +// ToDeleteRequestInformation delete an ipNamedLocation object. func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -127,7 +127,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDelet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an ipNamedLocation object. +// ToGetRequestInformation retrieve the properties and relationships of a namedLocation object. func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -140,7 +140,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an ipNamedLocation object. +// ToPatchRequestInformation update the properties of a countryNamedLocation object. func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/identity/conditionalaccess/authenticationstrength/policies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go b/identity/conditionalaccess/authenticationstrength/policies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/identity/conditionalaccess/authenticationstrengths/policies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go b/identity/conditionalaccess/authenticationstrengths/policies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go index d7096f62801..8c284963230 100644 --- a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go +++ b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go @@ -18,7 +18,7 @@ type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. +// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of a customAuthenticationExtension object. type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB } return nil } -// Get read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. +// Get read the properties and relationships of a customAuthenticationExtension object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/authenticationeventlistener-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/customauthenticationextension-get?view=graph-rest-1.0 func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAuthenticationExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. +// ToGetRequestInformation read the properties and relationships of a customAuthenticationExtension object. func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go b/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go index e693f682bac..d92a50eb7e6 100644 --- a/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowEx // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -71,11 +71,11 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return nil } -// Get read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// Get read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -94,11 +94,11 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable), nil } -// Patch update the properties of an accessPackageAssignmentRequestWorkflowExtension object. +// Patch update the properties of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -128,7 +128,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,7 +142,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an accessPackageAssignmentRequestWorkflowExtension object. +// ToPatchRequestInformation update the properties of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go index 7f3cb6ed339..defa559ee1a 100644 --- a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderDeleteReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an accessPackage object. +// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -89,10 +89,10 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Del } return nil } -// Get retrieve the properties and relationships of an accessPackage object. +// Get retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackage-list-accesspackageresourcerolescopes?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -159,7 +159,7 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToD requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an accessPackage object. +// ToGetRequestInformation retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/identityprotection/risk_detections_risk_detection_item_request_builder.go b/identityprotection/risk_detections_risk_detection_item_request_builder.go index 9a6c7437a7a..3c55d3e4077 100644 --- a/identityprotection/risk_detections_risk_detection_item_request_builder.go +++ b/identityprotection/risk_detections_risk_detection_item_request_builder.go @@ -18,7 +18,7 @@ type RiskDetectionsRiskDetectionItemRequestBuilderDeleteRequestConfiguration str // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters retrieve the properties of a collection of riskDetection objects. +// RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters retrieve the properties of a riskDetection object. type RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,10 +70,10 @@ func (m *RiskDetectionsRiskDetectionItemRequestBuilder) Delete(ctx context.Conte } return nil } -// Get retrieve the properties of a collection of riskDetection objects. +// Get retrieve the properties of a riskDetection object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 func (m *RiskDetectionsRiskDetectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *RiskDetectionsRiskDetectionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -121,7 +121,7 @@ func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToDeleteRequestInformati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties of a collection of riskDetection objects. +// ToGetRequestInformation retrieve the properties of a riskDetection object. func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRiskDetectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/identityprotection/risky_users_request_builder.go b/identityprotection/risky_users_request_builder.go index b6d356a2d2b..13ab0041f58 100644 --- a/identityprotection/risky_users_request_builder.go +++ b/identityprotection/risky_users_request_builder.go @@ -11,7 +11,7 @@ import ( type RiskyUsersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RiskyUsersRequestBuilderGetQueryParameters retrieve the properties and relationships of a riskyUser object. +// RiskyUsersRequestBuilderGetQueryParameters retrieve the properties and relationships of a collection of riskyUser objects. type RiskyUsersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -82,10 +82,10 @@ func (m *RiskyUsersRequestBuilder) Count()(*RiskyUsersCountRequestBuilder) { func (m *RiskyUsersRequestBuilder) Dismiss()(*RiskyUsersDismissRequestBuilder) { return NewRiskyUsersDismissRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of a riskyUser object. +// Get retrieve the properties and relationships of a collection of riskyUser objects. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/riskyusers-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/riskyusers-list?view=graph-rest-1.0 func (m *RiskyUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *RiskyUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskyUserCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -123,7 +123,7 @@ func (m *RiskyUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskyUserable), nil } -// ToGetRequestInformation retrieve the properties and relationships of a riskyUser object. +// ToGetRequestInformation retrieve the properties and relationships of a collection of riskyUser objects. func (m *RiskyUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskyUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/kiota-lock.json b/kiota-lock.json index 03a8fe0b255..99039691683 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "DC57A2D50E23FE2A10E02407633A69934DF56EF9CB84F56E4EB061BEF532C865C8A09534F8C367D43F50BB8E2F04F442BEE05C339EAFAAF98BCEB25CAE4C6BF3", + "descriptionHash": "62C8D177552434404CFA50A1841F3E13D5331549B7AB5CB0E1E20C8A950C9994DB6917ADEA80C8FF893FD58DC9AFD764276D1D8421F486E80F0A8DFAFE5C3AE5", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.10.0", diff --git a/models/access_package_assignment_request_callback_data.go b/models/access_package_assignment_request_callback_data.go index 6bff5192896..23925ee7aeb 100644 --- a/models/access_package_assignment_request_callback_data.go +++ b/models/access_package_assignment_request_callback_data.go @@ -67,12 +67,12 @@ func (m *AccessPackageAssignmentRequestCallbackData) GetFieldDeserializers()(map return nil } res["stage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessPackageCustomExtensionStage) + val, err := n.GetEnumValue(ParseAccessPackageAssignmentRequestCallbackData_stage) if err != nil { return err } if val != nil { - m.SetStage(val.(*AccessPackageCustomExtensionStage)) + m.SetStage(val.(*AccessPackageAssignmentRequestCallbackData_stage)) } return nil } @@ -89,13 +89,13 @@ func (m *AccessPackageAssignmentRequestCallbackData) GetFieldDeserializers()(map return res } // GetStage gets the stage property value. Indicates the stage at which the custom callout extension is executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. -func (m *AccessPackageAssignmentRequestCallbackData) GetStage()(*AccessPackageCustomExtensionStage) { +func (m *AccessPackageAssignmentRequestCallbackData) GetStage()(*AccessPackageAssignmentRequestCallbackData_stage) { val, err := m.GetBackingStore().Get("stage") if err != nil { panic(err) } if val != nil { - return val.(*AccessPackageCustomExtensionStage) + return val.(*AccessPackageAssignmentRequestCallbackData_stage) } return nil } @@ -158,7 +158,7 @@ func (m *AccessPackageAssignmentRequestCallbackData) SetCustomExtensionStageInst } } // SetStage sets the stage property value. Indicates the stage at which the custom callout extension is executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. -func (m *AccessPackageAssignmentRequestCallbackData) SetStage(value *AccessPackageCustomExtensionStage)() { +func (m *AccessPackageAssignmentRequestCallbackData) SetStage(value *AccessPackageAssignmentRequestCallbackData_stage)() { err := m.GetBackingStore().Set("stage", value) if err != nil { panic(err) @@ -177,10 +177,10 @@ type AccessPackageAssignmentRequestCallbackDataable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCustomExtensionStageInstanceDetail()(*string) GetCustomExtensionStageInstanceId()(*string) - GetStage()(*AccessPackageCustomExtensionStage) + GetStage()(*AccessPackageAssignmentRequestCallbackData_stage) GetState()(*string) SetCustomExtensionStageInstanceDetail(value *string)() SetCustomExtensionStageInstanceId(value *string)() - SetStage(value *AccessPackageCustomExtensionStage)() + SetStage(value *AccessPackageAssignmentRequestCallbackData_stage)() SetState(value *string)() } diff --git a/models/access_package_assignment_request_callback_data_stage.go b/models/access_package_assignment_request_callback_data_stage.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/access_package_custom_extension_handler_status.go b/models/access_package_custom_extension_handler_status.go deleted file mode 100644 index fdc8a99bd97..00000000000 --- a/models/access_package_custom_extension_handler_status.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AccessPackageCustomExtensionHandlerStatus int - -const ( - REQUESTSENT_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS AccessPackageCustomExtensionHandlerStatus = iota - REQUESTRECEIVED_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS - UNKNOWNFUTUREVALUE_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS -) - -func (i AccessPackageCustomExtensionHandlerStatus) String() string { - return []string{"requestSent", "requestReceived", "unknownFutureValue"}[i] -} -func ParseAccessPackageCustomExtensionHandlerStatus(v string) (any, error) { - result := REQUESTSENT_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS - switch v { - case "requestSent": - result = REQUESTSENT_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS - case "requestReceived": - result = REQUESTRECEIVED_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS - default: - return 0, errors.New("Unknown AccessPackageCustomExtensionHandlerStatus value: " + v) - } - return &result, nil -} -func SerializeAccessPackageCustomExtensionHandlerStatus(values []AccessPackageCustomExtensionHandlerStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AccessPackageCustomExtensionHandlerStatus) isMultiValue() bool { - return false -} diff --git a/models/access_package_subject.go b/models/access_package_subject.go index 418a8ab57b1..d8e289d413e 100644 --- a/models/access_package_subject.go +++ b/models/access_package_subject.go @@ -180,12 +180,12 @@ func (m *AccessPackageSubject) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["subjectLifecycle"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessPackageSubjectLifecycle) + val, err := n.GetEnumValue(ParseAccessPackageSubject_subjectLifecycle) if err != nil { return err } if val != nil { - m.SetSubjectLifecycle(val.(*AccessPackageSubjectLifecycle)) + m.SetSubjectLifecycle(val.(*AccessPackageSubject_subjectLifecycle)) } return nil } @@ -235,13 +235,13 @@ func (m *AccessPackageSubject) GetPrincipalName()(*string) { return nil } // GetSubjectLifecycle gets the subjectLifecycle property value. The lifecycle of the subject user, if a guest. The possible values are: notDefined, notGoverned, governed, unknownFutureValue. -func (m *AccessPackageSubject) GetSubjectLifecycle()(*AccessPackageSubjectLifecycle) { +func (m *AccessPackageSubject) GetSubjectLifecycle()(*AccessPackageSubject_subjectLifecycle) { val, err := m.GetBackingStore().Get("subjectLifecycle") if err != nil { panic(err) } if val != nil { - return val.(*AccessPackageSubjectLifecycle) + return val.(*AccessPackageSubject_subjectLifecycle) } return nil } @@ -395,7 +395,7 @@ func (m *AccessPackageSubject) SetPrincipalName(value *string)() { } } // SetSubjectLifecycle sets the subjectLifecycle property value. The lifecycle of the subject user, if a guest. The possible values are: notDefined, notGoverned, governed, unknownFutureValue. -func (m *AccessPackageSubject) SetSubjectLifecycle(value *AccessPackageSubjectLifecycle)() { +func (m *AccessPackageSubject) SetSubjectLifecycle(value *AccessPackageSubject_subjectLifecycle)() { err := m.GetBackingStore().Set("subjectLifecycle", value) if err != nil { panic(err) @@ -421,7 +421,7 @@ type AccessPackageSubjectable interface { GetObjectId()(*string) GetOnPremisesSecurityIdentifier()(*string) GetPrincipalName()(*string) - GetSubjectLifecycle()(*AccessPackageSubjectLifecycle) + GetSubjectLifecycle()(*AccessPackageSubject_subjectLifecycle) GetTypeEscaped()(*string) SetAltSecId(value *string)() SetCleanupScheduledDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -432,6 +432,6 @@ type AccessPackageSubjectable interface { SetObjectId(value *string)() SetOnPremisesSecurityIdentifier(value *string)() SetPrincipalName(value *string)() - SetSubjectLifecycle(value *AccessPackageSubjectLifecycle)() + SetSubjectLifecycle(value *AccessPackageSubject_subjectLifecycle)() SetTypeEscaped(value *string)() } diff --git a/models/access_package_subject_lifecycle.go b/models/access_package_subject_lifecycle.go deleted file mode 100644 index ae7735ce9c7..00000000000 --- a/models/access_package_subject_lifecycle.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type AccessPackageSubjectLifecycle int - -const ( - NOTDEFINED_ACCESSPACKAGESUBJECTLIFECYCLE AccessPackageSubjectLifecycle = iota - NOTGOVERNED_ACCESSPACKAGESUBJECTLIFECYCLE - GOVERNED_ACCESSPACKAGESUBJECTLIFECYCLE - UNKNOWNFUTUREVALUE_ACCESSPACKAGESUBJECTLIFECYCLE -) - -func (i AccessPackageSubjectLifecycle) String() string { - return []string{"notDefined", "notGoverned", "governed", "unknownFutureValue"}[i] -} -func ParseAccessPackageSubjectLifecycle(v string) (any, error) { - result := NOTDEFINED_ACCESSPACKAGESUBJECTLIFECYCLE - switch v { - case "notDefined": - result = NOTDEFINED_ACCESSPACKAGESUBJECTLIFECYCLE - case "notGoverned": - result = NOTGOVERNED_ACCESSPACKAGESUBJECTLIFECYCLE - case "governed": - result = GOVERNED_ACCESSPACKAGESUBJECTLIFECYCLE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACCESSPACKAGESUBJECTLIFECYCLE - default: - return 0, errors.New("Unknown AccessPackageSubjectLifecycle value: " + v) - } - return &result, nil -} -func SerializeAccessPackageSubjectLifecycle(values []AccessPackageSubjectLifecycle) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AccessPackageSubjectLifecycle) isMultiValue() bool { - return false -} diff --git a/models/access_package_subject_subject_lifecycle.go b/models/access_package_subject_subject_lifecycle.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/access_review_history_decision_filter.go b/models/access_review_history_decision_filter.go deleted file mode 100644 index a25d7c85f2d..00000000000 --- a/models/access_review_history_decision_filter.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type AccessReviewHistoryDecisionFilter int - -const ( - APPROVE_ACCESSREVIEWHISTORYDECISIONFILTER AccessReviewHistoryDecisionFilter = iota - DENY_ACCESSREVIEWHISTORYDECISIONFILTER - NOTREVIEWED_ACCESSREVIEWHISTORYDECISIONFILTER - DONTKNOW_ACCESSREVIEWHISTORYDECISIONFILTER - NOTNOTIFIED_ACCESSREVIEWHISTORYDECISIONFILTER - UNKNOWNFUTUREVALUE_ACCESSREVIEWHISTORYDECISIONFILTER -) - -func (i AccessReviewHistoryDecisionFilter) String() string { - return []string{"approve", "deny", "notReviewed", "dontKnow", "notNotified", "unknownFutureValue"}[i] -} -func ParseAccessReviewHistoryDecisionFilter(v string) (any, error) { - result := APPROVE_ACCESSREVIEWHISTORYDECISIONFILTER - switch v { - case "approve": - result = APPROVE_ACCESSREVIEWHISTORYDECISIONFILTER - case "deny": - result = DENY_ACCESSREVIEWHISTORYDECISIONFILTER - case "notReviewed": - result = NOTREVIEWED_ACCESSREVIEWHISTORYDECISIONFILTER - case "dontKnow": - result = DONTKNOW_ACCESSREVIEWHISTORYDECISIONFILTER - case "notNotified": - result = NOTNOTIFIED_ACCESSREVIEWHISTORYDECISIONFILTER - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACCESSREVIEWHISTORYDECISIONFILTER - default: - return 0, errors.New("Unknown AccessReviewHistoryDecisionFilter value: " + v) - } - return &result, nil -} -func SerializeAccessReviewHistoryDecisionFilter(values []AccessReviewHistoryDecisionFilter) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AccessReviewHistoryDecisionFilter) isMultiValue() bool { - return false -} diff --git a/models/access_review_history_definition.go b/models/access_review_history_definition.go index 95a6d124eb0..335ee2d72aa 100644 --- a/models/access_review_history_definition.go +++ b/models/access_review_history_definition.go @@ -43,13 +43,13 @@ func (m *AccessReviewHistoryDefinition) GetCreatedDateTime()(*i336074805fc853987 return nil } // GetDecisions gets the decisions property value. Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions are included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified. -func (m *AccessReviewHistoryDefinition) GetDecisions()([]AccessReviewHistoryDecisionFilter) { +func (m *AccessReviewHistoryDefinition) GetDecisions()([]AccessReviewHistoryDefinition_decisions) { val, err := m.GetBackingStore().Get("decisions") if err != nil { panic(err) } if val != nil { - return val.([]AccessReviewHistoryDecisionFilter) + return val.([]AccessReviewHistoryDefinition_decisions) } return nil } @@ -99,15 +99,15 @@ func (m *AccessReviewHistoryDefinition) GetFieldDeserializers()(map[string]func( return nil } res["decisions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseAccessReviewHistoryDecisionFilter) + val, err := n.GetCollectionOfEnumValues(ParseAccessReviewHistoryDefinition_decisions) if err != nil { return err } if val != nil { - res := make([]AccessReviewHistoryDecisionFilter, len(val)) + res := make([]AccessReviewHistoryDefinition_decisions, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*AccessReviewHistoryDecisionFilter)) + res[i] = *(v.(*AccessReviewHistoryDefinition_decisions)) } } m.SetDecisions(res) @@ -207,12 +207,12 @@ func (m *AccessReviewHistoryDefinition) GetFieldDeserializers()(map[string]func( return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessReviewHistoryStatus) + val, err := n.GetEnumValue(ParseAccessReviewHistoryDefinition_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AccessReviewHistoryStatus)) + m.SetStatus(val.(*AccessReviewHistoryDefinition_status)) } return nil } @@ -285,13 +285,13 @@ func (m *AccessReviewHistoryDefinition) GetScopes()([]AccessReviewScopeable) { return nil } // GetStatus gets the status property value. Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. -func (m *AccessReviewHistoryDefinition) GetStatus()(*AccessReviewHistoryStatus) { +func (m *AccessReviewHistoryDefinition) GetStatus()(*AccessReviewHistoryDefinition_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AccessReviewHistoryStatus) + return val.(*AccessReviewHistoryDefinition_status) } return nil } @@ -314,7 +314,7 @@ func (m *AccessReviewHistoryDefinition) Serialize(writer i878a80d2330e89d2689638 } } if m.GetDecisions() != nil { - err = writer.WriteCollectionOfStringValues("decisions", SerializeAccessReviewHistoryDecisionFilter(m.GetDecisions())) + err = writer.WriteCollectionOfStringValues("decisions", SerializeAccessReviewHistoryDefinition_decisions(m.GetDecisions())) if err != nil { return err } @@ -403,7 +403,7 @@ func (m *AccessReviewHistoryDefinition) SetCreatedDateTime(value *i336074805fc85 } } // SetDecisions sets the decisions property value. Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions are included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified. -func (m *AccessReviewHistoryDefinition) SetDecisions(value []AccessReviewHistoryDecisionFilter)() { +func (m *AccessReviewHistoryDefinition) SetDecisions(value []AccessReviewHistoryDefinition_decisions)() { err := m.GetBackingStore().Set("decisions", value) if err != nil { panic(err) @@ -466,7 +466,7 @@ func (m *AccessReviewHistoryDefinition) SetScopes(value []AccessReviewScopeable) } } // SetStatus sets the status property value. Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. -func (m *AccessReviewHistoryDefinition) SetStatus(value *AccessReviewHistoryStatus)() { +func (m *AccessReviewHistoryDefinition) SetStatus(value *AccessReviewHistoryDefinition_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -478,7 +478,7 @@ type AccessReviewHistoryDefinitionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCreatedBy()(UserIdentityable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetDecisions()([]AccessReviewHistoryDecisionFilter) + GetDecisions()([]AccessReviewHistoryDefinition_decisions) GetDisplayName()(*string) GetDownloadUri()(*string) GetFulfilledDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -487,10 +487,10 @@ type AccessReviewHistoryDefinitionable interface { GetReviewHistoryPeriodStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetScheduleSettings()(AccessReviewHistoryScheduleSettingsable) GetScopes()([]AccessReviewScopeable) - GetStatus()(*AccessReviewHistoryStatus) + GetStatus()(*AccessReviewHistoryDefinition_status) SetCreatedBy(value UserIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetDecisions(value []AccessReviewHistoryDecisionFilter)() + SetDecisions(value []AccessReviewHistoryDefinition_decisions)() SetDisplayName(value *string)() SetDownloadUri(value *string)() SetFulfilledDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -499,5 +499,5 @@ type AccessReviewHistoryDefinitionable interface { SetReviewHistoryPeriodStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetScheduleSettings(value AccessReviewHistoryScheduleSettingsable)() SetScopes(value []AccessReviewScopeable)() - SetStatus(value *AccessReviewHistoryStatus)() + SetStatus(value *AccessReviewHistoryDefinition_status)() } diff --git a/models/access_review_history_definition_decisions.go b/models/access_review_history_definition_decisions.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/access_review_history_definition_status.go b/models/access_review_history_definition_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/access_review_history_instance.go b/models/access_review_history_instance.go index d7c794846bd..319ec38f51d 100644 --- a/models/access_review_history_instance.go +++ b/models/access_review_history_instance.go @@ -106,12 +106,12 @@ func (m *AccessReviewHistoryInstance) GetFieldDeserializers()(map[string]func(i8 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessReviewHistoryStatus) + val, err := n.GetEnumValue(ParseAccessReviewHistoryInstance_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AccessReviewHistoryStatus)) + m.SetStatus(val.(*AccessReviewHistoryInstance_status)) } return nil } @@ -162,13 +162,13 @@ func (m *AccessReviewHistoryInstance) GetRunDateTime()(*i336074805fc853987abe6f7 return nil } // GetStatus gets the status property value. Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. Once the status has been marked as done, a link can be generated to retrieve the instance's data by calling generateDownloadUri method. -func (m *AccessReviewHistoryInstance) GetStatus()(*AccessReviewHistoryStatus) { +func (m *AccessReviewHistoryInstance) GetStatus()(*AccessReviewHistoryInstance_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AccessReviewHistoryStatus) + return val.(*AccessReviewHistoryInstance_status) } return nil } @@ -266,7 +266,7 @@ func (m *AccessReviewHistoryInstance) SetRunDateTime(value *i336074805fc853987ab } } // SetStatus sets the status property value. Represents the status of the review history data collection. The possible values are: done, inProgress, error, requested, unknownFutureValue. Once the status has been marked as done, a link can be generated to retrieve the instance's data by calling generateDownloadUri method. -func (m *AccessReviewHistoryInstance) SetStatus(value *AccessReviewHistoryStatus)() { +func (m *AccessReviewHistoryInstance) SetStatus(value *AccessReviewHistoryInstance_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -282,12 +282,12 @@ type AccessReviewHistoryInstanceable interface { GetReviewHistoryPeriodEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetReviewHistoryPeriodStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*AccessReviewHistoryStatus) + GetStatus()(*AccessReviewHistoryInstance_status) SetDownloadUri(value *string)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetFulfilledDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetReviewHistoryPeriodEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetReviewHistoryPeriodStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *AccessReviewHistoryStatus)() + SetStatus(value *AccessReviewHistoryInstance_status)() } diff --git a/models/access_review_history_instance_status.go b/models/access_review_history_instance_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/access_review_history_status.go b/models/access_review_history_status.go deleted file mode 100644 index c8763f8f027..00000000000 --- a/models/access_review_history_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type AccessReviewHistoryStatus int - -const ( - DONE_ACCESSREVIEWHISTORYSTATUS AccessReviewHistoryStatus = iota - INPROGRESS_ACCESSREVIEWHISTORYSTATUS - ERROR_ACCESSREVIEWHISTORYSTATUS - REQUESTED_ACCESSREVIEWHISTORYSTATUS - UNKNOWNFUTUREVALUE_ACCESSREVIEWHISTORYSTATUS -) - -func (i AccessReviewHistoryStatus) String() string { - return []string{"done", "inprogress", "error", "requested", "unknownFutureValue"}[i] -} -func ParseAccessReviewHistoryStatus(v string) (any, error) { - result := DONE_ACCESSREVIEWHISTORYSTATUS - switch v { - case "done": - result = DONE_ACCESSREVIEWHISTORYSTATUS - case "inprogress": - result = INPROGRESS_ACCESSREVIEWHISTORYSTATUS - case "error": - result = ERROR_ACCESSREVIEWHISTORYSTATUS - case "requested": - result = REQUESTED_ACCESSREVIEWHISTORYSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACCESSREVIEWHISTORYSTATUS - default: - return 0, errors.New("Unknown AccessReviewHistoryStatus value: " + v) - } - return &result, nil -} -func SerializeAccessReviewHistoryStatus(values []AccessReviewHistoryStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AccessReviewHistoryStatus) isMultiValue() bool { - return false -} diff --git a/models/access_review_timeout_behavior.go b/models/access_review_timeout_behavior.go deleted file mode 100644 index e1a846e1baa..00000000000 --- a/models/access_review_timeout_behavior.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type AccessReviewTimeoutBehavior int - -const ( - KEEPACCESS_ACCESSREVIEWTIMEOUTBEHAVIOR AccessReviewTimeoutBehavior = iota - REMOVEACCESS_ACCESSREVIEWTIMEOUTBEHAVIOR - ACCEPTACCESSRECOMMENDATION_ACCESSREVIEWTIMEOUTBEHAVIOR - UNKNOWNFUTUREVALUE_ACCESSREVIEWTIMEOUTBEHAVIOR -) - -func (i AccessReviewTimeoutBehavior) String() string { - return []string{"keepAccess", "removeAccess", "acceptAccessRecommendation", "unknownFutureValue"}[i] -} -func ParseAccessReviewTimeoutBehavior(v string) (any, error) { - result := KEEPACCESS_ACCESSREVIEWTIMEOUTBEHAVIOR - switch v { - case "keepAccess": - result = KEEPACCESS_ACCESSREVIEWTIMEOUTBEHAVIOR - case "removeAccess": - result = REMOVEACCESS_ACCESSREVIEWTIMEOUTBEHAVIOR - case "acceptAccessRecommendation": - result = ACCEPTACCESSRECOMMENDATION_ACCESSREVIEWTIMEOUTBEHAVIOR - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACCESSREVIEWTIMEOUTBEHAVIOR - default: - return 0, errors.New("Unknown AccessReviewTimeoutBehavior value: " + v) - } - return &result, nil -} -func SerializeAccessReviewTimeoutBehavior(values []AccessReviewTimeoutBehavior) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AccessReviewTimeoutBehavior) isMultiValue() bool { - return false -} diff --git a/models/account_status.go b/models/account_status.go deleted file mode 100644 index be11fb83304..00000000000 --- a/models/account_status.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type AccountStatus int - -const ( - UNKNOWN_ACCOUNTSTATUS AccountStatus = iota - STAGED_ACCOUNTSTATUS - ACTIVE_ACCOUNTSTATUS - SUSPENDED_ACCOUNTSTATUS - DELETED_ACCOUNTSTATUS - UNKNOWNFUTUREVALUE_ACCOUNTSTATUS -) - -func (i AccountStatus) String() string { - return []string{"unknown", "staged", "active", "suspended", "deleted", "unknownFutureValue"}[i] -} -func ParseAccountStatus(v string) (any, error) { - result := UNKNOWN_ACCOUNTSTATUS - switch v { - case "unknown": - result = UNKNOWN_ACCOUNTSTATUS - case "staged": - result = STAGED_ACCOUNTSTATUS - case "active": - result = ACTIVE_ACCOUNTSTATUS - case "suspended": - result = SUSPENDED_ACCOUNTSTATUS - case "deleted": - result = DELETED_ACCOUNTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACCOUNTSTATUS - default: - return 0, errors.New("Unknown AccountStatus value: " + v) - } - return &result, nil -} -func SerializeAccountStatus(values []AccountStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AccountStatus) isMultiValue() bool { - return false -} diff --git a/models/account_target_content.go b/models/account_target_content.go index 25464c740ea..3531fb4590b 100644 --- a/models/account_target_content.go +++ b/models/account_target_content.go @@ -72,12 +72,12 @@ func (m *AccountTargetContent) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccountTargetContentType) + val, err := n.GetEnumValue(ParseAccountTargetContent_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*AccountTargetContentType)) + m.SetTypeEscaped(val.(*AccountTargetContent_type)) } return nil } @@ -95,13 +95,13 @@ func (m *AccountTargetContent) GetOdataType()(*string) { return nil } // GetTypeEscaped gets the type property value. The type of account target content. Possible values are: unknown,includeAll, addressBook, unknownFutureValue. -func (m *AccountTargetContent) GetTypeEscaped()(*AccountTargetContentType) { +func (m *AccountTargetContent) GetTypeEscaped()(*AccountTargetContent_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*AccountTargetContentType) + return val.(*AccountTargetContent_type) } return nil } @@ -147,7 +147,7 @@ func (m *AccountTargetContent) SetOdataType(value *string)() { } } // SetTypeEscaped sets the type property value. The type of account target content. Possible values are: unknown,includeAll, addressBook, unknownFutureValue. -func (m *AccountTargetContent) SetTypeEscaped(value *AccountTargetContentType)() { +func (m *AccountTargetContent) SetTypeEscaped(value *AccountTargetContent_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -160,8 +160,8 @@ type AccountTargetContentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetTypeEscaped()(*AccountTargetContentType) + GetTypeEscaped()(*AccountTargetContent_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetTypeEscaped(value *AccountTargetContentType)() + SetTypeEscaped(value *AccountTargetContent_type)() } diff --git a/models/account_target_content_type.go b/models/account_target_content_type.go index 851ca4d9c52..e69de29bb2d 100644 --- a/models/account_target_content_type.go +++ b/models/account_target_content_type.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type AccountTargetContentType int - -const ( - UNKNOWN_ACCOUNTTARGETCONTENTTYPE AccountTargetContentType = iota - INCLUDEALL_ACCOUNTTARGETCONTENTTYPE - ADDRESSBOOK_ACCOUNTTARGETCONTENTTYPE - UNKNOWNFUTUREVALUE_ACCOUNTTARGETCONTENTTYPE -) - -func (i AccountTargetContentType) String() string { - return []string{"unknown", "includeAll", "addressBook", "unknownFutureValue"}[i] -} -func ParseAccountTargetContentType(v string) (any, error) { - result := UNKNOWN_ACCOUNTTARGETCONTENTTYPE - switch v { - case "unknown": - result = UNKNOWN_ACCOUNTTARGETCONTENTTYPE - case "includeAll": - result = INCLUDEALL_ACCOUNTTARGETCONTENTTYPE - case "addressBook": - result = ADDRESSBOOK_ACCOUNTTARGETCONTENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACCOUNTTARGETCONTENTTYPE - default: - return 0, errors.New("Unknown AccountTargetContentType value: " + v) - } - return &result, nil -} -func SerializeAccountTargetContentType(values []AccountTargetContentType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AccountTargetContentType) isMultiValue() bool { - return false -} diff --git a/models/acl.go b/models/acl.go index 0db6feb2050..0082c96f0d3 100644 --- a/models/acl.go +++ b/models/acl.go @@ -63,12 +63,12 @@ func (m *Acl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3 return nil } res["identitySource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIdentitySourceType) + val, err := n.GetEnumValue(ParseAcl_identitySource) if err != nil { return err } if val != nil { - m.SetIdentitySource(val.(*IdentitySourceType)) + m.SetIdentitySource(val.(*Acl_identitySource)) } return nil } @@ -105,13 +105,13 @@ func (m *Acl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3 return res } // GetIdentitySource gets the identitySource property value. The identitySource property -func (m *Acl) GetIdentitySource()(*IdentitySourceType) { +func (m *Acl) GetIdentitySource()(*Acl_identitySource) { val, err := m.GetBackingStore().Get("identitySource") if err != nil { panic(err) } if val != nil { - return val.(*IdentitySourceType) + return val.(*Acl_identitySource) } return nil } @@ -210,7 +210,7 @@ func (m *Acl) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9e m.backingStore = value } // SetIdentitySource sets the identitySource property value. The identitySource property -func (m *Acl) SetIdentitySource(value *IdentitySourceType)() { +func (m *Acl) SetIdentitySource(value *Acl_identitySource)() { err := m.GetBackingStore().Set("identitySource", value) if err != nil { panic(err) @@ -244,13 +244,13 @@ type Aclable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccessType()(*AccessType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIdentitySource()(*IdentitySourceType) + GetIdentitySource()(*Acl_identitySource) GetOdataType()(*string) GetTypeEscaped()(*AclType) GetValue()(*string) SetAccessType(value *AccessType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIdentitySource(value *IdentitySourceType)() + SetIdentitySource(value *Acl_identitySource)() SetOdataType(value *string)() SetTypeEscaped(value *AclType)() SetValue(value *string)() diff --git a/models/acl_identity_source.go b/models/acl_identity_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/action_capability.go b/models/action_capability.go deleted file mode 100644 index 4b35d8eafea..00000000000 --- a/models/action_capability.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ActionCapability int - -const ( - ENABLED_ACTIONCAPABILITY ActionCapability = iota - DISABLED_ACTIONCAPABILITY - UNKNOWNFUTUREVALUE_ACTIONCAPABILITY -) - -func (i ActionCapability) String() string { - return []string{"enabled", "disabled", "unknownFutureValue"}[i] -} -func ParseActionCapability(v string) (any, error) { - result := ENABLED_ACTIONCAPABILITY - switch v { - case "enabled": - result = ENABLED_ACTIONCAPABILITY - case "disabled": - result = DISABLED_ACTIONCAPABILITY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACTIONCAPABILITY - default: - return 0, errors.New("Unknown ActionCapability value: " + v) - } - return &result, nil -} -func SerializeActionCapability(values []ActionCapability) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ActionCapability) isMultiValue() bool { - return false -} diff --git a/models/activity_domain.go b/models/activity_domain.go deleted file mode 100644 index 31ff2aac3d8..00000000000 --- a/models/activity_domain.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ActivityDomain int - -const ( - UNKNOWN_ACTIVITYDOMAIN ActivityDomain = iota - WORK_ACTIVITYDOMAIN - PERSONAL_ACTIVITYDOMAIN - UNRESTRICTED_ACTIVITYDOMAIN -) - -func (i ActivityDomain) String() string { - return []string{"unknown", "work", "personal", "unrestricted"}[i] -} -func ParseActivityDomain(v string) (any, error) { - result := UNKNOWN_ACTIVITYDOMAIN - switch v { - case "unknown": - result = UNKNOWN_ACTIVITYDOMAIN - case "work": - result = WORK_ACTIVITYDOMAIN - case "personal": - result = PERSONAL_ACTIVITYDOMAIN - case "unrestricted": - result = UNRESTRICTED_ACTIVITYDOMAIN - default: - return 0, errors.New("Unknown ActivityDomain value: " + v) - } - return &result, nil -} -func SerializeActivityDomain(values []ActivityDomain) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ActivityDomain) isMultiValue() bool { - return false -} diff --git a/models/activity_history_item.go b/models/activity_history_item.go index 99a118d6ed5..01b1833c6d9 100644 --- a/models/activity_history_item.go +++ b/models/activity_history_item.go @@ -138,12 +138,12 @@ func (m *ActivityHistoryItem) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseStatus) + val, err := n.GetEnumValue(ParseActivityHistoryItem_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*Status)) + m.SetStatus(val.(*ActivityHistoryItem_status)) } return nil } @@ -193,13 +193,13 @@ func (m *ActivityHistoryItem) GetStartedDateTime()(*i336074805fc853987abe6f7fe3a return nil } // GetStatus gets the status property value. The status property -func (m *ActivityHistoryItem) GetStatus()(*Status) { +func (m *ActivityHistoryItem) GetStatus()(*ActivityHistoryItem_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*Status) + return val.(*ActivityHistoryItem_status) } return nil } @@ -327,7 +327,7 @@ func (m *ActivityHistoryItem) SetStartedDateTime(value *i336074805fc853987abe6f7 } } // SetStatus sets the status property value. The status property -func (m *ActivityHistoryItem) SetStatus(value *Status)() { +func (m *ActivityHistoryItem) SetStatus(value *ActivityHistoryItem_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -351,7 +351,7 @@ type ActivityHistoryItemable interface { GetLastActiveDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetStartedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*Status) + GetStatus()(*ActivityHistoryItem_status) GetUserTimezone()(*string) SetActiveDurationSeconds(value *int32)() SetActivity(value UserActivityable)() @@ -360,6 +360,6 @@ type ActivityHistoryItemable interface { SetLastActiveDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetStartedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *Status)() + SetStatus(value *ActivityHistoryItem_status)() SetUserTimezone(value *string)() } diff --git a/models/activity_history_item_status.go b/models/activity_history_item_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/activity_statistics.go b/models/activity_statistics.go index 37ee82149a6..60736558e95 100644 --- a/models/activity_statistics.go +++ b/models/activity_statistics.go @@ -46,13 +46,13 @@ func CreateActivityStatisticsFromDiscriminatorValue(parseNode i878a80d2330e89d26 return NewActivityStatistics(), nil } // GetActivity gets the activity property value. The type of activity for which statistics are returned. The possible values are: call, chat, email, focus, and meeting. -func (m *ActivityStatistics) GetActivity()(*AnalyticsActivityType) { +func (m *ActivityStatistics) GetActivity()(*ActivityStatistics_activity) { val, err := m.GetBackingStore().Get("activity") if err != nil { panic(err) } if val != nil { - return val.(*AnalyticsActivityType) + return val.(*ActivityStatistics_activity) } return nil } @@ -82,12 +82,12 @@ func (m *ActivityStatistics) GetEndDate()(*i878a80d2330e89d26896388a3f487eef27b0 func (m *ActivityStatistics) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["activity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAnalyticsActivityType) + val, err := n.GetEnumValue(ParseActivityStatistics_activity) if err != nil { return err } if val != nil { - m.SetActivity(val.(*AnalyticsActivityType)) + m.SetActivity(val.(*ActivityStatistics_activity)) } return nil } @@ -195,7 +195,7 @@ func (m *ActivityStatistics) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return nil } // SetActivity sets the activity property value. The type of activity for which statistics are returned. The possible values are: call, chat, email, focus, and meeting. -func (m *ActivityStatistics) SetActivity(value *AnalyticsActivityType)() { +func (m *ActivityStatistics) SetActivity(value *ActivityStatistics_activity)() { err := m.GetBackingStore().Set("activity", value) if err != nil { panic(err) @@ -233,12 +233,12 @@ func (m *ActivityStatistics) SetTimeZoneUsed(value *string)() { type ActivityStatisticsable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActivity()(*AnalyticsActivityType) + GetActivity()(*ActivityStatistics_activity) GetDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetEndDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetTimeZoneUsed()(*string) - SetActivity(value *AnalyticsActivityType)() + SetActivity(value *ActivityStatistics_activity)() SetDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() diff --git a/models/activity_statistics_activity.go b/models/activity_statistics_activity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/activity_type.go b/models/activity_type.go deleted file mode 100644 index 0e98d2846b8..00000000000 --- a/models/activity_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ActivityType int - -const ( - SIGNIN_ACTIVITYTYPE ActivityType = iota - USER_ACTIVITYTYPE - UNKNOWNFUTUREVALUE_ACTIVITYTYPE - SERVICEPRINCIPAL_ACTIVITYTYPE -) - -func (i ActivityType) String() string { - return []string{"signin", "user", "unknownFutureValue", "servicePrincipal"}[i] -} -func ParseActivityType(v string) (any, error) { - result := SIGNIN_ACTIVITYTYPE - switch v { - case "signin": - result = SIGNIN_ACTIVITYTYPE - case "user": - result = USER_ACTIVITYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACTIVITYTYPE - case "servicePrincipal": - result = SERVICEPRINCIPAL_ACTIVITYTYPE - default: - return 0, errors.New("Unknown ActivityType value: " + v) - } - return &result, nil -} -func SerializeActivityType(values []ActivityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ActivityType) isMultiValue() bool { - return false -} diff --git a/models/add_footer.go b/models/add_footer.go index 330292d1817..1cad9f5ea46 100644 --- a/models/add_footer.go +++ b/models/add_footer.go @@ -22,13 +22,13 @@ func CreateAddFooterFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewAddFooter(), nil } // GetAlignment gets the alignment property value. The alignment property -func (m *AddFooter) GetAlignment()(*Alignment) { +func (m *AddFooter) GetAlignment()(*AddFooter_alignment) { val, err := m.GetBackingStore().Get("alignment") if err != nil { panic(err) } if val != nil { - return val.(*Alignment) + return val.(*AddFooter_alignment) } return nil } @@ -36,12 +36,12 @@ func (m *AddFooter) GetAlignment()(*Alignment) { func (m *AddFooter) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MarkContent.GetFieldDeserializers() res["alignment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlignment) + val, err := n.GetEnumValue(ParseAddFooter_alignment) if err != nil { return err } if val != nil { - m.SetAlignment(val.(*Alignment)) + m.SetAlignment(val.(*AddFooter_alignment)) } return nil } @@ -90,7 +90,7 @@ func (m *AddFooter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return nil } // SetAlignment sets the alignment property value. The alignment property -func (m *AddFooter) SetAlignment(value *Alignment)() { +func (m *AddFooter) SetAlignment(value *AddFooter_alignment)() { err := m.GetBackingStore().Set("alignment", value) if err != nil { panic(err) @@ -107,8 +107,8 @@ func (m *AddFooter) SetMargin(value *int32)() { type AddFooterable interface { MarkContentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlignment()(*Alignment) + GetAlignment()(*AddFooter_alignment) GetMargin()(*int32) - SetAlignment(value *Alignment)() + SetAlignment(value *AddFooter_alignment)() SetMargin(value *int32)() } diff --git a/models/add_footer_alignment.go b/models/add_footer_alignment.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/add_header.go b/models/add_header.go index b4f6d14af55..d60f7c2741d 100644 --- a/models/add_header.go +++ b/models/add_header.go @@ -22,13 +22,13 @@ func CreateAddHeaderFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewAddHeader(), nil } // GetAlignment gets the alignment property value. The alignment property -func (m *AddHeader) GetAlignment()(*Alignment) { +func (m *AddHeader) GetAlignment()(*AddHeader_alignment) { val, err := m.GetBackingStore().Get("alignment") if err != nil { panic(err) } if val != nil { - return val.(*Alignment) + return val.(*AddHeader_alignment) } return nil } @@ -36,12 +36,12 @@ func (m *AddHeader) GetAlignment()(*Alignment) { func (m *AddHeader) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MarkContent.GetFieldDeserializers() res["alignment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlignment) + val, err := n.GetEnumValue(ParseAddHeader_alignment) if err != nil { return err } if val != nil { - m.SetAlignment(val.(*Alignment)) + m.SetAlignment(val.(*AddHeader_alignment)) } return nil } @@ -90,7 +90,7 @@ func (m *AddHeader) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return nil } // SetAlignment sets the alignment property value. The alignment property -func (m *AddHeader) SetAlignment(value *Alignment)() { +func (m *AddHeader) SetAlignment(value *AddHeader_alignment)() { err := m.GetBackingStore().Set("alignment", value) if err != nil { panic(err) @@ -107,8 +107,8 @@ func (m *AddHeader) SetMargin(value *int32)() { type AddHeaderable interface { MarkContentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlignment()(*Alignment) + GetAlignment()(*AddHeader_alignment) GetMargin()(*int32) - SetAlignment(value *Alignment)() + SetAlignment(value *AddHeader_alignment)() SetMargin(value *int32)() } diff --git a/models/add_header_alignment.go b/models/add_header_alignment.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/add_watermark.go b/models/add_watermark.go index 92cf0f932e1..d03feab7b0a 100644 --- a/models/add_watermark.go +++ b/models/add_watermark.go @@ -25,25 +25,25 @@ func CreateAddWatermarkFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 func (m *AddWatermark) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MarkContent.GetFieldDeserializers() res["orientation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePageOrientation) + val, err := n.GetEnumValue(ParseAddWatermark_orientation) if err != nil { return err } if val != nil { - m.SetOrientation(val.(*PageOrientation)) + m.SetOrientation(val.(*AddWatermark_orientation)) } return nil } return res } // GetOrientation gets the orientation property value. The orientation property -func (m *AddWatermark) GetOrientation()(*PageOrientation) { +func (m *AddWatermark) GetOrientation()(*AddWatermark_orientation) { val, err := m.GetBackingStore().Get("orientation") if err != nil { panic(err) } if val != nil { - return val.(*PageOrientation) + return val.(*AddWatermark_orientation) } return nil } @@ -63,7 +63,7 @@ func (m *AddWatermark) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return nil } // SetOrientation sets the orientation property value. The orientation property -func (m *AddWatermark) SetOrientation(value *PageOrientation)() { +func (m *AddWatermark) SetOrientation(value *AddWatermark_orientation)() { err := m.GetBackingStore().Set("orientation", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *AddWatermark) SetOrientation(value *PageOrientation)() { type AddWatermarkable interface { MarkContentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetOrientation()(*PageOrientation) - SetOrientation(value *PageOrientation)() + GetOrientation()(*AddWatermark_orientation) + SetOrientation(value *AddWatermark_orientation)() } diff --git a/models/add_watermark_orientation.go b/models/add_watermark_orientation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/admin.go b/models/admin.go index eca4f906914..192a5e3238d 100644 --- a/models/admin.go +++ b/models/admin.go @@ -114,6 +114,16 @@ func (m *Admin) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } + res["microsoft365Apps"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminMicrosoft365AppsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMicrosoft365Apps(val.(AdminMicrosoft365Appsable)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -197,6 +207,17 @@ func (m *Admin) GetForms()(AdminFormsable) { } return nil } +// GetMicrosoft365Apps gets the microsoft365Apps property value. A container for the Microsoft 365 apps admin functionality. +func (m *Admin) GetMicrosoft365Apps()(AdminMicrosoft365Appsable) { + val, err := m.GetBackingStore().Get("microsoft365Apps") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminMicrosoft365Appsable) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *Admin) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -300,6 +321,12 @@ func (m *Admin) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err := writer.WriteObjectValue("microsoft365Apps", m.GetMicrosoft365Apps()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -389,6 +416,13 @@ func (m *Admin) SetForms(value AdminFormsable)() { panic(err) } } +// SetMicrosoft365Apps sets the microsoft365Apps property value. A container for the Microsoft 365 apps admin functionality. +func (m *Admin) SetMicrosoft365Apps(value AdminMicrosoft365Appsable)() { + err := m.GetBackingStore().Set("microsoft365Apps", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *Admin) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -448,6 +482,7 @@ type Adminable interface { GetDynamics()(AdminDynamicsable) GetEdge()(Edgeable) GetForms()(AdminFormsable) + GetMicrosoft365Apps()(AdminMicrosoft365Appsable) GetOdataType()(*string) GetPeople()(PeopleAdminSettingsable) GetReportSettings()(AdminReportSettingsable) @@ -460,6 +495,7 @@ type Adminable interface { SetDynamics(value AdminDynamicsable)() SetEdge(value Edgeable)() SetForms(value AdminFormsable)() + SetMicrosoft365Apps(value AdminMicrosoft365Appsable)() SetOdataType(value *string)() SetPeople(value PeopleAdminSettingsable)() SetReportSettings(value AdminReportSettingsable)() @@ -468,73 +504,3 @@ type Adminable interface { SetTodo(value AdminTodoable)() SetWindows(value AdminWindowsable)() } - -// AdminWindows -type AdminWindows struct { - Entity -} -// NewAdminWindows instantiates a new adminWindows and sets the default values. -func NewAdminWindows()(*AdminWindows) { - m := &AdminWindows{ - Entity: *NewEntity(), - } - return m -} -// CreateAdminWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAdminWindows(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *AdminWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["updates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminWindowsUpdatesFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetUpdates(val.(AdminWindowsUpdatesable)) - } - return nil - } - return res -} -// GetUpdates gets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. -func (m *AdminWindows) GetUpdates()(AdminWindowsUpdatesable) { - val, err := m.GetBackingStore().Get("updates") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminWindowsUpdatesable) - } - return nil -} -// Serialize serializes information the current object -func (m *AdminWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteObjectValue("updates", m.GetUpdates()) - if err != nil { - return err - } - } - return nil -} -// SetUpdates sets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. -func (m *AdminWindows) SetUpdates(value AdminWindowsUpdatesable)() { - err := m.GetBackingStore().Set("updates", value) - if err != nil { - panic(err) - } -} -// AdminWindowsable -type AdminWindowsable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetUpdates()(AdminWindowsUpdatesable) - SetUpdates(value AdminWindowsUpdatesable)() -} diff --git a/models/admin_microsoft365_apps.go b/models/admin_microsoft365_apps.go new file mode 100644 index 00000000000..469c64c2f9d --- /dev/null +++ b/models/admin_microsoft365_apps.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AdminMicrosoft365Apps +type AdminMicrosoft365Apps struct { + Entity +} +// NewAdminMicrosoft365Apps instantiates a new adminMicrosoft365Apps and sets the default values. +func NewAdminMicrosoft365Apps()(*AdminMicrosoft365Apps) { + m := &AdminMicrosoft365Apps{ + Entity: *NewEntity(), + } + return m +} +// CreateAdminMicrosoft365AppsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAdminMicrosoft365AppsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdminMicrosoft365Apps(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AdminMicrosoft365Apps) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["installationOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateM365AppsInstallationOptionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetInstallationOptions(val.(M365AppsInstallationOptionsable)) + } + return nil + } + return res +} +// GetInstallationOptions gets the installationOptions property value. A container for tenant-level settings for Microsoft 365 applications. +func (m *AdminMicrosoft365Apps) GetInstallationOptions()(M365AppsInstallationOptionsable) { + val, err := m.GetBackingStore().Get("installationOptions") + if err != nil { + panic(err) + } + if val != nil { + return val.(M365AppsInstallationOptionsable) + } + return nil +} +// Serialize serializes information the current object +func (m *AdminMicrosoft365Apps) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("installationOptions", m.GetInstallationOptions()) + if err != nil { + return err + } + } + return nil +} +// SetInstallationOptions sets the installationOptions property value. A container for tenant-level settings for Microsoft 365 applications. +func (m *AdminMicrosoft365Apps) SetInstallationOptions(value M365AppsInstallationOptionsable)() { + err := m.GetBackingStore().Set("installationOptions", value) + if err != nil { + panic(err) + } +} +// AdminMicrosoft365Appsable +type AdminMicrosoft365Appsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetInstallationOptions()(M365AppsInstallationOptionsable) + SetInstallationOptions(value M365AppsInstallationOptionsable)() +} diff --git a/models/admin_windows.go b/models/admin_windows.go new file mode 100644 index 00000000000..cdd938a9b06 --- /dev/null +++ b/models/admin_windows.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AdminWindows +type AdminWindows struct { + Entity +} +// NewAdminWindows instantiates a new adminWindows and sets the default values. +func NewAdminWindows()(*AdminWindows) { + m := &AdminWindows{ + Entity: *NewEntity(), + } + return m +} +// CreateAdminWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdminWindows(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AdminWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["updates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminWindowsUpdatesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetUpdates(val.(AdminWindowsUpdatesable)) + } + return nil + } + return res +} +// GetUpdates gets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. +func (m *AdminWindows) GetUpdates()(AdminWindowsUpdatesable) { + val, err := m.GetBackingStore().Get("updates") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminWindowsUpdatesable) + } + return nil +} +// Serialize serializes information the current object +func (m *AdminWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("updates", m.GetUpdates()) + if err != nil { + return err + } + } + return nil +} +// SetUpdates sets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. +func (m *AdminWindows) SetUpdates(value AdminWindowsUpdatesable)() { + err := m.GetBackingStore().Set("updates", value) + if err != nil { + panic(err) + } +} +// AdminWindowsable +type AdminWindowsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUpdates()(AdminWindowsUpdatesable) + SetUpdates(value AdminWindowsUpdatesable)() +} diff --git a/models/advanced_bit_locker_state.go b/models/advanced_bit_locker_state.go deleted file mode 100644 index 8cde2b1d1ac..00000000000 --- a/models/advanced_bit_locker_state.go +++ /dev/null @@ -1,109 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// Advanced BitLocker State -type AdvancedBitLockerState int - -const ( - // Advanced BitLocker State Success - SUCCESS_ADVANCEDBITLOCKERSTATE AdvancedBitLockerState = iota - // User never gave consent for Encryption - NOUSERCONSENT_ADVANCEDBITLOCKERSTATE - // Un-protected OS Volume was detected - OSVOLUMEUNPROTECTED_ADVANCEDBITLOCKERSTATE - // TPM not used for protection of OS volume, but is required by policy - OSVOLUMETPMREQUIRED_ADVANCEDBITLOCKERSTATE - // TPM only protection not used for OS volume, but is required by policy - OSVOLUMETPMONLYREQUIRED_ADVANCEDBITLOCKERSTATE - // TPM+PIN protection not used for OS volume, but is required by policy - OSVOLUMETPMPINREQUIRED_ADVANCEDBITLOCKERSTATE - // TPM+Startup Key protection not used for OS volume, but is required by policy - OSVOLUMETPMSTARTUPKEYREQUIRED_ADVANCEDBITLOCKERSTATE - // TPM+PIN+Startup Key not used for OS volume, but is required by policy - OSVOLUMETPMPINSTARTUPKEYREQUIRED_ADVANCEDBITLOCKERSTATE - // Encryption method of OS Volume is different than that set by policy - OSVOLUMEENCRYPTIONMETHODMISMATCH_ADVANCEDBITLOCKERSTATE - // Recovery key backup failed - RECOVERYKEYBACKUPFAILED_ADVANCEDBITLOCKERSTATE - // Fixed Drive not encrypted - FIXEDDRIVENOTENCRYPTED_ADVANCEDBITLOCKERSTATE - // Encryption method of Fixed Drive is different than that set by policy - FIXEDDRIVEENCRYPTIONMETHODMISMATCH_ADVANCEDBITLOCKERSTATE - // Logged on user is non-admin. This requires “AllowStandardUserEncryption” policy set to 1 - LOGGEDONUSERNONADMIN_ADVANCEDBITLOCKERSTATE - // WinRE is not configured - WINDOWSRECOVERYENVIRONMENTNOTCONFIGURED_ADVANCEDBITLOCKERSTATE - // TPM is not available for BitLocker. This means TPM is not present, or TPM unavailable registry override is set or host OS is on portable/rome-able drive - TPMNOTAVAILABLE_ADVANCEDBITLOCKERSTATE - // TPM is not ready for BitLocker - TPMNOTREADY_ADVANCEDBITLOCKERSTATE - // Network not available. This is required for recovery key backup. This is reported for Drive Encryption capable devices - NETWORKERROR_ADVANCEDBITLOCKERSTATE -) - -func (i AdvancedBitLockerState) String() string { - var values []string - for p := AdvancedBitLockerState(1); p <= NETWORKERROR_ADVANCEDBITLOCKERSTATE; p <<= 1 { - if i&p == p { - values = append(values, []string{"success", "noUserConsent", "osVolumeUnprotected", "osVolumeTpmRequired", "osVolumeTpmOnlyRequired", "osVolumeTpmPinRequired", "osVolumeTpmStartupKeyRequired", "osVolumeTpmPinStartupKeyRequired", "osVolumeEncryptionMethodMismatch", "recoveryKeyBackupFailed", "fixedDriveNotEncrypted", "fixedDriveEncryptionMethodMismatch", "loggedOnUserNonAdmin", "windowsRecoveryEnvironmentNotConfigured", "tpmNotAvailable", "tpmNotReady", "networkError"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseAdvancedBitLockerState(v string) (any, error) { - var result AdvancedBitLockerState - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "success": - result |= SUCCESS_ADVANCEDBITLOCKERSTATE - case "noUserConsent": - result |= NOUSERCONSENT_ADVANCEDBITLOCKERSTATE - case "osVolumeUnprotected": - result |= OSVOLUMEUNPROTECTED_ADVANCEDBITLOCKERSTATE - case "osVolumeTpmRequired": - result |= OSVOLUMETPMREQUIRED_ADVANCEDBITLOCKERSTATE - case "osVolumeTpmOnlyRequired": - result |= OSVOLUMETPMONLYREQUIRED_ADVANCEDBITLOCKERSTATE - case "osVolumeTpmPinRequired": - result |= OSVOLUMETPMPINREQUIRED_ADVANCEDBITLOCKERSTATE - case "osVolumeTpmStartupKeyRequired": - result |= OSVOLUMETPMSTARTUPKEYREQUIRED_ADVANCEDBITLOCKERSTATE - case "osVolumeTpmPinStartupKeyRequired": - result |= OSVOLUMETPMPINSTARTUPKEYREQUIRED_ADVANCEDBITLOCKERSTATE - case "osVolumeEncryptionMethodMismatch": - result |= OSVOLUMEENCRYPTIONMETHODMISMATCH_ADVANCEDBITLOCKERSTATE - case "recoveryKeyBackupFailed": - result |= RECOVERYKEYBACKUPFAILED_ADVANCEDBITLOCKERSTATE - case "fixedDriveNotEncrypted": - result |= FIXEDDRIVENOTENCRYPTED_ADVANCEDBITLOCKERSTATE - case "fixedDriveEncryptionMethodMismatch": - result |= FIXEDDRIVEENCRYPTIONMETHODMISMATCH_ADVANCEDBITLOCKERSTATE - case "loggedOnUserNonAdmin": - result |= LOGGEDONUSERNONADMIN_ADVANCEDBITLOCKERSTATE - case "windowsRecoveryEnvironmentNotConfigured": - result |= WINDOWSRECOVERYENVIRONMENTNOTCONFIGURED_ADVANCEDBITLOCKERSTATE - case "tpmNotAvailable": - result |= TPMNOTAVAILABLE_ADVANCEDBITLOCKERSTATE - case "tpmNotReady": - result |= TPMNOTREADY_ADVANCEDBITLOCKERSTATE - case "networkError": - result |= NETWORKERROR_ADVANCEDBITLOCKERSTATE - default: - return 0, errors.New("Unknown AdvancedBitLockerState value: " + v) - } - } - return &result, nil -} -func SerializeAdvancedBitLockerState(values []AdvancedBitLockerState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AdvancedBitLockerState) isMultiValue() bool { - return true -} diff --git a/models/agreement_acceptance.go b/models/agreement_acceptance.go index 3551143a312..10a4d79f918 100644 --- a/models/agreement_acceptance.go +++ b/models/agreement_acceptance.go @@ -181,12 +181,12 @@ func (m *AgreementAcceptance) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAgreementAcceptanceState) + val, err := n.GetEnumValue(ParseAgreementAcceptance_state) if err != nil { return err } if val != nil { - m.SetState(val.(*AgreementAcceptanceState)) + m.SetState(val.(*AgreementAcceptance_state)) } return nil } @@ -244,13 +244,13 @@ func (m *AgreementAcceptance) GetRecordedDateTime()(*i336074805fc853987abe6f7fe3 return nil } // GetState gets the state property value. Possible values are: accepted, declined. Supports $filter (eq). -func (m *AgreementAcceptance) GetState()(*AgreementAcceptanceState) { +func (m *AgreementAcceptance) GetState()(*AgreementAcceptance_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*AgreementAcceptanceState) + return val.(*AgreementAcceptance_state) } return nil } @@ -442,7 +442,7 @@ func (m *AgreementAcceptance) SetRecordedDateTime(value *i336074805fc853987abe6f } } // SetState sets the state property value. Possible values are: accepted, declined. Supports $filter (eq). -func (m *AgreementAcceptance) SetState(value *AgreementAcceptanceState)() { +func (m *AgreementAcceptance) SetState(value *AgreementAcceptance_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -488,7 +488,7 @@ type AgreementAcceptanceable interface { GetDeviceOSVersion()(*string) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRecordedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetState()(*AgreementAcceptanceState) + GetState()(*AgreementAcceptance_state) GetUserDisplayName()(*string) GetUserEmail()(*string) GetUserId()(*string) @@ -501,7 +501,7 @@ type AgreementAcceptanceable interface { SetDeviceOSVersion(value *string)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRecordedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetState(value *AgreementAcceptanceState)() + SetState(value *AgreementAcceptance_state)() SetUserDisplayName(value *string)() SetUserEmail(value *string)() SetUserId(value *string)() diff --git a/models/agreement_acceptance_state.go b/models/agreement_acceptance_state.go index 22989d01c16..e69de29bb2d 100644 --- a/models/agreement_acceptance_state.go +++ b/models/agreement_acceptance_state.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AgreementAcceptanceState int - -const ( - ACCEPTED_AGREEMENTACCEPTANCESTATE AgreementAcceptanceState = iota - DECLINED_AGREEMENTACCEPTANCESTATE - UNKNOWNFUTUREVALUE_AGREEMENTACCEPTANCESTATE -) - -func (i AgreementAcceptanceState) String() string { - return []string{"accepted", "declined", "unknownFutureValue"}[i] -} -func ParseAgreementAcceptanceState(v string) (any, error) { - result := ACCEPTED_AGREEMENTACCEPTANCESTATE - switch v { - case "accepted": - result = ACCEPTED_AGREEMENTACCEPTANCESTATE - case "declined": - result = DECLINED_AGREEMENTACCEPTANCESTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AGREEMENTACCEPTANCESTATE - default: - return 0, errors.New("Unknown AgreementAcceptanceState value: " + v) - } - return &result, nil -} -func SerializeAgreementAcceptanceState(values []AgreementAcceptanceState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AgreementAcceptanceState) isMultiValue() bool { - return false -} diff --git a/models/alert.go b/models/alert.go index e82dbde1718..e9b4c3fb620 100644 --- a/models/alert.go +++ b/models/alert.go @@ -175,13 +175,13 @@ func (m *Alert) GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a163 return nil } // GetFeedback gets the feedback property value. Analyst feedback on the alert. Possible values are: unknown, truePositive, falsePositive, benignPositive. (supports update) -func (m *Alert) GetFeedback()(*AlertFeedback) { +func (m *Alert) GetFeedback()(*Alert_feedback) { val, err := m.GetBackingStore().Get("feedback") if err != nil { panic(err) } if val != nil { - return val.(*AlertFeedback) + return val.(*Alert_feedback) } return nil } @@ -353,12 +353,12 @@ func (m *Alert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["feedback"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertFeedback) + val, err := n.GetEnumValue(ParseAlert_feedback) if err != nil { return err } if val != nil { - m.SetFeedback(val.(*AlertFeedback)) + m.SetFeedback(val.(*Alert_feedback)) } return nil } @@ -1416,7 +1416,7 @@ func (m *Alert) SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077 } } // SetFeedback sets the feedback property value. Analyst feedback on the alert. Possible values are: unknown, truePositive, falsePositive, benignPositive. (supports update) -func (m *Alert) SetFeedback(value *AlertFeedback)() { +func (m *Alert) SetFeedback(value *Alert_feedback)() { err := m.GetBackingStore().Set("feedback", value) if err != nil { panic(err) @@ -1608,7 +1608,7 @@ type Alertable interface { GetDescription()(*string) GetDetectionIds()([]string) GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetFeedback()(*AlertFeedback) + GetFeedback()(*Alert_feedback) GetFileStates()([]FileSecurityStateable) GetHistoryStates()([]AlertHistoryStateable) GetHostStates()([]HostSecurityStateable) @@ -1647,7 +1647,7 @@ type Alertable interface { SetDescription(value *string)() SetDetectionIds(value []string)() SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetFeedback(value *AlertFeedback)() + SetFeedback(value *Alert_feedback)() SetFileStates(value []FileSecurityStateable)() SetHistoryStates(value []AlertHistoryStateable)() SetHostStates(value []HostSecurityStateable)() diff --git a/models/alert_feedback.go b/models/alert_feedback.go index dac44439715..e69de29bb2d 100644 --- a/models/alert_feedback.go +++ b/models/alert_feedback.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type AlertFeedback int - -const ( - UNKNOWN_ALERTFEEDBACK AlertFeedback = iota - TRUEPOSITIVE_ALERTFEEDBACK - FALSEPOSITIVE_ALERTFEEDBACK - BENIGNPOSITIVE_ALERTFEEDBACK - UNKNOWNFUTUREVALUE_ALERTFEEDBACK -) - -func (i AlertFeedback) String() string { - return []string{"unknown", "truePositive", "falsePositive", "benignPositive", "unknownFutureValue"}[i] -} -func ParseAlertFeedback(v string) (any, error) { - result := UNKNOWN_ALERTFEEDBACK - switch v { - case "unknown": - result = UNKNOWN_ALERTFEEDBACK - case "truePositive": - result = TRUEPOSITIVE_ALERTFEEDBACK - case "falsePositive": - result = FALSEPOSITIVE_ALERTFEEDBACK - case "benignPositive": - result = BENIGNPOSITIVE_ALERTFEEDBACK - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ALERTFEEDBACK - default: - return 0, errors.New("Unknown AlertFeedback value: " + v) - } - return &result, nil -} -func SerializeAlertFeedback(values []AlertFeedback) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AlertFeedback) isMultiValue() bool { - return false -} diff --git a/models/alert_history_state.go b/models/alert_history_state.go index 2647645c818..bdd2a16b7be 100644 --- a/models/alert_history_state.go +++ b/models/alert_history_state.go @@ -73,13 +73,13 @@ func (m *AlertHistoryState) GetComments()([]string) { return nil } // GetFeedback gets the feedback property value. Analyst feedback on the alert in this update. Possible values are: unknown, truePositive, falsePositive, benignPositive. -func (m *AlertHistoryState) GetFeedback()(*AlertFeedback) { +func (m *AlertHistoryState) GetFeedback()(*AlertHistoryState_feedback) { val, err := m.GetBackingStore().Get("feedback") if err != nil { panic(err) } if val != nil { - return val.(*AlertFeedback) + return val.(*AlertHistoryState_feedback) } return nil } @@ -123,12 +123,12 @@ func (m *AlertHistoryState) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["feedback"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertFeedback) + val, err := n.GetEnumValue(ParseAlertHistoryState_feedback) if err != nil { return err } if val != nil { - m.SetFeedback(val.(*AlertFeedback)) + m.SetFeedback(val.(*AlertHistoryState_feedback)) } return nil } @@ -143,12 +143,12 @@ func (m *AlertHistoryState) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertStatus) + val, err := n.GetEnumValue(ParseAlertHistoryState_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AlertStatus)) + m.SetStatus(val.(*AlertHistoryState_status)) } return nil } @@ -186,13 +186,13 @@ func (m *AlertHistoryState) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. Alert status value (if updated). Possible values are: unknown, newAlert, inProgress, resolved, dismissed. -func (m *AlertHistoryState) GetStatus()(*AlertStatus) { +func (m *AlertHistoryState) GetStatus()(*AlertHistoryState_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AlertStatus) + return val.(*AlertHistoryState_status) } return nil } @@ -311,7 +311,7 @@ func (m *AlertHistoryState) SetComments(value []string)() { } } // SetFeedback sets the feedback property value. Analyst feedback on the alert in this update. Possible values are: unknown, truePositive, falsePositive, benignPositive. -func (m *AlertHistoryState) SetFeedback(value *AlertFeedback)() { +func (m *AlertHistoryState) SetFeedback(value *AlertHistoryState_feedback)() { err := m.GetBackingStore().Set("feedback", value) if err != nil { panic(err) @@ -325,7 +325,7 @@ func (m *AlertHistoryState) SetOdataType(value *string)() { } } // SetStatus sets the status property value. Alert status value (if updated). Possible values are: unknown, newAlert, inProgress, resolved, dismissed. -func (m *AlertHistoryState) SetStatus(value *AlertStatus)() { +func (m *AlertHistoryState) SetStatus(value *AlertHistoryState_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -354,18 +354,18 @@ type AlertHistoryStateable interface { GetAssignedTo()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetComments()([]string) - GetFeedback()(*AlertFeedback) + GetFeedback()(*AlertHistoryState_feedback) GetOdataType()(*string) - GetStatus()(*AlertStatus) + GetStatus()(*AlertHistoryState_status) GetUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetUser()(*string) SetAppId(value *string)() SetAssignedTo(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetComments(value []string)() - SetFeedback(value *AlertFeedback)() + SetFeedback(value *AlertHistoryState_feedback)() SetOdataType(value *string)() - SetStatus(value *AlertStatus)() + SetStatus(value *AlertHistoryState_status)() SetUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetUser(value *string)() } diff --git a/models/alert_history_state_feedback.go b/models/alert_history_state_feedback.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/alert_history_state_status.go b/models/alert_history_state_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/alignment.go b/models/alignment.go deleted file mode 100644 index 69bd99c114f..00000000000 --- a/models/alignment.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type Alignment int - -const ( - LEFT_ALIGNMENT Alignment = iota - RIGHT_ALIGNMENT - CENTER_ALIGNMENT -) - -func (i Alignment) String() string { - return []string{"left", "right", "center"}[i] -} -func ParseAlignment(v string) (any, error) { - result := LEFT_ALIGNMENT - switch v { - case "left": - result = LEFT_ALIGNMENT - case "right": - result = RIGHT_ALIGNMENT - case "center": - result = CENTER_ALIGNMENT - default: - return 0, errors.New("Unknown Alignment value: " + v) - } - return &result, nil -} -func SerializeAlignment(values []Alignment) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Alignment) isMultiValue() bool { - return false -} diff --git a/models/allow_invites_from.go b/models/allow_invites_from.go deleted file mode 100644 index 1a3624956ca..00000000000 --- a/models/allow_invites_from.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type AllowInvitesFrom int - -const ( - NONE_ALLOWINVITESFROM AllowInvitesFrom = iota - ADMINSANDGUESTINVITERS_ALLOWINVITESFROM - ADMINSGUESTINVITERSANDALLMEMBERS_ALLOWINVITESFROM - EVERYONE_ALLOWINVITESFROM - UNKNOWNFUTUREVALUE_ALLOWINVITESFROM -) - -func (i AllowInvitesFrom) String() string { - return []string{"none", "adminsAndGuestInviters", "adminsGuestInvitersAndAllMembers", "everyone", "unknownFutureValue"}[i] -} -func ParseAllowInvitesFrom(v string) (any, error) { - result := NONE_ALLOWINVITESFROM - switch v { - case "none": - result = NONE_ALLOWINVITESFROM - case "adminsAndGuestInviters": - result = ADMINSANDGUESTINVITERS_ALLOWINVITESFROM - case "adminsGuestInvitersAndAllMembers": - result = ADMINSGUESTINVITERSANDALLMEMBERS_ALLOWINVITESFROM - case "everyone": - result = EVERYONE_ALLOWINVITESFROM - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ALLOWINVITESFROM - default: - return 0, errors.New("Unknown AllowInvitesFrom value: " + v) - } - return &result, nil -} -func SerializeAllowInvitesFrom(values []AllowInvitesFrom) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AllowInvitesFrom) isMultiValue() bool { - return false -} diff --git a/models/allowed_audiences.go b/models/allowed_audiences.go deleted file mode 100644 index 855e281881f..00000000000 --- a/models/allowed_audiences.go +++ /dev/null @@ -1,65 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type AllowedAudiences int - -const ( - ME_ALLOWEDAUDIENCES AllowedAudiences = iota - FAMILY_ALLOWEDAUDIENCES - CONTACTS_ALLOWEDAUDIENCES - GROUPMEMBERS_ALLOWEDAUDIENCES - ORGANIZATION_ALLOWEDAUDIENCES - FEDERATEDORGANIZATIONS_ALLOWEDAUDIENCES - EVERYONE_ALLOWEDAUDIENCES - UNKNOWNFUTUREVALUE_ALLOWEDAUDIENCES -) - -func (i AllowedAudiences) String() string { - var values []string - for p := AllowedAudiences(1); p <= UNKNOWNFUTUREVALUE_ALLOWEDAUDIENCES; p <<= 1 { - if i&p == p { - values = append(values, []string{"me", "family", "contacts", "groupMembers", "organization", "federatedOrganizations", "everyone", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseAllowedAudiences(v string) (any, error) { - var result AllowedAudiences - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "me": - result |= ME_ALLOWEDAUDIENCES - case "family": - result |= FAMILY_ALLOWEDAUDIENCES - case "contacts": - result |= CONTACTS_ALLOWEDAUDIENCES - case "groupMembers": - result |= GROUPMEMBERS_ALLOWEDAUDIENCES - case "organization": - result |= ORGANIZATION_ALLOWEDAUDIENCES - case "federatedOrganizations": - result |= FEDERATEDORGANIZATIONS_ALLOWEDAUDIENCES - case "everyone": - result |= EVERYONE_ALLOWEDAUDIENCES - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_ALLOWEDAUDIENCES - default: - return 0, errors.New("Unknown AllowedAudiences value: " + v) - } - } - return &result, nil -} -func SerializeAllowedAudiences(values []AllowedAudiences) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AllowedAudiences) isMultiValue() bool { - return true -} diff --git a/models/allowed_role_principal_types.go b/models/allowed_role_principal_types.go deleted file mode 100644 index 19f851f3341..00000000000 --- a/models/allowed_role_principal_types.go +++ /dev/null @@ -1,53 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type AllowedRolePrincipalTypes int - -const ( - USER_ALLOWEDROLEPRINCIPALTYPES AllowedRolePrincipalTypes = iota - SERVICEPRINCIPAL_ALLOWEDROLEPRINCIPALTYPES - GROUP_ALLOWEDROLEPRINCIPALTYPES - UNKNOWNFUTUREVALUE_ALLOWEDROLEPRINCIPALTYPES -) - -func (i AllowedRolePrincipalTypes) String() string { - var values []string - for p := AllowedRolePrincipalTypes(1); p <= UNKNOWNFUTUREVALUE_ALLOWEDROLEPRINCIPALTYPES; p <<= 1 { - if i&p == p { - values = append(values, []string{"user", "servicePrincipal", "group", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseAllowedRolePrincipalTypes(v string) (any, error) { - var result AllowedRolePrincipalTypes - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "user": - result |= USER_ALLOWEDROLEPRINCIPALTYPES - case "servicePrincipal": - result |= SERVICEPRINCIPAL_ALLOWEDROLEPRINCIPALTYPES - case "group": - result |= GROUP_ALLOWEDROLEPRINCIPALTYPES - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_ALLOWEDROLEPRINCIPALTYPES - default: - return 0, errors.New("Unknown AllowedRolePrincipalTypes value: " + v) - } - } - return &result, nil -} -func SerializeAllowedRolePrincipalTypes(values []AllowedRolePrincipalTypes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AllowedRolePrincipalTypes) isMultiValue() bool { - return true -} diff --git a/models/alteration_response.go b/models/alteration_response.go index e6d4fed2409..aa5beb62066 100644 --- a/models/alteration_response.go +++ b/models/alteration_response.go @@ -72,12 +72,12 @@ func (m *AlterationResponse) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["queryAlterationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSearchAlterationType) + val, err := n.GetEnumValue(ParseAlterationResponse_queryAlterationType) if err != nil { return err } if val != nil { - m.SetQueryAlterationType(val.(*SearchAlterationType)) + m.SetQueryAlterationType(val.(*AlterationResponse_queryAlterationType)) } return nil } @@ -117,13 +117,13 @@ func (m *AlterationResponse) GetQueryAlteration()(SearchAlterationable) { return nil } // GetQueryAlterationType gets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are suggestion, modification. -func (m *AlterationResponse) GetQueryAlterationType()(*SearchAlterationType) { +func (m *AlterationResponse) GetQueryAlterationType()(*AlterationResponse_queryAlterationType) { val, err := m.GetBackingStore().Get("queryAlterationType") if err != nil { panic(err) } if val != nil { - return val.(*SearchAlterationType) + return val.(*AlterationResponse_queryAlterationType) } return nil } @@ -195,7 +195,7 @@ func (m *AlterationResponse) SetQueryAlteration(value SearchAlterationable)() { } } // SetQueryAlterationType sets the queryAlterationType property value. Defines the type of the spelling correction. Possible values are suggestion, modification. -func (m *AlterationResponse) SetQueryAlterationType(value *SearchAlterationType)() { +func (m *AlterationResponse) SetQueryAlterationType(value *AlterationResponse_queryAlterationType)() { err := m.GetBackingStore().Set("queryAlterationType", value) if err != nil { panic(err) @@ -210,10 +210,10 @@ type AlterationResponseable interface { GetOdataType()(*string) GetOriginalQueryString()(*string) GetQueryAlteration()(SearchAlterationable) - GetQueryAlterationType()(*SearchAlterationType) + GetQueryAlterationType()(*AlterationResponse_queryAlterationType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetOriginalQueryString(value *string)() SetQueryAlteration(value SearchAlterationable)() - SetQueryAlterationType(value *SearchAlterationType)() + SetQueryAlterationType(value *AlterationResponse_queryAlterationType)() } diff --git a/models/alteration_response_query_alteration_type.go b/models/alteration_response_query_alteration_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/analytics_activity_type.go b/models/analytics_activity_type.go deleted file mode 100644 index 6e14d39fe54..00000000000 --- a/models/analytics_activity_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type AnalyticsActivityType int - -const ( - EMAIL_ANALYTICSACTIVITYTYPE AnalyticsActivityType = iota - MEETING_ANALYTICSACTIVITYTYPE - FOCUS_ANALYTICSACTIVITYTYPE - CHAT_ANALYTICSACTIVITYTYPE - CALL_ANALYTICSACTIVITYTYPE -) - -func (i AnalyticsActivityType) String() string { - return []string{"Email", "Meeting", "Focus", "Chat", "Call"}[i] -} -func ParseAnalyticsActivityType(v string) (any, error) { - result := EMAIL_ANALYTICSACTIVITYTYPE - switch v { - case "Email": - result = EMAIL_ANALYTICSACTIVITYTYPE - case "Meeting": - result = MEETING_ANALYTICSACTIVITYTYPE - case "Focus": - result = FOCUS_ANALYTICSACTIVITYTYPE - case "Chat": - result = CHAT_ANALYTICSACTIVITYTYPE - case "Call": - result = CALL_ANALYTICSACTIVITYTYPE - default: - return 0, errors.New("Unknown AnalyticsActivityType value: " + v) - } - return &result, nil -} -func SerializeAnalyticsActivityType(values []AnalyticsActivityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AnalyticsActivityType) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_app_auto_update_policy_type.go b/models/android_device_owner_app_auto_update_policy_type.go deleted file mode 100644 index 67030c66c89..00000000000 --- a/models/android_device_owner_app_auto_update_policy_type.go +++ /dev/null @@ -1,51 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner possible values for states of the device's app auto update policy. -type AndroidDeviceOwnerAppAutoUpdatePolicyType int - -const ( - // Not configured; this value is ignored. - NOTCONFIGURED_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE AndroidDeviceOwnerAppAutoUpdatePolicyType = iota - // The user can control auto-updates. - USERCHOICE_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - // Apps are never auto-updated. - NEVER_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - // Apps are auto-updated over Wi-Fi only. - WIFIONLY_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - // Apps are auto-updated at any time. Data charges may apply. - ALWAYS_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE -) - -func (i AndroidDeviceOwnerAppAutoUpdatePolicyType) String() string { - return []string{"notConfigured", "userChoice", "never", "wiFiOnly", "always"}[i] -} -func ParseAndroidDeviceOwnerAppAutoUpdatePolicyType(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - case "userChoice": - result = USERCHOICE_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - case "never": - result = NEVER_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - case "wiFiOnly": - result = WIFIONLY_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - case "always": - result = ALWAYS_ANDROIDDEVICEOWNERAPPAUTOUPDATEPOLICYTYPE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerAppAutoUpdatePolicyType value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerAppAutoUpdatePolicyType(values []AndroidDeviceOwnerAppAutoUpdatePolicyType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerAppAutoUpdatePolicyType) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_certificate_access_type.go b/models/android_device_owner_certificate_access_type.go deleted file mode 100644 index d265a60aca3..00000000000 --- a/models/android_device_owner_certificate_access_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// An enum representing possible values for cross profile data sharing. -type AndroidDeviceOwnerCertificateAccessType int - -const ( - // Require user approval for all apps - USERAPPROVAL_ANDROIDDEVICEOWNERCERTIFICATEACCESSTYPE AndroidDeviceOwnerCertificateAccessType = iota - // Pre-grant certificate access for specific apps (require user approval for other apps). - SPECIFICAPPS_ANDROIDDEVICEOWNERCERTIFICATEACCESSTYPE - // Unknown future value for evolvable enum patterns. - UNKNOWNFUTUREVALUE_ANDROIDDEVICEOWNERCERTIFICATEACCESSTYPE -) - -func (i AndroidDeviceOwnerCertificateAccessType) String() string { - return []string{"userApproval", "specificApps", "unknownFutureValue"}[i] -} -func ParseAndroidDeviceOwnerCertificateAccessType(v string) (any, error) { - result := USERAPPROVAL_ANDROIDDEVICEOWNERCERTIFICATEACCESSTYPE - switch v { - case "userApproval": - result = USERAPPROVAL_ANDROIDDEVICEOWNERCERTIFICATEACCESSTYPE - case "specificApps": - result = SPECIFICAPPS_ANDROIDDEVICEOWNERCERTIFICATEACCESSTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ANDROIDDEVICEOWNERCERTIFICATEACCESSTYPE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerCertificateAccessType value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerCertificateAccessType(values []AndroidDeviceOwnerCertificateAccessType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerCertificateAccessType) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_certificate_profile_base.go b/models/android_device_owner_certificate_profile_base.go index 53147b252a5..cf905b4bf9c 100644 --- a/models/android_device_owner_certificate_profile_base.go +++ b/models/android_device_owner_certificate_profile_base.go @@ -136,22 +136,22 @@ func (m *AndroidDeviceOwnerCertificateProfileBase) GetFieldDeserializers()(map[s return nil } res["subjectAlternativeNameType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectAlternativeNameType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCertificateProfileBase_subjectAlternativeNameType) if err != nil { return err } if val != nil { - m.SetSubjectAlternativeNameType(val.(*SubjectAlternativeNameType)) + m.SetSubjectAlternativeNameType(val.(*AndroidDeviceOwnerCertificateProfileBase_subjectAlternativeNameType)) } return nil } res["subjectNameFormat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectNameFormat) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCertificateProfileBase_subjectNameFormat) if err != nil { return err } if val != nil { - m.SetSubjectNameFormat(val.(*SubjectNameFormat)) + m.SetSubjectNameFormat(val.(*AndroidDeviceOwnerCertificateProfileBase_subjectNameFormat)) } return nil } @@ -180,24 +180,24 @@ func (m *AndroidDeviceOwnerCertificateProfileBase) GetRootCertificate()(AndroidD return nil } // GetSubjectAlternativeNameType gets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *AndroidDeviceOwnerCertificateProfileBase) GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) { +func (m *AndroidDeviceOwnerCertificateProfileBase) GetSubjectAlternativeNameType()(*AndroidDeviceOwnerCertificateProfileBase_subjectAlternativeNameType) { val, err := m.GetBackingStore().Get("subjectAlternativeNameType") if err != nil { panic(err) } if val != nil { - return val.(*SubjectAlternativeNameType) + return val.(*AndroidDeviceOwnerCertificateProfileBase_subjectAlternativeNameType) } return nil } // GetSubjectNameFormat gets the subjectNameFormat property value. Certificate Subject Name Format. Possible values are: commonName, commonNameIncludingEmail, commonNameAsEmail, custom, commonNameAsIMEI, commonNameAsSerialNumber, commonNameAsAadDeviceId, commonNameAsIntuneDeviceId, commonNameAsDurableDeviceId. -func (m *AndroidDeviceOwnerCertificateProfileBase) GetSubjectNameFormat()(*SubjectNameFormat) { +func (m *AndroidDeviceOwnerCertificateProfileBase) GetSubjectNameFormat()(*AndroidDeviceOwnerCertificateProfileBase_subjectNameFormat) { val, err := m.GetBackingStore().Get("subjectNameFormat") if err != nil { panic(err) } if val != nil { - return val.(*SubjectNameFormat) + return val.(*AndroidDeviceOwnerCertificateProfileBase_subjectNameFormat) } return nil } @@ -296,14 +296,14 @@ func (m *AndroidDeviceOwnerCertificateProfileBase) SetRootCertificate(value Andr } } // SetSubjectAlternativeNameType sets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *AndroidDeviceOwnerCertificateProfileBase) SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() { +func (m *AndroidDeviceOwnerCertificateProfileBase) SetSubjectAlternativeNameType(value *AndroidDeviceOwnerCertificateProfileBase_subjectAlternativeNameType)() { err := m.GetBackingStore().Set("subjectAlternativeNameType", value) if err != nil { panic(err) } } // SetSubjectNameFormat sets the subjectNameFormat property value. Certificate Subject Name Format. Possible values are: commonName, commonNameIncludingEmail, commonNameAsEmail, custom, commonNameAsIMEI, commonNameAsSerialNumber, commonNameAsAadDeviceId, commonNameAsIntuneDeviceId, commonNameAsDurableDeviceId. -func (m *AndroidDeviceOwnerCertificateProfileBase) SetSubjectNameFormat(value *SubjectNameFormat)() { +func (m *AndroidDeviceOwnerCertificateProfileBase) SetSubjectNameFormat(value *AndroidDeviceOwnerCertificateProfileBase_subjectNameFormat)() { err := m.GetBackingStore().Set("subjectNameFormat", value) if err != nil { panic(err) @@ -318,13 +318,13 @@ type AndroidDeviceOwnerCertificateProfileBaseable interface { GetExtendedKeyUsages()([]ExtendedKeyUsageable) GetRenewalThresholdPercentage()(*int32) GetRootCertificate()(AndroidDeviceOwnerTrustedRootCertificateable) - GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) - GetSubjectNameFormat()(*SubjectNameFormat) + GetSubjectAlternativeNameType()(*AndroidDeviceOwnerCertificateProfileBase_subjectAlternativeNameType) + GetSubjectNameFormat()(*AndroidDeviceOwnerCertificateProfileBase_subjectNameFormat) SetCertificateValidityPeriodScale(value *CertificateValidityPeriodScale)() SetCertificateValidityPeriodValue(value *int32)() SetExtendedKeyUsages(value []ExtendedKeyUsageable)() SetRenewalThresholdPercentage(value *int32)() SetRootCertificate(value AndroidDeviceOwnerTrustedRootCertificateable)() - SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() - SetSubjectNameFormat(value *SubjectNameFormat)() + SetSubjectAlternativeNameType(value *AndroidDeviceOwnerCertificateProfileBase_subjectAlternativeNameType)() + SetSubjectNameFormat(value *AndroidDeviceOwnerCertificateProfileBase_subjectNameFormat)() } diff --git a/models/android_device_owner_certificate_profile_base_subject_alternative_name_type.go b/models/android_device_owner_certificate_profile_base_subject_alternative_name_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_certificate_profile_base_subject_name_format.go b/models/android_device_owner_certificate_profile_base_subject_name_format.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_compliance_policy.go b/models/android_device_owner_compliance_policy.go index 5df4e72a864..bdb82d5f28e 100644 --- a/models/android_device_owner_compliance_policy.go +++ b/models/android_device_owner_compliance_policy.go @@ -22,13 +22,13 @@ func CreateAndroidDeviceOwnerCompliancePolicyFromDiscriminatorValue(parseNode i8 return NewAndroidDeviceOwnerCompliancePolicy(), nil } // GetAdvancedThreatProtectionRequiredSecurityLevel gets the advancedThreatProtectionRequiredSecurityLevel property value. MDATP Require Mobile Threat Protection minimum risk level to report noncompliance. Possible values are: unavailable, secured, low, medium, high, notSet. -func (m *AndroidDeviceOwnerCompliancePolicy) GetAdvancedThreatProtectionRequiredSecurityLevel()(*DeviceThreatProtectionLevel) { +func (m *AndroidDeviceOwnerCompliancePolicy) GetAdvancedThreatProtectionRequiredSecurityLevel()(*AndroidDeviceOwnerCompliancePolicy_advancedThreatProtectionRequiredSecurityLevel) { val, err := m.GetBackingStore().Get("advancedThreatProtectionRequiredSecurityLevel") if err != nil { panic(err) } if val != nil { - return val.(*DeviceThreatProtectionLevel) + return val.(*AndroidDeviceOwnerCompliancePolicy_advancedThreatProtectionRequiredSecurityLevel) } return nil } @@ -44,13 +44,13 @@ func (m *AndroidDeviceOwnerCompliancePolicy) GetDeviceThreatProtectionEnabled()( return nil } // GetDeviceThreatProtectionRequiredSecurityLevel gets the deviceThreatProtectionRequiredSecurityLevel property value. Require Mobile Threat Protection minimum risk level to report noncompliance. Possible values are: unavailable, secured, low, medium, high, notSet. -func (m *AndroidDeviceOwnerCompliancePolicy) GetDeviceThreatProtectionRequiredSecurityLevel()(*DeviceThreatProtectionLevel) { +func (m *AndroidDeviceOwnerCompliancePolicy) GetDeviceThreatProtectionRequiredSecurityLevel()(*AndroidDeviceOwnerCompliancePolicy_deviceThreatProtectionRequiredSecurityLevel) { val, err := m.GetBackingStore().Get("deviceThreatProtectionRequiredSecurityLevel") if err != nil { panic(err) } if val != nil { - return val.(*DeviceThreatProtectionLevel) + return val.(*AndroidDeviceOwnerCompliancePolicy_deviceThreatProtectionRequiredSecurityLevel) } return nil } @@ -58,12 +58,12 @@ func (m *AndroidDeviceOwnerCompliancePolicy) GetDeviceThreatProtectionRequiredSe func (m *AndroidDeviceOwnerCompliancePolicy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceCompliancePolicy.GetFieldDeserializers() res["advancedThreatProtectionRequiredSecurityLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDeviceThreatProtectionLevel) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCompliancePolicy_advancedThreatProtectionRequiredSecurityLevel) if err != nil { return err } if val != nil { - m.SetAdvancedThreatProtectionRequiredSecurityLevel(val.(*DeviceThreatProtectionLevel)) + m.SetAdvancedThreatProtectionRequiredSecurityLevel(val.(*AndroidDeviceOwnerCompliancePolicy_advancedThreatProtectionRequiredSecurityLevel)) } return nil } @@ -78,12 +78,12 @@ func (m *AndroidDeviceOwnerCompliancePolicy) GetFieldDeserializers()(map[string] return nil } res["deviceThreatProtectionRequiredSecurityLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDeviceThreatProtectionLevel) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCompliancePolicy_deviceThreatProtectionRequiredSecurityLevel) if err != nil { return err } if val != nil { - m.SetDeviceThreatProtectionRequiredSecurityLevel(val.(*DeviceThreatProtectionLevel)) + m.SetDeviceThreatProtectionRequiredSecurityLevel(val.(*AndroidDeviceOwnerCompliancePolicy_deviceThreatProtectionRequiredSecurityLevel)) } return nil } @@ -228,12 +228,12 @@ func (m *AndroidDeviceOwnerCompliancePolicy) GetFieldDeserializers()(map[string] return nil } res["passwordRequiredType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerRequiredPasswordType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCompliancePolicy_passwordRequiredType) if err != nil { return err } if val != nil { - m.SetPasswordRequiredType(val.(*AndroidDeviceOwnerRequiredPasswordType)) + m.SetPasswordRequiredType(val.(*AndroidDeviceOwnerCompliancePolicy_passwordRequiredType)) } return nil } @@ -444,13 +444,13 @@ func (m *AndroidDeviceOwnerCompliancePolicy) GetPasswordRequired()(*bool) { return nil } // GetPasswordRequiredType gets the passwordRequiredType property value. Type of characters in password. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AndroidDeviceOwnerCompliancePolicy) GetPasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) { +func (m *AndroidDeviceOwnerCompliancePolicy) GetPasswordRequiredType()(*AndroidDeviceOwnerCompliancePolicy_passwordRequiredType) { val, err := m.GetBackingStore().Get("passwordRequiredType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerRequiredPasswordType) + return val.(*AndroidDeviceOwnerCompliancePolicy_passwordRequiredType) } return nil } @@ -659,7 +659,7 @@ func (m *AndroidDeviceOwnerCompliancePolicy) Serialize(writer i878a80d2330e89d26 return nil } // SetAdvancedThreatProtectionRequiredSecurityLevel sets the advancedThreatProtectionRequiredSecurityLevel property value. MDATP Require Mobile Threat Protection minimum risk level to report noncompliance. Possible values are: unavailable, secured, low, medium, high, notSet. -func (m *AndroidDeviceOwnerCompliancePolicy) SetAdvancedThreatProtectionRequiredSecurityLevel(value *DeviceThreatProtectionLevel)() { +func (m *AndroidDeviceOwnerCompliancePolicy) SetAdvancedThreatProtectionRequiredSecurityLevel(value *AndroidDeviceOwnerCompliancePolicy_advancedThreatProtectionRequiredSecurityLevel)() { err := m.GetBackingStore().Set("advancedThreatProtectionRequiredSecurityLevel", value) if err != nil { panic(err) @@ -673,7 +673,7 @@ func (m *AndroidDeviceOwnerCompliancePolicy) SetDeviceThreatProtectionEnabled(va } } // SetDeviceThreatProtectionRequiredSecurityLevel sets the deviceThreatProtectionRequiredSecurityLevel property value. Require Mobile Threat Protection minimum risk level to report noncompliance. Possible values are: unavailable, secured, low, medium, high, notSet. -func (m *AndroidDeviceOwnerCompliancePolicy) SetDeviceThreatProtectionRequiredSecurityLevel(value *DeviceThreatProtectionLevel)() { +func (m *AndroidDeviceOwnerCompliancePolicy) SetDeviceThreatProtectionRequiredSecurityLevel(value *AndroidDeviceOwnerCompliancePolicy_deviceThreatProtectionRequiredSecurityLevel)() { err := m.GetBackingStore().Set("deviceThreatProtectionRequiredSecurityLevel", value) if err != nil { panic(err) @@ -778,7 +778,7 @@ func (m *AndroidDeviceOwnerCompliancePolicy) SetPasswordRequired(value *bool)() } } // SetPasswordRequiredType sets the passwordRequiredType property value. Type of characters in password. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AndroidDeviceOwnerCompliancePolicy) SetPasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() { +func (m *AndroidDeviceOwnerCompliancePolicy) SetPasswordRequiredType(value *AndroidDeviceOwnerCompliancePolicy_passwordRequiredType)() { err := m.GetBackingStore().Set("passwordRequiredType", value) if err != nil { panic(err) @@ -823,9 +823,9 @@ func (m *AndroidDeviceOwnerCompliancePolicy) SetStorageRequireEncryption(value * type AndroidDeviceOwnerCompliancePolicyable interface { DeviceCompliancePolicyable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdvancedThreatProtectionRequiredSecurityLevel()(*DeviceThreatProtectionLevel) + GetAdvancedThreatProtectionRequiredSecurityLevel()(*AndroidDeviceOwnerCompliancePolicy_advancedThreatProtectionRequiredSecurityLevel) GetDeviceThreatProtectionEnabled()(*bool) - GetDeviceThreatProtectionRequiredSecurityLevel()(*DeviceThreatProtectionLevel) + GetDeviceThreatProtectionRequiredSecurityLevel()(*AndroidDeviceOwnerCompliancePolicy_deviceThreatProtectionRequiredSecurityLevel) GetMinAndroidSecurityPatchLevel()(*string) GetOsMaximumVersion()(*string) GetOsMinimumVersion()(*string) @@ -840,15 +840,15 @@ type AndroidDeviceOwnerCompliancePolicyable interface { GetPasswordMinutesOfInactivityBeforeLock()(*int32) GetPasswordPreviousPasswordCountToBlock()(*int32) GetPasswordRequired()(*bool) - GetPasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) + GetPasswordRequiredType()(*AndroidDeviceOwnerCompliancePolicy_passwordRequiredType) GetRequireNoPendingSystemUpdates()(*bool) GetSecurityRequireIntuneAppIntegrity()(*bool) GetSecurityRequireSafetyNetAttestationBasicIntegrity()(*bool) GetSecurityRequireSafetyNetAttestationCertifiedDevice()(*bool) GetStorageRequireEncryption()(*bool) - SetAdvancedThreatProtectionRequiredSecurityLevel(value *DeviceThreatProtectionLevel)() + SetAdvancedThreatProtectionRequiredSecurityLevel(value *AndroidDeviceOwnerCompliancePolicy_advancedThreatProtectionRequiredSecurityLevel)() SetDeviceThreatProtectionEnabled(value *bool)() - SetDeviceThreatProtectionRequiredSecurityLevel(value *DeviceThreatProtectionLevel)() + SetDeviceThreatProtectionRequiredSecurityLevel(value *AndroidDeviceOwnerCompliancePolicy_deviceThreatProtectionRequiredSecurityLevel)() SetMinAndroidSecurityPatchLevel(value *string)() SetOsMaximumVersion(value *string)() SetOsMinimumVersion(value *string)() @@ -863,7 +863,7 @@ type AndroidDeviceOwnerCompliancePolicyable interface { SetPasswordMinutesOfInactivityBeforeLock(value *int32)() SetPasswordPreviousPasswordCountToBlock(value *int32)() SetPasswordRequired(value *bool)() - SetPasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() + SetPasswordRequiredType(value *AndroidDeviceOwnerCompliancePolicy_passwordRequiredType)() SetRequireNoPendingSystemUpdates(value *bool)() SetSecurityRequireIntuneAppIntegrity(value *bool)() SetSecurityRequireSafetyNetAttestationBasicIntegrity(value *bool)() diff --git a/models/android_device_owner_compliance_policy_advanced_threat_protection_required_security_level.go b/models/android_device_owner_compliance_policy_advanced_threat_protection_required_security_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_compliance_policy_device_threat_protection_required_security_level.go b/models/android_device_owner_compliance_policy_device_threat_protection_required_security_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_compliance_policy_password_required_type.go b/models/android_device_owner_compliance_policy_password_required_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_cross_profile_data_sharing.go b/models/android_device_owner_cross_profile_data_sharing.go deleted file mode 100644 index a303885ea3a..00000000000 --- a/models/android_device_owner_cross_profile_data_sharing.go +++ /dev/null @@ -1,51 +0,0 @@ -package models -import ( - "errors" -) -// An enum representing possible values for cross profile data sharing. -type AndroidDeviceOwnerCrossProfileDataSharing int - -const ( - // Not configured; this value defaults to CROSS_PROFILE_DATA_SHARING_UNSPECIFIED. - NOTCONFIGURED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING AndroidDeviceOwnerCrossProfileDataSharing = iota - // Data cannot be shared from both the personal profile to work profile and the work profile to the personal profile. - CROSSPROFILEDATASHARINGBLOCKED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - // Prevents users from sharing data from the work profile to apps in the personal profile. Personal data can be shared with work apps. - DATASHARINGFROMWORKTOPERSONALBLOCKED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - // Data from either profile can be shared with the other profile. - CROSSPROFILEDATASHARINGALLOWED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - // Unknown future value (reserved, not used right now) - UNKOWNFUTUREVALUE_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING -) - -func (i AndroidDeviceOwnerCrossProfileDataSharing) String() string { - return []string{"notConfigured", "crossProfileDataSharingBlocked", "dataSharingFromWorkToPersonalBlocked", "crossProfileDataSharingAllowed", "unkownFutureValue"}[i] -} -func ParseAndroidDeviceOwnerCrossProfileDataSharing(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - case "crossProfileDataSharingBlocked": - result = CROSSPROFILEDATASHARINGBLOCKED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - case "dataSharingFromWorkToPersonalBlocked": - result = DATASHARINGFROMWORKTOPERSONALBLOCKED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - case "crossProfileDataSharingAllowed": - result = CROSSPROFILEDATASHARINGALLOWED_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - case "unkownFutureValue": - result = UNKOWNFUTUREVALUE_ANDROIDDEVICEOWNERCROSSPROFILEDATASHARING - default: - return 0, errors.New("Unknown AndroidDeviceOwnerCrossProfileDataSharing value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerCrossProfileDataSharing(values []AndroidDeviceOwnerCrossProfileDataSharing) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerCrossProfileDataSharing) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_default_app_permission_policy_type.go b/models/android_device_owner_default_app_permission_policy_type.go deleted file mode 100644 index eb4aab982ec..00000000000 --- a/models/android_device_owner_default_app_permission_policy_type.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner default app permission policy type. -type AndroidDeviceOwnerDefaultAppPermissionPolicyType int - -const ( - // Device default value, no intent. - DEVICEDEFAULT_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE AndroidDeviceOwnerDefaultAppPermissionPolicyType = iota - // Prompt. - PROMPT_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE - // Auto grant. - AUTOGRANT_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE - // Auto deny. - AUTODENY_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE -) - -func (i AndroidDeviceOwnerDefaultAppPermissionPolicyType) String() string { - return []string{"deviceDefault", "prompt", "autoGrant", "autoDeny"}[i] -} -func ParseAndroidDeviceOwnerDefaultAppPermissionPolicyType(v string) (any, error) { - result := DEVICEDEFAULT_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE - switch v { - case "deviceDefault": - result = DEVICEDEFAULT_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE - case "prompt": - result = PROMPT_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE - case "autoGrant": - result = AUTOGRANT_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE - case "autoDeny": - result = AUTODENY_ANDROIDDEVICEOWNERDEFAULTAPPPERMISSIONPOLICYTYPE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerDefaultAppPermissionPolicyType value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerDefaultAppPermissionPolicyType(values []AndroidDeviceOwnerDefaultAppPermissionPolicyType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerDefaultAppPermissionPolicyType) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_derived_credential_authentication_configuration.go b/models/android_device_owner_derived_credential_authentication_configuration.go index 093b978de77..5a0b59740f0 100644 --- a/models/android_device_owner_derived_credential_authentication_configuration.go +++ b/models/android_device_owner_derived_credential_authentication_configuration.go @@ -22,13 +22,13 @@ func CreateAndroidDeviceOwnerDerivedCredentialAuthenticationConfigurationFromDis return NewAndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration(), nil } // GetCertificateAccessType gets the certificateAccessType property value. Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue. -func (m *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) GetCertificateAccessType()(*AndroidDeviceOwnerCertificateAccessType) { +func (m *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) GetCertificateAccessType()(*AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration_certificateAccessType) { val, err := m.GetBackingStore().Get("certificateAccessType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerCertificateAccessType) + return val.(*AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration_certificateAccessType) } return nil } @@ -47,12 +47,12 @@ func (m *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) GetDeri func (m *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceConfiguration.GetFieldDeserializers() res["certificateAccessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCertificateAccessType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration_certificateAccessType) if err != nil { return err } if val != nil { - m.SetCertificateAccessType(val.(*AndroidDeviceOwnerCertificateAccessType)) + m.SetCertificateAccessType(val.(*AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration_certificateAccessType)) } return nil } @@ -129,7 +129,7 @@ func (m *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) Seriali return nil } // SetCertificateAccessType sets the certificateAccessType property value. Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue. -func (m *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) SetCertificateAccessType(value *AndroidDeviceOwnerCertificateAccessType)() { +func (m *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) SetCertificateAccessType(value *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration_certificateAccessType)() { err := m.GetBackingStore().Set("certificateAccessType", value) if err != nil { panic(err) @@ -153,10 +153,10 @@ func (m *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) SetSile type AndroidDeviceOwnerDerivedCredentialAuthenticationConfigurationable interface { DeviceConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateAccessType()(*AndroidDeviceOwnerCertificateAccessType) + GetCertificateAccessType()(*AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration_certificateAccessType) GetDerivedCredentialSettings()(DeviceManagementDerivedCredentialSettingsable) GetSilentCertificateAccessDetails()([]AndroidDeviceOwnerSilentCertificateAccessable) - SetCertificateAccessType(value *AndroidDeviceOwnerCertificateAccessType)() + SetCertificateAccessType(value *AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration_certificateAccessType)() SetDerivedCredentialSettings(value DeviceManagementDerivedCredentialSettingsable)() SetSilentCertificateAccessDetails(value []AndroidDeviceOwnerSilentCertificateAccessable)() } diff --git a/models/android_device_owner_derived_credential_authentication_configuration_certificate_access_type.go b/models/android_device_owner_derived_credential_authentication_configuration_certificate_access_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_enterprise_wi_fi_configuration.go b/models/android_device_owner_enterprise_wi_fi_configuration.go index 316cee37e94..8aa1fbf100b 100644 --- a/models/android_device_owner_enterprise_wi_fi_configuration.go +++ b/models/android_device_owner_enterprise_wi_fi_configuration.go @@ -22,13 +22,13 @@ func CreateAndroidDeviceOwnerEnterpriseWiFiConfigurationFromDiscriminatorValue(p return NewAndroidDeviceOwnerEnterpriseWiFiConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod) } return nil } @@ -58,12 +58,12 @@ func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetEapType()(*AndroidEap func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidDeviceOwnerWiFiConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod)) } return nil } @@ -98,22 +98,22 @@ func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetFieldDeserializers()( return nil } res["innerAuthenticationProtocolForEapTtls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEapTtls(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEapTtls(val.(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)) } return nil } res["innerAuthenticationProtocolForPeap"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForPeap) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForPeap(val.(*NonEapAuthenticationMethodForPeap)) + m.SetInnerAuthenticationProtocolForPeap(val.(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)) } return nil } @@ -167,24 +167,24 @@ func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetIdentityCertificateFo return nil } // GetInnerAuthenticationProtocolForEapTtls gets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEapTtls") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) } return nil } // GetInnerAuthenticationProtocolForPeap gets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Possible values are: none, microsoftChapVersionTwo. -func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) { +func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForPeap") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForPeap) + return val.(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) } return nil } @@ -288,7 +288,7 @@ func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) Serialize(writer i878a80 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *AndroidDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -316,14 +316,14 @@ func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) SetIdentityCertificateFo } } // SetInnerAuthenticationProtocolForEapTtls sets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEapTtls", value) if err != nil { panic(err) } } // SetInnerAuthenticationProtocolForPeap sets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Possible values are: none, microsoftChapVersionTwo. -func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() { +func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForPeap", value) if err != nil { panic(err) @@ -354,21 +354,21 @@ func (m *AndroidDeviceOwnerEnterpriseWiFiConfiguration) SetTrustedServerCertific type AndroidDeviceOwnerEnterpriseWiFiConfigurationable interface { AndroidDeviceOwnerWiFiConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) + GetAuthenticationMethod()(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod) GetDerivedCredentialSettings()(DeviceManagementDerivedCredentialSettingsable) GetEapType()(*AndroidEapType) GetIdentityCertificateForClientAuthentication()(AndroidDeviceOwnerCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) - GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) + GetInnerAuthenticationProtocolForEapTtls()(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) + GetInnerAuthenticationProtocolForPeap()(*AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) GetOuterIdentityPrivacyTemporaryValue()(*string) GetRootCertificateForServerValidation()(AndroidDeviceOwnerTrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() + SetAuthenticationMethod(value *AndroidDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod)() SetDerivedCredentialSettings(value DeviceManagementDerivedCredentialSettingsable)() SetEapType(value *AndroidEapType)() SetIdentityCertificateForClientAuthentication(value AndroidDeviceOwnerCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() - SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() + SetInnerAuthenticationProtocolForEapTtls(value *AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() + SetInnerAuthenticationProtocolForPeap(value *AndroidDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() SetOuterIdentityPrivacyTemporaryValue(value *string)() SetRootCertificateForServerValidation(value AndroidDeviceOwnerTrustedRootCertificateable)() SetTrustedServerCertificateNames(value []string)() diff --git a/models/android_device_owner_enterprise_wi_fi_configuration_authentication_method.go b/models/android_device_owner_enterprise_wi_fi_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go b/models/android_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go b/models/android_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration.go b/models/android_device_owner_general_device_configuration.go index 0c7db26f006..556cb4a4c04 100644 --- a/models/android_device_owner_general_device_configuration.go +++ b/models/android_device_owner_general_device_configuration.go @@ -55,24 +55,24 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetAppsAllowInstallFromUn return nil } // GetAppsAutoUpdatePolicy gets the appsAutoUpdatePolicy property value. Indicates the value of the app auto update policy. Possible values are: notConfigured, userChoice, never, wiFiOnly, always. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetAppsAutoUpdatePolicy()(*AndroidDeviceOwnerAppAutoUpdatePolicyType) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetAppsAutoUpdatePolicy()(*AndroidDeviceOwnerGeneralDeviceConfiguration_appsAutoUpdatePolicy) { val, err := m.GetBackingStore().Get("appsAutoUpdatePolicy") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerAppAutoUpdatePolicyType) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_appsAutoUpdatePolicy) } return nil } // GetAppsDefaultPermissionPolicy gets the appsDefaultPermissionPolicy property value. Indicates the permission policy for requests for runtime permissions if one is not defined for the app specifically. Possible values are: deviceDefault, prompt, autoGrant, autoDeny. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetAppsDefaultPermissionPolicy()(*AndroidDeviceOwnerDefaultAppPermissionPolicyType) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetAppsDefaultPermissionPolicy()(*AndroidDeviceOwnerGeneralDeviceConfiguration_appsDefaultPermissionPolicy) { val, err := m.GetBackingStore().Get("appsDefaultPermissionPolicy") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerDefaultAppPermissionPolicyType) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_appsDefaultPermissionPolicy) } return nil } @@ -165,13 +165,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetCrossProfilePoliciesAl return nil } // GetCrossProfilePoliciesAllowDataSharing gets the crossProfilePoliciesAllowDataSharing property value. Indicates whether data from one profile (personal or work) can be shared with apps in the other profile. Possible values are: notConfigured, crossProfileDataSharingBlocked, dataSharingFromWorkToPersonalBlocked, crossProfileDataSharingAllowed, unkownFutureValue. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetCrossProfilePoliciesAllowDataSharing()(*AndroidDeviceOwnerCrossProfileDataSharing) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetCrossProfilePoliciesAllowDataSharing()(*AndroidDeviceOwnerGeneralDeviceConfiguration_crossProfilePoliciesAllowDataSharing) { val, err := m.GetBackingStore().Get("crossProfilePoliciesAllowDataSharing") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerCrossProfileDataSharing) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_crossProfilePoliciesAllowDataSharing) } return nil } @@ -220,13 +220,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetDetailedHelpText()(And return nil } // GetDeviceLocationMode gets the deviceLocationMode property value. Indicates the location setting configuration for fully managed devices (COBO) and corporate owned devices with a work profile (COPE) -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetDeviceLocationMode()(*AndroidDeviceOwnerLocationMode) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetDeviceLocationMode()(*AndroidDeviceOwnerGeneralDeviceConfiguration_deviceLocationMode) { val, err := m.GetBackingStore().Get("deviceLocationMode") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerLocationMode) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_deviceLocationMode) } return nil } @@ -314,22 +314,22 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["appsAutoUpdatePolicy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerAppAutoUpdatePolicyType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_appsAutoUpdatePolicy) if err != nil { return err } if val != nil { - m.SetAppsAutoUpdatePolicy(val.(*AndroidDeviceOwnerAppAutoUpdatePolicyType)) + m.SetAppsAutoUpdatePolicy(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_appsAutoUpdatePolicy)) } return nil } res["appsDefaultPermissionPolicy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerDefaultAppPermissionPolicyType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_appsDefaultPermissionPolicy) if err != nil { return err } if val != nil { - m.SetAppsDefaultPermissionPolicy(val.(*AndroidDeviceOwnerDefaultAppPermissionPolicyType)) + m.SetAppsDefaultPermissionPolicy(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_appsDefaultPermissionPolicy)) } return nil } @@ -420,12 +420,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["crossProfilePoliciesAllowDataSharing"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCrossProfileDataSharing) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_crossProfilePoliciesAllowDataSharing) if err != nil { return err } if val != nil { - m.SetCrossProfilePoliciesAllowDataSharing(val.(*AndroidDeviceOwnerCrossProfileDataSharing)) + m.SetCrossProfilePoliciesAllowDataSharing(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_crossProfilePoliciesAllowDataSharing)) } return nil } @@ -470,12 +470,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["deviceLocationMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerLocationMode) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_deviceLocationMode) if err != nil { return err } if val != nil { - m.SetDeviceLocationMode(val.(*AndroidDeviceOwnerLocationMode)) + m.SetDeviceLocationMode(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_deviceLocationMode)) } return nil } @@ -566,12 +566,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["kioskCustomizationStatusBar"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerKioskCustomizationStatusBar) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationStatusBar) if err != nil { return err } if val != nil { - m.SetKioskCustomizationStatusBar(val.(*AndroidDeviceOwnerKioskCustomizationStatusBar)) + m.SetKioskCustomizationStatusBar(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationStatusBar)) } return nil } @@ -586,12 +586,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["kioskCustomizationSystemNavigation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerKioskCustomizationSystemNavigation) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationSystemNavigation) if err != nil { return err } if val != nil { - m.SetKioskCustomizationSystemNavigation(val.(*AndroidDeviceOwnerKioskCustomizationSystemNavigation)) + m.SetKioskCustomizationSystemNavigation(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationSystemNavigation)) } return nil } @@ -688,12 +688,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["kioskModeFolderIcon"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerKioskModeFolderIcon) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeFolderIcon) if err != nil { return err } if val != nil { - m.SetKioskModeFolderIcon(val.(*AndroidDeviceOwnerKioskModeFolderIcon)) + m.SetKioskModeFolderIcon(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeFolderIcon)) } return nil } @@ -718,12 +718,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["kioskModeIconSize"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerKioskModeIconSize) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeIconSize) if err != nil { return err } if val != nil { - m.SetKioskModeIconSize(val.(*AndroidDeviceOwnerKioskModeIconSize)) + m.SetKioskModeIconSize(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeIconSize)) } return nil } @@ -784,12 +784,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["kioskModeManagedHomeScreenPinComplexity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseKioskModeManagedHomeScreenPinComplexity) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeManagedHomeScreenPinComplexity) if err != nil { return err } if val != nil { - m.SetKioskModeManagedHomeScreenPinComplexity(val.(*KioskModeManagedHomeScreenPinComplexity)) + m.SetKioskModeManagedHomeScreenPinComplexity(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeManagedHomeScreenPinComplexity)) } return nil } @@ -864,12 +864,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["kioskModeScreenOrientation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerKioskModeScreenOrientation) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeScreenOrientation) if err != nil { return err } if val != nil { - m.SetKioskModeScreenOrientation(val.(*AndroidDeviceOwnerKioskModeScreenOrientation)) + m.SetKioskModeScreenOrientation(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeScreenOrientation)) } return nil } @@ -944,12 +944,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["kioskModeUseManagedHomeScreenApp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseKioskModeType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeUseManagedHomeScreenApp) if err != nil { return err } if val != nil { - m.SetKioskModeUseManagedHomeScreenApp(val.(*KioskModeType)) + m.SetKioskModeUseManagedHomeScreenApp(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeUseManagedHomeScreenApp)) } return nil } @@ -964,12 +964,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["kioskModeVirtualHomeButtonType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerVirtualHomeButtonType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeVirtualHomeButtonType) if err != nil { return err } if val != nil { - m.SetKioskModeVirtualHomeButtonType(val.(*AndroidDeviceOwnerVirtualHomeButtonType)) + m.SetKioskModeVirtualHomeButtonType(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeVirtualHomeButtonType)) } return nil } @@ -1090,12 +1090,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["microsoftLauncherDockPresenceConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMicrosoftLauncherDockPresence) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherDockPresenceConfiguration) if err != nil { return err } if val != nil { - m.SetMicrosoftLauncherDockPresenceConfiguration(val.(*MicrosoftLauncherDockPresence)) + m.SetMicrosoftLauncherDockPresenceConfiguration(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherDockPresenceConfiguration)) } return nil } @@ -1120,12 +1120,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["microsoftLauncherSearchBarPlacementConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMicrosoftLauncherSearchBarPlacement) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherSearchBarPlacementConfiguration) if err != nil { return err } if val != nil { - m.SetMicrosoftLauncherSearchBarPlacementConfiguration(val.(*MicrosoftLauncherSearchBarPlacement)) + m.SetMicrosoftLauncherSearchBarPlacementConfiguration(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherSearchBarPlacementConfiguration)) } return nil } @@ -1276,22 +1276,22 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["passwordRequiredType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerRequiredPasswordType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequiredType) if err != nil { return err } if val != nil { - m.SetPasswordRequiredType(val.(*AndroidDeviceOwnerRequiredPasswordType)) + m.SetPasswordRequiredType(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequiredType)) } return nil } res["passwordRequireUnlock"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerRequiredPasswordUnlock) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequireUnlock) if err != nil { return err } if val != nil { - m.SetPasswordRequireUnlock(val.(*AndroidDeviceOwnerRequiredPasswordUnlock)) + m.SetPasswordRequireUnlock(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequireUnlock)) } return nil } @@ -1342,12 +1342,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["personalProfilePlayStoreMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePersonalProfilePersonalPlayStoreMode) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_personalProfilePlayStoreMode) if err != nil { return err } if val != nil { - m.SetPersonalProfilePlayStoreMode(val.(*PersonalProfilePersonalPlayStoreMode)) + m.SetPersonalProfilePlayStoreMode(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_personalProfilePlayStoreMode)) } return nil } @@ -1362,12 +1362,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["playStoreMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerPlayStoreMode) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_playStoreMode) if err != nil { return err } if val != nil { - m.SetPlayStoreMode(val.(*AndroidDeviceOwnerPlayStoreMode)) + m.SetPlayStoreMode(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_playStoreMode)) } return nil } @@ -1504,12 +1504,12 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["systemUpdateInstallType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerSystemUpdateInstallType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_systemUpdateInstallType) if err != nil { return err } if val != nil { - m.SetSystemUpdateInstallType(val.(*AndroidDeviceOwnerSystemUpdateInstallType)) + m.SetSystemUpdateInstallType(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_systemUpdateInstallType)) } return nil } @@ -1704,22 +1704,22 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetFieldDeserializers()(m return nil } res["workProfilePasswordRequiredType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerRequiredPasswordType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequiredType) if err != nil { return err } if val != nil { - m.SetWorkProfilePasswordRequiredType(val.(*AndroidDeviceOwnerRequiredPasswordType)) + m.SetWorkProfilePasswordRequiredType(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequiredType)) } return nil } res["workProfilePasswordRequireUnlock"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerRequiredPasswordUnlock) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequireUnlock) if err != nil { return err } if val != nil { - m.SetWorkProfilePasswordRequireUnlock(val.(*AndroidDeviceOwnerRequiredPasswordUnlock)) + m.SetWorkProfilePasswordRequireUnlock(val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequireUnlock)) } return nil } @@ -1780,13 +1780,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskCustomizationPowe return nil } // GetKioskCustomizationStatusBar gets the kioskCustomizationStatusBar property value. Indicates whether system info and notifications are disabled in Kiosk Mode. Possible values are: notConfigured, notificationsAndSystemInfoEnabled, systemInfoOnly. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskCustomizationStatusBar()(*AndroidDeviceOwnerKioskCustomizationStatusBar) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskCustomizationStatusBar()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationStatusBar) { val, err := m.GetBackingStore().Get("kioskCustomizationStatusBar") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerKioskCustomizationStatusBar) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationStatusBar) } return nil } @@ -1802,13 +1802,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskCustomizationSyst return nil } // GetKioskCustomizationSystemNavigation gets the kioskCustomizationSystemNavigation property value. Indicates which navigation features are enabled in Kiosk Mode. Possible values are: notConfigured, navigationEnabled, homeButtonOnly. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskCustomizationSystemNavigation()(*AndroidDeviceOwnerKioskCustomizationSystemNavigation) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskCustomizationSystemNavigation()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationSystemNavigation) { val, err := m.GetBackingStore().Get("kioskCustomizationSystemNavigation") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerKioskCustomizationSystemNavigation) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationSystemNavigation) } return nil } @@ -1901,13 +1901,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeFlashlightCon return nil } // GetKioskModeFolderIcon gets the kioskModeFolderIcon property value. Folder icon configuration for managed home screen in Kiosk Mode. Possible values are: notConfigured, darkSquare, darkCircle, lightSquare, lightCircle. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeFolderIcon()(*AndroidDeviceOwnerKioskModeFolderIcon) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeFolderIcon()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeFolderIcon) { val, err := m.GetBackingStore().Get("kioskModeFolderIcon") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerKioskModeFolderIcon) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeFolderIcon) } return nil } @@ -1934,13 +1934,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeGridWidth()(* return nil } // GetKioskModeIconSize gets the kioskModeIconSize property value. Icon size configuration for managed home screen in Kiosk Mode. Possible values are: notConfigured, smallest, small, regular, large, largest. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeIconSize()(*AndroidDeviceOwnerKioskModeIconSize) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeIconSize()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeIconSize) { val, err := m.GetBackingStore().Get("kioskModeIconSize") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerKioskModeIconSize) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeIconSize) } return nil } @@ -2000,13 +2000,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeManagedHomeSc return nil } // GetKioskModeManagedHomeScreenPinComplexity gets the kioskModeManagedHomeScreenPinComplexity property value. Complexity of PIN for sign-in session for Managed Home Screen. Possible values are: notConfigured, simple, complex. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeManagedHomeScreenPinComplexity()(*KioskModeManagedHomeScreenPinComplexity) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeManagedHomeScreenPinComplexity()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeManagedHomeScreenPinComplexity) { val, err := m.GetBackingStore().Get("kioskModeManagedHomeScreenPinComplexity") if err != nil { panic(err) } if val != nil { - return val.(*KioskModeManagedHomeScreenPinComplexity) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeManagedHomeScreenPinComplexity) } return nil } @@ -2088,13 +2088,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeMediaVolumeCo return nil } // GetKioskModeScreenOrientation gets the kioskModeScreenOrientation property value. Screen orientation configuration for managed home screen in Kiosk Mode. Possible values are: notConfigured, portrait, landscape, autoRotate. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeScreenOrientation()(*AndroidDeviceOwnerKioskModeScreenOrientation) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeScreenOrientation()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeScreenOrientation) { val, err := m.GetBackingStore().Get("kioskModeScreenOrientation") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerKioskModeScreenOrientation) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeScreenOrientation) } return nil } @@ -2176,13 +2176,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeShowDeviceInf return nil } // GetKioskModeUseManagedHomeScreenApp gets the kioskModeUseManagedHomeScreenApp property value. Whether or not to use single app kiosk mode or multi-app kiosk mode. Possible values are: notConfigured, singleAppMode, multiAppMode. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeUseManagedHomeScreenApp()(*KioskModeType) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeUseManagedHomeScreenApp()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeUseManagedHomeScreenApp) { val, err := m.GetBackingStore().Get("kioskModeUseManagedHomeScreenApp") if err != nil { panic(err) } if val != nil { - return val.(*KioskModeType) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeUseManagedHomeScreenApp) } return nil } @@ -2198,13 +2198,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeVirtualHomeBu return nil } // GetKioskModeVirtualHomeButtonType gets the kioskModeVirtualHomeButtonType property value. Indicates whether the virtual home button is a swipe up home button or a floating home button. Possible values are: notConfigured, swipeUp, floating. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeVirtualHomeButtonType()(*AndroidDeviceOwnerVirtualHomeButtonType) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetKioskModeVirtualHomeButtonType()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeVirtualHomeButtonType) { val, err := m.GetBackingStore().Get("kioskModeVirtualHomeButtonType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerVirtualHomeButtonType) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeVirtualHomeButtonType) } return nil } @@ -2330,13 +2330,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetMicrosoftLauncherDockP return nil } // GetMicrosoftLauncherDockPresenceConfiguration gets the microsoftLauncherDockPresenceConfiguration property value. Indicates whether or not you want to configure the device dock. Possible values are: notConfigured, show, hide, disabled. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetMicrosoftLauncherDockPresenceConfiguration()(*MicrosoftLauncherDockPresence) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetMicrosoftLauncherDockPresenceConfiguration()(*AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherDockPresenceConfiguration) { val, err := m.GetBackingStore().Get("microsoftLauncherDockPresenceConfiguration") if err != nil { panic(err) } if val != nil { - return val.(*MicrosoftLauncherDockPresence) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherDockPresenceConfiguration) } return nil } @@ -2363,13 +2363,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetMicrosoftLauncherFeedE return nil } // GetMicrosoftLauncherSearchBarPlacementConfiguration gets the microsoftLauncherSearchBarPlacementConfiguration property value. Indicates the search bar placement configuration on the device. Possible values are: notConfigured, top, bottom, hide. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetMicrosoftLauncherSearchBarPlacementConfiguration()(*MicrosoftLauncherSearchBarPlacement) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetMicrosoftLauncherSearchBarPlacementConfiguration()(*AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherSearchBarPlacementConfiguration) { val, err := m.GetBackingStore().Get("microsoftLauncherSearchBarPlacementConfiguration") if err != nil { panic(err) } if val != nil { - return val.(*MicrosoftLauncherSearchBarPlacement) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherSearchBarPlacementConfiguration) } return nil } @@ -2528,24 +2528,24 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPasswordPreviousPasswo return nil } // GetPasswordRequiredType gets the passwordRequiredType property value. Indicates the minimum password quality required on the device. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPasswordRequiredType()(*AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequiredType) { val, err := m.GetBackingStore().Get("passwordRequiredType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerRequiredPasswordType) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequiredType) } return nil } // GetPasswordRequireUnlock gets the passwordRequireUnlock property value. Indicates the timeout period after which a device must be unlocked using a form of strong authentication. Possible values are: deviceDefault, daily, unkownFutureValue. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPasswordRequireUnlock()(*AndroidDeviceOwnerRequiredPasswordUnlock) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPasswordRequireUnlock()(*AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequireUnlock) { val, err := m.GetBackingStore().Get("passwordRequireUnlock") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerRequiredPasswordUnlock) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequireUnlock) } return nil } @@ -2594,13 +2594,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPersonalProfilePersona return nil } // GetPersonalProfilePlayStoreMode gets the personalProfilePlayStoreMode property value. Used together with PersonalProfilePersonalApplications to control how apps in the personal profile are allowed or blocked. Possible values are: notConfigured, blockedApps, allowedApps. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPersonalProfilePlayStoreMode()(*PersonalProfilePersonalPlayStoreMode) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPersonalProfilePlayStoreMode()(*AndroidDeviceOwnerGeneralDeviceConfiguration_personalProfilePlayStoreMode) { val, err := m.GetBackingStore().Get("personalProfilePlayStoreMode") if err != nil { panic(err) } if val != nil { - return val.(*PersonalProfilePersonalPlayStoreMode) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_personalProfilePlayStoreMode) } return nil } @@ -2616,13 +2616,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPersonalProfileScreenC return nil } // GetPlayStoreMode gets the playStoreMode property value. Indicates the Play Store mode of the device. Possible values are: notConfigured, allowList, blockList. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPlayStoreMode()(*AndroidDeviceOwnerPlayStoreMode) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetPlayStoreMode()(*AndroidDeviceOwnerGeneralDeviceConfiguration_playStoreMode) { val, err := m.GetBackingStore().Get("playStoreMode") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerPlayStoreMode) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_playStoreMode) } return nil } @@ -2759,13 +2759,13 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetSystemUpdateFreezePeri return nil } // GetSystemUpdateInstallType gets the systemUpdateInstallType property value. The type of system update configuration. Possible values are: deviceDefault, postpone, windowed, automatic. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetSystemUpdateInstallType()(*AndroidDeviceOwnerSystemUpdateInstallType) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetSystemUpdateInstallType()(*AndroidDeviceOwnerGeneralDeviceConfiguration_systemUpdateInstallType) { val, err := m.GetBackingStore().Get("systemUpdateInstallType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerSystemUpdateInstallType) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_systemUpdateInstallType) } return nil } @@ -2979,24 +2979,24 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetWorkProfilePasswordPre return nil } // GetWorkProfilePasswordRequiredType gets the workProfilePasswordRequiredType property value. Indicates the minimum password quality required on the work profile password. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetWorkProfilePasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetWorkProfilePasswordRequiredType()(*AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequiredType) { val, err := m.GetBackingStore().Get("workProfilePasswordRequiredType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerRequiredPasswordType) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequiredType) } return nil } // GetWorkProfilePasswordRequireUnlock gets the workProfilePasswordRequireUnlock property value. Indicates the timeout period after which a work profile must be unlocked using a form of strong authentication. Possible values are: deviceDefault, daily, unkownFutureValue. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetWorkProfilePasswordRequireUnlock()(*AndroidDeviceOwnerRequiredPasswordUnlock) { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) GetWorkProfilePasswordRequireUnlock()(*AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequireUnlock) { val, err := m.GetBackingStore().Get("workProfilePasswordRequireUnlock") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerRequiredPasswordUnlock) + return val.(*AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequireUnlock) } return nil } @@ -3939,14 +3939,14 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetAppsAllowInstallFromUn } } // SetAppsAutoUpdatePolicy sets the appsAutoUpdatePolicy property value. Indicates the value of the app auto update policy. Possible values are: notConfigured, userChoice, never, wiFiOnly, always. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetAppsAutoUpdatePolicy(value *AndroidDeviceOwnerAppAutoUpdatePolicyType)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetAppsAutoUpdatePolicy(value *AndroidDeviceOwnerGeneralDeviceConfiguration_appsAutoUpdatePolicy)() { err := m.GetBackingStore().Set("appsAutoUpdatePolicy", value) if err != nil { panic(err) } } // SetAppsDefaultPermissionPolicy sets the appsDefaultPermissionPolicy property value. Indicates the permission policy for requests for runtime permissions if one is not defined for the app specifically. Possible values are: deviceDefault, prompt, autoGrant, autoDeny. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetAppsDefaultPermissionPolicy(value *AndroidDeviceOwnerDefaultAppPermissionPolicyType)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetAppsDefaultPermissionPolicy(value *AndroidDeviceOwnerGeneralDeviceConfiguration_appsDefaultPermissionPolicy)() { err := m.GetBackingStore().Set("appsDefaultPermissionPolicy", value) if err != nil { panic(err) @@ -4009,7 +4009,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetCrossProfilePoliciesAl } } // SetCrossProfilePoliciesAllowDataSharing sets the crossProfilePoliciesAllowDataSharing property value. Indicates whether data from one profile (personal or work) can be shared with apps in the other profile. Possible values are: notConfigured, crossProfileDataSharingBlocked, dataSharingFromWorkToPersonalBlocked, crossProfileDataSharingAllowed, unkownFutureValue. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetCrossProfilePoliciesAllowDataSharing(value *AndroidDeviceOwnerCrossProfileDataSharing)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetCrossProfilePoliciesAllowDataSharing(value *AndroidDeviceOwnerGeneralDeviceConfiguration_crossProfilePoliciesAllowDataSharing)() { err := m.GetBackingStore().Set("crossProfilePoliciesAllowDataSharing", value) if err != nil { panic(err) @@ -4044,7 +4044,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetDetailedHelpText(value } } // SetDeviceLocationMode sets the deviceLocationMode property value. Indicates the location setting configuration for fully managed devices (COBO) and corporate owned devices with a work profile (COPE) -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetDeviceLocationMode(value *AndroidDeviceOwnerLocationMode)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetDeviceLocationMode(value *AndroidDeviceOwnerGeneralDeviceConfiguration_deviceLocationMode)() { err := m.GetBackingStore().Set("deviceLocationMode", value) if err != nil { panic(err) @@ -4107,7 +4107,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskCustomizationPowe } } // SetKioskCustomizationStatusBar sets the kioskCustomizationStatusBar property value. Indicates whether system info and notifications are disabled in Kiosk Mode. Possible values are: notConfigured, notificationsAndSystemInfoEnabled, systemInfoOnly. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskCustomizationStatusBar(value *AndroidDeviceOwnerKioskCustomizationStatusBar)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskCustomizationStatusBar(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationStatusBar)() { err := m.GetBackingStore().Set("kioskCustomizationStatusBar", value) if err != nil { panic(err) @@ -4121,7 +4121,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskCustomizationSyst } } // SetKioskCustomizationSystemNavigation sets the kioskCustomizationSystemNavigation property value. Indicates which navigation features are enabled in Kiosk Mode. Possible values are: notConfigured, navigationEnabled, homeButtonOnly. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskCustomizationSystemNavigation(value *AndroidDeviceOwnerKioskCustomizationSystemNavigation)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskCustomizationSystemNavigation(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationSystemNavigation)() { err := m.GetBackingStore().Set("kioskCustomizationSystemNavigation", value) if err != nil { panic(err) @@ -4184,7 +4184,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeFlashlightCon } } // SetKioskModeFolderIcon sets the kioskModeFolderIcon property value. Folder icon configuration for managed home screen in Kiosk Mode. Possible values are: notConfigured, darkSquare, darkCircle, lightSquare, lightCircle. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeFolderIcon(value *AndroidDeviceOwnerKioskModeFolderIcon)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeFolderIcon(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeFolderIcon)() { err := m.GetBackingStore().Set("kioskModeFolderIcon", value) if err != nil { panic(err) @@ -4205,7 +4205,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeGridWidth(val } } // SetKioskModeIconSize sets the kioskModeIconSize property value. Icon size configuration for managed home screen in Kiosk Mode. Possible values are: notConfigured, smallest, small, regular, large, largest. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeIconSize(value *AndroidDeviceOwnerKioskModeIconSize)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeIconSize(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeIconSize)() { err := m.GetBackingStore().Set("kioskModeIconSize", value) if err != nil { panic(err) @@ -4247,7 +4247,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeManagedHomeSc } } // SetKioskModeManagedHomeScreenPinComplexity sets the kioskModeManagedHomeScreenPinComplexity property value. Complexity of PIN for sign-in session for Managed Home Screen. Possible values are: notConfigured, simple, complex. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeManagedHomeScreenPinComplexity(value *KioskModeManagedHomeScreenPinComplexity)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeManagedHomeScreenPinComplexity(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeManagedHomeScreenPinComplexity)() { err := m.GetBackingStore().Set("kioskModeManagedHomeScreenPinComplexity", value) if err != nil { panic(err) @@ -4303,7 +4303,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeMediaVolumeCo } } // SetKioskModeScreenOrientation sets the kioskModeScreenOrientation property value. Screen orientation configuration for managed home screen in Kiosk Mode. Possible values are: notConfigured, portrait, landscape, autoRotate. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeScreenOrientation(value *AndroidDeviceOwnerKioskModeScreenOrientation)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeScreenOrientation(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeScreenOrientation)() { err := m.GetBackingStore().Set("kioskModeScreenOrientation", value) if err != nil { panic(err) @@ -4359,7 +4359,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeShowDeviceInf } } // SetKioskModeUseManagedHomeScreenApp sets the kioskModeUseManagedHomeScreenApp property value. Whether or not to use single app kiosk mode or multi-app kiosk mode. Possible values are: notConfigured, singleAppMode, multiAppMode. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeUseManagedHomeScreenApp(value *KioskModeType)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeUseManagedHomeScreenApp(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeUseManagedHomeScreenApp)() { err := m.GetBackingStore().Set("kioskModeUseManagedHomeScreenApp", value) if err != nil { panic(err) @@ -4373,7 +4373,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeVirtualHomeBu } } // SetKioskModeVirtualHomeButtonType sets the kioskModeVirtualHomeButtonType property value. Indicates whether the virtual home button is a swipe up home button or a floating home button. Possible values are: notConfigured, swipeUp, floating. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeVirtualHomeButtonType(value *AndroidDeviceOwnerVirtualHomeButtonType)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetKioskModeVirtualHomeButtonType(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeVirtualHomeButtonType)() { err := m.GetBackingStore().Set("kioskModeVirtualHomeButtonType", value) if err != nil { panic(err) @@ -4457,7 +4457,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetMicrosoftLauncherDockP } } // SetMicrosoftLauncherDockPresenceConfiguration sets the microsoftLauncherDockPresenceConfiguration property value. Indicates whether or not you want to configure the device dock. Possible values are: notConfigured, show, hide, disabled. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetMicrosoftLauncherDockPresenceConfiguration(value *MicrosoftLauncherDockPresence)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetMicrosoftLauncherDockPresenceConfiguration(value *AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherDockPresenceConfiguration)() { err := m.GetBackingStore().Set("microsoftLauncherDockPresenceConfiguration", value) if err != nil { panic(err) @@ -4478,7 +4478,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetMicrosoftLauncherFeedE } } // SetMicrosoftLauncherSearchBarPlacementConfiguration sets the microsoftLauncherSearchBarPlacementConfiguration property value. Indicates the search bar placement configuration on the device. Possible values are: notConfigured, top, bottom, hide. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetMicrosoftLauncherSearchBarPlacementConfiguration(value *MicrosoftLauncherSearchBarPlacement)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetMicrosoftLauncherSearchBarPlacementConfiguration(value *AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherSearchBarPlacementConfiguration)() { err := m.GetBackingStore().Set("microsoftLauncherSearchBarPlacementConfiguration", value) if err != nil { panic(err) @@ -4583,14 +4583,14 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPasswordPreviousPasswo } } // SetPasswordRequiredType sets the passwordRequiredType property value. Indicates the minimum password quality required on the device. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPasswordRequiredType(value *AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequiredType)() { err := m.GetBackingStore().Set("passwordRequiredType", value) if err != nil { panic(err) } } // SetPasswordRequireUnlock sets the passwordRequireUnlock property value. Indicates the timeout period after which a device must be unlocked using a form of strong authentication. Possible values are: deviceDefault, daily, unkownFutureValue. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPasswordRequireUnlock(value *AndroidDeviceOwnerRequiredPasswordUnlock)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPasswordRequireUnlock(value *AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequireUnlock)() { err := m.GetBackingStore().Set("passwordRequireUnlock", value) if err != nil { panic(err) @@ -4625,7 +4625,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPersonalProfilePersona } } // SetPersonalProfilePlayStoreMode sets the personalProfilePlayStoreMode property value. Used together with PersonalProfilePersonalApplications to control how apps in the personal profile are allowed or blocked. Possible values are: notConfigured, blockedApps, allowedApps. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPersonalProfilePlayStoreMode(value *PersonalProfilePersonalPlayStoreMode)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPersonalProfilePlayStoreMode(value *AndroidDeviceOwnerGeneralDeviceConfiguration_personalProfilePlayStoreMode)() { err := m.GetBackingStore().Set("personalProfilePlayStoreMode", value) if err != nil { panic(err) @@ -4639,7 +4639,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPersonalProfileScreenC } } // SetPlayStoreMode sets the playStoreMode property value. Indicates the Play Store mode of the device. Possible values are: notConfigured, allowList, blockList. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPlayStoreMode(value *AndroidDeviceOwnerPlayStoreMode)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetPlayStoreMode(value *AndroidDeviceOwnerGeneralDeviceConfiguration_playStoreMode)() { err := m.GetBackingStore().Set("playStoreMode", value) if err != nil { panic(err) @@ -4730,7 +4730,7 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetSystemUpdateFreezePeri } } // SetSystemUpdateInstallType sets the systemUpdateInstallType property value. The type of system update configuration. Possible values are: deviceDefault, postpone, windowed, automatic. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetSystemUpdateInstallType(value *AndroidDeviceOwnerSystemUpdateInstallType)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetSystemUpdateInstallType(value *AndroidDeviceOwnerGeneralDeviceConfiguration_systemUpdateInstallType)() { err := m.GetBackingStore().Set("systemUpdateInstallType", value) if err != nil { panic(err) @@ -4870,14 +4870,14 @@ func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetWorkProfilePasswordPre } } // SetWorkProfilePasswordRequiredType sets the workProfilePasswordRequiredType property value. Indicates the minimum password quality required on the work profile password. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetWorkProfilePasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetWorkProfilePasswordRequiredType(value *AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequiredType)() { err := m.GetBackingStore().Set("workProfilePasswordRequiredType", value) if err != nil { panic(err) } } // SetWorkProfilePasswordRequireUnlock sets the workProfilePasswordRequireUnlock property value. Indicates the timeout period after which a work profile must be unlocked using a form of strong authentication. Possible values are: deviceDefault, daily, unkownFutureValue. -func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetWorkProfilePasswordRequireUnlock(value *AndroidDeviceOwnerRequiredPasswordUnlock)() { +func (m *AndroidDeviceOwnerGeneralDeviceConfiguration) SetWorkProfilePasswordRequireUnlock(value *AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequireUnlock)() { err := m.GetBackingStore().Set("workProfilePasswordRequireUnlock", value) if err != nil { panic(err) @@ -4897,8 +4897,8 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetAccountsBlockModification()(*bool) GetAndroidDeviceOwnerDelegatedScopeAppSettings()([]AndroidDeviceOwnerDelegatedScopeAppSettingable) GetAppsAllowInstallFromUnknownSources()(*bool) - GetAppsAutoUpdatePolicy()(*AndroidDeviceOwnerAppAutoUpdatePolicyType) - GetAppsDefaultPermissionPolicy()(*AndroidDeviceOwnerDefaultAppPermissionPolicyType) + GetAppsAutoUpdatePolicy()(*AndroidDeviceOwnerGeneralDeviceConfiguration_appsAutoUpdatePolicy) + GetAppsDefaultPermissionPolicy()(*AndroidDeviceOwnerGeneralDeviceConfiguration_appsDefaultPermissionPolicy) GetAppsRecommendSkippingFirstUseHints()(*bool) GetAzureAdSharedDeviceDataClearApps()([]AppListItemable) GetBluetoothBlockConfiguration()(*bool) @@ -4907,12 +4907,12 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetCellularBlockWiFiTethering()(*bool) GetCertificateCredentialConfigurationDisabled()(*bool) GetCrossProfilePoliciesAllowCopyPaste()(*bool) - GetCrossProfilePoliciesAllowDataSharing()(*AndroidDeviceOwnerCrossProfileDataSharing) + GetCrossProfilePoliciesAllowDataSharing()(*AndroidDeviceOwnerGeneralDeviceConfiguration_crossProfilePoliciesAllowDataSharing) GetCrossProfilePoliciesShowWorkContactsInPersonalProfile()(*bool) GetDataRoamingBlocked()(*bool) GetDateTimeConfigurationBlocked()(*bool) GetDetailedHelpText()(AndroidDeviceOwnerUserFacingMessageable) - GetDeviceLocationMode()(*AndroidDeviceOwnerLocationMode) + GetDeviceLocationMode()(*AndroidDeviceOwnerGeneralDeviceConfiguration_deviceLocationMode) GetDeviceOwnerLockScreenMessage()(AndroidDeviceOwnerUserFacingMessageable) GetEnrollmentProfile()(*AndroidDeviceOwnerEnrollmentProfileType) GetFactoryResetBlocked()(*bool) @@ -4921,9 +4921,9 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetGoogleAccountsBlocked()(*bool) GetKioskCustomizationDeviceSettingsBlocked()(*bool) GetKioskCustomizationPowerButtonActionsBlocked()(*bool) - GetKioskCustomizationStatusBar()(*AndroidDeviceOwnerKioskCustomizationStatusBar) + GetKioskCustomizationStatusBar()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationStatusBar) GetKioskCustomizationSystemErrorWarnings()(*bool) - GetKioskCustomizationSystemNavigation()(*AndroidDeviceOwnerKioskCustomizationSystemNavigation) + GetKioskCustomizationSystemNavigation()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationSystemNavigation) GetKioskModeAppOrderEnabled()(*bool) GetKioskModeAppPositions()([]AndroidDeviceOwnerKioskModeAppPositionItemable) GetKioskModeApps()([]AppListItemable) @@ -4932,16 +4932,16 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetKioskModeDebugMenuEasyAccessEnabled()(*bool) GetKioskModeExitCode()(*string) GetKioskModeFlashlightConfigurationEnabled()(*bool) - GetKioskModeFolderIcon()(*AndroidDeviceOwnerKioskModeFolderIcon) + GetKioskModeFolderIcon()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeFolderIcon) GetKioskModeGridHeight()(*int32) GetKioskModeGridWidth()(*int32) - GetKioskModeIconSize()(*AndroidDeviceOwnerKioskModeIconSize) + GetKioskModeIconSize()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeIconSize) GetKioskModeLockHomeScreen()(*bool) GetKioskModeManagedFolders()([]AndroidDeviceOwnerKioskModeManagedFolderable) GetKioskModeManagedHomeScreenAutoSignout()(*bool) GetKioskModeManagedHomeScreenInactiveSignOutDelayInSeconds()(*int32) GetKioskModeManagedHomeScreenInactiveSignOutNoticeInSeconds()(*int32) - GetKioskModeManagedHomeScreenPinComplexity()(*KioskModeManagedHomeScreenPinComplexity) + GetKioskModeManagedHomeScreenPinComplexity()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeManagedHomeScreenPinComplexity) GetKioskModeManagedHomeScreenPinRequired()(*bool) GetKioskModeManagedHomeScreenPinRequiredToResume()(*bool) GetKioskModeManagedHomeScreenSignInBackground()(*string) @@ -4949,7 +4949,7 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetKioskModeManagedHomeScreenSignInEnabled()(*bool) GetKioskModeManagedSettingsEntryDisabled()(*bool) GetKioskModeMediaVolumeConfigurationEnabled()(*bool) - GetKioskModeScreenOrientation()(*AndroidDeviceOwnerKioskModeScreenOrientation) + GetKioskModeScreenOrientation()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeScreenOrientation) GetKioskModeScreenSaverConfigurationEnabled()(*bool) GetKioskModeScreenSaverDetectMediaDisabled()(*bool) GetKioskModeScreenSaverDisplayTimeInSeconds()(*int32) @@ -4957,9 +4957,9 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetKioskModeScreenSaverStartDelayInSeconds()(*int32) GetKioskModeShowAppNotificationBadge()(*bool) GetKioskModeShowDeviceInfo()(*bool) - GetKioskModeUseManagedHomeScreenApp()(*KioskModeType) + GetKioskModeUseManagedHomeScreenApp()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeUseManagedHomeScreenApp) GetKioskModeVirtualHomeButtonEnabled()(*bool) - GetKioskModeVirtualHomeButtonType()(*AndroidDeviceOwnerVirtualHomeButtonType) + GetKioskModeVirtualHomeButtonType()(*AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeVirtualHomeButtonType) GetKioskModeWallpaperUrl()(*string) GetKioskModeWifiAllowedSsids()([]string) GetKioskModeWiFiConfigurationEnabled()(*bool) @@ -4971,10 +4971,10 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetMicrosoftLauncherCustomWallpaperEnabled()(*bool) GetMicrosoftLauncherCustomWallpaperImageUrl()(*string) GetMicrosoftLauncherDockPresenceAllowUserModification()(*bool) - GetMicrosoftLauncherDockPresenceConfiguration()(*MicrosoftLauncherDockPresence) + GetMicrosoftLauncherDockPresenceConfiguration()(*AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherDockPresenceConfiguration) GetMicrosoftLauncherFeedAllowUserModification()(*bool) GetMicrosoftLauncherFeedEnabled()(*bool) - GetMicrosoftLauncherSearchBarPlacementConfiguration()(*MicrosoftLauncherSearchBarPlacement) + GetMicrosoftLauncherSearchBarPlacementConfiguration()(*AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherSearchBarPlacementConfiguration) GetNetworkEscapeHatchAllowed()(*bool) GetNfcBlockOutgoingBeam()(*bool) GetPasswordBlockKeyguard()(*bool) @@ -4989,15 +4989,15 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetPasswordMinimumUpperCaseCharacters()(*int32) GetPasswordMinutesOfInactivityBeforeScreenTimeout()(*int32) GetPasswordPreviousPasswordCountToBlock()(*int32) - GetPasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) - GetPasswordRequireUnlock()(*AndroidDeviceOwnerRequiredPasswordUnlock) + GetPasswordRequiredType()(*AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequiredType) + GetPasswordRequireUnlock()(*AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequireUnlock) GetPasswordSignInFailureCountBeforeFactoryReset()(*int32) GetPersonalProfileAppsAllowInstallFromUnknownSources()(*bool) GetPersonalProfileCameraBlocked()(*bool) GetPersonalProfilePersonalApplications()([]AppListItemable) - GetPersonalProfilePlayStoreMode()(*PersonalProfilePersonalPlayStoreMode) + GetPersonalProfilePlayStoreMode()(*AndroidDeviceOwnerGeneralDeviceConfiguration_personalProfilePlayStoreMode) GetPersonalProfileScreenCaptureBlocked()(*bool) - GetPlayStoreMode()(*AndroidDeviceOwnerPlayStoreMode) + GetPlayStoreMode()(*AndroidDeviceOwnerGeneralDeviceConfiguration_playStoreMode) GetScreenCaptureBlocked()(*bool) GetSecurityCommonCriteriaModeEnabled()(*bool) GetSecurityDeveloperSettingsEnabled()(*bool) @@ -5010,7 +5010,7 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetStorageBlockExternalMedia()(*bool) GetStorageBlockUsbFileTransfer()(*bool) GetSystemUpdateFreezePeriods()([]AndroidDeviceOwnerSystemUpdateFreezePeriodable) - GetSystemUpdateInstallType()(*AndroidDeviceOwnerSystemUpdateInstallType) + GetSystemUpdateInstallType()(*AndroidDeviceOwnerGeneralDeviceConfiguration_systemUpdateInstallType) GetSystemUpdateWindowEndMinutesAfterMidnight()(*int32) GetSystemUpdateWindowStartMinutesAfterMidnight()(*int32) GetSystemWindowsBlocked()(*bool) @@ -5030,14 +5030,14 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { GetWorkProfilePasswordMinimumSymbolCharacters()(*int32) GetWorkProfilePasswordMinimumUpperCaseCharacters()(*int32) GetWorkProfilePasswordPreviousPasswordCountToBlock()(*int32) - GetWorkProfilePasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) - GetWorkProfilePasswordRequireUnlock()(*AndroidDeviceOwnerRequiredPasswordUnlock) + GetWorkProfilePasswordRequiredType()(*AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequiredType) + GetWorkProfilePasswordRequireUnlock()(*AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequireUnlock) GetWorkProfilePasswordSignInFailureCountBeforeFactoryReset()(*int32) SetAccountsBlockModification(value *bool)() SetAndroidDeviceOwnerDelegatedScopeAppSettings(value []AndroidDeviceOwnerDelegatedScopeAppSettingable)() SetAppsAllowInstallFromUnknownSources(value *bool)() - SetAppsAutoUpdatePolicy(value *AndroidDeviceOwnerAppAutoUpdatePolicyType)() - SetAppsDefaultPermissionPolicy(value *AndroidDeviceOwnerDefaultAppPermissionPolicyType)() + SetAppsAutoUpdatePolicy(value *AndroidDeviceOwnerGeneralDeviceConfiguration_appsAutoUpdatePolicy)() + SetAppsDefaultPermissionPolicy(value *AndroidDeviceOwnerGeneralDeviceConfiguration_appsDefaultPermissionPolicy)() SetAppsRecommendSkippingFirstUseHints(value *bool)() SetAzureAdSharedDeviceDataClearApps(value []AppListItemable)() SetBluetoothBlockConfiguration(value *bool)() @@ -5046,12 +5046,12 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetCellularBlockWiFiTethering(value *bool)() SetCertificateCredentialConfigurationDisabled(value *bool)() SetCrossProfilePoliciesAllowCopyPaste(value *bool)() - SetCrossProfilePoliciesAllowDataSharing(value *AndroidDeviceOwnerCrossProfileDataSharing)() + SetCrossProfilePoliciesAllowDataSharing(value *AndroidDeviceOwnerGeneralDeviceConfiguration_crossProfilePoliciesAllowDataSharing)() SetCrossProfilePoliciesShowWorkContactsInPersonalProfile(value *bool)() SetDataRoamingBlocked(value *bool)() SetDateTimeConfigurationBlocked(value *bool)() SetDetailedHelpText(value AndroidDeviceOwnerUserFacingMessageable)() - SetDeviceLocationMode(value *AndroidDeviceOwnerLocationMode)() + SetDeviceLocationMode(value *AndroidDeviceOwnerGeneralDeviceConfiguration_deviceLocationMode)() SetDeviceOwnerLockScreenMessage(value AndroidDeviceOwnerUserFacingMessageable)() SetEnrollmentProfile(value *AndroidDeviceOwnerEnrollmentProfileType)() SetFactoryResetBlocked(value *bool)() @@ -5060,9 +5060,9 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetGoogleAccountsBlocked(value *bool)() SetKioskCustomizationDeviceSettingsBlocked(value *bool)() SetKioskCustomizationPowerButtonActionsBlocked(value *bool)() - SetKioskCustomizationStatusBar(value *AndroidDeviceOwnerKioskCustomizationStatusBar)() + SetKioskCustomizationStatusBar(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationStatusBar)() SetKioskCustomizationSystemErrorWarnings(value *bool)() - SetKioskCustomizationSystemNavigation(value *AndroidDeviceOwnerKioskCustomizationSystemNavigation)() + SetKioskCustomizationSystemNavigation(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskCustomizationSystemNavigation)() SetKioskModeAppOrderEnabled(value *bool)() SetKioskModeAppPositions(value []AndroidDeviceOwnerKioskModeAppPositionItemable)() SetKioskModeApps(value []AppListItemable)() @@ -5071,16 +5071,16 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetKioskModeDebugMenuEasyAccessEnabled(value *bool)() SetKioskModeExitCode(value *string)() SetKioskModeFlashlightConfigurationEnabled(value *bool)() - SetKioskModeFolderIcon(value *AndroidDeviceOwnerKioskModeFolderIcon)() + SetKioskModeFolderIcon(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeFolderIcon)() SetKioskModeGridHeight(value *int32)() SetKioskModeGridWidth(value *int32)() - SetKioskModeIconSize(value *AndroidDeviceOwnerKioskModeIconSize)() + SetKioskModeIconSize(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeIconSize)() SetKioskModeLockHomeScreen(value *bool)() SetKioskModeManagedFolders(value []AndroidDeviceOwnerKioskModeManagedFolderable)() SetKioskModeManagedHomeScreenAutoSignout(value *bool)() SetKioskModeManagedHomeScreenInactiveSignOutDelayInSeconds(value *int32)() SetKioskModeManagedHomeScreenInactiveSignOutNoticeInSeconds(value *int32)() - SetKioskModeManagedHomeScreenPinComplexity(value *KioskModeManagedHomeScreenPinComplexity)() + SetKioskModeManagedHomeScreenPinComplexity(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeManagedHomeScreenPinComplexity)() SetKioskModeManagedHomeScreenPinRequired(value *bool)() SetKioskModeManagedHomeScreenPinRequiredToResume(value *bool)() SetKioskModeManagedHomeScreenSignInBackground(value *string)() @@ -5088,7 +5088,7 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetKioskModeManagedHomeScreenSignInEnabled(value *bool)() SetKioskModeManagedSettingsEntryDisabled(value *bool)() SetKioskModeMediaVolumeConfigurationEnabled(value *bool)() - SetKioskModeScreenOrientation(value *AndroidDeviceOwnerKioskModeScreenOrientation)() + SetKioskModeScreenOrientation(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeScreenOrientation)() SetKioskModeScreenSaverConfigurationEnabled(value *bool)() SetKioskModeScreenSaverDetectMediaDisabled(value *bool)() SetKioskModeScreenSaverDisplayTimeInSeconds(value *int32)() @@ -5096,9 +5096,9 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetKioskModeScreenSaverStartDelayInSeconds(value *int32)() SetKioskModeShowAppNotificationBadge(value *bool)() SetKioskModeShowDeviceInfo(value *bool)() - SetKioskModeUseManagedHomeScreenApp(value *KioskModeType)() + SetKioskModeUseManagedHomeScreenApp(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeUseManagedHomeScreenApp)() SetKioskModeVirtualHomeButtonEnabled(value *bool)() - SetKioskModeVirtualHomeButtonType(value *AndroidDeviceOwnerVirtualHomeButtonType)() + SetKioskModeVirtualHomeButtonType(value *AndroidDeviceOwnerGeneralDeviceConfiguration_kioskModeVirtualHomeButtonType)() SetKioskModeWallpaperUrl(value *string)() SetKioskModeWifiAllowedSsids(value []string)() SetKioskModeWiFiConfigurationEnabled(value *bool)() @@ -5110,10 +5110,10 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetMicrosoftLauncherCustomWallpaperEnabled(value *bool)() SetMicrosoftLauncherCustomWallpaperImageUrl(value *string)() SetMicrosoftLauncherDockPresenceAllowUserModification(value *bool)() - SetMicrosoftLauncherDockPresenceConfiguration(value *MicrosoftLauncherDockPresence)() + SetMicrosoftLauncherDockPresenceConfiguration(value *AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherDockPresenceConfiguration)() SetMicrosoftLauncherFeedAllowUserModification(value *bool)() SetMicrosoftLauncherFeedEnabled(value *bool)() - SetMicrosoftLauncherSearchBarPlacementConfiguration(value *MicrosoftLauncherSearchBarPlacement)() + SetMicrosoftLauncherSearchBarPlacementConfiguration(value *AndroidDeviceOwnerGeneralDeviceConfiguration_microsoftLauncherSearchBarPlacementConfiguration)() SetNetworkEscapeHatchAllowed(value *bool)() SetNfcBlockOutgoingBeam(value *bool)() SetPasswordBlockKeyguard(value *bool)() @@ -5128,15 +5128,15 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetPasswordMinimumUpperCaseCharacters(value *int32)() SetPasswordMinutesOfInactivityBeforeScreenTimeout(value *int32)() SetPasswordPreviousPasswordCountToBlock(value *int32)() - SetPasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() - SetPasswordRequireUnlock(value *AndroidDeviceOwnerRequiredPasswordUnlock)() + SetPasswordRequiredType(value *AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequiredType)() + SetPasswordRequireUnlock(value *AndroidDeviceOwnerGeneralDeviceConfiguration_passwordRequireUnlock)() SetPasswordSignInFailureCountBeforeFactoryReset(value *int32)() SetPersonalProfileAppsAllowInstallFromUnknownSources(value *bool)() SetPersonalProfileCameraBlocked(value *bool)() SetPersonalProfilePersonalApplications(value []AppListItemable)() - SetPersonalProfilePlayStoreMode(value *PersonalProfilePersonalPlayStoreMode)() + SetPersonalProfilePlayStoreMode(value *AndroidDeviceOwnerGeneralDeviceConfiguration_personalProfilePlayStoreMode)() SetPersonalProfileScreenCaptureBlocked(value *bool)() - SetPlayStoreMode(value *AndroidDeviceOwnerPlayStoreMode)() + SetPlayStoreMode(value *AndroidDeviceOwnerGeneralDeviceConfiguration_playStoreMode)() SetScreenCaptureBlocked(value *bool)() SetSecurityCommonCriteriaModeEnabled(value *bool)() SetSecurityDeveloperSettingsEnabled(value *bool)() @@ -5149,7 +5149,7 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetStorageBlockExternalMedia(value *bool)() SetStorageBlockUsbFileTransfer(value *bool)() SetSystemUpdateFreezePeriods(value []AndroidDeviceOwnerSystemUpdateFreezePeriodable)() - SetSystemUpdateInstallType(value *AndroidDeviceOwnerSystemUpdateInstallType)() + SetSystemUpdateInstallType(value *AndroidDeviceOwnerGeneralDeviceConfiguration_systemUpdateInstallType)() SetSystemUpdateWindowEndMinutesAfterMidnight(value *int32)() SetSystemUpdateWindowStartMinutesAfterMidnight(value *int32)() SetSystemWindowsBlocked(value *bool)() @@ -5169,7 +5169,7 @@ type AndroidDeviceOwnerGeneralDeviceConfigurationable interface { SetWorkProfilePasswordMinimumSymbolCharacters(value *int32)() SetWorkProfilePasswordMinimumUpperCaseCharacters(value *int32)() SetWorkProfilePasswordPreviousPasswordCountToBlock(value *int32)() - SetWorkProfilePasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() - SetWorkProfilePasswordRequireUnlock(value *AndroidDeviceOwnerRequiredPasswordUnlock)() + SetWorkProfilePasswordRequiredType(value *AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequiredType)() + SetWorkProfilePasswordRequireUnlock(value *AndroidDeviceOwnerGeneralDeviceConfiguration_workProfilePasswordRequireUnlock)() SetWorkProfilePasswordSignInFailureCountBeforeFactoryReset(value *int32)() } diff --git a/models/android_device_owner_general_device_configuration_apps_auto_update_policy.go b/models/android_device_owner_general_device_configuration_apps_auto_update_policy.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_apps_default_permission_policy.go b/models/android_device_owner_general_device_configuration_apps_default_permission_policy.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_cross_profile_policies_allow_data_sharing.go b/models/android_device_owner_general_device_configuration_cross_profile_policies_allow_data_sharing.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_device_location_mode.go b/models/android_device_owner_general_device_configuration_device_location_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_kiosk_customization_status_bar.go b/models/android_device_owner_general_device_configuration_kiosk_customization_status_bar.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_kiosk_customization_system_navigation.go b/models/android_device_owner_general_device_configuration_kiosk_customization_system_navigation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_kiosk_mode_folder_icon.go b/models/android_device_owner_general_device_configuration_kiosk_mode_folder_icon.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_kiosk_mode_icon_size.go b/models/android_device_owner_general_device_configuration_kiosk_mode_icon_size.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_kiosk_mode_managed_home_screen_pin_complexity.go b/models/android_device_owner_general_device_configuration_kiosk_mode_managed_home_screen_pin_complexity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_kiosk_mode_screen_orientation.go b/models/android_device_owner_general_device_configuration_kiosk_mode_screen_orientation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_kiosk_mode_use_managed_home_screen_app.go b/models/android_device_owner_general_device_configuration_kiosk_mode_use_managed_home_screen_app.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_kiosk_mode_virtual_home_button_type.go b/models/android_device_owner_general_device_configuration_kiosk_mode_virtual_home_button_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_microsoft_launcher_dock_presence_configuration.go b/models/android_device_owner_general_device_configuration_microsoft_launcher_dock_presence_configuration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_microsoft_launcher_search_bar_placement_configuration.go b/models/android_device_owner_general_device_configuration_microsoft_launcher_search_bar_placement_configuration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_password_require_unlock.go b/models/android_device_owner_general_device_configuration_password_require_unlock.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_password_required_type.go b/models/android_device_owner_general_device_configuration_password_required_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_personal_profile_play_store_mode.go b/models/android_device_owner_general_device_configuration_personal_profile_play_store_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_play_store_mode.go b/models/android_device_owner_general_device_configuration_play_store_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_system_update_install_type.go b/models/android_device_owner_general_device_configuration_system_update_install_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_work_profile_password_require_unlock.go b/models/android_device_owner_general_device_configuration_work_profile_password_require_unlock.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_general_device_configuration_work_profile_password_required_type.go b/models/android_device_owner_general_device_configuration_work_profile_password_required_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_imported_p_f_x_certificate_profile.go b/models/android_device_owner_imported_p_f_x_certificate_profile.go index 6fe087adcc0..b113857e3fb 100644 --- a/models/android_device_owner_imported_p_f_x_certificate_profile.go +++ b/models/android_device_owner_imported_p_f_x_certificate_profile.go @@ -22,13 +22,13 @@ func CreateAndroidDeviceOwnerImportedPFXCertificateProfileFromDiscriminatorValue return NewAndroidDeviceOwnerImportedPFXCertificateProfile(), nil } // GetCertificateAccessType gets the certificateAccessType property value. Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue. -func (m *AndroidDeviceOwnerImportedPFXCertificateProfile) GetCertificateAccessType()(*AndroidDeviceOwnerCertificateAccessType) { +func (m *AndroidDeviceOwnerImportedPFXCertificateProfile) GetCertificateAccessType()(*AndroidDeviceOwnerImportedPFXCertificateProfile_certificateAccessType) { val, err := m.GetBackingStore().Get("certificateAccessType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerCertificateAccessType) + return val.(*AndroidDeviceOwnerImportedPFXCertificateProfile_certificateAccessType) } return nil } @@ -36,12 +36,12 @@ func (m *AndroidDeviceOwnerImportedPFXCertificateProfile) GetCertificateAccessTy func (m *AndroidDeviceOwnerImportedPFXCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidDeviceOwnerCertificateProfileBase.GetFieldDeserializers() res["certificateAccessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCertificateAccessType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerImportedPFXCertificateProfile_certificateAccessType) if err != nil { return err } if val != nil { - m.SetCertificateAccessType(val.(*AndroidDeviceOwnerCertificateAccessType)) + m.SetCertificateAccessType(val.(*AndroidDeviceOwnerImportedPFXCertificateProfile_certificateAccessType)) } return nil } @@ -169,7 +169,7 @@ func (m *AndroidDeviceOwnerImportedPFXCertificateProfile) Serialize(writer i878a return nil } // SetCertificateAccessType sets the certificateAccessType property value. Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue. -func (m *AndroidDeviceOwnerImportedPFXCertificateProfile) SetCertificateAccessType(value *AndroidDeviceOwnerCertificateAccessType)() { +func (m *AndroidDeviceOwnerImportedPFXCertificateProfile) SetCertificateAccessType(value *AndroidDeviceOwnerImportedPFXCertificateProfile_certificateAccessType)() { err := m.GetBackingStore().Set("certificateAccessType", value) if err != nil { panic(err) @@ -200,11 +200,11 @@ func (m *AndroidDeviceOwnerImportedPFXCertificateProfile) SetSilentCertificateAc type AndroidDeviceOwnerImportedPFXCertificateProfileable interface { AndroidDeviceOwnerCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateAccessType()(*AndroidDeviceOwnerCertificateAccessType) + GetCertificateAccessType()(*AndroidDeviceOwnerImportedPFXCertificateProfile_certificateAccessType) GetIntendedPurpose()(*IntendedPurpose) GetManagedDeviceCertificateStates()([]ManagedDeviceCertificateStateable) GetSilentCertificateAccessDetails()([]AndroidDeviceOwnerSilentCertificateAccessable) - SetCertificateAccessType(value *AndroidDeviceOwnerCertificateAccessType)() + SetCertificateAccessType(value *AndroidDeviceOwnerImportedPFXCertificateProfile_certificateAccessType)() SetIntendedPurpose(value *IntendedPurpose)() SetManagedDeviceCertificateStates(value []ManagedDeviceCertificateStateable)() SetSilentCertificateAccessDetails(value []AndroidDeviceOwnerSilentCertificateAccessable)() diff --git a/models/android_device_owner_imported_p_f_x_certificate_profile_certificate_access_type.go b/models/android_device_owner_imported_p_f_x_certificate_profile_certificate_access_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_kiosk_customization_status_bar.go b/models/android_device_owner_kiosk_customization_status_bar.go deleted file mode 100644 index d3799072a3d..00000000000 --- a/models/android_device_owner_kiosk_customization_status_bar.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// An enum representing possible values for kiosk customization system navigation. -type AndroidDeviceOwnerKioskCustomizationStatusBar int - -const ( - // Not configured; this value defaults to STATUS_BAR_UNSPECIFIED. - NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSTATUSBAR AndroidDeviceOwnerKioskCustomizationStatusBar = iota - // System info and notifications are shown on the status bar in kiosk mode. - NOTIFICATIONSANDSYSTEMINFOENABLED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSTATUSBAR - // Only system info is shown on the status bar in kiosk mode. - SYSTEMINFOONLY_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSTATUSBAR -) - -func (i AndroidDeviceOwnerKioskCustomizationStatusBar) String() string { - return []string{"notConfigured", "notificationsAndSystemInfoEnabled", "systemInfoOnly"}[i] -} -func ParseAndroidDeviceOwnerKioskCustomizationStatusBar(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSTATUSBAR - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSTATUSBAR - case "notificationsAndSystemInfoEnabled": - result = NOTIFICATIONSANDSYSTEMINFOENABLED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSTATUSBAR - case "systemInfoOnly": - result = SYSTEMINFOONLY_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSTATUSBAR - default: - return 0, errors.New("Unknown AndroidDeviceOwnerKioskCustomizationStatusBar value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerKioskCustomizationStatusBar(values []AndroidDeviceOwnerKioskCustomizationStatusBar) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerKioskCustomizationStatusBar) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_kiosk_customization_system_navigation.go b/models/android_device_owner_kiosk_customization_system_navigation.go deleted file mode 100644 index e2fba289690..00000000000 --- a/models/android_device_owner_kiosk_customization_system_navigation.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// An enum representing possible values for kiosk customization system navigation. -type AndroidDeviceOwnerKioskCustomizationSystemNavigation int - -const ( - // Not configured; this value defaults to NAVIGATION_DISABLED. - NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSYSTEMNAVIGATION AndroidDeviceOwnerKioskCustomizationSystemNavigation = iota - // Home and overview buttons are enabled. - NAVIGATIONENABLED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSYSTEMNAVIGATION - // Only the home button is enabled. - HOMEBUTTONONLY_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSYSTEMNAVIGATION -) - -func (i AndroidDeviceOwnerKioskCustomizationSystemNavigation) String() string { - return []string{"notConfigured", "navigationEnabled", "homeButtonOnly"}[i] -} -func ParseAndroidDeviceOwnerKioskCustomizationSystemNavigation(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSYSTEMNAVIGATION - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSYSTEMNAVIGATION - case "navigationEnabled": - result = NAVIGATIONENABLED_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSYSTEMNAVIGATION - case "homeButtonOnly": - result = HOMEBUTTONONLY_ANDROIDDEVICEOWNERKIOSKCUSTOMIZATIONSYSTEMNAVIGATION - default: - return 0, errors.New("Unknown AndroidDeviceOwnerKioskCustomizationSystemNavigation value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerKioskCustomizationSystemNavigation(values []AndroidDeviceOwnerKioskCustomizationSystemNavigation) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerKioskCustomizationSystemNavigation) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_kiosk_mode_folder_icon.go b/models/android_device_owner_kiosk_mode_folder_icon.go deleted file mode 100644 index 5ea17a6e094..00000000000 --- a/models/android_device_owner_kiosk_mode_folder_icon.go +++ /dev/null @@ -1,51 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner Kiosk Mode folder icon type. -type AndroidDeviceOwnerKioskModeFolderIcon int - -const ( - // Not configured; this value is ignored. - NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON AndroidDeviceOwnerKioskModeFolderIcon = iota - // Folder icon appears as dark square. - DARKSQUARE_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - // Folder icon appears as dark circle. - DARKCIRCLE_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - // Folder icon appears as light square. - LIGHTSQUARE_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - // Folder icon appears as light circle . - LIGHTCIRCLE_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON -) - -func (i AndroidDeviceOwnerKioskModeFolderIcon) String() string { - return []string{"notConfigured", "darkSquare", "darkCircle", "lightSquare", "lightCircle"}[i] -} -func ParseAndroidDeviceOwnerKioskModeFolderIcon(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - case "darkSquare": - result = DARKSQUARE_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - case "darkCircle": - result = DARKCIRCLE_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - case "lightSquare": - result = LIGHTSQUARE_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - case "lightCircle": - result = LIGHTCIRCLE_ANDROIDDEVICEOWNERKIOSKMODEFOLDERICON - default: - return 0, errors.New("Unknown AndroidDeviceOwnerKioskModeFolderIcon value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerKioskModeFolderIcon(values []AndroidDeviceOwnerKioskModeFolderIcon) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerKioskModeFolderIcon) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_kiosk_mode_icon_size.go b/models/android_device_owner_kiosk_mode_icon_size.go deleted file mode 100644 index 1386d5cda16..00000000000 --- a/models/android_device_owner_kiosk_mode_icon_size.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner Kiosk Mode managed home screen icon size. -type AndroidDeviceOwnerKioskModeIconSize int - -const ( - // Not configured; this value is ignored. - NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE AndroidDeviceOwnerKioskModeIconSize = iota - // Smallest icon size. - SMALLEST_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - // Small icon size. - SMALL_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - // Regular icon size. - REGULAR_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - // Large icon size. - LARGE_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - // Largest icon size. - LARGEST_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE -) - -func (i AndroidDeviceOwnerKioskModeIconSize) String() string { - return []string{"notConfigured", "smallest", "small", "regular", "large", "largest"}[i] -} -func ParseAndroidDeviceOwnerKioskModeIconSize(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - case "smallest": - result = SMALLEST_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - case "small": - result = SMALL_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - case "regular": - result = REGULAR_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - case "large": - result = LARGE_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - case "largest": - result = LARGEST_ANDROIDDEVICEOWNERKIOSKMODEICONSIZE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerKioskModeIconSize value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerKioskModeIconSize(values []AndroidDeviceOwnerKioskModeIconSize) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerKioskModeIconSize) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_kiosk_mode_screen_orientation.go b/models/android_device_owner_kiosk_mode_screen_orientation.go deleted file mode 100644 index a95076f4580..00000000000 --- a/models/android_device_owner_kiosk_mode_screen_orientation.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner Kiosk Mode managed home screen orientation. -type AndroidDeviceOwnerKioskModeScreenOrientation int - -const ( - // Not configured; this value is ignored. - NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION AndroidDeviceOwnerKioskModeScreenOrientation = iota - // Portrait orientation. - PORTRAIT_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION - // Landscape orientation. - LANDSCAPE_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION - // Auto rotate between portrait and landscape orientations. - AUTOROTATE_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION -) - -func (i AndroidDeviceOwnerKioskModeScreenOrientation) String() string { - return []string{"notConfigured", "portrait", "landscape", "autoRotate"}[i] -} -func ParseAndroidDeviceOwnerKioskModeScreenOrientation(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION - case "portrait": - result = PORTRAIT_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION - case "landscape": - result = LANDSCAPE_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION - case "autoRotate": - result = AUTOROTATE_ANDROIDDEVICEOWNERKIOSKMODESCREENORIENTATION - default: - return 0, errors.New("Unknown AndroidDeviceOwnerKioskModeScreenOrientation value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerKioskModeScreenOrientation(values []AndroidDeviceOwnerKioskModeScreenOrientation) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerKioskModeScreenOrientation) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_location_mode.go b/models/android_device_owner_location_mode.go deleted file mode 100644 index 548b4d3ded1..00000000000 --- a/models/android_device_owner_location_mode.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner Location Mode Type -type AndroidDeviceOwnerLocationMode int - -const ( - // No restrictions on the location setting and no specific behavior is set or enforced. This is the default - NOTCONFIGURED_ANDROIDDEVICEOWNERLOCATIONMODE AndroidDeviceOwnerLocationMode = iota - // Location setting is disabled on the device - DISABLED_ANDROIDDEVICEOWNERLOCATIONMODE - // Evolvable enumeration sentinel value. Do not use - UNKNOWNFUTUREVALUE_ANDROIDDEVICEOWNERLOCATIONMODE -) - -func (i AndroidDeviceOwnerLocationMode) String() string { - return []string{"notConfigured", "disabled", "unknownFutureValue"}[i] -} -func ParseAndroidDeviceOwnerLocationMode(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERLOCATIONMODE - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERLOCATIONMODE - case "disabled": - result = DISABLED_ANDROIDDEVICEOWNERLOCATIONMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ANDROIDDEVICEOWNERLOCATIONMODE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerLocationMode value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerLocationMode(values []AndroidDeviceOwnerLocationMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerLocationMode) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_pkcs_certificate_profile.go b/models/android_device_owner_pkcs_certificate_profile.go index bab8b2769ab..24ee689ab50 100644 --- a/models/android_device_owner_pkcs_certificate_profile.go +++ b/models/android_device_owner_pkcs_certificate_profile.go @@ -22,13 +22,13 @@ func CreateAndroidDeviceOwnerPkcsCertificateProfileFromDiscriminatorValue(parseN return NewAndroidDeviceOwnerPkcsCertificateProfile(), nil } // GetCertificateAccessType gets the certificateAccessType property value. Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue. -func (m *AndroidDeviceOwnerPkcsCertificateProfile) GetCertificateAccessType()(*AndroidDeviceOwnerCertificateAccessType) { +func (m *AndroidDeviceOwnerPkcsCertificateProfile) GetCertificateAccessType()(*AndroidDeviceOwnerPkcsCertificateProfile_certificateAccessType) { val, err := m.GetBackingStore().Get("certificateAccessType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerCertificateAccessType) + return val.(*AndroidDeviceOwnerPkcsCertificateProfile_certificateAccessType) } return nil } @@ -102,12 +102,12 @@ func (m *AndroidDeviceOwnerPkcsCertificateProfile) GetCustomSubjectAlternativeNa func (m *AndroidDeviceOwnerPkcsCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidDeviceOwnerCertificateProfileBase.GetFieldDeserializers() res["certificateAccessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCertificateAccessType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerPkcsCertificateProfile_certificateAccessType) if err != nil { return err } if val != nil { - m.SetCertificateAccessType(val.(*AndroidDeviceOwnerCertificateAccessType)) + m.SetCertificateAccessType(val.(*AndroidDeviceOwnerPkcsCertificateProfile_certificateAccessType)) } return nil } @@ -371,7 +371,7 @@ func (m *AndroidDeviceOwnerPkcsCertificateProfile) Serialize(writer i878a80d2330 return nil } // SetCertificateAccessType sets the certificateAccessType property value. Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue. -func (m *AndroidDeviceOwnerPkcsCertificateProfile) SetCertificateAccessType(value *AndroidDeviceOwnerCertificateAccessType)() { +func (m *AndroidDeviceOwnerPkcsCertificateProfile) SetCertificateAccessType(value *AndroidDeviceOwnerPkcsCertificateProfile_certificateAccessType)() { err := m.GetBackingStore().Set("certificateAccessType", value) if err != nil { panic(err) @@ -451,7 +451,7 @@ func (m *AndroidDeviceOwnerPkcsCertificateProfile) SetSubjectNameFormatString(va type AndroidDeviceOwnerPkcsCertificateProfileable interface { AndroidDeviceOwnerCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateAccessType()(*AndroidDeviceOwnerCertificateAccessType) + GetCertificateAccessType()(*AndroidDeviceOwnerPkcsCertificateProfile_certificateAccessType) GetCertificateStore()(*CertificateStore) GetCertificateTemplateName()(*string) GetCertificationAuthority()(*string) @@ -462,7 +462,7 @@ type AndroidDeviceOwnerPkcsCertificateProfileable interface { GetSilentCertificateAccessDetails()([]AndroidDeviceOwnerSilentCertificateAccessable) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateAccessType(value *AndroidDeviceOwnerCertificateAccessType)() + SetCertificateAccessType(value *AndroidDeviceOwnerPkcsCertificateProfile_certificateAccessType)() SetCertificateStore(value *CertificateStore)() SetCertificateTemplateName(value *string)() SetCertificationAuthority(value *string)() diff --git a/models/android_device_owner_pkcs_certificate_profile_certificate_access_type.go b/models/android_device_owner_pkcs_certificate_profile_certificate_access_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_play_store_mode.go b/models/android_device_owner_play_store_mode.go deleted file mode 100644 index 5b0f565c5d1..00000000000 --- a/models/android_device_owner_play_store_mode.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner Play Store mode type. -type AndroidDeviceOwnerPlayStoreMode int - -const ( - // Not Configured - NOTCONFIGURED_ANDROIDDEVICEOWNERPLAYSTOREMODE AndroidDeviceOwnerPlayStoreMode = iota - // Only apps that are in the policy are available and any app not in the policy will be automatically uninstalled from the device. - ALLOWLIST_ANDROIDDEVICEOWNERPLAYSTOREMODE - // All apps are available and any app that should not be on the device should be explicitly marked as 'BLOCKED' in the applications policy. - BLOCKLIST_ANDROIDDEVICEOWNERPLAYSTOREMODE -) - -func (i AndroidDeviceOwnerPlayStoreMode) String() string { - return []string{"notConfigured", "allowList", "blockList"}[i] -} -func ParseAndroidDeviceOwnerPlayStoreMode(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERPLAYSTOREMODE - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERPLAYSTOREMODE - case "allowList": - result = ALLOWLIST_ANDROIDDEVICEOWNERPLAYSTOREMODE - case "blockList": - result = BLOCKLIST_ANDROIDDEVICEOWNERPLAYSTOREMODE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerPlayStoreMode value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerPlayStoreMode(values []AndroidDeviceOwnerPlayStoreMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerPlayStoreMode) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_required_password_type.go b/models/android_device_owner_required_password_type.go deleted file mode 100644 index e571e864245..00000000000 --- a/models/android_device_owner_required_password_type.go +++ /dev/null @@ -1,67 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner policy required password type. -type AndroidDeviceOwnerRequiredPasswordType int - -const ( - // Device default value, no intent. - DEVICEDEFAULT_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE AndroidDeviceOwnerRequiredPasswordType = iota - // There must be a password set, but there are no restrictions on type. - REQUIRED_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - // At least numeric. - NUMERIC_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - // At least numeric with no repeating or ordered sequences. - NUMERICCOMPLEX_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - // At least alphabetic password. - ALPHABETIC_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - // At least alphanumeric password - ALPHANUMERIC_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - // At least alphanumeric with symbols. - ALPHANUMERICWITHSYMBOLS_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - // Low security biometrics based password required. - LOWSECURITYBIOMETRIC_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - // Custom password set by the admin. - CUSTOMPASSWORD_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE -) - -func (i AndroidDeviceOwnerRequiredPasswordType) String() string { - return []string{"deviceDefault", "required", "numeric", "numericComplex", "alphabetic", "alphanumeric", "alphanumericWithSymbols", "lowSecurityBiometric", "customPassword"}[i] -} -func ParseAndroidDeviceOwnerRequiredPasswordType(v string) (any, error) { - result := DEVICEDEFAULT_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - switch v { - case "deviceDefault": - result = DEVICEDEFAULT_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - case "required": - result = REQUIRED_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - case "numeric": - result = NUMERIC_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - case "numericComplex": - result = NUMERICCOMPLEX_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - case "alphabetic": - result = ALPHABETIC_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - case "alphanumeric": - result = ALPHANUMERIC_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - case "alphanumericWithSymbols": - result = ALPHANUMERICWITHSYMBOLS_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - case "lowSecurityBiometric": - result = LOWSECURITYBIOMETRIC_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - case "customPassword": - result = CUSTOMPASSWORD_ANDROIDDEVICEOWNERREQUIREDPASSWORDTYPE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerRequiredPasswordType value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerRequiredPasswordType(values []AndroidDeviceOwnerRequiredPasswordType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerRequiredPasswordType) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_required_password_unlock.go b/models/android_device_owner_required_password_unlock.go deleted file mode 100644 index 254d8969b0a..00000000000 --- a/models/android_device_owner_required_password_unlock.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// An enum representing possible values for required password unlock. -type AndroidDeviceOwnerRequiredPasswordUnlock int - -const ( - // Timeout period before strong authentication is required is set to the device's default. - DEVICEDEFAULT_ANDROIDDEVICEOWNERREQUIREDPASSWORDUNLOCK AndroidDeviceOwnerRequiredPasswordUnlock = iota - // Timeout period before strong authentication is required is set to 24 hours. - DAILY_ANDROIDDEVICEOWNERREQUIREDPASSWORDUNLOCK - // Unknown future value (reserved, not used right now) - UNKOWNFUTUREVALUE_ANDROIDDEVICEOWNERREQUIREDPASSWORDUNLOCK -) - -func (i AndroidDeviceOwnerRequiredPasswordUnlock) String() string { - return []string{"deviceDefault", "daily", "unkownFutureValue"}[i] -} -func ParseAndroidDeviceOwnerRequiredPasswordUnlock(v string) (any, error) { - result := DEVICEDEFAULT_ANDROIDDEVICEOWNERREQUIREDPASSWORDUNLOCK - switch v { - case "deviceDefault": - result = DEVICEDEFAULT_ANDROIDDEVICEOWNERREQUIREDPASSWORDUNLOCK - case "daily": - result = DAILY_ANDROIDDEVICEOWNERREQUIREDPASSWORDUNLOCK - case "unkownFutureValue": - result = UNKOWNFUTUREVALUE_ANDROIDDEVICEOWNERREQUIREDPASSWORDUNLOCK - default: - return 0, errors.New("Unknown AndroidDeviceOwnerRequiredPasswordUnlock value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerRequiredPasswordUnlock(values []AndroidDeviceOwnerRequiredPasswordUnlock) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerRequiredPasswordUnlock) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_scep_certificate_profile.go b/models/android_device_owner_scep_certificate_profile.go index 94cb2ebe9a0..6a7b6389f77 100644 --- a/models/android_device_owner_scep_certificate_profile.go +++ b/models/android_device_owner_scep_certificate_profile.go @@ -22,24 +22,24 @@ func CreateAndroidDeviceOwnerScepCertificateProfileFromDiscriminatorValue(parseN return NewAndroidDeviceOwnerScepCertificateProfile(), nil } // GetCertificateAccessType gets the certificateAccessType property value. Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue. -func (m *AndroidDeviceOwnerScepCertificateProfile) GetCertificateAccessType()(*AndroidDeviceOwnerCertificateAccessType) { +func (m *AndroidDeviceOwnerScepCertificateProfile) GetCertificateAccessType()(*AndroidDeviceOwnerScepCertificateProfile_certificateAccessType) { val, err := m.GetBackingStore().Get("certificateAccessType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerCertificateAccessType) + return val.(*AndroidDeviceOwnerScepCertificateProfile_certificateAccessType) } return nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *AndroidDeviceOwnerScepCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *AndroidDeviceOwnerScepCertificateProfile) GetCertificateStore()(*AndroidDeviceOwnerScepCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*AndroidDeviceOwnerScepCertificateProfile_certificateStore) } return nil } @@ -58,22 +58,22 @@ func (m *AndroidDeviceOwnerScepCertificateProfile) GetCustomSubjectAlternativeNa func (m *AndroidDeviceOwnerScepCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidDeviceOwnerCertificateProfileBase.GetFieldDeserializers() res["certificateAccessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerCertificateAccessType) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerScepCertificateProfile_certificateAccessType) if err != nil { return err } if val != nil { - m.SetCertificateAccessType(val.(*AndroidDeviceOwnerCertificateAccessType)) + m.SetCertificateAccessType(val.(*AndroidDeviceOwnerScepCertificateProfile_certificateAccessType)) } return nil } res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseAndroidDeviceOwnerScepCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*AndroidDeviceOwnerScepCertificateProfile_certificateStore)) } return nil } @@ -379,14 +379,14 @@ func (m *AndroidDeviceOwnerScepCertificateProfile) Serialize(writer i878a80d2330 return nil } // SetCertificateAccessType sets the certificateAccessType property value. Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue. -func (m *AndroidDeviceOwnerScepCertificateProfile) SetCertificateAccessType(value *AndroidDeviceOwnerCertificateAccessType)() { +func (m *AndroidDeviceOwnerScepCertificateProfile) SetCertificateAccessType(value *AndroidDeviceOwnerScepCertificateProfile_certificateAccessType)() { err := m.GetBackingStore().Set("certificateAccessType", value) if err != nil { panic(err) } } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *AndroidDeviceOwnerScepCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *AndroidDeviceOwnerScepCertificateProfile) SetCertificateStore(value *AndroidDeviceOwnerScepCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -459,8 +459,8 @@ func (m *AndroidDeviceOwnerScepCertificateProfile) SetSubjectNameFormatString(va type AndroidDeviceOwnerScepCertificateProfileable interface { AndroidDeviceOwnerCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateAccessType()(*AndroidDeviceOwnerCertificateAccessType) - GetCertificateStore()(*CertificateStore) + GetCertificateAccessType()(*AndroidDeviceOwnerScepCertificateProfile_certificateAccessType) + GetCertificateStore()(*AndroidDeviceOwnerScepCertificateProfile_certificateStore) GetCustomSubjectAlternativeNames()([]CustomSubjectAlternativeNameable) GetHashAlgorithm()(*HashAlgorithms) GetKeySize()(*KeySize) @@ -470,8 +470,8 @@ type AndroidDeviceOwnerScepCertificateProfileable interface { GetSilentCertificateAccessDetails()([]AndroidDeviceOwnerSilentCertificateAccessable) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateAccessType(value *AndroidDeviceOwnerCertificateAccessType)() - SetCertificateStore(value *CertificateStore)() + SetCertificateAccessType(value *AndroidDeviceOwnerScepCertificateProfile_certificateAccessType)() + SetCertificateStore(value *AndroidDeviceOwnerScepCertificateProfile_certificateStore)() SetCustomSubjectAlternativeNames(value []CustomSubjectAlternativeNameable)() SetHashAlgorithm(value *HashAlgorithms)() SetKeySize(value *KeySize)() diff --git a/models/android_device_owner_scep_certificate_profile_certificate_access_type.go b/models/android_device_owner_scep_certificate_profile_certificate_access_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_scep_certificate_profile_certificate_store.go b/models/android_device_owner_scep_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_device_owner_system_update_install_type.go b/models/android_device_owner_system_update_install_type.go deleted file mode 100644 index 4a35dd870de..00000000000 --- a/models/android_device_owner_system_update_install_type.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// System Update Types for Android Device Owner. -type AndroidDeviceOwnerSystemUpdateInstallType int - -const ( - // Device default behavior, which typically prompts the user to accept system updates. - DEVICEDEFAULT_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE AndroidDeviceOwnerSystemUpdateInstallType = iota - // Postpone automatic install of updates up to 30 days. - POSTPONE_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE - // Install automatically inside a daily maintenance window. - WINDOWED_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE - // Automatically install updates as soon as possible. - AUTOMATIC_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE -) - -func (i AndroidDeviceOwnerSystemUpdateInstallType) String() string { - return []string{"deviceDefault", "postpone", "windowed", "automatic"}[i] -} -func ParseAndroidDeviceOwnerSystemUpdateInstallType(v string) (any, error) { - result := DEVICEDEFAULT_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE - switch v { - case "deviceDefault": - result = DEVICEDEFAULT_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE - case "postpone": - result = POSTPONE_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE - case "windowed": - result = WINDOWED_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE - case "automatic": - result = AUTOMATIC_ANDROIDDEVICEOWNERSYSTEMUPDATEINSTALLTYPE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerSystemUpdateInstallType value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerSystemUpdateInstallType(values []AndroidDeviceOwnerSystemUpdateInstallType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerSystemUpdateInstallType) isMultiValue() bool { - return false -} diff --git a/models/android_device_owner_virtual_home_button_type.go b/models/android_device_owner_virtual_home_button_type.go deleted file mode 100644 index e9a7ac98fa3..00000000000 --- a/models/android_device_owner_virtual_home_button_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Android Device Owner Kiosk Mode managed home screen virtual home button type. -type AndroidDeviceOwnerVirtualHomeButtonType int - -const ( - // Not configured; this value is ignored. - NOTCONFIGURED_ANDROIDDEVICEOWNERVIRTUALHOMEBUTTONTYPE AndroidDeviceOwnerVirtualHomeButtonType = iota - // Swipe-up for home button. - SWIPEUP_ANDROIDDEVICEOWNERVIRTUALHOMEBUTTONTYPE - // Floating home button. - FLOATING_ANDROIDDEVICEOWNERVIRTUALHOMEBUTTONTYPE -) - -func (i AndroidDeviceOwnerVirtualHomeButtonType) String() string { - return []string{"notConfigured", "swipeUp", "floating"}[i] -} -func ParseAndroidDeviceOwnerVirtualHomeButtonType(v string) (any, error) { - result := NOTCONFIGURED_ANDROIDDEVICEOWNERVIRTUALHOMEBUTTONTYPE - switch v { - case "notConfigured": - result = NOTCONFIGURED_ANDROIDDEVICEOWNERVIRTUALHOMEBUTTONTYPE - case "swipeUp": - result = SWIPEUP_ANDROIDDEVICEOWNERVIRTUALHOMEBUTTONTYPE - case "floating": - result = FLOATING_ANDROIDDEVICEOWNERVIRTUALHOMEBUTTONTYPE - default: - return 0, errors.New("Unknown AndroidDeviceOwnerVirtualHomeButtonType value: " + v) - } - return &result, nil -} -func SerializeAndroidDeviceOwnerVirtualHomeButtonType(values []AndroidDeviceOwnerVirtualHomeButtonType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AndroidDeviceOwnerVirtualHomeButtonType) isMultiValue() bool { - return false -} diff --git a/models/android_eas_email_profile_configuration.go b/models/android_eas_email_profile_configuration.go index 45775ac7af3..bacdefd8ca8 100644 --- a/models/android_eas_email_profile_configuration.go +++ b/models/android_eas_email_profile_configuration.go @@ -241,12 +241,12 @@ func (m *AndroidEasEmailProfileConfiguration) GetFieldDeserializers()(map[string return nil } res["userDomainNameSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDomainNameSource) + val, err := n.GetEnumValue(ParseAndroidEasEmailProfileConfiguration_userDomainNameSource) if err != nil { return err } if val != nil { - m.SetUserDomainNameSource(val.(*DomainNameSource)) + m.SetUserDomainNameSource(val.(*AndroidEasEmailProfileConfiguration_userDomainNameSource)) } return nil } @@ -362,13 +362,13 @@ func (m *AndroidEasEmailProfileConfiguration) GetSyncTasks()(*bool) { return nil } // GetUserDomainNameSource gets the userDomainNameSource property value. UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: fullDomainName, netBiosDomainName. -func (m *AndroidEasEmailProfileConfiguration) GetUserDomainNameSource()(*DomainNameSource) { +func (m *AndroidEasEmailProfileConfiguration) GetUserDomainNameSource()(*AndroidEasEmailProfileConfiguration_userDomainNameSource) { val, err := m.GetBackingStore().Get("userDomainNameSource") if err != nil { panic(err) } if val != nil { - return val.(*DomainNameSource) + return val.(*AndroidEasEmailProfileConfiguration_userDomainNameSource) } return nil } @@ -605,7 +605,7 @@ func (m *AndroidEasEmailProfileConfiguration) SetSyncTasks(value *bool)() { } } // SetUserDomainNameSource sets the userDomainNameSource property value. UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: fullDomainName, netBiosDomainName. -func (m *AndroidEasEmailProfileConfiguration) SetUserDomainNameSource(value *DomainNameSource)() { +func (m *AndroidEasEmailProfileConfiguration) SetUserDomainNameSource(value *AndroidEasEmailProfileConfiguration_userDomainNameSource)() { err := m.GetBackingStore().Set("userDomainNameSource", value) if err != nil { panic(err) @@ -637,7 +637,7 @@ type AndroidEasEmailProfileConfigurationable interface { GetSyncContacts()(*bool) GetSyncNotes()(*bool) GetSyncTasks()(*bool) - GetUserDomainNameSource()(*DomainNameSource) + GetUserDomainNameSource()(*AndroidEasEmailProfileConfiguration_userDomainNameSource) GetUsernameSource()(*AndroidUsernameSource) SetAccountName(value *string)() SetAuthenticationMethod(value *EasAuthenticationMethod)() @@ -654,6 +654,6 @@ type AndroidEasEmailProfileConfigurationable interface { SetSyncContacts(value *bool)() SetSyncNotes(value *bool)() SetSyncTasks(value *bool)() - SetUserDomainNameSource(value *DomainNameSource)() + SetUserDomainNameSource(value *AndroidEasEmailProfileConfiguration_userDomainNameSource)() SetUsernameSource(value *AndroidUsernameSource)() } diff --git a/models/android_eas_email_profile_configuration_user_domain_name_source.go b/models/android_eas_email_profile_configuration_user_domain_name_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_enterprise_wi_fi_configuration.go b/models/android_enterprise_wi_fi_configuration.go index b77ffee2477..d06431cd096 100644 --- a/models/android_enterprise_wi_fi_configuration.go +++ b/models/android_enterprise_wi_fi_configuration.go @@ -22,13 +22,13 @@ func CreateAndroidEnterpriseWiFiConfigurationFromDiscriminatorValue(parseNode i8 return NewAndroidEnterpriseWiFiConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AndroidEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *AndroidEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*AndroidEnterpriseWiFiConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*AndroidEnterpriseWiFiConfiguration_authenticationMethod) } return nil } @@ -47,12 +47,12 @@ func (m *AndroidEnterpriseWiFiConfiguration) GetEapType()(*AndroidEapType) { func (m *AndroidEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidWiFiConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseAndroidEnterpriseWiFiConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*AndroidEnterpriseWiFiConfiguration_authenticationMethod)) } return nil } @@ -77,22 +77,22 @@ func (m *AndroidEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string] return nil } res["innerAuthenticationProtocolForEapTtls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseAndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEapTtls(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEapTtls(val.(*AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)) } return nil } res["innerAuthenticationProtocolForPeap"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForPeap) + val, err := n.GetEnumValue(ParseAndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForPeap(val.(*NonEapAuthenticationMethodForPeap)) + m.SetInnerAuthenticationProtocolForPeap(val.(*AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)) } return nil } @@ -176,24 +176,24 @@ func (m *AndroidEnterpriseWiFiConfiguration) GetIdentityCertificateForClientAuth return nil } // GetInnerAuthenticationProtocolForEapTtls gets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AndroidEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *AndroidEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEapTtls") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) } return nil } // GetInnerAuthenticationProtocolForPeap gets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Possible values are: none, microsoftChapVersionTwo. -func (m *AndroidEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) { +func (m *AndroidEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForPeap") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForPeap) + return val.(*AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) } return nil } @@ -342,7 +342,7 @@ func (m *AndroidEnterpriseWiFiConfiguration) Serialize(writer i878a80d2330e89d26 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AndroidEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *AndroidEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *AndroidEnterpriseWiFiConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -363,14 +363,14 @@ func (m *AndroidEnterpriseWiFiConfiguration) SetIdentityCertificateForClientAuth } } // SetInnerAuthenticationProtocolForEapTtls sets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AndroidEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *AndroidEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEapTtls", value) if err != nil { panic(err) } } // SetInnerAuthenticationProtocolForPeap sets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Possible values are: none, microsoftChapVersionTwo. -func (m *AndroidEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() { +func (m *AndroidEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForPeap", value) if err != nil { panic(err) @@ -422,22 +422,22 @@ func (m *AndroidEnterpriseWiFiConfiguration) SetUsernameFormatString(value *stri type AndroidEnterpriseWiFiConfigurationable interface { AndroidWiFiConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) + GetAuthenticationMethod()(*AndroidEnterpriseWiFiConfiguration_authenticationMethod) GetEapType()(*AndroidEapType) GetIdentityCertificateForClientAuthentication()(AndroidCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) - GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) + GetInnerAuthenticationProtocolForEapTtls()(*AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) + GetInnerAuthenticationProtocolForPeap()(*AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) GetOuterIdentityPrivacyTemporaryValue()(*string) GetPasswordFormatString()(*string) GetPreSharedKey()(*string) GetRootCertificateForServerValidation()(AndroidTrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) GetUsernameFormatString()(*string) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() + SetAuthenticationMethod(value *AndroidEnterpriseWiFiConfiguration_authenticationMethod)() SetEapType(value *AndroidEapType)() SetIdentityCertificateForClientAuthentication(value AndroidCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() - SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() + SetInnerAuthenticationProtocolForEapTtls(value *AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() + SetInnerAuthenticationProtocolForPeap(value *AndroidEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() SetOuterIdentityPrivacyTemporaryValue(value *string)() SetPasswordFormatString(value *string)() SetPreSharedKey(value *string)() diff --git a/models/android_enterprise_wi_fi_configuration_authentication_method.go b/models/android_enterprise_wi_fi_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go b/models/android_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go b/models/android_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_for_work_certificate_profile_base.go b/models/android_for_work_certificate_profile_base.go index d10e2369bbe..c5051cc29ce 100644 --- a/models/android_for_work_certificate_profile_base.go +++ b/models/android_for_work_certificate_profile_base.go @@ -134,12 +134,12 @@ func (m *AndroidForWorkCertificateProfileBase) GetFieldDeserializers()(map[strin return nil } res["subjectAlternativeNameType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectAlternativeNameType) + val, err := n.GetEnumValue(ParseAndroidForWorkCertificateProfileBase_subjectAlternativeNameType) if err != nil { return err } if val != nil { - m.SetSubjectAlternativeNameType(val.(*SubjectAlternativeNameType)) + m.SetSubjectAlternativeNameType(val.(*AndroidForWorkCertificateProfileBase_subjectAlternativeNameType)) } return nil } @@ -178,13 +178,13 @@ func (m *AndroidForWorkCertificateProfileBase) GetRootCertificate()(AndroidForWo return nil } // GetSubjectAlternativeNameType gets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *AndroidForWorkCertificateProfileBase) GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) { +func (m *AndroidForWorkCertificateProfileBase) GetSubjectAlternativeNameType()(*AndroidForWorkCertificateProfileBase_subjectAlternativeNameType) { val, err := m.GetBackingStore().Get("subjectAlternativeNameType") if err != nil { panic(err) } if val != nil { - return val.(*SubjectAlternativeNameType) + return val.(*AndroidForWorkCertificateProfileBase_subjectAlternativeNameType) } return nil } @@ -294,7 +294,7 @@ func (m *AndroidForWorkCertificateProfileBase) SetRootCertificate(value AndroidF } } // SetSubjectAlternativeNameType sets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *AndroidForWorkCertificateProfileBase) SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() { +func (m *AndroidForWorkCertificateProfileBase) SetSubjectAlternativeNameType(value *AndroidForWorkCertificateProfileBase_subjectAlternativeNameType)() { err := m.GetBackingStore().Set("subjectAlternativeNameType", value) if err != nil { panic(err) @@ -316,13 +316,13 @@ type AndroidForWorkCertificateProfileBaseable interface { GetExtendedKeyUsages()([]ExtendedKeyUsageable) GetRenewalThresholdPercentage()(*int32) GetRootCertificate()(AndroidForWorkTrustedRootCertificateable) - GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) + GetSubjectAlternativeNameType()(*AndroidForWorkCertificateProfileBase_subjectAlternativeNameType) GetSubjectNameFormat()(*SubjectNameFormat) SetCertificateValidityPeriodScale(value *CertificateValidityPeriodScale)() SetCertificateValidityPeriodValue(value *int32)() SetExtendedKeyUsages(value []ExtendedKeyUsageable)() SetRenewalThresholdPercentage(value *int32)() SetRootCertificate(value AndroidForWorkTrustedRootCertificateable)() - SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() + SetSubjectAlternativeNameType(value *AndroidForWorkCertificateProfileBase_subjectAlternativeNameType)() SetSubjectNameFormat(value *SubjectNameFormat)() } diff --git a/models/android_for_work_certificate_profile_base_subject_alternative_name_type.go b/models/android_for_work_certificate_profile_base_subject_alternative_name_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_for_work_enterprise_wi_fi_configuration.go b/models/android_for_work_enterprise_wi_fi_configuration.go index 25fbc0fc544..50cde8c7c63 100644 --- a/models/android_for_work_enterprise_wi_fi_configuration.go +++ b/models/android_for_work_enterprise_wi_fi_configuration.go @@ -22,13 +22,13 @@ func CreateAndroidForWorkEnterpriseWiFiConfigurationFromDiscriminatorValue(parse return NewAndroidForWorkEnterpriseWiFiConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*AndroidForWorkEnterpriseWiFiConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*AndroidForWorkEnterpriseWiFiConfiguration_authenticationMethod) } return nil } @@ -47,12 +47,12 @@ func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetEapType()(*AndroidEapType func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidForWorkWiFiConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseAndroidForWorkEnterpriseWiFiConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*AndroidForWorkEnterpriseWiFiConfiguration_authenticationMethod)) } return nil } @@ -77,22 +77,22 @@ func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[ return nil } res["innerAuthenticationProtocolForEapTtls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseAndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEapTtls(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEapTtls(val.(*AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)) } return nil } res["innerAuthenticationProtocolForPeap"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForPeap) + val, err := n.GetEnumValue(ParseAndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForPeap(val.(*NonEapAuthenticationMethodForPeap)) + m.SetInnerAuthenticationProtocolForPeap(val.(*AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)) } return nil } @@ -146,24 +146,24 @@ func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetIdentityCertificateForCli return nil } // GetInnerAuthenticationProtocolForEapTtls gets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEapTtls") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) } return nil } // GetInnerAuthenticationProtocolForPeap gets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Possible values are: none, microsoftChapVersionTwo. -func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) { +func (m *AndroidForWorkEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForPeap") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForPeap) + return val.(*AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) } return nil } @@ -261,7 +261,7 @@ func (m *AndroidForWorkEnterpriseWiFiConfiguration) Serialize(writer i878a80d233 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AndroidForWorkEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *AndroidForWorkEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *AndroidForWorkEnterpriseWiFiConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -282,14 +282,14 @@ func (m *AndroidForWorkEnterpriseWiFiConfiguration) SetIdentityCertificateForCli } } // SetInnerAuthenticationProtocolForEapTtls sets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AndroidForWorkEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *AndroidForWorkEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEapTtls", value) if err != nil { panic(err) } } // SetInnerAuthenticationProtocolForPeap sets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Possible values are: none, microsoftChapVersionTwo. -func (m *AndroidForWorkEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() { +func (m *AndroidForWorkEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForPeap", value) if err != nil { panic(err) @@ -320,19 +320,19 @@ func (m *AndroidForWorkEnterpriseWiFiConfiguration) SetTrustedServerCertificateN type AndroidForWorkEnterpriseWiFiConfigurationable interface { AndroidForWorkWiFiConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) + GetAuthenticationMethod()(*AndroidForWorkEnterpriseWiFiConfiguration_authenticationMethod) GetEapType()(*AndroidEapType) GetIdentityCertificateForClientAuthentication()(AndroidForWorkCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) - GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) + GetInnerAuthenticationProtocolForEapTtls()(*AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) + GetInnerAuthenticationProtocolForPeap()(*AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) GetOuterIdentityPrivacyTemporaryValue()(*string) GetRootCertificateForServerValidation()(AndroidForWorkTrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() + SetAuthenticationMethod(value *AndroidForWorkEnterpriseWiFiConfiguration_authenticationMethod)() SetEapType(value *AndroidEapType)() SetIdentityCertificateForClientAuthentication(value AndroidForWorkCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() - SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() + SetInnerAuthenticationProtocolForEapTtls(value *AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() + SetInnerAuthenticationProtocolForPeap(value *AndroidForWorkEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() SetOuterIdentityPrivacyTemporaryValue(value *string)() SetRootCertificateForServerValidation(value AndroidForWorkTrustedRootCertificateable)() SetTrustedServerCertificateNames(value []string)() diff --git a/models/android_for_work_enterprise_wi_fi_configuration_authentication_method.go b/models/android_for_work_enterprise_wi_fi_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_for_work_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go b/models/android_for_work_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_for_work_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go b/models/android_for_work_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_for_work_scep_certificate_profile.go b/models/android_for_work_scep_certificate_profile.go index ca3b1d6a4e6..63c8035adb6 100644 --- a/models/android_for_work_scep_certificate_profile.go +++ b/models/android_for_work_scep_certificate_profile.go @@ -22,13 +22,13 @@ func CreateAndroidForWorkScepCertificateProfileFromDiscriminatorValue(parseNode return NewAndroidForWorkScepCertificateProfile(), nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *AndroidForWorkScepCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *AndroidForWorkScepCertificateProfile) GetCertificateStore()(*AndroidForWorkScepCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*AndroidForWorkScepCertificateProfile_certificateStore) } return nil } @@ -47,12 +47,12 @@ func (m *AndroidForWorkScepCertificateProfile) GetCustomSubjectAlternativeNames( func (m *AndroidForWorkScepCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidForWorkCertificateProfileBase.GetFieldDeserializers() res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseAndroidForWorkScepCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*AndroidForWorkScepCertificateProfile_certificateStore)) } return nil } @@ -312,7 +312,7 @@ func (m *AndroidForWorkScepCertificateProfile) Serialize(writer i878a80d2330e89d return nil } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *AndroidForWorkScepCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *AndroidForWorkScepCertificateProfile) SetCertificateStore(value *AndroidForWorkScepCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -378,7 +378,7 @@ func (m *AndroidForWorkScepCertificateProfile) SetSubjectNameFormatString(value type AndroidForWorkScepCertificateProfileable interface { AndroidForWorkCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*AndroidForWorkScepCertificateProfile_certificateStore) GetCustomSubjectAlternativeNames()([]CustomSubjectAlternativeNameable) GetHashAlgorithm()(*HashAlgorithms) GetKeySize()(*KeySize) @@ -387,7 +387,7 @@ type AndroidForWorkScepCertificateProfileable interface { GetScepServerUrls()([]string) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *AndroidForWorkScepCertificateProfile_certificateStore)() SetCustomSubjectAlternativeNames(value []CustomSubjectAlternativeNameable)() SetHashAlgorithm(value *HashAlgorithms)() SetKeySize(value *KeySize)() diff --git a/models/android_for_work_scep_certificate_profile_certificate_store.go b/models/android_for_work_scep_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_managed_app_protection.go b/models/android_managed_app_protection.go index ba1ebc0dca0..1349aab92f6 100644 --- a/models/android_managed_app_protection.go +++ b/models/android_managed_app_protection.go @@ -44,13 +44,13 @@ func (m *AndroidManagedAppProtection) GetAllowedAndroidDeviceModels()([]string) return nil } // GetAppActionIfAccountIsClockedOut gets the appActionIfAccountIsClockedOut property value. Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time). -func (m *AndroidManagedAppProtection) GetAppActionIfAccountIsClockedOut()(*ManagedAppRemediationAction) { +func (m *AndroidManagedAppProtection) GetAppActionIfAccountIsClockedOut()(*AndroidManagedAppProtection_appActionIfAccountIsClockedOut) { val, err := m.GetBackingStore().Get("appActionIfAccountIsClockedOut") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*AndroidManagedAppProtection_appActionIfAccountIsClockedOut) } return nil } @@ -110,46 +110,46 @@ func (m *AndroidManagedAppProtection) GetAppActionIfDeviceLockNotSet()(*ManagedA return nil } // GetAppActionIfDevicePasscodeComplexityLessThanHigh gets the appActionIfDevicePasscodeComplexityLessThanHigh property value. If the device does not have a passcode of high complexity or higher, trigger the stored action. -func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*ManagedAppRemediationAction) { +func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanHigh") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh) } return nil } // GetAppActionIfDevicePasscodeComplexityLessThanLow gets the appActionIfDevicePasscodeComplexityLessThanLow property value. If the device does not have a passcode of low complexity or higher, trigger the stored action. -func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanLow()(*ManagedAppRemediationAction) { +func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanLow()(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanLow") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow) } return nil } // GetAppActionIfDevicePasscodeComplexityLessThanMedium gets the appActionIfDevicePasscodeComplexityLessThanMedium property value. If the device does not have a passcode of medium complexity or higher, trigger the stored action. -func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*ManagedAppRemediationAction) { +func (m *AndroidManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanMedium") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium) } return nil } // GetAppActionIfSamsungKnoxAttestationRequired gets the appActionIfSamsungKnoxAttestationRequired property value. Defines the behavior of a managed app when Samsung Knox Attestation is required. Possible values are null, warn, block & wipe. If the admin does not set this action, the default is null, which indicates this setting is not configured. -func (m *AndroidManagedAppProtection) GetAppActionIfSamsungKnoxAttestationRequired()(*ManagedAppRemediationAction) { +func (m *AndroidManagedAppProtection) GetAppActionIfSamsungKnoxAttestationRequired()(*AndroidManagedAppProtection_appActionIfSamsungKnoxAttestationRequired) { val, err := m.GetBackingStore().Get("appActionIfSamsungKnoxAttestationRequired") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*AndroidManagedAppProtection_appActionIfSamsungKnoxAttestationRequired) } return nil } @@ -348,12 +348,12 @@ func (m *AndroidManagedAppProtection) GetFieldDeserializers()(map[string]func(i8 return nil } res["appActionIfAccountIsClockedOut"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseAndroidManagedAppProtection_appActionIfAccountIsClockedOut) if err != nil { return err } if val != nil { - m.SetAppActionIfAccountIsClockedOut(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfAccountIsClockedOut(val.(*AndroidManagedAppProtection_appActionIfAccountIsClockedOut)) } return nil } @@ -408,42 +408,42 @@ func (m *AndroidManagedAppProtection) GetFieldDeserializers()(map[string]func(i8 return nil } res["appActionIfDevicePasscodeComplexityLessThanHigh"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseAndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh) if err != nil { return err } if val != nil { - m.SetAppActionIfDevicePasscodeComplexityLessThanHigh(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfDevicePasscodeComplexityLessThanHigh(val.(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh)) } return nil } res["appActionIfDevicePasscodeComplexityLessThanLow"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseAndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow) if err != nil { return err } if val != nil { - m.SetAppActionIfDevicePasscodeComplexityLessThanLow(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfDevicePasscodeComplexityLessThanLow(val.(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow)) } return nil } res["appActionIfDevicePasscodeComplexityLessThanMedium"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseAndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium) if err != nil { return err } if val != nil { - m.SetAppActionIfDevicePasscodeComplexityLessThanMedium(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfDevicePasscodeComplexityLessThanMedium(val.(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium)) } return nil } res["appActionIfSamsungKnoxAttestationRequired"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseAndroidManagedAppProtection_appActionIfSamsungKnoxAttestationRequired) if err != nil { return err } if val != nil { - m.SetAppActionIfSamsungKnoxAttestationRequired(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfSamsungKnoxAttestationRequired(val.(*AndroidManagedAppProtection_appActionIfSamsungKnoxAttestationRequired)) } return nil } @@ -1319,7 +1319,7 @@ func (m *AndroidManagedAppProtection) SetAllowedAndroidDeviceModels(value []stri } } // SetAppActionIfAccountIsClockedOut sets the appActionIfAccountIsClockedOut property value. Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time). -func (m *AndroidManagedAppProtection) SetAppActionIfAccountIsClockedOut(value *ManagedAppRemediationAction)() { +func (m *AndroidManagedAppProtection) SetAppActionIfAccountIsClockedOut(value *AndroidManagedAppProtection_appActionIfAccountIsClockedOut)() { err := m.GetBackingStore().Set("appActionIfAccountIsClockedOut", value) if err != nil { panic(err) @@ -1361,28 +1361,28 @@ func (m *AndroidManagedAppProtection) SetAppActionIfDeviceLockNotSet(value *Mana } } // SetAppActionIfDevicePasscodeComplexityLessThanHigh sets the appActionIfDevicePasscodeComplexityLessThanHigh property value. If the device does not have a passcode of high complexity or higher, trigger the stored action. -func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *ManagedAppRemediationAction)() { +func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanHigh", value) if err != nil { panic(err) } } // SetAppActionIfDevicePasscodeComplexityLessThanLow sets the appActionIfDevicePasscodeComplexityLessThanLow property value. If the device does not have a passcode of low complexity or higher, trigger the stored action. -func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanLow(value *ManagedAppRemediationAction)() { +func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanLow(value *AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanLow", value) if err != nil { panic(err) } } // SetAppActionIfDevicePasscodeComplexityLessThanMedium sets the appActionIfDevicePasscodeComplexityLessThanMedium property value. If the device does not have a passcode of medium complexity or higher, trigger the stored action. -func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *ManagedAppRemediationAction)() { +func (m *AndroidManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanMedium", value) if err != nil { panic(err) } } // SetAppActionIfSamsungKnoxAttestationRequired sets the appActionIfSamsungKnoxAttestationRequired property value. Defines the behavior of a managed app when Samsung Knox Attestation is required. Possible values are null, warn, block & wipe. If the admin does not set this action, the default is null, which indicates this setting is not configured. -func (m *AndroidManagedAppProtection) SetAppActionIfSamsungKnoxAttestationRequired(value *ManagedAppRemediationAction)() { +func (m *AndroidManagedAppProtection) SetAppActionIfSamsungKnoxAttestationRequired(value *AndroidManagedAppProtection_appActionIfSamsungKnoxAttestationRequired)() { err := m.GetBackingStore().Set("appActionIfSamsungKnoxAttestationRequired", value) if err != nil { panic(err) @@ -1625,16 +1625,16 @@ type AndroidManagedAppProtectionable interface { TargetedManagedAppProtectionable GetAllowedAndroidDeviceManufacturers()(*string) GetAllowedAndroidDeviceModels()([]string) - GetAppActionIfAccountIsClockedOut()(*ManagedAppRemediationAction) + GetAppActionIfAccountIsClockedOut()(*AndroidManagedAppProtection_appActionIfAccountIsClockedOut) GetAppActionIfAndroidDeviceManufacturerNotAllowed()(*ManagedAppRemediationAction) GetAppActionIfAndroidDeviceModelNotAllowed()(*ManagedAppRemediationAction) GetAppActionIfAndroidSafetyNetAppsVerificationFailed()(*ManagedAppRemediationAction) GetAppActionIfAndroidSafetyNetDeviceAttestationFailed()(*ManagedAppRemediationAction) GetAppActionIfDeviceLockNotSet()(*ManagedAppRemediationAction) - GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*ManagedAppRemediationAction) - GetAppActionIfDevicePasscodeComplexityLessThanLow()(*ManagedAppRemediationAction) - GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*ManagedAppRemediationAction) - GetAppActionIfSamsungKnoxAttestationRequired()(*ManagedAppRemediationAction) + GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh) + GetAppActionIfDevicePasscodeComplexityLessThanLow()(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow) + GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium) + GetAppActionIfSamsungKnoxAttestationRequired()(*AndroidManagedAppProtection_appActionIfSamsungKnoxAttestationRequired) GetApprovedKeyboards()([]KeyValuePairable) GetApps()([]ManagedMobileAppable) GetBiometricAuthenticationBlocked()(*bool) @@ -1670,16 +1670,16 @@ type AndroidManagedAppProtectionable interface { GetWipeAfterCompanyPortalUpdateDeferralInDays()(*int32) SetAllowedAndroidDeviceManufacturers(value *string)() SetAllowedAndroidDeviceModels(value []string)() - SetAppActionIfAccountIsClockedOut(value *ManagedAppRemediationAction)() + SetAppActionIfAccountIsClockedOut(value *AndroidManagedAppProtection_appActionIfAccountIsClockedOut)() SetAppActionIfAndroidDeviceManufacturerNotAllowed(value *ManagedAppRemediationAction)() SetAppActionIfAndroidDeviceModelNotAllowed(value *ManagedAppRemediationAction)() SetAppActionIfAndroidSafetyNetAppsVerificationFailed(value *ManagedAppRemediationAction)() SetAppActionIfAndroidSafetyNetDeviceAttestationFailed(value *ManagedAppRemediationAction)() SetAppActionIfDeviceLockNotSet(value *ManagedAppRemediationAction)() - SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *ManagedAppRemediationAction)() - SetAppActionIfDevicePasscodeComplexityLessThanLow(value *ManagedAppRemediationAction)() - SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *ManagedAppRemediationAction)() - SetAppActionIfSamsungKnoxAttestationRequired(value *ManagedAppRemediationAction)() + SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh)() + SetAppActionIfDevicePasscodeComplexityLessThanLow(value *AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow)() + SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *AndroidManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium)() + SetAppActionIfSamsungKnoxAttestationRequired(value *AndroidManagedAppProtection_appActionIfSamsungKnoxAttestationRequired)() SetApprovedKeyboards(value []KeyValuePairable)() SetApps(value []ManagedMobileAppable)() SetBiometricAuthenticationBlocked(value *bool)() diff --git a/models/android_managed_app_protection_app_action_if_account_is_clocked_out.go b/models/android_managed_app_protection_app_action_if_account_is_clocked_out.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_high.go b/models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_high.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_low.go b/models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_low.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_medium.go b/models/android_managed_app_protection_app_action_if_device_passcode_complexity_less_than_medium.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_managed_app_protection_app_action_if_samsung_knox_attestation_required.go b/models/android_managed_app_protection_app_action_if_samsung_knox_attestation_required.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_work_profile_certificate_profile_base.go b/models/android_work_profile_certificate_profile_base.go index dd12085d654..20c5e796efa 100644 --- a/models/android_work_profile_certificate_profile_base.go +++ b/models/android_work_profile_certificate_profile_base.go @@ -134,12 +134,12 @@ func (m *AndroidWorkProfileCertificateProfileBase) GetFieldDeserializers()(map[s return nil } res["subjectAlternativeNameType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectAlternativeNameType) + val, err := n.GetEnumValue(ParseAndroidWorkProfileCertificateProfileBase_subjectAlternativeNameType) if err != nil { return err } if val != nil { - m.SetSubjectAlternativeNameType(val.(*SubjectAlternativeNameType)) + m.SetSubjectAlternativeNameType(val.(*AndroidWorkProfileCertificateProfileBase_subjectAlternativeNameType)) } return nil } @@ -178,13 +178,13 @@ func (m *AndroidWorkProfileCertificateProfileBase) GetRootCertificate()(AndroidW return nil } // GetSubjectAlternativeNameType gets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *AndroidWorkProfileCertificateProfileBase) GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) { +func (m *AndroidWorkProfileCertificateProfileBase) GetSubjectAlternativeNameType()(*AndroidWorkProfileCertificateProfileBase_subjectAlternativeNameType) { val, err := m.GetBackingStore().Get("subjectAlternativeNameType") if err != nil { panic(err) } if val != nil { - return val.(*SubjectAlternativeNameType) + return val.(*AndroidWorkProfileCertificateProfileBase_subjectAlternativeNameType) } return nil } @@ -294,7 +294,7 @@ func (m *AndroidWorkProfileCertificateProfileBase) SetRootCertificate(value Andr } } // SetSubjectAlternativeNameType sets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *AndroidWorkProfileCertificateProfileBase) SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() { +func (m *AndroidWorkProfileCertificateProfileBase) SetSubjectAlternativeNameType(value *AndroidWorkProfileCertificateProfileBase_subjectAlternativeNameType)() { err := m.GetBackingStore().Set("subjectAlternativeNameType", value) if err != nil { panic(err) @@ -316,13 +316,13 @@ type AndroidWorkProfileCertificateProfileBaseable interface { GetExtendedKeyUsages()([]ExtendedKeyUsageable) GetRenewalThresholdPercentage()(*int32) GetRootCertificate()(AndroidWorkProfileTrustedRootCertificateable) - GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) + GetSubjectAlternativeNameType()(*AndroidWorkProfileCertificateProfileBase_subjectAlternativeNameType) GetSubjectNameFormat()(*SubjectNameFormat) SetCertificateValidityPeriodScale(value *CertificateValidityPeriodScale)() SetCertificateValidityPeriodValue(value *int32)() SetExtendedKeyUsages(value []ExtendedKeyUsageable)() SetRenewalThresholdPercentage(value *int32)() SetRootCertificate(value AndroidWorkProfileTrustedRootCertificateable)() - SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() + SetSubjectAlternativeNameType(value *AndroidWorkProfileCertificateProfileBase_subjectAlternativeNameType)() SetSubjectNameFormat(value *SubjectNameFormat)() } diff --git a/models/android_work_profile_certificate_profile_base_subject_alternative_name_type.go b/models/android_work_profile_certificate_profile_base_subject_alternative_name_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_work_profile_enterprise_wi_fi_configuration.go b/models/android_work_profile_enterprise_wi_fi_configuration.go index 50649da9e4e..fe0e869a241 100644 --- a/models/android_work_profile_enterprise_wi_fi_configuration.go +++ b/models/android_work_profile_enterprise_wi_fi_configuration.go @@ -22,13 +22,13 @@ func CreateAndroidWorkProfileEnterpriseWiFiConfigurationFromDiscriminatorValue(p return NewAndroidWorkProfileEnterpriseWiFiConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*AndroidWorkProfileEnterpriseWiFiConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*AndroidWorkProfileEnterpriseWiFiConfiguration_authenticationMethod) } return nil } @@ -47,12 +47,12 @@ func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetEapType()(*AndroidEap func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidWorkProfileWiFiConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseAndroidWorkProfileEnterpriseWiFiConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*AndroidWorkProfileEnterpriseWiFiConfiguration_authenticationMethod)) } return nil } @@ -77,22 +77,22 @@ func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetFieldDeserializers()( return nil } res["innerAuthenticationProtocolForEapTtls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseAndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEapTtls(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEapTtls(val.(*AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)) } return nil } res["innerAuthenticationProtocolForPeap"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForPeap) + val, err := n.GetEnumValue(ParseAndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForPeap(val.(*NonEapAuthenticationMethodForPeap)) + m.SetInnerAuthenticationProtocolForPeap(val.(*AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)) } return nil } @@ -166,24 +166,24 @@ func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetIdentityCertificateFo return nil } // GetInnerAuthenticationProtocolForEapTtls gets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEapTtls") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) } return nil } // GetInnerAuthenticationProtocolForPeap gets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Possible values are: none, microsoftChapVersionTwo. -func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) { +func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForPeap") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForPeap) + return val.(*AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) } return nil } @@ -316,7 +316,7 @@ func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) Serialize(writer i878a80 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *AndroidWorkProfileEnterpriseWiFiConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -337,14 +337,14 @@ func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) SetIdentityCertificateFo } } // SetInnerAuthenticationProtocolForEapTtls sets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEapTtls", value) if err != nil { panic(err) } } // SetInnerAuthenticationProtocolForPeap sets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. Possible values are: none, microsoftChapVersionTwo. -func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() { +func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForPeap", value) if err != nil { panic(err) @@ -389,21 +389,21 @@ func (m *AndroidWorkProfileEnterpriseWiFiConfiguration) SetTrustedServerCertific type AndroidWorkProfileEnterpriseWiFiConfigurationable interface { AndroidWorkProfileWiFiConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) + GetAuthenticationMethod()(*AndroidWorkProfileEnterpriseWiFiConfiguration_authenticationMethod) GetEapType()(*AndroidEapType) GetIdentityCertificateForClientAuthentication()(AndroidWorkProfileCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) - GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) + GetInnerAuthenticationProtocolForEapTtls()(*AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) + GetInnerAuthenticationProtocolForPeap()(*AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) GetOuterIdentityPrivacyTemporaryValue()(*string) GetProxyAutomaticConfigurationUrl()(*string) GetProxySettings()(*WiFiProxySetting) GetRootCertificateForServerValidation()(AndroidWorkProfileTrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() + SetAuthenticationMethod(value *AndroidWorkProfileEnterpriseWiFiConfiguration_authenticationMethod)() SetEapType(value *AndroidEapType)() SetIdentityCertificateForClientAuthentication(value AndroidWorkProfileCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() - SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() + SetInnerAuthenticationProtocolForEapTtls(value *AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() + SetInnerAuthenticationProtocolForPeap(value *AndroidWorkProfileEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() SetOuterIdentityPrivacyTemporaryValue(value *string)() SetProxyAutomaticConfigurationUrl(value *string)() SetProxySettings(value *WiFiProxySetting)() diff --git a/models/android_work_profile_enterprise_wi_fi_configuration_authentication_method.go b/models/android_work_profile_enterprise_wi_fi_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_work_profile_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go b/models/android_work_profile_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_work_profile_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go b/models/android_work_profile_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_work_profile_pkcs_certificate_profile.go b/models/android_work_profile_pkcs_certificate_profile.go index 77ebcb614c6..f6991dba4f8 100644 --- a/models/android_work_profile_pkcs_certificate_profile.go +++ b/models/android_work_profile_pkcs_certificate_profile.go @@ -22,13 +22,13 @@ func CreateAndroidWorkProfilePkcsCertificateProfileFromDiscriminatorValue(parseN return NewAndroidWorkProfilePkcsCertificateProfile(), nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *AndroidWorkProfilePkcsCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *AndroidWorkProfilePkcsCertificateProfile) GetCertificateStore()(*AndroidWorkProfilePkcsCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*AndroidWorkProfilePkcsCertificateProfile_certificateStore) } return nil } @@ -80,12 +80,12 @@ func (m *AndroidWorkProfilePkcsCertificateProfile) GetCustomSubjectAlternativeNa func (m *AndroidWorkProfilePkcsCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidWorkProfileCertificateProfileBase.GetFieldDeserializers() res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseAndroidWorkProfilePkcsCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*AndroidWorkProfilePkcsCertificateProfile_certificateStore)) } return nil } @@ -276,7 +276,7 @@ func (m *AndroidWorkProfilePkcsCertificateProfile) Serialize(writer i878a80d2330 return nil } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *AndroidWorkProfilePkcsCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *AndroidWorkProfilePkcsCertificateProfile) SetCertificateStore(value *AndroidWorkProfilePkcsCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -335,7 +335,7 @@ func (m *AndroidWorkProfilePkcsCertificateProfile) SetSubjectNameFormatString(va type AndroidWorkProfilePkcsCertificateProfileable interface { AndroidWorkProfileCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*AndroidWorkProfilePkcsCertificateProfile_certificateStore) GetCertificateTemplateName()(*string) GetCertificationAuthority()(*string) GetCertificationAuthorityName()(*string) @@ -343,7 +343,7 @@ type AndroidWorkProfilePkcsCertificateProfileable interface { GetManagedDeviceCertificateStates()([]ManagedDeviceCertificateStateable) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *AndroidWorkProfilePkcsCertificateProfile_certificateStore)() SetCertificateTemplateName(value *string)() SetCertificationAuthority(value *string)() SetCertificationAuthorityName(value *string)() diff --git a/models/android_work_profile_pkcs_certificate_profile_certificate_store.go b/models/android_work_profile_pkcs_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/android_work_profile_scep_certificate_profile.go b/models/android_work_profile_scep_certificate_profile.go index ab470526100..7abf65a09fd 100644 --- a/models/android_work_profile_scep_certificate_profile.go +++ b/models/android_work_profile_scep_certificate_profile.go @@ -22,13 +22,13 @@ func CreateAndroidWorkProfileScepCertificateProfileFromDiscriminatorValue(parseN return NewAndroidWorkProfileScepCertificateProfile(), nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *AndroidWorkProfileScepCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *AndroidWorkProfileScepCertificateProfile) GetCertificateStore()(*AndroidWorkProfileScepCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*AndroidWorkProfileScepCertificateProfile_certificateStore) } return nil } @@ -47,12 +47,12 @@ func (m *AndroidWorkProfileScepCertificateProfile) GetCustomSubjectAlternativeNa func (m *AndroidWorkProfileScepCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidWorkProfileCertificateProfileBase.GetFieldDeserializers() res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseAndroidWorkProfileScepCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*AndroidWorkProfileScepCertificateProfile_certificateStore)) } return nil } @@ -312,7 +312,7 @@ func (m *AndroidWorkProfileScepCertificateProfile) Serialize(writer i878a80d2330 return nil } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *AndroidWorkProfileScepCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *AndroidWorkProfileScepCertificateProfile) SetCertificateStore(value *AndroidWorkProfileScepCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -378,7 +378,7 @@ func (m *AndroidWorkProfileScepCertificateProfile) SetSubjectNameFormatString(va type AndroidWorkProfileScepCertificateProfileable interface { AndroidWorkProfileCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*AndroidWorkProfileScepCertificateProfile_certificateStore) GetCustomSubjectAlternativeNames()([]CustomSubjectAlternativeNameable) GetHashAlgorithm()(*HashAlgorithms) GetKeySize()(*KeySize) @@ -387,7 +387,7 @@ type AndroidWorkProfileScepCertificateProfileable interface { GetScepServerUrls()([]string) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *AndroidWorkProfileScepCertificateProfile_certificateStore)() SetCustomSubjectAlternativeNames(value []CustomSubjectAlternativeNameable)() SetHashAlgorithm(value *HashAlgorithms)() SetKeySize(value *KeySize)() diff --git a/models/android_work_profile_scep_certificate_profile_certificate_store.go b/models/android_work_profile_scep_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/answer_input_type.go b/models/answer_input_type.go deleted file mode 100644 index 16f2024a612..00000000000 --- a/models/answer_input_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AnswerInputType int - -const ( - TEXT_ANSWERINPUTTYPE AnswerInputType = iota - RADIOBUTTON_ANSWERINPUTTYPE - UNKNOWNFUTUREVALUE_ANSWERINPUTTYPE -) - -func (i AnswerInputType) String() string { - return []string{"text", "radioButton", "unknownFutureValue"}[i] -} -func ParseAnswerInputType(v string) (any, error) { - result := TEXT_ANSWERINPUTTYPE - switch v { - case "text": - result = TEXT_ANSWERINPUTTYPE - case "radioButton": - result = RADIOBUTTON_ANSWERINPUTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ANSWERINPUTTYPE - default: - return 0, errors.New("Unknown AnswerInputType value: " + v) - } - return &result, nil -} -func SerializeAnswerInputType(values []AnswerInputType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AnswerInputType) isMultiValue() bool { - return false -} diff --git a/models/aosp_device_owner_certificate_profile_base.go b/models/aosp_device_owner_certificate_profile_base.go index 699c93b4c01..db2bba17fd6 100644 --- a/models/aosp_device_owner_certificate_profile_base.go +++ b/models/aosp_device_owner_certificate_profile_base.go @@ -134,22 +134,22 @@ func (m *AospDeviceOwnerCertificateProfileBase) GetFieldDeserializers()(map[stri return nil } res["subjectAlternativeNameType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectAlternativeNameType) + val, err := n.GetEnumValue(ParseAospDeviceOwnerCertificateProfileBase_subjectAlternativeNameType) if err != nil { return err } if val != nil { - m.SetSubjectAlternativeNameType(val.(*SubjectAlternativeNameType)) + m.SetSubjectAlternativeNameType(val.(*AospDeviceOwnerCertificateProfileBase_subjectAlternativeNameType)) } return nil } res["subjectNameFormat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectNameFormat) + val, err := n.GetEnumValue(ParseAospDeviceOwnerCertificateProfileBase_subjectNameFormat) if err != nil { return err } if val != nil { - m.SetSubjectNameFormat(val.(*SubjectNameFormat)) + m.SetSubjectNameFormat(val.(*AospDeviceOwnerCertificateProfileBase_subjectNameFormat)) } return nil } @@ -178,24 +178,24 @@ func (m *AospDeviceOwnerCertificateProfileBase) GetRootCertificate()(AospDeviceO return nil } // GetSubjectAlternativeNameType gets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. This collection can contain a maximum of 500 elements. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *AospDeviceOwnerCertificateProfileBase) GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) { +func (m *AospDeviceOwnerCertificateProfileBase) GetSubjectAlternativeNameType()(*AospDeviceOwnerCertificateProfileBase_subjectAlternativeNameType) { val, err := m.GetBackingStore().Get("subjectAlternativeNameType") if err != nil { panic(err) } if val != nil { - return val.(*SubjectAlternativeNameType) + return val.(*AospDeviceOwnerCertificateProfileBase_subjectAlternativeNameType) } return nil } // GetSubjectNameFormat gets the subjectNameFormat property value. Certificate Subject Name Format. This collection can contain a maximum of 500 elements. Possible values are: commonName, commonNameIncludingEmail, commonNameAsEmail, custom, commonNameAsIMEI, commonNameAsSerialNumber, commonNameAsAadDeviceId, commonNameAsIntuneDeviceId, commonNameAsDurableDeviceId. -func (m *AospDeviceOwnerCertificateProfileBase) GetSubjectNameFormat()(*SubjectNameFormat) { +func (m *AospDeviceOwnerCertificateProfileBase) GetSubjectNameFormat()(*AospDeviceOwnerCertificateProfileBase_subjectNameFormat) { val, err := m.GetBackingStore().Get("subjectNameFormat") if err != nil { panic(err) } if val != nil { - return val.(*SubjectNameFormat) + return val.(*AospDeviceOwnerCertificateProfileBase_subjectNameFormat) } return nil } @@ -294,14 +294,14 @@ func (m *AospDeviceOwnerCertificateProfileBase) SetRootCertificate(value AospDev } } // SetSubjectAlternativeNameType sets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. This collection can contain a maximum of 500 elements. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *AospDeviceOwnerCertificateProfileBase) SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() { +func (m *AospDeviceOwnerCertificateProfileBase) SetSubjectAlternativeNameType(value *AospDeviceOwnerCertificateProfileBase_subjectAlternativeNameType)() { err := m.GetBackingStore().Set("subjectAlternativeNameType", value) if err != nil { panic(err) } } // SetSubjectNameFormat sets the subjectNameFormat property value. Certificate Subject Name Format. This collection can contain a maximum of 500 elements. Possible values are: commonName, commonNameIncludingEmail, commonNameAsEmail, custom, commonNameAsIMEI, commonNameAsSerialNumber, commonNameAsAadDeviceId, commonNameAsIntuneDeviceId, commonNameAsDurableDeviceId. -func (m *AospDeviceOwnerCertificateProfileBase) SetSubjectNameFormat(value *SubjectNameFormat)() { +func (m *AospDeviceOwnerCertificateProfileBase) SetSubjectNameFormat(value *AospDeviceOwnerCertificateProfileBase_subjectNameFormat)() { err := m.GetBackingStore().Set("subjectNameFormat", value) if err != nil { panic(err) @@ -316,13 +316,13 @@ type AospDeviceOwnerCertificateProfileBaseable interface { GetExtendedKeyUsages()([]ExtendedKeyUsageable) GetRenewalThresholdPercentage()(*int32) GetRootCertificate()(AospDeviceOwnerTrustedRootCertificateable) - GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) - GetSubjectNameFormat()(*SubjectNameFormat) + GetSubjectAlternativeNameType()(*AospDeviceOwnerCertificateProfileBase_subjectAlternativeNameType) + GetSubjectNameFormat()(*AospDeviceOwnerCertificateProfileBase_subjectNameFormat) SetCertificateValidityPeriodScale(value *CertificateValidityPeriodScale)() SetCertificateValidityPeriodValue(value *int32)() SetExtendedKeyUsages(value []ExtendedKeyUsageable)() SetRenewalThresholdPercentage(value *int32)() SetRootCertificate(value AospDeviceOwnerTrustedRootCertificateable)() - SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() - SetSubjectNameFormat(value *SubjectNameFormat)() + SetSubjectAlternativeNameType(value *AospDeviceOwnerCertificateProfileBase_subjectAlternativeNameType)() + SetSubjectNameFormat(value *AospDeviceOwnerCertificateProfileBase_subjectNameFormat)() } diff --git a/models/aosp_device_owner_certificate_profile_base_subject_alternative_name_type.go b/models/aosp_device_owner_certificate_profile_base_subject_alternative_name_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/aosp_device_owner_certificate_profile_base_subject_name_format.go b/models/aosp_device_owner_certificate_profile_base_subject_name_format.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/aosp_device_owner_compliance_policy.go b/models/aosp_device_owner_compliance_policy.go index c73215e4cf6..739325a8083 100644 --- a/models/aosp_device_owner_compliance_policy.go +++ b/models/aosp_device_owner_compliance_policy.go @@ -85,12 +85,12 @@ func (m *AospDeviceOwnerCompliancePolicy) GetFieldDeserializers()(map[string]fun return nil } res["passwordRequiredType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerRequiredPasswordType) + val, err := n.GetEnumValue(ParseAospDeviceOwnerCompliancePolicy_passwordRequiredType) if err != nil { return err } if val != nil { - m.SetPasswordRequiredType(val.(*AndroidDeviceOwnerRequiredPasswordType)) + m.SetPasswordRequiredType(val.(*AospDeviceOwnerCompliancePolicy_passwordRequiredType)) } return nil } @@ -183,13 +183,13 @@ func (m *AospDeviceOwnerCompliancePolicy) GetPasswordRequired()(*bool) { return nil } // GetPasswordRequiredType gets the passwordRequiredType property value. Type of characters in password. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AospDeviceOwnerCompliancePolicy) GetPasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) { +func (m *AospDeviceOwnerCompliancePolicy) GetPasswordRequiredType()(*AospDeviceOwnerCompliancePolicy_passwordRequiredType) { val, err := m.GetBackingStore().Get("passwordRequiredType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerRequiredPasswordType) + return val.(*AospDeviceOwnerCompliancePolicy_passwordRequiredType) } return nil } @@ -321,7 +321,7 @@ func (m *AospDeviceOwnerCompliancePolicy) SetPasswordRequired(value *bool)() { } } // SetPasswordRequiredType sets the passwordRequiredType property value. Type of characters in password. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AospDeviceOwnerCompliancePolicy) SetPasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() { +func (m *AospDeviceOwnerCompliancePolicy) SetPasswordRequiredType(value *AospDeviceOwnerCompliancePolicy_passwordRequiredType)() { err := m.GetBackingStore().Set("passwordRequiredType", value) if err != nil { panic(err) @@ -351,7 +351,7 @@ type AospDeviceOwnerCompliancePolicyable interface { GetPasswordMinimumLength()(*int32) GetPasswordMinutesOfInactivityBeforeLock()(*int32) GetPasswordRequired()(*bool) - GetPasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) + GetPasswordRequiredType()(*AospDeviceOwnerCompliancePolicy_passwordRequiredType) GetSecurityBlockJailbrokenDevices()(*bool) GetStorageRequireEncryption()(*bool) SetMinAndroidSecurityPatchLevel(value *string)() @@ -360,7 +360,7 @@ type AospDeviceOwnerCompliancePolicyable interface { SetPasswordMinimumLength(value *int32)() SetPasswordMinutesOfInactivityBeforeLock(value *int32)() SetPasswordRequired(value *bool)() - SetPasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() + SetPasswordRequiredType(value *AospDeviceOwnerCompliancePolicy_passwordRequiredType)() SetSecurityBlockJailbrokenDevices(value *bool)() SetStorageRequireEncryption(value *bool)() } diff --git a/models/aosp_device_owner_compliance_policy_password_required_type.go b/models/aosp_device_owner_compliance_policy_password_required_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/aosp_device_owner_device_configuration.go b/models/aosp_device_owner_device_configuration.go index 452a6b4959f..2ec922b9484 100644 --- a/models/aosp_device_owner_device_configuration.go +++ b/models/aosp_device_owner_device_configuration.go @@ -150,12 +150,12 @@ func (m *AospDeviceOwnerDeviceConfiguration) GetFieldDeserializers()(map[string] return nil } res["passwordRequiredType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAndroidDeviceOwnerRequiredPasswordType) + val, err := n.GetEnumValue(ParseAospDeviceOwnerDeviceConfiguration_passwordRequiredType) if err != nil { return err } if val != nil { - m.SetPasswordRequiredType(val.(*AndroidDeviceOwnerRequiredPasswordType)) + m.SetPasswordRequiredType(val.(*AospDeviceOwnerDeviceConfiguration_passwordRequiredType)) } return nil } @@ -244,13 +244,13 @@ func (m *AospDeviceOwnerDeviceConfiguration) GetPasswordMinutesOfInactivityBefor return nil } // GetPasswordRequiredType gets the passwordRequiredType property value. Indicates the minimum password quality required on the device. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AospDeviceOwnerDeviceConfiguration) GetPasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) { +func (m *AospDeviceOwnerDeviceConfiguration) GetPasswordRequiredType()(*AospDeviceOwnerDeviceConfiguration_passwordRequiredType) { val, err := m.GetBackingStore().Get("passwordRequiredType") if err != nil { panic(err) } if val != nil { - return val.(*AndroidDeviceOwnerRequiredPasswordType) + return val.(*AospDeviceOwnerDeviceConfiguration_passwordRequiredType) } return nil } @@ -463,7 +463,7 @@ func (m *AospDeviceOwnerDeviceConfiguration) SetPasswordMinutesOfInactivityBefor } } // SetPasswordRequiredType sets the passwordRequiredType property value. Indicates the minimum password quality required on the device. Possible values are: deviceDefault, required, numeric, numericComplex, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, customPassword. -func (m *AospDeviceOwnerDeviceConfiguration) SetPasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() { +func (m *AospDeviceOwnerDeviceConfiguration) SetPasswordRequiredType(value *AospDeviceOwnerDeviceConfiguration_passwordRequiredType)() { err := m.GetBackingStore().Set("passwordRequiredType", value) if err != nil { panic(err) @@ -522,7 +522,7 @@ type AospDeviceOwnerDeviceConfigurationable interface { GetFactoryResetBlocked()(*bool) GetPasswordMinimumLength()(*int32) GetPasswordMinutesOfInactivityBeforeScreenTimeout()(*int32) - GetPasswordRequiredType()(*AndroidDeviceOwnerRequiredPasswordType) + GetPasswordRequiredType()(*AospDeviceOwnerDeviceConfiguration_passwordRequiredType) GetPasswordSignInFailureCountBeforeFactoryReset()(*int32) GetScreenCaptureBlocked()(*bool) GetSecurityAllowDebuggingFeatures()(*bool) @@ -536,7 +536,7 @@ type AospDeviceOwnerDeviceConfigurationable interface { SetFactoryResetBlocked(value *bool)() SetPasswordMinimumLength(value *int32)() SetPasswordMinutesOfInactivityBeforeScreenTimeout(value *int32)() - SetPasswordRequiredType(value *AndroidDeviceOwnerRequiredPasswordType)() + SetPasswordRequiredType(value *AospDeviceOwnerDeviceConfiguration_passwordRequiredType)() SetPasswordSignInFailureCountBeforeFactoryReset(value *int32)() SetScreenCaptureBlocked(value *bool)() SetSecurityAllowDebuggingFeatures(value *bool)() diff --git a/models/aosp_device_owner_device_configuration_password_required_type.go b/models/aosp_device_owner_device_configuration_password_required_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/aosp_device_owner_enterprise_wi_fi_configuration.go b/models/aosp_device_owner_enterprise_wi_fi_configuration.go index 6c60759c2b9..502bf425fda 100644 --- a/models/aosp_device_owner_enterprise_wi_fi_configuration.go +++ b/models/aosp_device_owner_enterprise_wi_fi_configuration.go @@ -22,13 +22,13 @@ func CreateAospDeviceOwnerEnterpriseWiFiConfigurationFromDiscriminatorValue(pars return NewAospDeviceOwnerEnterpriseWiFiConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*AospDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*AospDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod) } return nil } @@ -47,12 +47,12 @@ func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetEapType()(*AndroidEapTyp func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AospDeviceOwnerWiFiConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseAospDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*AospDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod)) } return nil } @@ -77,22 +77,22 @@ func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetFieldDeserializers()(map return nil } res["innerAuthenticationProtocolForEapTtls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseAospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEapTtls(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEapTtls(val.(*AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)) } return nil } res["innerAuthenticationProtocolForPeap"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForPeap) + val, err := n.GetEnumValue(ParseAospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForPeap(val.(*NonEapAuthenticationMethodForPeap)) + m.SetInnerAuthenticationProtocolForPeap(val.(*AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)) } return nil } @@ -146,24 +146,24 @@ func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetIdentityCertificateForCl return nil } // GetInnerAuthenticationProtocolForEapTtls gets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEapTtls") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) } return nil } // GetInnerAuthenticationProtocolForPeap gets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. This collection can contain a maximum of 500 elements. Possible values are: none, microsoftChapVersionTwo. -func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) { +func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForPeap()(*AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForPeap") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForPeap) + return val.(*AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) } return nil } @@ -261,7 +261,7 @@ func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) Serialize(writer i878a80d23 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *AospDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -282,14 +282,14 @@ func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) SetIdentityCertificateForCl } } // SetInnerAuthenticationProtocolForEapTtls sets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEapTtls", value) if err != nil { panic(err) } } // SetInnerAuthenticationProtocolForPeap sets the innerAuthenticationProtocolForPeap property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password. This collection can contain a maximum of 500 elements. Possible values are: none, microsoftChapVersionTwo. -func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() { +func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForPeap(value *AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForPeap", value) if err != nil { panic(err) @@ -320,19 +320,19 @@ func (m *AospDeviceOwnerEnterpriseWiFiConfiguration) SetTrustedServerCertificate type AospDeviceOwnerEnterpriseWiFiConfigurationable interface { AospDeviceOwnerWiFiConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) + GetAuthenticationMethod()(*AospDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod) GetEapType()(*AndroidEapType) GetIdentityCertificateForClientAuthentication()(AospDeviceOwnerCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) - GetInnerAuthenticationProtocolForPeap()(*NonEapAuthenticationMethodForPeap) + GetInnerAuthenticationProtocolForEapTtls()(*AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) + GetInnerAuthenticationProtocolForPeap()(*AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap) GetOuterIdentityPrivacyTemporaryValue()(*string) GetRootCertificateForServerValidation()(AospDeviceOwnerTrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() + SetAuthenticationMethod(value *AospDeviceOwnerEnterpriseWiFiConfiguration_authenticationMethod)() SetEapType(value *AndroidEapType)() SetIdentityCertificateForClientAuthentication(value AospDeviceOwnerCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() - SetInnerAuthenticationProtocolForPeap(value *NonEapAuthenticationMethodForPeap)() + SetInnerAuthenticationProtocolForEapTtls(value *AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() + SetInnerAuthenticationProtocolForPeap(value *AospDeviceOwnerEnterpriseWiFiConfiguration_innerAuthenticationProtocolForPeap)() SetOuterIdentityPrivacyTemporaryValue(value *string)() SetRootCertificateForServerValidation(value AospDeviceOwnerTrustedRootCertificateable)() SetTrustedServerCertificateNames(value []string)() diff --git a/models/aosp_device_owner_enterprise_wi_fi_configuration_authentication_method.go b/models/aosp_device_owner_enterprise_wi_fi_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/aosp_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go b/models/aosp_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/aosp_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go b/models/aosp_device_owner_enterprise_wi_fi_configuration_inner_authentication_protocol_for_peap.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/aosp_device_owner_scep_certificate_profile.go b/models/aosp_device_owner_scep_certificate_profile.go index e9104e9c494..c826f946750 100644 --- a/models/aosp_device_owner_scep_certificate_profile.go +++ b/models/aosp_device_owner_scep_certificate_profile.go @@ -22,13 +22,13 @@ func CreateAospDeviceOwnerScepCertificateProfileFromDiscriminatorValue(parseNode return NewAospDeviceOwnerScepCertificateProfile(), nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. This collection can contain a maximum of 500 elements. Possible values are: user, machine. -func (m *AospDeviceOwnerScepCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *AospDeviceOwnerScepCertificateProfile) GetCertificateStore()(*AospDeviceOwnerScepCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*AospDeviceOwnerScepCertificateProfile_certificateStore) } return nil } @@ -47,12 +47,12 @@ func (m *AospDeviceOwnerScepCertificateProfile) GetCustomSubjectAlternativeNames func (m *AospDeviceOwnerScepCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AospDeviceOwnerCertificateProfileBase.GetFieldDeserializers() res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseAospDeviceOwnerScepCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*AospDeviceOwnerScepCertificateProfile_certificateStore)) } return nil } @@ -312,7 +312,7 @@ func (m *AospDeviceOwnerScepCertificateProfile) Serialize(writer i878a80d2330e89 return nil } // SetCertificateStore sets the certificateStore property value. Target store certificate. This collection can contain a maximum of 500 elements. Possible values are: user, machine. -func (m *AospDeviceOwnerScepCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *AospDeviceOwnerScepCertificateProfile) SetCertificateStore(value *AospDeviceOwnerScepCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -378,7 +378,7 @@ func (m *AospDeviceOwnerScepCertificateProfile) SetSubjectNameFormatString(value type AospDeviceOwnerScepCertificateProfileable interface { AospDeviceOwnerCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*AospDeviceOwnerScepCertificateProfile_certificateStore) GetCustomSubjectAlternativeNames()([]CustomSubjectAlternativeNameable) GetHashAlgorithm()(*HashAlgorithms) GetKeySize()(*KeySize) @@ -387,7 +387,7 @@ type AospDeviceOwnerScepCertificateProfileable interface { GetScepServerUrls()([]string) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *AospDeviceOwnerScepCertificateProfile_certificateStore)() SetCustomSubjectAlternativeNames(value []CustomSubjectAlternativeNameable)() SetHashAlgorithm(value *HashAlgorithms)() SetKeySize(value *KeySize)() diff --git a/models/aosp_device_owner_scep_certificate_profile_certificate_store.go b/models/aosp_device_owner_scep_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/app_credential_restriction_type.go b/models/app_credential_restriction_type.go deleted file mode 100644 index 6467cc647c3..00000000000 --- a/models/app_credential_restriction_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type AppCredentialRestrictionType int - -const ( - PASSWORDADDITION_APPCREDENTIALRESTRICTIONTYPE AppCredentialRestrictionType = iota - PASSWORDLIFETIME_APPCREDENTIALRESTRICTIONTYPE - SYMMETRICKEYADDITION_APPCREDENTIALRESTRICTIONTYPE - SYMMETRICKEYLIFETIME_APPCREDENTIALRESTRICTIONTYPE - CUSTOMPASSWORDADDITION_APPCREDENTIALRESTRICTIONTYPE - UNKNOWNFUTUREVALUE_APPCREDENTIALRESTRICTIONTYPE -) - -func (i AppCredentialRestrictionType) String() string { - return []string{"passwordAddition", "passwordLifetime", "symmetricKeyAddition", "symmetricKeyLifetime", "customPasswordAddition", "unknownFutureValue"}[i] -} -func ParseAppCredentialRestrictionType(v string) (any, error) { - result := PASSWORDADDITION_APPCREDENTIALRESTRICTIONTYPE - switch v { - case "passwordAddition": - result = PASSWORDADDITION_APPCREDENTIALRESTRICTIONTYPE - case "passwordLifetime": - result = PASSWORDLIFETIME_APPCREDENTIALRESTRICTIONTYPE - case "symmetricKeyAddition": - result = SYMMETRICKEYADDITION_APPCREDENTIALRESTRICTIONTYPE - case "symmetricKeyLifetime": - result = SYMMETRICKEYLIFETIME_APPCREDENTIALRESTRICTIONTYPE - case "customPasswordAddition": - result = CUSTOMPASSWORDADDITION_APPCREDENTIALRESTRICTIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_APPCREDENTIALRESTRICTIONTYPE - default: - return 0, errors.New("Unknown AppCredentialRestrictionType value: " + v) - } - return &result, nil -} -func SerializeAppCredentialRestrictionType(values []AppCredentialRestrictionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AppCredentialRestrictionType) isMultiValue() bool { - return false -} diff --git a/models/app_credential_sign_in_activity.go b/models/app_credential_sign_in_activity.go index bef6a527bd7..634eb5dd434 100644 --- a/models/app_credential_sign_in_activity.go +++ b/models/app_credential_sign_in_activity.go @@ -139,22 +139,22 @@ func (m *AppCredentialSignInActivity) GetFieldDeserializers()(map[string]func(i8 return nil } res["keyType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseApplicationKeyType) + val, err := n.GetEnumValue(ParseAppCredentialSignInActivity_keyType) if err != nil { return err } if val != nil { - m.SetKeyType(val.(*ApplicationKeyType)) + m.SetKeyType(val.(*AppCredentialSignInActivity_keyType)) } return nil } res["keyUsage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseApplicationKeyUsage) + val, err := n.GetEnumValue(ParseAppCredentialSignInActivity_keyUsage) if err != nil { return err } if val != nil { - m.SetKeyUsage(val.(*ApplicationKeyUsage)) + m.SetKeyUsage(val.(*AppCredentialSignInActivity_keyUsage)) } return nil } @@ -202,24 +202,24 @@ func (m *AppCredentialSignInActivity) GetKeyId()(*string) { return nil } // GetKeyType gets the keyType property value. Specifies the key type. The possible values are: clientSecret, certificate, unknownFutureValue. -func (m *AppCredentialSignInActivity) GetKeyType()(*ApplicationKeyType) { +func (m *AppCredentialSignInActivity) GetKeyType()(*AppCredentialSignInActivity_keyType) { val, err := m.GetBackingStore().Get("keyType") if err != nil { panic(err) } if val != nil { - return val.(*ApplicationKeyType) + return val.(*AppCredentialSignInActivity_keyType) } return nil } // GetKeyUsage gets the keyUsage property value. Specifies what the key was used for. The possible values are: sign, verify, unknownFutureValue. -func (m *AppCredentialSignInActivity) GetKeyUsage()(*ApplicationKeyUsage) { +func (m *AppCredentialSignInActivity) GetKeyUsage()(*AppCredentialSignInActivity_keyUsage) { val, err := m.GetBackingStore().Get("keyUsage") if err != nil { panic(err) } if val != nil { - return val.(*ApplicationKeyUsage) + return val.(*AppCredentialSignInActivity_keyUsage) } return nil } @@ -376,14 +376,14 @@ func (m *AppCredentialSignInActivity) SetKeyId(value *string)() { } } // SetKeyType sets the keyType property value. Specifies the key type. The possible values are: clientSecret, certificate, unknownFutureValue. -func (m *AppCredentialSignInActivity) SetKeyType(value *ApplicationKeyType)() { +func (m *AppCredentialSignInActivity) SetKeyType(value *AppCredentialSignInActivity_keyType)() { err := m.GetBackingStore().Set("keyType", value) if err != nil { panic(err) } } // SetKeyUsage sets the keyUsage property value. Specifies what the key was used for. The possible values are: sign, verify, unknownFutureValue. -func (m *AppCredentialSignInActivity) SetKeyUsage(value *ApplicationKeyUsage)() { +func (m *AppCredentialSignInActivity) SetKeyUsage(value *AppCredentialSignInActivity_keyUsage)() { err := m.GetBackingStore().Set("keyUsage", value) if err != nil { panic(err) @@ -420,8 +420,8 @@ type AppCredentialSignInActivityable interface { GetCredentialOrigin()(*ApplicationKeyOrigin) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetKeyId()(*string) - GetKeyType()(*ApplicationKeyType) - GetKeyUsage()(*ApplicationKeyUsage) + GetKeyType()(*AppCredentialSignInActivity_keyType) + GetKeyUsage()(*AppCredentialSignInActivity_keyUsage) GetResourceId()(*string) GetServicePrincipalObjectId()(*string) GetSignInActivity()(SignInActivityable) @@ -431,8 +431,8 @@ type AppCredentialSignInActivityable interface { SetCredentialOrigin(value *ApplicationKeyOrigin)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetKeyId(value *string)() - SetKeyType(value *ApplicationKeyType)() - SetKeyUsage(value *ApplicationKeyUsage)() + SetKeyType(value *AppCredentialSignInActivity_keyType)() + SetKeyUsage(value *AppCredentialSignInActivity_keyUsage)() SetResourceId(value *string)() SetServicePrincipalObjectId(value *string)() SetSignInActivity(value SignInActivityable)() diff --git a/models/app_credential_sign_in_activity_key_type.go b/models/app_credential_sign_in_activity_key_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/app_credential_sign_in_activity_key_usage.go b/models/app_credential_sign_in_activity_key_usage.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/app_key_credential_restriction_type.go b/models/app_key_credential_restriction_type.go deleted file mode 100644 index a66b6a3576d..00000000000 --- a/models/app_key_credential_restriction_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AppKeyCredentialRestrictionType int - -const ( - ASYMMETRICKEYLIFETIME_APPKEYCREDENTIALRESTRICTIONTYPE AppKeyCredentialRestrictionType = iota - TRUSTEDCERTIFICATEAUTHORITY_APPKEYCREDENTIALRESTRICTIONTYPE - UNKNOWNFUTUREVALUE_APPKEYCREDENTIALRESTRICTIONTYPE -) - -func (i AppKeyCredentialRestrictionType) String() string { - return []string{"asymmetricKeyLifetime", "trustedCertificateAuthority", "unknownFutureValue"}[i] -} -func ParseAppKeyCredentialRestrictionType(v string) (any, error) { - result := ASYMMETRICKEYLIFETIME_APPKEYCREDENTIALRESTRICTIONTYPE - switch v { - case "asymmetricKeyLifetime": - result = ASYMMETRICKEYLIFETIME_APPKEYCREDENTIALRESTRICTIONTYPE - case "trustedCertificateAuthority": - result = TRUSTEDCERTIFICATEAUTHORITY_APPKEYCREDENTIALRESTRICTIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_APPKEYCREDENTIALRESTRICTIONTYPE - default: - return 0, errors.New("Unknown AppKeyCredentialRestrictionType value: " + v) - } - return &result, nil -} -func SerializeAppKeyCredentialRestrictionType(values []AppKeyCredentialRestrictionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AppKeyCredentialRestrictionType) isMultiValue() bool { - return false -} diff --git a/models/apple_vpn_always_on_configuration.go b/models/apple_vpn_always_on_configuration.go index a175e57166f..3df603d5c68 100644 --- a/models/apple_vpn_always_on_configuration.go +++ b/models/apple_vpn_always_on_configuration.go @@ -35,13 +35,13 @@ func (m *AppleVpnAlwaysOnConfiguration) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAirPrintExceptionAction gets the airPrintExceptionAction property value. Determine whether AirPrint service will be exempt from the always-on VPN connection. Possible values are: forceTrafficViaVPN, allowTrafficOutside, dropTraffic. -func (m *AppleVpnAlwaysOnConfiguration) GetAirPrintExceptionAction()(*VpnServiceExceptionAction) { +func (m *AppleVpnAlwaysOnConfiguration) GetAirPrintExceptionAction()(*AppleVpnAlwaysOnConfiguration_airPrintExceptionAction) { val, err := m.GetBackingStore().Get("airPrintExceptionAction") if err != nil { panic(err) } if val != nil { - return val.(*VpnServiceExceptionAction) + return val.(*AppleVpnAlwaysOnConfiguration_airPrintExceptionAction) } return nil } @@ -83,13 +83,13 @@ func (m *AppleVpnAlwaysOnConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3 return m.backingStore } // GetCellularExceptionAction gets the cellularExceptionAction property value. Determine whether Cellular service will be exempt from the always-on VPN connection. Possible values are: forceTrafficViaVPN, allowTrafficOutside, dropTraffic. -func (m *AppleVpnAlwaysOnConfiguration) GetCellularExceptionAction()(*VpnServiceExceptionAction) { +func (m *AppleVpnAlwaysOnConfiguration) GetCellularExceptionAction()(*AppleVpnAlwaysOnConfiguration_cellularExceptionAction) { val, err := m.GetBackingStore().Get("cellularExceptionAction") if err != nil { panic(err) } if val != nil { - return val.(*VpnServiceExceptionAction) + return val.(*AppleVpnAlwaysOnConfiguration_cellularExceptionAction) } return nil } @@ -97,12 +97,12 @@ func (m *AppleVpnAlwaysOnConfiguration) GetCellularExceptionAction()(*VpnService func (m *AppleVpnAlwaysOnConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["airPrintExceptionAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnServiceExceptionAction) + val, err := n.GetEnumValue(ParseAppleVpnAlwaysOnConfiguration_airPrintExceptionAction) if err != nil { return err } if val != nil { - m.SetAirPrintExceptionAction(val.(*VpnServiceExceptionAction)) + m.SetAirPrintExceptionAction(val.(*AppleVpnAlwaysOnConfiguration_airPrintExceptionAction)) } return nil } @@ -137,12 +137,12 @@ func (m *AppleVpnAlwaysOnConfiguration) GetFieldDeserializers()(map[string]func( return nil } res["cellularExceptionAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnServiceExceptionAction) + val, err := n.GetEnumValue(ParseAppleVpnAlwaysOnConfiguration_cellularExceptionAction) if err != nil { return err } if val != nil { - m.SetCellularExceptionAction(val.(*VpnServiceExceptionAction)) + m.SetCellularExceptionAction(val.(*AppleVpnAlwaysOnConfiguration_cellularExceptionAction)) } return nil } @@ -197,12 +197,12 @@ func (m *AppleVpnAlwaysOnConfiguration) GetFieldDeserializers()(map[string]func( return nil } res["voicemailExceptionAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnServiceExceptionAction) + val, err := n.GetEnumValue(ParseAppleVpnAlwaysOnConfiguration_voicemailExceptionAction) if err != nil { return err } if val != nil { - m.SetVoicemailExceptionAction(val.(*VpnServiceExceptionAction)) + m.SetVoicemailExceptionAction(val.(*AppleVpnAlwaysOnConfiguration_voicemailExceptionAction)) } return nil } @@ -264,13 +264,13 @@ func (m *AppleVpnAlwaysOnConfiguration) GetUserToggleEnabled()(*bool) { return nil } // GetVoicemailExceptionAction gets the voicemailExceptionAction property value. Determine whether voicemail service will be exempt from the always-on VPN connection. Possible values are: forceTrafficViaVPN, allowTrafficOutside, dropTraffic. -func (m *AppleVpnAlwaysOnConfiguration) GetVoicemailExceptionAction()(*VpnServiceExceptionAction) { +func (m *AppleVpnAlwaysOnConfiguration) GetVoicemailExceptionAction()(*AppleVpnAlwaysOnConfiguration_voicemailExceptionAction) { val, err := m.GetBackingStore().Get("voicemailExceptionAction") if err != nil { panic(err) } if val != nil { - return val.(*VpnServiceExceptionAction) + return val.(*AppleVpnAlwaysOnConfiguration_voicemailExceptionAction) } return nil } @@ -362,7 +362,7 @@ func (m *AppleVpnAlwaysOnConfiguration) SetAdditionalData(value map[string]any)( } } // SetAirPrintExceptionAction sets the airPrintExceptionAction property value. Determine whether AirPrint service will be exempt from the always-on VPN connection. Possible values are: forceTrafficViaVPN, allowTrafficOutside, dropTraffic. -func (m *AppleVpnAlwaysOnConfiguration) SetAirPrintExceptionAction(value *VpnServiceExceptionAction)() { +func (m *AppleVpnAlwaysOnConfiguration) SetAirPrintExceptionAction(value *AppleVpnAlwaysOnConfiguration_airPrintExceptionAction)() { err := m.GetBackingStore().Set("airPrintExceptionAction", value) if err != nil { panic(err) @@ -394,7 +394,7 @@ func (m *AppleVpnAlwaysOnConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22 m.backingStore = value } // SetCellularExceptionAction sets the cellularExceptionAction property value. Determine whether Cellular service will be exempt from the always-on VPN connection. Possible values are: forceTrafficViaVPN, allowTrafficOutside, dropTraffic. -func (m *AppleVpnAlwaysOnConfiguration) SetCellularExceptionAction(value *VpnServiceExceptionAction)() { +func (m *AppleVpnAlwaysOnConfiguration) SetCellularExceptionAction(value *AppleVpnAlwaysOnConfiguration_cellularExceptionAction)() { err := m.GetBackingStore().Set("cellularExceptionAction", value) if err != nil { panic(err) @@ -436,7 +436,7 @@ func (m *AppleVpnAlwaysOnConfiguration) SetUserToggleEnabled(value *bool)() { } } // SetVoicemailExceptionAction sets the voicemailExceptionAction property value. Determine whether voicemail service will be exempt from the always-on VPN connection. Possible values are: forceTrafficViaVPN, allowTrafficOutside, dropTraffic. -func (m *AppleVpnAlwaysOnConfiguration) SetVoicemailExceptionAction(value *VpnServiceExceptionAction)() { +func (m *AppleVpnAlwaysOnConfiguration) SetVoicemailExceptionAction(value *AppleVpnAlwaysOnConfiguration_voicemailExceptionAction)() { err := m.GetBackingStore().Set("voicemailExceptionAction", value) if err != nil { panic(err) @@ -447,28 +447,28 @@ type AppleVpnAlwaysOnConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAirPrintExceptionAction()(*VpnServiceExceptionAction) + GetAirPrintExceptionAction()(*AppleVpnAlwaysOnConfiguration_airPrintExceptionAction) GetAllowAllCaptiveNetworkPlugins()(*bool) GetAllowCaptiveWebSheet()(*bool) GetAllowedCaptiveNetworkPlugins()(SpecifiedCaptiveNetworkPluginsable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCellularExceptionAction()(*VpnServiceExceptionAction) + GetCellularExceptionAction()(*AppleVpnAlwaysOnConfiguration_cellularExceptionAction) GetNatKeepAliveIntervalInSeconds()(*int32) GetNatKeepAliveOffloadEnable()(*bool) GetOdataType()(*string) GetTunnelConfiguration()(*VpnTunnelConfigurationType) GetUserToggleEnabled()(*bool) - GetVoicemailExceptionAction()(*VpnServiceExceptionAction) - SetAirPrintExceptionAction(value *VpnServiceExceptionAction)() + GetVoicemailExceptionAction()(*AppleVpnAlwaysOnConfiguration_voicemailExceptionAction) + SetAirPrintExceptionAction(value *AppleVpnAlwaysOnConfiguration_airPrintExceptionAction)() SetAllowAllCaptiveNetworkPlugins(value *bool)() SetAllowCaptiveWebSheet(value *bool)() SetAllowedCaptiveNetworkPlugins(value SpecifiedCaptiveNetworkPluginsable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCellularExceptionAction(value *VpnServiceExceptionAction)() + SetCellularExceptionAction(value *AppleVpnAlwaysOnConfiguration_cellularExceptionAction)() SetNatKeepAliveIntervalInSeconds(value *int32)() SetNatKeepAliveOffloadEnable(value *bool)() SetOdataType(value *string)() SetTunnelConfiguration(value *VpnTunnelConfigurationType)() SetUserToggleEnabled(value *bool)() - SetVoicemailExceptionAction(value *VpnServiceExceptionAction)() + SetVoicemailExceptionAction(value *AppleVpnAlwaysOnConfiguration_voicemailExceptionAction)() } diff --git a/models/apple_vpn_always_on_configuration_air_print_exception_action.go b/models/apple_vpn_always_on_configuration_air_print_exception_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/apple_vpn_always_on_configuration_cellular_exception_action.go b/models/apple_vpn_always_on_configuration_cellular_exception_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/apple_vpn_always_on_configuration_voicemail_exception_action.go b/models/apple_vpn_always_on_configuration_voicemail_exception_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/apple_vpn_configuration.go b/models/apple_vpn_configuration.go index 99b4145f033..e33f1110c60 100644 --- a/models/apple_vpn_configuration.go +++ b/models/apple_vpn_configuration.go @@ -369,12 +369,12 @@ func (m *AppleVpnConfiguration) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["providerType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnProviderType) + val, err := n.GetEnumValue(ParseAppleVpnConfiguration_providerType) if err != nil { return err } if val != nil { - m.SetProviderType(val.(*VpnProviderType)) + m.SetProviderType(val.(*AppleVpnConfiguration_providerType)) } return nil } @@ -481,13 +481,13 @@ func (m *AppleVpnConfiguration) GetOptInToDeviceIdSharing()(*bool) { return nil } // GetProviderType gets the providerType property value. Provider type for per-app VPN. Possible values are: notConfigured, appProxy, packetTunnel. -func (m *AppleVpnConfiguration) GetProviderType()(*VpnProviderType) { +func (m *AppleVpnConfiguration) GetProviderType()(*AppleVpnConfiguration_providerType) { val, err := m.GetBackingStore().Get("providerType") if err != nil { panic(err) } if val != nil { - return val.(*VpnProviderType) + return val.(*AppleVpnConfiguration_providerType) } return nil } @@ -820,7 +820,7 @@ func (m *AppleVpnConfiguration) SetOptInToDeviceIdSharing(value *bool)() { } } // SetProviderType sets the providerType property value. Provider type for per-app VPN. Possible values are: notConfigured, appProxy, packetTunnel. -func (m *AppleVpnConfiguration) SetProviderType(value *VpnProviderType)() { +func (m *AppleVpnConfiguration) SetProviderType(value *AppleVpnConfiguration_providerType)() { err := m.GetBackingStore().Set("providerType", value) if err != nil { panic(err) @@ -881,7 +881,7 @@ type AppleVpnConfigurationable interface { GetLoginGroupOrDomain()(*string) GetOnDemandRules()([]VpnOnDemandRuleable) GetOptInToDeviceIdSharing()(*bool) - GetProviderType()(*VpnProviderType) + GetProviderType()(*AppleVpnConfiguration_providerType) GetProxyServer()(VpnProxyServerable) GetRealm()(*string) GetRole()(*string) @@ -903,7 +903,7 @@ type AppleVpnConfigurationable interface { SetLoginGroupOrDomain(value *string)() SetOnDemandRules(value []VpnOnDemandRuleable)() SetOptInToDeviceIdSharing(value *bool)() - SetProviderType(value *VpnProviderType)() + SetProviderType(value *AppleVpnConfiguration_providerType)() SetProxyServer(value VpnProxyServerable)() SetRealm(value *string)() SetRole(value *string)() diff --git a/models/apple_vpn_configuration_provider_type.go b/models/apple_vpn_configuration_provider_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/application_key_type.go b/models/application_key_type.go deleted file mode 100644 index d9438470da9..00000000000 --- a/models/application_key_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ApplicationKeyType int - -const ( - CLIENTSECRET_APPLICATIONKEYTYPE ApplicationKeyType = iota - CERTIFICATE_APPLICATIONKEYTYPE - UNKNOWNFUTUREVALUE_APPLICATIONKEYTYPE -) - -func (i ApplicationKeyType) String() string { - return []string{"clientSecret", "certificate", "unknownFutureValue"}[i] -} -func ParseApplicationKeyType(v string) (any, error) { - result := CLIENTSECRET_APPLICATIONKEYTYPE - switch v { - case "clientSecret": - result = CLIENTSECRET_APPLICATIONKEYTYPE - case "certificate": - result = CERTIFICATE_APPLICATIONKEYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_APPLICATIONKEYTYPE - default: - return 0, errors.New("Unknown ApplicationKeyType value: " + v) - } - return &result, nil -} -func SerializeApplicationKeyType(values []ApplicationKeyType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ApplicationKeyType) isMultiValue() bool { - return false -} diff --git a/models/application_key_usage.go b/models/application_key_usage.go deleted file mode 100644 index db7c412d809..00000000000 --- a/models/application_key_usage.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ApplicationKeyUsage int - -const ( - SIGN_APPLICATIONKEYUSAGE ApplicationKeyUsage = iota - VERIFY_APPLICATIONKEYUSAGE - UNKNOWNFUTUREVALUE_APPLICATIONKEYUSAGE -) - -func (i ApplicationKeyUsage) String() string { - return []string{"sign", "verify", "unknownFutureValue"}[i] -} -func ParseApplicationKeyUsage(v string) (any, error) { - result := SIGN_APPLICATIONKEYUSAGE - switch v { - case "sign": - result = SIGN_APPLICATIONKEYUSAGE - case "verify": - result = VERIFY_APPLICATIONKEYUSAGE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_APPLICATIONKEYUSAGE - default: - return 0, errors.New("Unknown ApplicationKeyUsage value: " + v) - } - return &result, nil -} -func SerializeApplicationKeyUsage(values []ApplicationKeyUsage) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ApplicationKeyUsage) isMultiValue() bool { - return false -} diff --git a/models/application_mode.go b/models/application_mode.go deleted file mode 100644 index 779100012ad..00000000000 --- a/models/application_mode.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ApplicationMode int - -const ( - MANUAL_APPLICATIONMODE ApplicationMode = iota - AUTOMATIC_APPLICATIONMODE - RECOMMENDED_APPLICATIONMODE -) - -func (i ApplicationMode) String() string { - return []string{"manual", "automatic", "recommended"}[i] -} -func ParseApplicationMode(v string) (any, error) { - result := MANUAL_APPLICATIONMODE - switch v { - case "manual": - result = MANUAL_APPLICATIONMODE - case "automatic": - result = AUTOMATIC_APPLICATIONMODE - case "recommended": - result = RECOMMENDED_APPLICATIONMODE - default: - return 0, errors.New("Unknown ApplicationMode value: " + v) - } - return &result, nil -} -func SerializeApplicationMode(values []ApplicationMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ApplicationMode) isMultiValue() bool { - return false -} diff --git a/models/application_permissions_required.go b/models/application_permissions_required.go deleted file mode 100644 index 53e1d02973d..00000000000 --- a/models/application_permissions_required.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ApplicationPermissionsRequired int - -const ( - UNKNOWN_APPLICATIONPERMISSIONSREQUIRED ApplicationPermissionsRequired = iota - ANONYMOUS_APPLICATIONPERMISSIONSREQUIRED - GUEST_APPLICATIONPERMISSIONSREQUIRED - USER_APPLICATIONPERMISSIONSREQUIRED - ADMINISTRATOR_APPLICATIONPERMISSIONSREQUIRED - SYSTEM_APPLICATIONPERMISSIONSREQUIRED - UNKNOWNFUTUREVALUE_APPLICATIONPERMISSIONSREQUIRED -) - -func (i ApplicationPermissionsRequired) String() string { - return []string{"unknown", "anonymous", "guest", "user", "administrator", "system", "unknownFutureValue"}[i] -} -func ParseApplicationPermissionsRequired(v string) (any, error) { - result := UNKNOWN_APPLICATIONPERMISSIONSREQUIRED - switch v { - case "unknown": - result = UNKNOWN_APPLICATIONPERMISSIONSREQUIRED - case "anonymous": - result = ANONYMOUS_APPLICATIONPERMISSIONSREQUIRED - case "guest": - result = GUEST_APPLICATIONPERMISSIONSREQUIRED - case "user": - result = USER_APPLICATIONPERMISSIONSREQUIRED - case "administrator": - result = ADMINISTRATOR_APPLICATIONPERMISSIONSREQUIRED - case "system": - result = SYSTEM_APPLICATIONPERMISSIONSREQUIRED - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_APPLICATIONPERMISSIONSREQUIRED - default: - return 0, errors.New("Unknown ApplicationPermissionsRequired value: " + v) - } - return &result, nil -} -func SerializeApplicationPermissionsRequired(values []ApplicationPermissionsRequired) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ApplicationPermissionsRequired) isMultiValue() bool { - return false -} diff --git a/models/applied_authentication_event_listener.go b/models/applied_authentication_event_listener.go index 1b9f35b04bc..0bfab9ab4d8 100644 --- a/models/applied_authentication_event_listener.go +++ b/models/applied_authentication_event_listener.go @@ -39,13 +39,13 @@ func (m *AppliedAuthenticationEventListener) GetBackingStore()(ie8677ce2c7e1b4c2 return m.backingStore } // GetEventType gets the eventType property value. The type of authentication event that triggered the custom authentication extension request. The possible values are: tokenIssuanceStart, pageRenderStart, unknownFutureValue. -func (m *AppliedAuthenticationEventListener) GetEventType()(*AuthenticationEventType) { +func (m *AppliedAuthenticationEventListener) GetEventType()(*AppliedAuthenticationEventListener_eventType) { val, err := m.GetBackingStore().Get("eventType") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationEventType) + return val.(*AppliedAuthenticationEventListener_eventType) } return nil } @@ -64,12 +64,12 @@ func (m *AppliedAuthenticationEventListener) GetExecutedListenerId()(*string) { func (m *AppliedAuthenticationEventListener) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["eventType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationEventType) + val, err := n.GetEnumValue(ParseAppliedAuthenticationEventListener_eventType) if err != nil { return err } if val != nil { - m.SetEventType(val.(*AuthenticationEventType)) + m.SetEventType(val.(*AppliedAuthenticationEventListener_eventType)) } return nil } @@ -174,7 +174,7 @@ func (m *AppliedAuthenticationEventListener) SetBackingStore(value ie8677ce2c7e1 m.backingStore = value } // SetEventType sets the eventType property value. The type of authentication event that triggered the custom authentication extension request. The possible values are: tokenIssuanceStart, pageRenderStart, unknownFutureValue. -func (m *AppliedAuthenticationEventListener) SetEventType(value *AuthenticationEventType)() { +func (m *AppliedAuthenticationEventListener) SetEventType(value *AppliedAuthenticationEventListener_eventType)() { err := m.GetBackingStore().Set("eventType", value) if err != nil { panic(err) @@ -207,12 +207,12 @@ type AppliedAuthenticationEventListenerable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEventType()(*AuthenticationEventType) + GetEventType()(*AppliedAuthenticationEventListener_eventType) GetExecutedListenerId()(*string) GetHandlerResult()(AuthenticationEventHandlerResultable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEventType(value *AuthenticationEventType)() + SetEventType(value *AppliedAuthenticationEventListener_eventType)() SetExecutedListenerId(value *string)() SetHandlerResult(value AuthenticationEventHandlerResultable)() SetOdataType(value *string)() diff --git a/models/applied_authentication_event_listener_event_type.go b/models/applied_authentication_event_listener_event_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/applied_conditional_access_policy.go b/models/applied_conditional_access_policy.go index 2e2e27255bc..d55531d54fd 100644 --- a/models/applied_conditional_access_policy.go +++ b/models/applied_conditional_access_policy.go @@ -50,24 +50,24 @@ func (m *AppliedConditionalAccessPolicy) GetBackingStore()(ie8677ce2c7e1b4c22e9c return m.backingStore } // GetConditionsNotSatisfied gets the conditionsNotSatisfied property value. Refers to the conditional access policy conditions that aren't satisfied. The possible values are: none, application, users, devicePlatform, location, clientType, signInRisk, userRisk, time, deviceState, client,ipAddressSeenByAzureAD,ipAddressSeenByResourceProvider,unknownFutureValue,servicePrincipals,servicePrincipalRisk, authenticationFlows, insiderRisk . You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: servicePrincipals,servicePrincipalRisk, authenticationFlows, insiderRisk. conditionalAccessConditions is a multi-valued enumeration and the property can contain multiple values in a comma-separated list. -func (m *AppliedConditionalAccessPolicy) GetConditionsNotSatisfied()(*ConditionalAccessConditions) { +func (m *AppliedConditionalAccessPolicy) GetConditionsNotSatisfied()(*AppliedConditionalAccessPolicy_conditionsNotSatisfied) { val, err := m.GetBackingStore().Get("conditionsNotSatisfied") if err != nil { panic(err) } if val != nil { - return val.(*ConditionalAccessConditions) + return val.(*AppliedConditionalAccessPolicy_conditionsNotSatisfied) } return nil } // GetConditionsSatisfied gets the conditionsSatisfied property value. Refers to the conditional access policy conditions that are satisfied. The possible values are: none, application, users, devicePlatform, location, clientType, signInRisk, userRisk, time, deviceState, client,ipAddressSeenByAzureAD,ipAddressSeenByResourceProvider,unknownFutureValue,servicePrincipals,servicePrincipalRisk, authenticationFlows, insiderRisk. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: servicePrincipals,servicePrincipalRisk, authenticationFlows, insiderRisk. conditionalAccessConditions is a multi-valued enumeration and the property can contain multiple values in a comma-separated list. -func (m *AppliedConditionalAccessPolicy) GetConditionsSatisfied()(*ConditionalAccessConditions) { +func (m *AppliedConditionalAccessPolicy) GetConditionsSatisfied()(*AppliedConditionalAccessPolicy_conditionsSatisfied) { val, err := m.GetBackingStore().Get("conditionsSatisfied") if err != nil { panic(err) } if val != nil { - return val.(*ConditionalAccessConditions) + return val.(*AppliedConditionalAccessPolicy_conditionsSatisfied) } return nil } @@ -129,22 +129,22 @@ func (m *AppliedConditionalAccessPolicy) GetFieldDeserializers()(map[string]func return nil } res["conditionsNotSatisfied"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConditionalAccessConditions) + val, err := n.GetEnumValue(ParseAppliedConditionalAccessPolicy_conditionsNotSatisfied) if err != nil { return err } if val != nil { - m.SetConditionsNotSatisfied(val.(*ConditionalAccessConditions)) + m.SetConditionsNotSatisfied(val.(*AppliedConditionalAccessPolicy_conditionsNotSatisfied)) } return nil } res["conditionsSatisfied"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConditionalAccessConditions) + val, err := n.GetEnumValue(ParseAppliedConditionalAccessPolicy_conditionsSatisfied) if err != nil { return err } if val != nil { - m.SetConditionsSatisfied(val.(*ConditionalAccessConditions)) + m.SetConditionsSatisfied(val.(*AppliedConditionalAccessPolicy_conditionsSatisfied)) } return nil } @@ -243,12 +243,12 @@ func (m *AppliedConditionalAccessPolicy) GetFieldDeserializers()(map[string]func return nil } res["result"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAppliedConditionalAccessPolicyResult) + val, err := n.GetEnumValue(ParseAppliedConditionalAccessPolicy_result) if err != nil { return err } if val != nil { - m.SetResult(val.(*AppliedConditionalAccessPolicyResult)) + m.SetResult(val.(*AppliedConditionalAccessPolicy_result)) } return nil } @@ -304,13 +304,13 @@ func (m *AppliedConditionalAccessPolicy) GetOdataType()(*string) { return nil } // GetResult gets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions weren't met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. -func (m *AppliedConditionalAccessPolicy) GetResult()(*AppliedConditionalAccessPolicyResult) { +func (m *AppliedConditionalAccessPolicy) GetResult()(*AppliedConditionalAccessPolicy_result) { val, err := m.GetBackingStore().Get("result") if err != nil { panic(err) } if val != nil { - return val.(*AppliedConditionalAccessPolicyResult) + return val.(*AppliedConditionalAccessPolicy_result) } return nil } @@ -441,14 +441,14 @@ func (m *AppliedConditionalAccessPolicy) SetBackingStore(value ie8677ce2c7e1b4c2 m.backingStore = value } // SetConditionsNotSatisfied sets the conditionsNotSatisfied property value. Refers to the conditional access policy conditions that aren't satisfied. The possible values are: none, application, users, devicePlatform, location, clientType, signInRisk, userRisk, time, deviceState, client,ipAddressSeenByAzureAD,ipAddressSeenByResourceProvider,unknownFutureValue,servicePrincipals,servicePrincipalRisk, authenticationFlows, insiderRisk . You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: servicePrincipals,servicePrincipalRisk, authenticationFlows, insiderRisk. conditionalAccessConditions is a multi-valued enumeration and the property can contain multiple values in a comma-separated list. -func (m *AppliedConditionalAccessPolicy) SetConditionsNotSatisfied(value *ConditionalAccessConditions)() { +func (m *AppliedConditionalAccessPolicy) SetConditionsNotSatisfied(value *AppliedConditionalAccessPolicy_conditionsNotSatisfied)() { err := m.GetBackingStore().Set("conditionsNotSatisfied", value) if err != nil { panic(err) } } // SetConditionsSatisfied sets the conditionsSatisfied property value. Refers to the conditional access policy conditions that are satisfied. The possible values are: none, application, users, devicePlatform, location, clientType, signInRisk, userRisk, time, deviceState, client,ipAddressSeenByAzureAD,ipAddressSeenByResourceProvider,unknownFutureValue,servicePrincipals,servicePrincipalRisk, authenticationFlows, insiderRisk. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: servicePrincipals,servicePrincipalRisk, authenticationFlows, insiderRisk. conditionalAccessConditions is a multi-valued enumeration and the property can contain multiple values in a comma-separated list. -func (m *AppliedConditionalAccessPolicy) SetConditionsSatisfied(value *ConditionalAccessConditions)() { +func (m *AppliedConditionalAccessPolicy) SetConditionsSatisfied(value *AppliedConditionalAccessPolicy_conditionsSatisfied)() { err := m.GetBackingStore().Set("conditionsSatisfied", value) if err != nil { panic(err) @@ -504,7 +504,7 @@ func (m *AppliedConditionalAccessPolicy) SetOdataType(value *string)() { } } // SetResult sets the result property value. Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions weren't met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. -func (m *AppliedConditionalAccessPolicy) SetResult(value *AppliedConditionalAccessPolicyResult)() { +func (m *AppliedConditionalAccessPolicy) SetResult(value *AppliedConditionalAccessPolicy_result)() { err := m.GetBackingStore().Set("result", value) if err != nil { panic(err) @@ -524,8 +524,8 @@ type AppliedConditionalAccessPolicyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAuthenticationStrength()(AuthenticationStrengthable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetConditionsNotSatisfied()(*ConditionalAccessConditions) - GetConditionsSatisfied()(*ConditionalAccessConditions) + GetConditionsNotSatisfied()(*AppliedConditionalAccessPolicy_conditionsNotSatisfied) + GetConditionsSatisfied()(*AppliedConditionalAccessPolicy_conditionsSatisfied) GetDisplayName()(*string) GetEnforcedGrantControls()([]string) GetEnforcedSessionControls()([]string) @@ -533,12 +533,12 @@ type AppliedConditionalAccessPolicyable interface { GetId()(*string) GetIncludeRulesSatisfied()([]ConditionalAccessRuleSatisfiedable) GetOdataType()(*string) - GetResult()(*AppliedConditionalAccessPolicyResult) + GetResult()(*AppliedConditionalAccessPolicy_result) GetSessionControlsNotSatisfied()([]string) SetAuthenticationStrength(value AuthenticationStrengthable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetConditionsNotSatisfied(value *ConditionalAccessConditions)() - SetConditionsSatisfied(value *ConditionalAccessConditions)() + SetConditionsNotSatisfied(value *AppliedConditionalAccessPolicy_conditionsNotSatisfied)() + SetConditionsSatisfied(value *AppliedConditionalAccessPolicy_conditionsSatisfied)() SetDisplayName(value *string)() SetEnforcedGrantControls(value []string)() SetEnforcedSessionControls(value []string)() @@ -546,6 +546,6 @@ type AppliedConditionalAccessPolicyable interface { SetId(value *string)() SetIncludeRulesSatisfied(value []ConditionalAccessRuleSatisfiedable)() SetOdataType(value *string)() - SetResult(value *AppliedConditionalAccessPolicyResult)() + SetResult(value *AppliedConditionalAccessPolicy_result)() SetSessionControlsNotSatisfied(value []string)() } diff --git a/models/applied_conditional_access_policy_conditions_not_satisfied.go b/models/applied_conditional_access_policy_conditions_not_satisfied.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/applied_conditional_access_policy_conditions_satisfied.go b/models/applied_conditional_access_policy_conditions_satisfied.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/applied_conditional_access_policy_result.go b/models/applied_conditional_access_policy_result.go index e55ee6b6e12..e69de29bb2d 100644 --- a/models/applied_conditional_access_policy_result.go +++ b/models/applied_conditional_access_policy_result.go @@ -1,61 +0,0 @@ -package models -import ( - "errors" -) -// -type AppliedConditionalAccessPolicyResult int - -const ( - SUCCESS_APPLIEDCONDITIONALACCESSPOLICYRESULT AppliedConditionalAccessPolicyResult = iota - FAILURE_APPLIEDCONDITIONALACCESSPOLICYRESULT - NOTAPPLIED_APPLIEDCONDITIONALACCESSPOLICYRESULT - NOTENABLED_APPLIEDCONDITIONALACCESSPOLICYRESULT - UNKNOWN_APPLIEDCONDITIONALACCESSPOLICYRESULT - UNKNOWNFUTUREVALUE_APPLIEDCONDITIONALACCESSPOLICYRESULT - REPORTONLYSUCCESS_APPLIEDCONDITIONALACCESSPOLICYRESULT - REPORTONLYFAILURE_APPLIEDCONDITIONALACCESSPOLICYRESULT - REPORTONLYNOTAPPLIED_APPLIEDCONDITIONALACCESSPOLICYRESULT - REPORTONLYINTERRUPTED_APPLIEDCONDITIONALACCESSPOLICYRESULT -) - -func (i AppliedConditionalAccessPolicyResult) String() string { - return []string{"success", "failure", "notApplied", "notEnabled", "unknown", "unknownFutureValue", "reportOnlySuccess", "reportOnlyFailure", "reportOnlyNotApplied", "reportOnlyInterrupted"}[i] -} -func ParseAppliedConditionalAccessPolicyResult(v string) (any, error) { - result := SUCCESS_APPLIEDCONDITIONALACCESSPOLICYRESULT - switch v { - case "success": - result = SUCCESS_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "failure": - result = FAILURE_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "notApplied": - result = NOTAPPLIED_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "notEnabled": - result = NOTENABLED_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "unknown": - result = UNKNOWN_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "reportOnlySuccess": - result = REPORTONLYSUCCESS_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "reportOnlyFailure": - result = REPORTONLYFAILURE_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "reportOnlyNotApplied": - result = REPORTONLYNOTAPPLIED_APPLIEDCONDITIONALACCESSPOLICYRESULT - case "reportOnlyInterrupted": - result = REPORTONLYINTERRUPTED_APPLIEDCONDITIONALACCESSPOLICYRESULT - default: - return 0, errors.New("Unknown AppliedConditionalAccessPolicyResult value: " + v) - } - return &result, nil -} -func SerializeAppliedConditionalAccessPolicyResult(values []AppliedConditionalAccessPolicyResult) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AppliedConditionalAccessPolicyResult) isMultiValue() bool { - return false -} diff --git a/models/approval_state.go b/models/approval_state.go deleted file mode 100644 index 3e6a034fd7f..00000000000 --- a/models/approval_state.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type ApprovalState int - -const ( - PENDING_APPROVALSTATE ApprovalState = iota - APPROVED_APPROVALSTATE - DENIED_APPROVALSTATE - ABORTED_APPROVALSTATE - CANCELED_APPROVALSTATE -) - -func (i ApprovalState) String() string { - return []string{"pending", "approved", "denied", "aborted", "canceled"}[i] -} -func ParseApprovalState(v string) (any, error) { - result := PENDING_APPROVALSTATE - switch v { - case "pending": - result = PENDING_APPROVALSTATE - case "approved": - result = APPROVED_APPROVALSTATE - case "denied": - result = DENIED_APPROVALSTATE - case "aborted": - result = ABORTED_APPROVALSTATE - case "canceled": - result = CANCELED_APPROVALSTATE - default: - return 0, errors.New("Unknown ApprovalState value: " + v) - } - return &result, nil -} -func SerializeApprovalState(values []ApprovalState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ApprovalState) isMultiValue() bool { - return false -} diff --git a/models/apps_installation_options_for_mac.go b/models/apps_installation_options_for_mac.go new file mode 100644 index 00000000000..65a8fb2c39f --- /dev/null +++ b/models/apps_installation_options_for_mac.go @@ -0,0 +1,182 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// AppsInstallationOptionsForMac +type AppsInstallationOptionsForMac struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAppsInstallationOptionsForMac instantiates a new appsInstallationOptionsForMac and sets the default values. +func NewAppsInstallationOptionsForMac()(*AppsInstallationOptionsForMac) { + m := &AppsInstallationOptionsForMac{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAppsInstallationOptionsForMacFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAppsInstallationOptionsForMacFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAppsInstallationOptionsForMac(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AppsInstallationOptionsForMac) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *AppsInstallationOptionsForMac) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AppsInstallationOptionsForMac) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isMicrosoft365AppsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsMicrosoft365AppsEnabled(val) + } + return nil + } + res["isSkypeForBusinessEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsSkypeForBusinessEnabled(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetIsMicrosoft365AppsEnabled gets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps on their MAC devices. The default value is true. +func (m *AppsInstallationOptionsForMac) GetIsMicrosoft365AppsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isMicrosoft365AppsEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsSkypeForBusinessEnabled gets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business on their MAC devices running OS X El Capitan 10.11 or later. The default value is true. +func (m *AppsInstallationOptionsForMac) GetIsSkypeForBusinessEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isSkypeForBusinessEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AppsInstallationOptionsForMac) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AppsInstallationOptionsForMac) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isMicrosoft365AppsEnabled", m.GetIsMicrosoft365AppsEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isSkypeForBusinessEnabled", m.GetIsSkypeForBusinessEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AppsInstallationOptionsForMac) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AppsInstallationOptionsForMac) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsMicrosoft365AppsEnabled sets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps on their MAC devices. The default value is true. +func (m *AppsInstallationOptionsForMac) SetIsMicrosoft365AppsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isMicrosoft365AppsEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsSkypeForBusinessEnabled sets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business on their MAC devices running OS X El Capitan 10.11 or later. The default value is true. +func (m *AppsInstallationOptionsForMac) SetIsSkypeForBusinessEnabled(value *bool)() { + err := m.GetBackingStore().Set("isSkypeForBusinessEnabled", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AppsInstallationOptionsForMac) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// AppsInstallationOptionsForMacable +type AppsInstallationOptionsForMacable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsMicrosoft365AppsEnabled()(*bool) + GetIsSkypeForBusinessEnabled()(*bool) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsMicrosoft365AppsEnabled(value *bool)() + SetIsSkypeForBusinessEnabled(value *bool)() + SetOdataType(value *string)() +} diff --git a/models/apps_installation_options_for_windows.go b/models/apps_installation_options_for_windows.go new file mode 100644 index 00000000000..914471a6d7c --- /dev/null +++ b/models/apps_installation_options_for_windows.go @@ -0,0 +1,254 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// AppsInstallationOptionsForWindows +type AppsInstallationOptionsForWindows struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAppsInstallationOptionsForWindows instantiates a new appsInstallationOptionsForWindows and sets the default values. +func NewAppsInstallationOptionsForWindows()(*AppsInstallationOptionsForWindows) { + m := &AppsInstallationOptionsForWindows{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAppsInstallationOptionsForWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAppsInstallationOptionsForWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAppsInstallationOptionsForWindows(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AppsInstallationOptionsForWindows) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *AppsInstallationOptionsForWindows) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AppsInstallationOptionsForWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isMicrosoft365AppsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsMicrosoft365AppsEnabled(val) + } + return nil + } + res["isProjectEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsProjectEnabled(val) + } + return nil + } + res["isSkypeForBusinessEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsSkypeForBusinessEnabled(val) + } + return nil + } + res["isVisioEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsVisioEnabled(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetIsMicrosoft365AppsEnabled gets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps, including Skype for Business, on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) GetIsMicrosoft365AppsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isMicrosoft365AppsEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsProjectEnabled gets the isProjectEnabled property value. Specifies whether users can install Microsoft Project on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) GetIsProjectEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isProjectEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsSkypeForBusinessEnabled gets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business (standalone) on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) GetIsSkypeForBusinessEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isSkypeForBusinessEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsVisioEnabled gets the isVisioEnabled property value. Specifies whether users can install Visio on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) GetIsVisioEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isVisioEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AppsInstallationOptionsForWindows) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AppsInstallationOptionsForWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isMicrosoft365AppsEnabled", m.GetIsMicrosoft365AppsEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isProjectEnabled", m.GetIsProjectEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isSkypeForBusinessEnabled", m.GetIsSkypeForBusinessEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isVisioEnabled", m.GetIsVisioEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AppsInstallationOptionsForWindows) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AppsInstallationOptionsForWindows) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsMicrosoft365AppsEnabled sets the isMicrosoft365AppsEnabled property value. Specifies whether users can install Microsoft 365 apps, including Skype for Business, on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) SetIsMicrosoft365AppsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isMicrosoft365AppsEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsProjectEnabled sets the isProjectEnabled property value. Specifies whether users can install Microsoft Project on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) SetIsProjectEnabled(value *bool)() { + err := m.GetBackingStore().Set("isProjectEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsSkypeForBusinessEnabled sets the isSkypeForBusinessEnabled property value. Specifies whether users can install Skype for Business (standalone) on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) SetIsSkypeForBusinessEnabled(value *bool)() { + err := m.GetBackingStore().Set("isSkypeForBusinessEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsVisioEnabled sets the isVisioEnabled property value. Specifies whether users can install Visio on their Windows devices. The default value is true. +func (m *AppsInstallationOptionsForWindows) SetIsVisioEnabled(value *bool)() { + err := m.GetBackingStore().Set("isVisioEnabled", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AppsInstallationOptionsForWindows) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// AppsInstallationOptionsForWindowsable +type AppsInstallationOptionsForWindowsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsMicrosoft365AppsEnabled()(*bool) + GetIsProjectEnabled()(*bool) + GetIsSkypeForBusinessEnabled()(*bool) + GetIsVisioEnabled()(*bool) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsMicrosoft365AppsEnabled(value *bool)() + SetIsProjectEnabled(value *bool)() + SetIsSkypeForBusinessEnabled(value *bool)() + SetIsVisioEnabled(value *bool)() + SetOdataType(value *string)() +} diff --git a/models/apps_update_channel_type.go b/models/apps_update_channel_type.go new file mode 100644 index 00000000000..495c9088536 --- /dev/null +++ b/models/apps_update_channel_type.go @@ -0,0 +1,43 @@ +package models +import ( + "errors" +) +// +type AppsUpdateChannelType int + +const ( + CURRENT_APPSUPDATECHANNELTYPE AppsUpdateChannelType = iota + MONTHLYENTERPRISE_APPSUPDATECHANNELTYPE + SEMIANNUAL_APPSUPDATECHANNELTYPE + UNKNOWNFUTUREVALUE_APPSUPDATECHANNELTYPE +) + +func (i AppsUpdateChannelType) String() string { + return []string{"current", "monthlyEnterprise", "semiAnnual", "unknownFutureValue"}[i] +} +func ParseAppsUpdateChannelType(v string) (any, error) { + result := CURRENT_APPSUPDATECHANNELTYPE + switch v { + case "current": + result = CURRENT_APPSUPDATECHANNELTYPE + case "monthlyEnterprise": + result = MONTHLYENTERPRISE_APPSUPDATECHANNELTYPE + case "semiAnnual": + result = SEMIANNUAL_APPSUPDATECHANNELTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_APPSUPDATECHANNELTYPE + default: + return 0, errors.New("Unknown AppsUpdateChannelType value: " + v) + } + return &result, nil +} +func SerializeAppsUpdateChannelType(values []AppsUpdateChannelType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i AppsUpdateChannelType) isMultiValue() bool { + return false +} diff --git a/models/assignment_review_settings.go b/models/assignment_review_settings.go index fb0b08524b1..0a31e84fb20 100644 --- a/models/assignment_review_settings.go +++ b/models/assignment_review_settings.go @@ -24,13 +24,13 @@ func CreateAssignmentReviewSettingsFromDiscriminatorValue(parseNode i878a80d2330 return NewAssignmentReviewSettings(), nil } // GetAccessReviewTimeoutBehavior gets the accessReviewTimeoutBehavior property value. The default decision to apply if the request isn't reviewed within the period specified in durationInDays. The possible values are: acceptAccessRecommendation, keepAccess, removeAccess, and unknownFutureValue. -func (m *AssignmentReviewSettings) GetAccessReviewTimeoutBehavior()(*AccessReviewTimeoutBehavior) { +func (m *AssignmentReviewSettings) GetAccessReviewTimeoutBehavior()(*AssignmentReviewSettings_accessReviewTimeoutBehavior) { val, err := m.GetBackingStore().Get("accessReviewTimeoutBehavior") if err != nil { panic(err) } if val != nil { - return val.(*AccessReviewTimeoutBehavior) + return val.(*AssignmentReviewSettings_accessReviewTimeoutBehavior) } return nil } @@ -65,12 +65,12 @@ func (m *AssignmentReviewSettings) GetDurationInDays()(*int32) { func (m *AssignmentReviewSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["accessReviewTimeoutBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessReviewTimeoutBehavior) + val, err := n.GetEnumValue(ParseAssignmentReviewSettings_accessReviewTimeoutBehavior) if err != nil { return err } if val != nil { - m.SetAccessReviewTimeoutBehavior(val.(*AccessReviewTimeoutBehavior)) + m.SetAccessReviewTimeoutBehavior(val.(*AssignmentReviewSettings_accessReviewTimeoutBehavior)) } return nil } @@ -338,7 +338,7 @@ func (m *AssignmentReviewSettings) Serialize(writer i878a80d2330e89d26896388a3f4 return nil } // SetAccessReviewTimeoutBehavior sets the accessReviewTimeoutBehavior property value. The default decision to apply if the request isn't reviewed within the period specified in durationInDays. The possible values are: acceptAccessRecommendation, keepAccess, removeAccess, and unknownFutureValue. -func (m *AssignmentReviewSettings) SetAccessReviewTimeoutBehavior(value *AccessReviewTimeoutBehavior)() { +func (m *AssignmentReviewSettings) SetAccessReviewTimeoutBehavior(value *AssignmentReviewSettings_accessReviewTimeoutBehavior)() { err := m.GetBackingStore().Set("accessReviewTimeoutBehavior", value) if err != nil { panic(err) @@ -423,7 +423,7 @@ type AssignmentReviewSettingsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAccessReviewTimeoutBehavior()(*AccessReviewTimeoutBehavior) + GetAccessReviewTimeoutBehavior()(*AssignmentReviewSettings_accessReviewTimeoutBehavior) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDurationInDays()(*int32) GetIsAccessRecommendationEnabled()(*bool) @@ -434,7 +434,7 @@ type AssignmentReviewSettingsable interface { GetReviewers()([]UserSetable) GetReviewerType()(*string) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - SetAccessReviewTimeoutBehavior(value *AccessReviewTimeoutBehavior)() + SetAccessReviewTimeoutBehavior(value *AssignmentReviewSettings_accessReviewTimeoutBehavior)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDurationInDays(value *int32)() SetIsAccessRecommendationEnabled(value *bool)() diff --git a/models/assignment_review_settings_access_review_timeout_behavior.go b/models/assignment_review_settings_access_review_timeout_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/attachment_info.go b/models/attachment_info.go index c7c6e038351..3a563174ca4 100644 --- a/models/attachment_info.go +++ b/models/attachment_info.go @@ -35,13 +35,13 @@ func (m *AttachmentInfo) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAttachmentType gets the attachmentType property value. The type of the attachment. The possible values are: file, item, reference. Required. -func (m *AttachmentInfo) GetAttachmentType()(*AttachmentType) { +func (m *AttachmentInfo) GetAttachmentType()(*AttachmentInfo_attachmentType) { val, err := m.GetBackingStore().Get("attachmentType") if err != nil { panic(err) } if val != nil { - return val.(*AttachmentType) + return val.(*AttachmentInfo_attachmentType) } return nil } @@ -64,12 +64,12 @@ func (m *AttachmentInfo) GetContentType()(*string) { func (m *AttachmentInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["attachmentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAttachmentType) + val, err := n.GetEnumValue(ParseAttachmentInfo_attachmentType) if err != nil { return err } if val != nil { - m.SetAttachmentType(val.(*AttachmentType)) + m.SetAttachmentType(val.(*AttachmentInfo_attachmentType)) } return nil } @@ -197,7 +197,7 @@ func (m *AttachmentInfo) SetAdditionalData(value map[string]any)() { } } // SetAttachmentType sets the attachmentType property value. The type of the attachment. The possible values are: file, item, reference. Required. -func (m *AttachmentInfo) SetAttachmentType(value *AttachmentType)() { +func (m *AttachmentInfo) SetAttachmentType(value *AttachmentInfo_attachmentType)() { err := m.GetBackingStore().Set("attachmentType", value) if err != nil { panic(err) @@ -240,13 +240,13 @@ type AttachmentInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAttachmentType()(*AttachmentType) + GetAttachmentType()(*AttachmentInfo_attachmentType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContentType()(*string) GetName()(*string) GetOdataType()(*string) GetSize()(*int64) - SetAttachmentType(value *AttachmentType)() + SetAttachmentType(value *AttachmentInfo_attachmentType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContentType(value *string)() SetName(value *string)() diff --git a/models/attachment_info_attachment_type.go b/models/attachment_info_attachment_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/attachment_item.go b/models/attachment_item.go index c060064a70c..dfa36d987dd 100644 --- a/models/attachment_item.go +++ b/models/attachment_item.go @@ -35,13 +35,13 @@ func (m *AttachmentItem) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAttachmentType gets the attachmentType property value. The type of attachment. Possible values are: file, item, reference. Required. -func (m *AttachmentItem) GetAttachmentType()(*AttachmentType) { +func (m *AttachmentItem) GetAttachmentType()(*AttachmentItem_attachmentType) { val, err := m.GetBackingStore().Get("attachmentType") if err != nil { panic(err) } if val != nil { - return val.(*AttachmentType) + return val.(*AttachmentItem_attachmentType) } return nil } @@ -75,12 +75,12 @@ func (m *AttachmentItem) GetContentType()(*string) { func (m *AttachmentItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["attachmentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAttachmentType) + val, err := n.GetEnumValue(ParseAttachmentItem_attachmentType) if err != nil { return err } if val != nil { - m.SetAttachmentType(val.(*AttachmentType)) + m.SetAttachmentType(val.(*AttachmentItem_attachmentType)) } return nil } @@ -251,7 +251,7 @@ func (m *AttachmentItem) SetAdditionalData(value map[string]any)() { } } // SetAttachmentType sets the attachmentType property value. The type of attachment. Possible values are: file, item, reference. Required. -func (m *AttachmentItem) SetAttachmentType(value *AttachmentType)() { +func (m *AttachmentItem) SetAttachmentType(value *AttachmentItem_attachmentType)() { err := m.GetBackingStore().Set("attachmentType", value) if err != nil { panic(err) @@ -308,7 +308,7 @@ type AttachmentItemable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAttachmentType()(*AttachmentType) + GetAttachmentType()(*AttachmentItem_attachmentType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContentId()(*string) GetContentType()(*string) @@ -316,7 +316,7 @@ type AttachmentItemable interface { GetName()(*string) GetOdataType()(*string) GetSize()(*int64) - SetAttachmentType(value *AttachmentType)() + SetAttachmentType(value *AttachmentItem_attachmentType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContentId(value *string)() SetContentType(value *string)() diff --git a/models/attachment_item_attachment_type.go b/models/attachment_item_attachment_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/attachment_type.go b/models/attachment_type.go deleted file mode 100644 index 62e1a22d1a6..00000000000 --- a/models/attachment_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AttachmentType int - -const ( - FILE_ATTACHMENTTYPE AttachmentType = iota - ITEM_ATTACHMENTTYPE - REFERENCE_ATTACHMENTTYPE -) - -func (i AttachmentType) String() string { - return []string{"file", "item", "reference"}[i] -} -func ParseAttachmentType(v string) (any, error) { - result := FILE_ATTACHMENTTYPE - switch v { - case "file": - result = FILE_ATTACHMENTTYPE - case "item": - result = ITEM_ATTACHMENTTYPE - case "reference": - result = REFERENCE_ATTACHMENTTYPE - default: - return 0, errors.New("Unknown AttachmentType value: " + v) - } - return &result, nil -} -func SerializeAttachmentType(values []AttachmentType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AttachmentType) isMultiValue() bool { - return false -} diff --git a/models/attack_simulation_operation.go b/models/attack_simulation_operation.go index 3a2c4e05702..866ac1dba3f 100644 --- a/models/attack_simulation_operation.go +++ b/models/attack_simulation_operation.go @@ -43,12 +43,12 @@ func (m *AttackSimulationOperation) GetFieldDeserializers()(map[string]func(i878 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAttackSimulationOperationType) + val, err := n.GetEnumValue(ParseAttackSimulationOperation_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*AttackSimulationOperationType)) + m.SetTypeEscaped(val.(*AttackSimulationOperation_type)) } return nil } @@ -77,13 +77,13 @@ func (m *AttackSimulationOperation) GetTenantId()(*string) { return nil } // GetTypeEscaped gets the type property value. The attack simulation operation type. Possible values are: createSimulation, updateSimulation, unknownFutureValue. -func (m *AttackSimulationOperation) GetTypeEscaped()(*AttackSimulationOperationType) { +func (m *AttackSimulationOperation) GetTypeEscaped()(*AttackSimulationOperation_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*AttackSimulationOperationType) + return val.(*AttackSimulationOperation_type) } return nil } @@ -129,7 +129,7 @@ func (m *AttackSimulationOperation) SetTenantId(value *string)() { } } // SetTypeEscaped sets the type property value. The attack simulation operation type. Possible values are: createSimulation, updateSimulation, unknownFutureValue. -func (m *AttackSimulationOperation) SetTypeEscaped(value *AttackSimulationOperationType)() { +func (m *AttackSimulationOperation) SetTypeEscaped(value *AttackSimulationOperation_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -141,8 +141,8 @@ type AttackSimulationOperationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetPercentageCompleted()(*int32) GetTenantId()(*string) - GetTypeEscaped()(*AttackSimulationOperationType) + GetTypeEscaped()(*AttackSimulationOperation_type) SetPercentageCompleted(value *int32)() SetTenantId(value *string)() - SetTypeEscaped(value *AttackSimulationOperationType)() + SetTypeEscaped(value *AttackSimulationOperation_type)() } diff --git a/models/attack_simulation_operation_type.go b/models/attack_simulation_operation_type.go index f2f9d0a2b98..e69de29bb2d 100644 --- a/models/attack_simulation_operation_type.go +++ b/models/attack_simulation_operation_type.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AttackSimulationOperationType int - -const ( - CREATESIMUALATION_ATTACKSIMULATIONOPERATIONTYPE AttackSimulationOperationType = iota - UPDATESIMULATION_ATTACKSIMULATIONOPERATIONTYPE - UNKNOWNFUTUREVALUE_ATTACKSIMULATIONOPERATIONTYPE -) - -func (i AttackSimulationOperationType) String() string { - return []string{"createSimualation", "updateSimulation", "unknownFutureValue"}[i] -} -func ParseAttackSimulationOperationType(v string) (any, error) { - result := CREATESIMUALATION_ATTACKSIMULATIONOPERATIONTYPE - switch v { - case "createSimualation": - result = CREATESIMUALATION_ATTACKSIMULATIONOPERATIONTYPE - case "updateSimulation": - result = UPDATESIMULATION_ATTACKSIMULATIONOPERATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ATTACKSIMULATIONOPERATIONTYPE - default: - return 0, errors.New("Unknown AttackSimulationOperationType value: " + v) - } - return &result, nil -} -func SerializeAttackSimulationOperationType(values []AttackSimulationOperationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AttackSimulationOperationType) isMultiValue() bool { - return false -} diff --git a/models/attendee_availability.go b/models/attendee_availability.go index 5d4910fa95a..ab92d6782ed 100644 --- a/models/attendee_availability.go +++ b/models/attendee_availability.go @@ -46,13 +46,13 @@ func (m *AttendeeAvailability) GetAttendee()(AttendeeBaseable) { return nil } // GetAvailability gets the availability property value. The availability status of the attendee. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown. -func (m *AttendeeAvailability) GetAvailability()(*FreeBusyStatus) { +func (m *AttendeeAvailability) GetAvailability()(*AttendeeAvailability_availability) { val, err := m.GetBackingStore().Get("availability") if err != nil { panic(err) } if val != nil { - return val.(*FreeBusyStatus) + return val.(*AttendeeAvailability_availability) } return nil } @@ -74,12 +74,12 @@ func (m *AttendeeAvailability) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["availability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFreeBusyStatus) + val, err := n.GetEnumValue(ParseAttendeeAvailability_availability) if err != nil { return err } if val != nil { - m.SetAvailability(val.(*FreeBusyStatus)) + m.SetAvailability(val.(*AttendeeAvailability_availability)) } return nil } @@ -150,7 +150,7 @@ func (m *AttendeeAvailability) SetAttendee(value AttendeeBaseable)() { } } // SetAvailability sets the availability property value. The availability status of the attendee. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown. -func (m *AttendeeAvailability) SetAvailability(value *FreeBusyStatus)() { +func (m *AttendeeAvailability) SetAvailability(value *AttendeeAvailability_availability)() { err := m.GetBackingStore().Set("availability", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ type AttendeeAvailabilityable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAttendee()(AttendeeBaseable) - GetAvailability()(*FreeBusyStatus) + GetAvailability()(*AttendeeAvailability_availability) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) SetAttendee(value AttendeeBaseable)() - SetAvailability(value *FreeBusyStatus)() + SetAvailability(value *AttendeeAvailability_availability)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() } diff --git a/models/attendee_availability_availability.go b/models/attendee_availability_availability.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/attendee_base.go b/models/attendee_base.go index 8499091d829..b4af68d11ab 100644 --- a/models/attendee_base.go +++ b/models/attendee_base.go @@ -43,25 +43,25 @@ func CreateAttendeeBaseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 func (m *AttendeeBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Recipient.GetFieldDeserializers() res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAttendeeType) + val, err := n.GetEnumValue(ParseAttendeeBase_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*AttendeeType)) + m.SetTypeEscaped(val.(*AttendeeBase_type)) } return nil } return res } // GetTypeEscaped gets the type property value. The type of attendee. Possible values are: required, optional, resource. Currently if the attendee is a person, findMeetingTimes always considers the person is of the Required type. -func (m *AttendeeBase) GetTypeEscaped()(*AttendeeType) { +func (m *AttendeeBase) GetTypeEscaped()(*AttendeeBase_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*AttendeeType) + return val.(*AttendeeBase_type) } return nil } @@ -81,7 +81,7 @@ func (m *AttendeeBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return nil } // SetTypeEscaped sets the type property value. The type of attendee. Possible values are: required, optional, resource. Currently if the attendee is a person, findMeetingTimes always considers the person is of the Required type. -func (m *AttendeeBase) SetTypeEscaped(value *AttendeeType)() { +func (m *AttendeeBase) SetTypeEscaped(value *AttendeeBase_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -91,6 +91,6 @@ func (m *AttendeeBase) SetTypeEscaped(value *AttendeeType)() { type AttendeeBaseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable Recipientable - GetTypeEscaped()(*AttendeeType) - SetTypeEscaped(value *AttendeeType)() + GetTypeEscaped()(*AttendeeBase_type) + SetTypeEscaped(value *AttendeeBase_type)() } diff --git a/models/attendee_base_type.go b/models/attendee_base_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/attendee_type.go b/models/attendee_type.go deleted file mode 100644 index 47aa79adc7f..00000000000 --- a/models/attendee_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AttendeeType int - -const ( - REQUIRED_ATTENDEETYPE AttendeeType = iota - OPTIONAL_ATTENDEETYPE - RESOURCE_ATTENDEETYPE -) - -func (i AttendeeType) String() string { - return []string{"required", "optional", "resource"}[i] -} -func ParseAttendeeType(v string) (any, error) { - result := REQUIRED_ATTENDEETYPE - switch v { - case "required": - result = REQUIRED_ATTENDEETYPE - case "optional": - result = OPTIONAL_ATTENDEETYPE - case "resource": - result = RESOURCE_ATTENDEETYPE - default: - return 0, errors.New("Unknown AttendeeType value: " + v) - } - return &result, nil -} -func SerializeAttendeeType(values []AttendeeType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AttendeeType) isMultiValue() bool { - return false -} diff --git a/models/attestation_level.go b/models/attestation_level.go deleted file mode 100644 index 1d8e77cac96..00000000000 --- a/models/attestation_level.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AttestationLevel int - -const ( - ATTESTED_ATTESTATIONLEVEL AttestationLevel = iota - NOTATTESTED_ATTESTATIONLEVEL - UNKNOWNFUTUREVALUE_ATTESTATIONLEVEL -) - -func (i AttestationLevel) String() string { - return []string{"attested", "notAttested", "unknownFutureValue"}[i] -} -func ParseAttestationLevel(v string) (any, error) { - result := ATTESTED_ATTESTATIONLEVEL - switch v { - case "attested": - result = ATTESTED_ATTESTATIONLEVEL - case "notAttested": - result = NOTATTESTED_ATTESTATIONLEVEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ATTESTATIONLEVEL - default: - return 0, errors.New("Unknown AttestationLevel value: " + v) - } - return &result, nil -} -func SerializeAttestationLevel(values []AttestationLevel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AttestationLevel) isMultiValue() bool { - return false -} diff --git a/models/attribute_definition_metadata.go b/models/attribute_definition_metadata.go deleted file mode 100644 index 56e85614908..00000000000 --- a/models/attribute_definition_metadata.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type AttributeDefinitionMetadata int - -const ( - BASEATTRIBUTENAME_ATTRIBUTEDEFINITIONMETADATA AttributeDefinitionMetadata = iota - COMPLEXOBJECTDEFINITION_ATTRIBUTEDEFINITIONMETADATA - ISCONTAINER_ATTRIBUTEDEFINITIONMETADATA - ISCUSTOMERDEFINED_ATTRIBUTEDEFINITIONMETADATA - ISDOMAINQUALIFIED_ATTRIBUTEDEFINITIONMETADATA - LINKPROPERTYNAMES_ATTRIBUTEDEFINITIONMETADATA - LINKTYPENAME_ATTRIBUTEDEFINITIONMETADATA - MAXIMUMLENGTH_ATTRIBUTEDEFINITIONMETADATA - REFERENCEDPROPERTY_ATTRIBUTEDEFINITIONMETADATA -) - -func (i AttributeDefinitionMetadata) String() string { - return []string{"BaseAttributeName", "ComplexObjectDefinition", "IsContainer", "IsCustomerDefined", "IsDomainQualified", "LinkPropertyNames", "LinkTypeName", "MaximumLength", "ReferencedProperty"}[i] -} -func ParseAttributeDefinitionMetadata(v string) (any, error) { - result := BASEATTRIBUTENAME_ATTRIBUTEDEFINITIONMETADATA - switch v { - case "BaseAttributeName": - result = BASEATTRIBUTENAME_ATTRIBUTEDEFINITIONMETADATA - case "ComplexObjectDefinition": - result = COMPLEXOBJECTDEFINITION_ATTRIBUTEDEFINITIONMETADATA - case "IsContainer": - result = ISCONTAINER_ATTRIBUTEDEFINITIONMETADATA - case "IsCustomerDefined": - result = ISCUSTOMERDEFINED_ATTRIBUTEDEFINITIONMETADATA - case "IsDomainQualified": - result = ISDOMAINQUALIFIED_ATTRIBUTEDEFINITIONMETADATA - case "LinkPropertyNames": - result = LINKPROPERTYNAMES_ATTRIBUTEDEFINITIONMETADATA - case "LinkTypeName": - result = LINKTYPENAME_ATTRIBUTEDEFINITIONMETADATA - case "MaximumLength": - result = MAXIMUMLENGTH_ATTRIBUTEDEFINITIONMETADATA - case "ReferencedProperty": - result = REFERENCEDPROPERTY_ATTRIBUTEDEFINITIONMETADATA - default: - return 0, errors.New("Unknown AttributeDefinitionMetadata value: " + v) - } - return &result, nil -} -func SerializeAttributeDefinitionMetadata(values []AttributeDefinitionMetadata) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AttributeDefinitionMetadata) isMultiValue() bool { - return false -} diff --git a/models/attribute_definition_metadata_entry.go b/models/attribute_definition_metadata_entry.go index 0071fbe959a..c8fb0f104d5 100644 --- a/models/attribute_definition_metadata_entry.go +++ b/models/attribute_definition_metadata_entry.go @@ -42,12 +42,12 @@ func (m *AttributeDefinitionMetadataEntry) GetBackingStore()(ie8677ce2c7e1b4c22e func (m *AttributeDefinitionMetadataEntry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAttributeDefinitionMetadata) + val, err := n.GetEnumValue(ParseAttributeDefinitionMetadataEntry_key) if err != nil { return err } if val != nil { - m.SetKey(val.(*AttributeDefinitionMetadata)) + m.SetKey(val.(*AttributeDefinitionMetadataEntry_key)) } return nil } @@ -74,13 +74,13 @@ func (m *AttributeDefinitionMetadataEntry) GetFieldDeserializers()(map[string]fu return res } // GetKey gets the key property value. Possible values are: BaseAttributeName, ComplexObjectDefinition, IsContainer, IsCustomerDefined, IsDomainQualified, LinkPropertyNames, LinkTypeName, MaximumLength, ReferencedProperty. -func (m *AttributeDefinitionMetadataEntry) GetKey()(*AttributeDefinitionMetadata) { +func (m *AttributeDefinitionMetadataEntry) GetKey()(*AttributeDefinitionMetadataEntry_key) { val, err := m.GetBackingStore().Get("key") if err != nil { panic(err) } if val != nil { - return val.(*AttributeDefinitionMetadata) + return val.(*AttributeDefinitionMetadataEntry_key) } return nil } @@ -147,7 +147,7 @@ func (m *AttributeDefinitionMetadataEntry) SetBackingStore(value ie8677ce2c7e1b4 m.backingStore = value } // SetKey sets the key property value. Possible values are: BaseAttributeName, ComplexObjectDefinition, IsContainer, IsCustomerDefined, IsDomainQualified, LinkPropertyNames, LinkTypeName, MaximumLength, ReferencedProperty. -func (m *AttributeDefinitionMetadataEntry) SetKey(value *AttributeDefinitionMetadata)() { +func (m *AttributeDefinitionMetadataEntry) SetKey(value *AttributeDefinitionMetadataEntry_key)() { err := m.GetBackingStore().Set("key", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ type AttributeDefinitionMetadataEntryable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetKey()(*AttributeDefinitionMetadata) + GetKey()(*AttributeDefinitionMetadataEntry_key) GetOdataType()(*string) GetValue()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetKey(value *AttributeDefinitionMetadata)() + SetKey(value *AttributeDefinitionMetadataEntry_key)() SetOdataType(value *string)() SetValue(value *string)() } diff --git a/models/attribute_definition_metadata_entry_key.go b/models/attribute_definition_metadata_entry_key.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_app_admin_configuration.go b/models/authentication_app_admin_configuration.go deleted file mode 100644 index ed738fe9a75..00000000000 --- a/models/authentication_app_admin_configuration.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationAppAdminConfiguration int - -const ( - NOTAPPLICABLE_AUTHENTICATIONAPPADMINCONFIGURATION AuthenticationAppAdminConfiguration = iota - ENABLED_AUTHENTICATIONAPPADMINCONFIGURATION - DISABLED_AUTHENTICATIONAPPADMINCONFIGURATION - UNKNOWNFUTUREVALUE_AUTHENTICATIONAPPADMINCONFIGURATION -) - -func (i AuthenticationAppAdminConfiguration) String() string { - return []string{"notApplicable", "enabled", "disabled", "unknownFutureValue"}[i] -} -func ParseAuthenticationAppAdminConfiguration(v string) (any, error) { - result := NOTAPPLICABLE_AUTHENTICATIONAPPADMINCONFIGURATION - switch v { - case "notApplicable": - result = NOTAPPLICABLE_AUTHENTICATIONAPPADMINCONFIGURATION - case "enabled": - result = ENABLED_AUTHENTICATIONAPPADMINCONFIGURATION - case "disabled": - result = DISABLED_AUTHENTICATIONAPPADMINCONFIGURATION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONAPPADMINCONFIGURATION - default: - return 0, errors.New("Unknown AuthenticationAppAdminConfiguration value: " + v) - } - return &result, nil -} -func SerializeAuthenticationAppAdminConfiguration(values []AuthenticationAppAdminConfiguration) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationAppAdminConfiguration) isMultiValue() bool { - return false -} diff --git a/models/authentication_app_evaluation.go b/models/authentication_app_evaluation.go deleted file mode 100644 index a31b0017c2c..00000000000 --- a/models/authentication_app_evaluation.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationAppEvaluation int - -const ( - SUCCESS_AUTHENTICATIONAPPEVALUATION AuthenticationAppEvaluation = iota - FAILURE_AUTHENTICATIONAPPEVALUATION - UNKNOWNFUTUREVALUE_AUTHENTICATIONAPPEVALUATION -) - -func (i AuthenticationAppEvaluation) String() string { - return []string{"success", "failure", "unknownFutureValue"}[i] -} -func ParseAuthenticationAppEvaluation(v string) (any, error) { - result := SUCCESS_AUTHENTICATIONAPPEVALUATION - switch v { - case "success": - result = SUCCESS_AUTHENTICATIONAPPEVALUATION - case "failure": - result = FAILURE_AUTHENTICATIONAPPEVALUATION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONAPPEVALUATION - default: - return 0, errors.New("Unknown AuthenticationAppEvaluation value: " + v) - } - return &result, nil -} -func SerializeAuthenticationAppEvaluation(values []AuthenticationAppEvaluation) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationAppEvaluation) isMultiValue() bool { - return false -} diff --git a/models/authentication_app_policy_details.go b/models/authentication_app_policy_details.go index d47b105105f..7fa578f3b8d 100644 --- a/models/authentication_app_policy_details.go +++ b/models/authentication_app_policy_details.go @@ -35,24 +35,24 @@ func (m *AuthenticationAppPolicyDetails) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAdminConfiguration gets the adminConfiguration property value. The admin configuration of the policy on the user's authentication app. For a policy that does not impact the success/failure of the authentication, the evaluation defaults to notApplicable. The possible values are: notApplicable, enabled, disabled, unknownFutureValue. -func (m *AuthenticationAppPolicyDetails) GetAdminConfiguration()(*AuthenticationAppAdminConfiguration) { +func (m *AuthenticationAppPolicyDetails) GetAdminConfiguration()(*AuthenticationAppPolicyDetails_adminConfiguration) { val, err := m.GetBackingStore().Get("adminConfiguration") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationAppAdminConfiguration) + return val.(*AuthenticationAppPolicyDetails_adminConfiguration) } return nil } // GetAuthenticationEvaluation gets the authenticationEvaluation property value. Evaluates the success/failure of the authentication based on the admin configuration of the policy on the user's client authentication app. The possible values are: success, failure, unknownFutureValue. -func (m *AuthenticationAppPolicyDetails) GetAuthenticationEvaluation()(*AuthenticationAppEvaluation) { +func (m *AuthenticationAppPolicyDetails) GetAuthenticationEvaluation()(*AuthenticationAppPolicyDetails_authenticationEvaluation) { val, err := m.GetBackingStore().Get("authenticationEvaluation") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationAppEvaluation) + return val.(*AuthenticationAppPolicyDetails_authenticationEvaluation) } return nil } @@ -64,22 +64,22 @@ func (m *AuthenticationAppPolicyDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c func (m *AuthenticationAppPolicyDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["adminConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationAppAdminConfiguration) + val, err := n.GetEnumValue(ParseAuthenticationAppPolicyDetails_adminConfiguration) if err != nil { return err } if val != nil { - m.SetAdminConfiguration(val.(*AuthenticationAppAdminConfiguration)) + m.SetAdminConfiguration(val.(*AuthenticationAppPolicyDetails_adminConfiguration)) } return nil } res["authenticationEvaluation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationAppEvaluation) + val, err := n.GetEnumValue(ParseAuthenticationAppPolicyDetails_authenticationEvaluation) if err != nil { return err } if val != nil { - m.SetAuthenticationEvaluation(val.(*AuthenticationAppEvaluation)) + m.SetAuthenticationEvaluation(val.(*AuthenticationAppPolicyDetails_authenticationEvaluation)) } return nil } @@ -104,12 +104,12 @@ func (m *AuthenticationAppPolicyDetails) GetFieldDeserializers()(map[string]func return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationAppPolicyStatus) + val, err := n.GetEnumValue(ParseAuthenticationAppPolicyDetails_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AuthenticationAppPolicyStatus)) + m.SetStatus(val.(*AuthenticationAppPolicyDetails_status)) } return nil } @@ -138,13 +138,13 @@ func (m *AuthenticationAppPolicyDetails) GetPolicyName()(*string) { return nil } // GetStatus gets the status property value. Refers to whether the policy executed as expected on the user's client authentication app. The possible values are: unknown, appLockOutOfDate, appLockEnabled, appLockDisabled, appContextOutOfDate, appContextShown, appContextNotShown, locationContextOutOfDate, locationContextShown, locationContextNotShown, numberMatchOutOfDate, numberMatchCorrectNumberEntered, numberMatchIncorrectNumberEntered, numberMatchDeny, tamperResistantHardwareOutOfDate, tamperResistantHardwareUsed, tamperResistantHardwareNotUsed, unknownFutureValue. -func (m *AuthenticationAppPolicyDetails) GetStatus()(*AuthenticationAppPolicyStatus) { +func (m *AuthenticationAppPolicyDetails) GetStatus()(*AuthenticationAppPolicyDetails_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationAppPolicyStatus) + return val.(*AuthenticationAppPolicyDetails_status) } return nil } @@ -199,14 +199,14 @@ func (m *AuthenticationAppPolicyDetails) SetAdditionalData(value map[string]any) } } // SetAdminConfiguration sets the adminConfiguration property value. The admin configuration of the policy on the user's authentication app. For a policy that does not impact the success/failure of the authentication, the evaluation defaults to notApplicable. The possible values are: notApplicable, enabled, disabled, unknownFutureValue. -func (m *AuthenticationAppPolicyDetails) SetAdminConfiguration(value *AuthenticationAppAdminConfiguration)() { +func (m *AuthenticationAppPolicyDetails) SetAdminConfiguration(value *AuthenticationAppPolicyDetails_adminConfiguration)() { err := m.GetBackingStore().Set("adminConfiguration", value) if err != nil { panic(err) } } // SetAuthenticationEvaluation sets the authenticationEvaluation property value. Evaluates the success/failure of the authentication based on the admin configuration of the policy on the user's client authentication app. The possible values are: success, failure, unknownFutureValue. -func (m *AuthenticationAppPolicyDetails) SetAuthenticationEvaluation(value *AuthenticationAppEvaluation)() { +func (m *AuthenticationAppPolicyDetails) SetAuthenticationEvaluation(value *AuthenticationAppPolicyDetails_authenticationEvaluation)() { err := m.GetBackingStore().Set("authenticationEvaluation", value) if err != nil { panic(err) @@ -231,7 +231,7 @@ func (m *AuthenticationAppPolicyDetails) SetPolicyName(value *string)() { } } // SetStatus sets the status property value. Refers to whether the policy executed as expected on the user's client authentication app. The possible values are: unknown, appLockOutOfDate, appLockEnabled, appLockDisabled, appContextOutOfDate, appContextShown, appContextNotShown, locationContextOutOfDate, locationContextShown, locationContextNotShown, numberMatchOutOfDate, numberMatchCorrectNumberEntered, numberMatchIncorrectNumberEntered, numberMatchDeny, tamperResistantHardwareOutOfDate, tamperResistantHardwareUsed, tamperResistantHardwareNotUsed, unknownFutureValue. -func (m *AuthenticationAppPolicyDetails) SetStatus(value *AuthenticationAppPolicyStatus)() { +func (m *AuthenticationAppPolicyDetails) SetStatus(value *AuthenticationAppPolicyDetails_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -242,16 +242,16 @@ type AuthenticationAppPolicyDetailsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdminConfiguration()(*AuthenticationAppAdminConfiguration) - GetAuthenticationEvaluation()(*AuthenticationAppEvaluation) + GetAdminConfiguration()(*AuthenticationAppPolicyDetails_adminConfiguration) + GetAuthenticationEvaluation()(*AuthenticationAppPolicyDetails_authenticationEvaluation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetPolicyName()(*string) - GetStatus()(*AuthenticationAppPolicyStatus) - SetAdminConfiguration(value *AuthenticationAppAdminConfiguration)() - SetAuthenticationEvaluation(value *AuthenticationAppEvaluation)() + GetStatus()(*AuthenticationAppPolicyDetails_status) + SetAdminConfiguration(value *AuthenticationAppPolicyDetails_adminConfiguration)() + SetAuthenticationEvaluation(value *AuthenticationAppPolicyDetails_authenticationEvaluation)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetPolicyName(value *string)() - SetStatus(value *AuthenticationAppPolicyStatus)() + SetStatus(value *AuthenticationAppPolicyDetails_status)() } diff --git a/models/authentication_app_policy_details_admin_configuration.go b/models/authentication_app_policy_details_admin_configuration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_app_policy_details_authentication_evaluation.go b/models/authentication_app_policy_details_authentication_evaluation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_app_policy_details_status.go b/models/authentication_app_policy_details_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_app_policy_status.go b/models/authentication_app_policy_status.go deleted file mode 100644 index 6e05a179912..00000000000 --- a/models/authentication_app_policy_status.go +++ /dev/null @@ -1,85 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationAppPolicyStatus int - -const ( - UNKNOWN_AUTHENTICATIONAPPPOLICYSTATUS AuthenticationAppPolicyStatus = iota - APPLOCKOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - APPLOCKENABLED_AUTHENTICATIONAPPPOLICYSTATUS - APPLOCKDISABLED_AUTHENTICATIONAPPPOLICYSTATUS - APPCONTEXTOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - APPCONTEXTSHOWN_AUTHENTICATIONAPPPOLICYSTATUS - APPCONTEXTNOTSHOWN_AUTHENTICATIONAPPPOLICYSTATUS - LOCATIONCONTEXTOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - LOCATIONCONTEXTSHOWN_AUTHENTICATIONAPPPOLICYSTATUS - LOCATIONCONTEXTNOTSHOWN_AUTHENTICATIONAPPPOLICYSTATUS - NUMBERMATCHOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - NUMBERMATCHCORRECTNUMBERENTERED_AUTHENTICATIONAPPPOLICYSTATUS - NUMBERMATCHINCORRECTNUMBERENTERED_AUTHENTICATIONAPPPOLICYSTATUS - NUMBERMATCHDENY_AUTHENTICATIONAPPPOLICYSTATUS - TAMPERRESISTANTHARDWAREOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - TAMPERRESISTANTHARDWAREUSED_AUTHENTICATIONAPPPOLICYSTATUS - TAMPERRESISTANTHARDWARENOTUSED_AUTHENTICATIONAPPPOLICYSTATUS - UNKNOWNFUTUREVALUE_AUTHENTICATIONAPPPOLICYSTATUS -) - -func (i AuthenticationAppPolicyStatus) String() string { - return []string{"unknown", "appLockOutOfDate", "appLockEnabled", "appLockDisabled", "appContextOutOfDate", "appContextShown", "appContextNotShown", "locationContextOutOfDate", "locationContextShown", "locationContextNotShown", "numberMatchOutOfDate", "numberMatchCorrectNumberEntered", "numberMatchIncorrectNumberEntered", "numberMatchDeny", "tamperResistantHardwareOutOfDate", "tamperResistantHardwareUsed", "tamperResistantHardwareNotUsed", "unknownFutureValue"}[i] -} -func ParseAuthenticationAppPolicyStatus(v string) (any, error) { - result := UNKNOWN_AUTHENTICATIONAPPPOLICYSTATUS - switch v { - case "unknown": - result = UNKNOWN_AUTHENTICATIONAPPPOLICYSTATUS - case "appLockOutOfDate": - result = APPLOCKOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - case "appLockEnabled": - result = APPLOCKENABLED_AUTHENTICATIONAPPPOLICYSTATUS - case "appLockDisabled": - result = APPLOCKDISABLED_AUTHENTICATIONAPPPOLICYSTATUS - case "appContextOutOfDate": - result = APPCONTEXTOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - case "appContextShown": - result = APPCONTEXTSHOWN_AUTHENTICATIONAPPPOLICYSTATUS - case "appContextNotShown": - result = APPCONTEXTNOTSHOWN_AUTHENTICATIONAPPPOLICYSTATUS - case "locationContextOutOfDate": - result = LOCATIONCONTEXTOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - case "locationContextShown": - result = LOCATIONCONTEXTSHOWN_AUTHENTICATIONAPPPOLICYSTATUS - case "locationContextNotShown": - result = LOCATIONCONTEXTNOTSHOWN_AUTHENTICATIONAPPPOLICYSTATUS - case "numberMatchOutOfDate": - result = NUMBERMATCHOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - case "numberMatchCorrectNumberEntered": - result = NUMBERMATCHCORRECTNUMBERENTERED_AUTHENTICATIONAPPPOLICYSTATUS - case "numberMatchIncorrectNumberEntered": - result = NUMBERMATCHINCORRECTNUMBERENTERED_AUTHENTICATIONAPPPOLICYSTATUS - case "numberMatchDeny": - result = NUMBERMATCHDENY_AUTHENTICATIONAPPPOLICYSTATUS - case "tamperResistantHardwareOutOfDate": - result = TAMPERRESISTANTHARDWAREOUTOFDATE_AUTHENTICATIONAPPPOLICYSTATUS - case "tamperResistantHardwareUsed": - result = TAMPERRESISTANTHARDWAREUSED_AUTHENTICATIONAPPPOLICYSTATUS - case "tamperResistantHardwareNotUsed": - result = TAMPERRESISTANTHARDWARENOTUSED_AUTHENTICATIONAPPPOLICYSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONAPPPOLICYSTATUS - default: - return 0, errors.New("Unknown AuthenticationAppPolicyStatus value: " + v) - } - return &result, nil -} -func SerializeAuthenticationAppPolicyStatus(values []AuthenticationAppPolicyStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationAppPolicyStatus) isMultiValue() bool { - return false -} diff --git a/models/authentication_context.go b/models/authentication_context.go index aeef6e567b8..e95b4b5038b 100644 --- a/models/authentication_context.go +++ b/models/authentication_context.go @@ -39,13 +39,13 @@ func (m *AuthenticationContext) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd07 return m.backingStore } // GetDetail gets the detail property value. Describes how the conditional access authentication context was triggered. A value of previouslySatisfied means the auth context was because the user already satisfied the requirements for that authentication context in some previous authentication event. A value of required means the user had to meet the authentication context requirement as part of the sign-in flow. The possible values are: required, previouslySatisfied, notApplicable, unknownFutureValue. -func (m *AuthenticationContext) GetDetail()(*AuthenticationContextDetail) { +func (m *AuthenticationContext) GetDetail()(*AuthenticationContext_detail) { val, err := m.GetBackingStore().Get("detail") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationContextDetail) + return val.(*AuthenticationContext_detail) } return nil } @@ -53,12 +53,12 @@ func (m *AuthenticationContext) GetDetail()(*AuthenticationContextDetail) { func (m *AuthenticationContext) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["detail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationContextDetail) + val, err := n.GetEnumValue(ParseAuthenticationContext_detail) if err != nil { return err } if val != nil { - m.SetDetail(val.(*AuthenticationContextDetail)) + m.SetDetail(val.(*AuthenticationContext_detail)) } return nil } @@ -147,7 +147,7 @@ func (m *AuthenticationContext) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827e m.backingStore = value } // SetDetail sets the detail property value. Describes how the conditional access authentication context was triggered. A value of previouslySatisfied means the auth context was because the user already satisfied the requirements for that authentication context in some previous authentication event. A value of required means the user had to meet the authentication context requirement as part of the sign-in flow. The possible values are: required, previouslySatisfied, notApplicable, unknownFutureValue. -func (m *AuthenticationContext) SetDetail(value *AuthenticationContextDetail)() { +func (m *AuthenticationContext) SetDetail(value *AuthenticationContext_detail)() { err := m.GetBackingStore().Set("detail", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ type AuthenticationContextable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDetail()(*AuthenticationContextDetail) + GetDetail()(*AuthenticationContext_detail) GetId()(*string) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDetail(value *AuthenticationContextDetail)() + SetDetail(value *AuthenticationContext_detail)() SetId(value *string)() SetOdataType(value *string)() } diff --git a/models/authentication_context_detail.go b/models/authentication_context_detail.go index ce5e0dd23fa..e69de29bb2d 100644 --- a/models/authentication_context_detail.go +++ b/models/authentication_context_detail.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationContextDetail int - -const ( - REQUIRED_AUTHENTICATIONCONTEXTDETAIL AuthenticationContextDetail = iota - PREVIOUSLYSATISFIED_AUTHENTICATIONCONTEXTDETAIL - NOTAPPLICABLE_AUTHENTICATIONCONTEXTDETAIL - UNKNOWNFUTUREVALUE_AUTHENTICATIONCONTEXTDETAIL -) - -func (i AuthenticationContextDetail) String() string { - return []string{"required", "previouslySatisfied", "notApplicable", "unknownFutureValue"}[i] -} -func ParseAuthenticationContextDetail(v string) (any, error) { - result := REQUIRED_AUTHENTICATIONCONTEXTDETAIL - switch v { - case "required": - result = REQUIRED_AUTHENTICATIONCONTEXTDETAIL - case "previouslySatisfied": - result = PREVIOUSLYSATISFIED_AUTHENTICATIONCONTEXTDETAIL - case "notApplicable": - result = NOTAPPLICABLE_AUTHENTICATIONCONTEXTDETAIL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONCONTEXTDETAIL - default: - return 0, errors.New("Unknown AuthenticationContextDetail value: " + v) - } - return &result, nil -} -func SerializeAuthenticationContextDetail(values []AuthenticationContextDetail) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationContextDetail) isMultiValue() bool { - return false -} diff --git a/models/authentication_event_listener.go b/models/authentication_event_listener.go index 4bf684ff7db..96788030737 100644 --- a/models/authentication_event_listener.go +++ b/models/authentication_event_listener.go @@ -31,6 +31,10 @@ func CreateAuthenticationEventListenerFromDiscriminatorValue(parseNode i878a80d2 switch *mappingValue { case "#microsoft.graph.onAttributeCollectionListener": return NewOnAttributeCollectionListener(), nil + case "#microsoft.graph.onAttributeCollectionStartListener": + return NewOnAttributeCollectionStartListener(), nil + case "#microsoft.graph.onAttributeCollectionSubmitListener": + return NewOnAttributeCollectionSubmitListener(), nil case "#microsoft.graph.onAuthenticationMethodLoadStartListener": return NewOnAuthenticationMethodLoadStartListener(), nil case "#microsoft.graph.onInteractiveAuthFlowStartListener": diff --git a/models/authentication_event_type.go b/models/authentication_event_type.go deleted file mode 100644 index e0ea1ae7f02..00000000000 --- a/models/authentication_event_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationEventType int - -const ( - TOKENISSUANCESTART_AUTHENTICATIONEVENTTYPE AuthenticationEventType = iota - PAGERENDERSTART_AUTHENTICATIONEVENTTYPE - UNKNOWNFUTUREVALUE_AUTHENTICATIONEVENTTYPE -) - -func (i AuthenticationEventType) String() string { - return []string{"tokenIssuanceStart", "pageRenderStart", "unknownFutureValue"}[i] -} -func ParseAuthenticationEventType(v string) (any, error) { - result := TOKENISSUANCESTART_AUTHENTICATIONEVENTTYPE - switch v { - case "tokenIssuanceStart": - result = TOKENISSUANCESTART_AUTHENTICATIONEVENTTYPE - case "pageRenderStart": - result = PAGERENDERSTART_AUTHENTICATIONEVENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONEVENTTYPE - default: - return 0, errors.New("Unknown AuthenticationEventType value: " + v) - } - return &result, nil -} -func SerializeAuthenticationEventType(values []AuthenticationEventType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationEventType) isMultiValue() bool { - return false -} diff --git a/models/authentication_method_configuration.go b/models/authentication_method_configuration.go index 5faf69af9ba..1b6e24b2b3a 100644 --- a/models/authentication_method_configuration.go +++ b/models/authentication_method_configuration.go @@ -84,25 +84,25 @@ func (m *AuthenticationMethodConfiguration) GetFieldDeserializers()(map[string]f return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationMethodState) + val, err := n.GetEnumValue(ParseAuthenticationMethodConfiguration_state) if err != nil { return err } if val != nil { - m.SetState(val.(*AuthenticationMethodState)) + m.SetState(val.(*AuthenticationMethodConfiguration_state)) } return nil } return res } // GetState gets the state property value. The state of the policy. Possible values are: enabled, disabled. -func (m *AuthenticationMethodConfiguration) GetState()(*AuthenticationMethodState) { +func (m *AuthenticationMethodConfiguration) GetState()(*AuthenticationMethodConfiguration_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationMethodState) + return val.(*AuthenticationMethodConfiguration_state) } return nil } @@ -141,7 +141,7 @@ func (m *AuthenticationMethodConfiguration) SetExcludeTargets(value []ExcludeTar } } // SetState sets the state property value. The state of the policy. Possible values are: enabled, disabled. -func (m *AuthenticationMethodConfiguration) SetState(value *AuthenticationMethodState)() { +func (m *AuthenticationMethodConfiguration) SetState(value *AuthenticationMethodConfiguration_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -152,7 +152,7 @@ type AuthenticationMethodConfigurationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetExcludeTargets()([]ExcludeTargetable) - GetState()(*AuthenticationMethodState) + GetState()(*AuthenticationMethodConfiguration_state) SetExcludeTargets(value []ExcludeTargetable)() - SetState(value *AuthenticationMethodState)() + SetState(value *AuthenticationMethodConfiguration_state)() } diff --git a/models/authentication_method_configuration_state.go b/models/authentication_method_configuration_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_method_feature_configuration.go b/models/authentication_method_feature_configuration.go index 77db68d26f3..38f9530ccd0 100644 --- a/models/authentication_method_feature_configuration.go +++ b/models/authentication_method_feature_configuration.go @@ -83,12 +83,12 @@ func (m *AuthenticationMethodFeatureConfiguration) GetFieldDeserializers()(map[s return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAdvancedConfigState) + val, err := n.GetEnumValue(ParseAuthenticationMethodFeatureConfiguration_state) if err != nil { return err } if val != nil { - m.SetState(val.(*AdvancedConfigState)) + m.SetState(val.(*AuthenticationMethodFeatureConfiguration_state)) } return nil } @@ -117,13 +117,13 @@ func (m *AuthenticationMethodFeatureConfiguration) GetOdataType()(*string) { return nil } // GetState gets the state property value. Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Microsoft Entra ID for the setting. The default value is disabled. -func (m *AuthenticationMethodFeatureConfiguration) GetState()(*AdvancedConfigState) { +func (m *AuthenticationMethodFeatureConfiguration) GetState()(*AuthenticationMethodFeatureConfiguration_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*AdvancedConfigState) + return val.(*AuthenticationMethodFeatureConfiguration_state) } return nil } @@ -195,7 +195,7 @@ func (m *AuthenticationMethodFeatureConfiguration) SetOdataType(value *string)() } } // SetState sets the state property value. Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Microsoft Entra ID for the setting. The default value is disabled. -func (m *AuthenticationMethodFeatureConfiguration) SetState(value *AdvancedConfigState)() { +func (m *AuthenticationMethodFeatureConfiguration) SetState(value *AuthenticationMethodFeatureConfiguration_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -210,10 +210,10 @@ type AuthenticationMethodFeatureConfigurationable interface { GetExcludeTarget()(FeatureTargetable) GetIncludeTarget()(FeatureTargetable) GetOdataType()(*string) - GetState()(*AdvancedConfigState) + GetState()(*AuthenticationMethodFeatureConfiguration_state) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExcludeTarget(value FeatureTargetable)() SetIncludeTarget(value FeatureTargetable)() SetOdataType(value *string)() - SetState(value *AdvancedConfigState)() + SetState(value *AuthenticationMethodFeatureConfiguration_state)() } diff --git a/models/authentication_method_feature_configuration_state.go b/models/authentication_method_feature_configuration_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_method_key_strength.go b/models/authentication_method_key_strength.go deleted file mode 100644 index d3be777be9f..00000000000 --- a/models/authentication_method_key_strength.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationMethodKeyStrength int - -const ( - NORMAL_AUTHENTICATIONMETHODKEYSTRENGTH AuthenticationMethodKeyStrength = iota - WEAK_AUTHENTICATIONMETHODKEYSTRENGTH - UNKNOWN_AUTHENTICATIONMETHODKEYSTRENGTH -) - -func (i AuthenticationMethodKeyStrength) String() string { - return []string{"normal", "weak", "unknown"}[i] -} -func ParseAuthenticationMethodKeyStrength(v string) (any, error) { - result := NORMAL_AUTHENTICATIONMETHODKEYSTRENGTH - switch v { - case "normal": - result = NORMAL_AUTHENTICATIONMETHODKEYSTRENGTH - case "weak": - result = WEAK_AUTHENTICATIONMETHODKEYSTRENGTH - case "unknown": - result = UNKNOWN_AUTHENTICATIONMETHODKEYSTRENGTH - default: - return 0, errors.New("Unknown AuthenticationMethodKeyStrength value: " + v) - } - return &result, nil -} -func SerializeAuthenticationMethodKeyStrength(values []AuthenticationMethodKeyStrength) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationMethodKeyStrength) isMultiValue() bool { - return false -} diff --git a/models/authentication_method_platform.go b/models/authentication_method_platform.go deleted file mode 100644 index da8cc22d6ab..00000000000 --- a/models/authentication_method_platform.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationMethodPlatform int - -const ( - UNKNOWN_AUTHENTICATIONMETHODPLATFORM AuthenticationMethodPlatform = iota - WINDOWS_AUTHENTICATIONMETHODPLATFORM - MACOS_AUTHENTICATIONMETHODPLATFORM - IOS_AUTHENTICATIONMETHODPLATFORM - ANDROID_AUTHENTICATIONMETHODPLATFORM - LINUX_AUTHENTICATIONMETHODPLATFORM - UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODPLATFORM -) - -func (i AuthenticationMethodPlatform) String() string { - return []string{"unknown", "windows", "macOS", "iOS", "android", "linux", "unknownFutureValue"}[i] -} -func ParseAuthenticationMethodPlatform(v string) (any, error) { - result := UNKNOWN_AUTHENTICATIONMETHODPLATFORM - switch v { - case "unknown": - result = UNKNOWN_AUTHENTICATIONMETHODPLATFORM - case "windows": - result = WINDOWS_AUTHENTICATIONMETHODPLATFORM - case "macOS": - result = MACOS_AUTHENTICATIONMETHODPLATFORM - case "iOS": - result = IOS_AUTHENTICATIONMETHODPLATFORM - case "android": - result = ANDROID_AUTHENTICATIONMETHODPLATFORM - case "linux": - result = LINUX_AUTHENTICATIONMETHODPLATFORM - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODPLATFORM - default: - return 0, errors.New("Unknown AuthenticationMethodPlatform value: " + v) - } - return &result, nil -} -func SerializeAuthenticationMethodPlatform(values []AuthenticationMethodPlatform) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationMethodPlatform) isMultiValue() bool { - return false -} diff --git a/models/authentication_method_sign_in_state.go b/models/authentication_method_sign_in_state.go deleted file mode 100644 index 0a2b392d4e5..00000000000 --- a/models/authentication_method_sign_in_state.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationMethodSignInState int - -const ( - NOTSUPPORTED_AUTHENTICATIONMETHODSIGNINSTATE AuthenticationMethodSignInState = iota - NOTALLOWEDBYPOLICY_AUTHENTICATIONMETHODSIGNINSTATE - NOTENABLED_AUTHENTICATIONMETHODSIGNINSTATE - PHONENUMBERNOTUNIQUE_AUTHENTICATIONMETHODSIGNINSTATE - READY_AUTHENTICATIONMETHODSIGNINSTATE - NOTCONFIGURED_AUTHENTICATIONMETHODSIGNINSTATE - UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODSIGNINSTATE -) - -func (i AuthenticationMethodSignInState) String() string { - return []string{"notSupported", "notAllowedByPolicy", "notEnabled", "phoneNumberNotUnique", "ready", "notConfigured", "unknownFutureValue"}[i] -} -func ParseAuthenticationMethodSignInState(v string) (any, error) { - result := NOTSUPPORTED_AUTHENTICATIONMETHODSIGNINSTATE - switch v { - case "notSupported": - result = NOTSUPPORTED_AUTHENTICATIONMETHODSIGNINSTATE - case "notAllowedByPolicy": - result = NOTALLOWEDBYPOLICY_AUTHENTICATIONMETHODSIGNINSTATE - case "notEnabled": - result = NOTENABLED_AUTHENTICATIONMETHODSIGNINSTATE - case "phoneNumberNotUnique": - result = PHONENUMBERNOTUNIQUE_AUTHENTICATIONMETHODSIGNINSTATE - case "ready": - result = READY_AUTHENTICATIONMETHODSIGNINSTATE - case "notConfigured": - result = NOTCONFIGURED_AUTHENTICATIONMETHODSIGNINSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODSIGNINSTATE - default: - return 0, errors.New("Unknown AuthenticationMethodSignInState value: " + v) - } - return &result, nil -} -func SerializeAuthenticationMethodSignInState(values []AuthenticationMethodSignInState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationMethodSignInState) isMultiValue() bool { - return false -} diff --git a/models/authentication_method_state.go b/models/authentication_method_state.go deleted file mode 100644 index 28624771f8d..00000000000 --- a/models/authentication_method_state.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationMethodState int - -const ( - ENABLED_AUTHENTICATIONMETHODSTATE AuthenticationMethodState = iota - DISABLED_AUTHENTICATIONMETHODSTATE -) - -func (i AuthenticationMethodState) String() string { - return []string{"enabled", "disabled"}[i] -} -func ParseAuthenticationMethodState(v string) (any, error) { - result := ENABLED_AUTHENTICATIONMETHODSTATE - switch v { - case "enabled": - result = ENABLED_AUTHENTICATIONMETHODSTATE - case "disabled": - result = DISABLED_AUTHENTICATIONMETHODSTATE - default: - return 0, errors.New("Unknown AuthenticationMethodState value: " + v) - } - return &result, nil -} -func SerializeAuthenticationMethodState(values []AuthenticationMethodState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationMethodState) isMultiValue() bool { - return false -} diff --git a/models/authentication_methods_policy.go b/models/authentication_methods_policy.go index c6c3ef2e917..9af20642f90 100644 --- a/models/authentication_methods_policy.go +++ b/models/authentication_methods_policy.go @@ -103,12 +103,12 @@ func (m *AuthenticationMethodsPolicy) GetFieldDeserializers()(map[string]func(i8 return nil } res["policyMigrationState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationMethodsPolicyMigrationState) + val, err := n.GetEnumValue(ParseAuthenticationMethodsPolicy_policyMigrationState) if err != nil { return err } if val != nil { - m.SetPolicyMigrationState(val.(*AuthenticationMethodsPolicyMigrationState)) + m.SetPolicyMigrationState(val.(*AuthenticationMethodsPolicy_policyMigrationState)) } return nil } @@ -176,13 +176,13 @@ func (m *AuthenticationMethodsPolicy) GetLastModifiedDateTime()(*i336074805fc853 return nil } // GetPolicyMigrationState gets the policyMigrationState property value. The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Don't use. -func (m *AuthenticationMethodsPolicy) GetPolicyMigrationState()(*AuthenticationMethodsPolicyMigrationState) { +func (m *AuthenticationMethodsPolicy) GetPolicyMigrationState()(*AuthenticationMethodsPolicy_policyMigrationState) { val, err := m.GetBackingStore().Get("policyMigrationState") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationMethodsPolicyMigrationState) + return val.(*AuthenticationMethodsPolicy_policyMigrationState) } return nil } @@ -345,7 +345,7 @@ func (m *AuthenticationMethodsPolicy) SetLastModifiedDateTime(value *i336074805f } } // SetPolicyMigrationState sets the policyMigrationState property value. The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Don't use. -func (m *AuthenticationMethodsPolicy) SetPolicyMigrationState(value *AuthenticationMethodsPolicyMigrationState)() { +func (m *AuthenticationMethodsPolicy) SetPolicyMigrationState(value *AuthenticationMethodsPolicy_policyMigrationState)() { err := m.GetBackingStore().Set("policyMigrationState", value) if err != nil { panic(err) @@ -394,7 +394,7 @@ type AuthenticationMethodsPolicyable interface { GetDescription()(*string) GetDisplayName()(*string) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetPolicyMigrationState()(*AuthenticationMethodsPolicyMigrationState) + GetPolicyMigrationState()(*AuthenticationMethodsPolicy_policyMigrationState) GetPolicyVersion()(*string) GetReconfirmationInDays()(*int32) GetRegistrationEnforcement()(RegistrationEnforcementable) @@ -404,7 +404,7 @@ type AuthenticationMethodsPolicyable interface { SetDescription(value *string)() SetDisplayName(value *string)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetPolicyMigrationState(value *AuthenticationMethodsPolicyMigrationState)() + SetPolicyMigrationState(value *AuthenticationMethodsPolicy_policyMigrationState)() SetPolicyVersion(value *string)() SetReconfirmationInDays(value *int32)() SetRegistrationEnforcement(value RegistrationEnforcementable)() diff --git a/models/authentication_methods_policy_migration_state.go b/models/authentication_methods_policy_migration_state.go deleted file mode 100644 index 1670eed4661..00000000000 --- a/models/authentication_methods_policy_migration_state.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationMethodsPolicyMigrationState int - -const ( - PREMIGRATION_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE AuthenticationMethodsPolicyMigrationState = iota - MIGRATIONINPROGRESS_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE - MIGRATIONCOMPLETE_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE - UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE -) - -func (i AuthenticationMethodsPolicyMigrationState) String() string { - return []string{"preMigration", "migrationInProgress", "migrationComplete", "unknownFutureValue"}[i] -} -func ParseAuthenticationMethodsPolicyMigrationState(v string) (any, error) { - result := PREMIGRATION_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE - switch v { - case "preMigration": - result = PREMIGRATION_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE - case "migrationInProgress": - result = MIGRATIONINPROGRESS_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE - case "migrationComplete": - result = MIGRATIONCOMPLETE_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE - default: - return 0, errors.New("Unknown AuthenticationMethodsPolicyMigrationState value: " + v) - } - return &result, nil -} -func SerializeAuthenticationMethodsPolicyMigrationState(values []AuthenticationMethodsPolicyMigrationState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationMethodsPolicyMigrationState) isMultiValue() bool { - return false -} diff --git a/models/authentication_methods_policy_policy_migration_state.go b/models/authentication_methods_policy_policy_migration_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_phone_type.go b/models/authentication_phone_type.go deleted file mode 100644 index 244dfe73c05..00000000000 --- a/models/authentication_phone_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationPhoneType int - -const ( - MOBILE_AUTHENTICATIONPHONETYPE AuthenticationPhoneType = iota - ALTERNATEMOBILE_AUTHENTICATIONPHONETYPE - OFFICE_AUTHENTICATIONPHONETYPE - UNKNOWNFUTUREVALUE_AUTHENTICATIONPHONETYPE -) - -func (i AuthenticationPhoneType) String() string { - return []string{"mobile", "alternateMobile", "office", "unknownFutureValue"}[i] -} -func ParseAuthenticationPhoneType(v string) (any, error) { - result := MOBILE_AUTHENTICATIONPHONETYPE - switch v { - case "mobile": - result = MOBILE_AUTHENTICATIONPHONETYPE - case "alternateMobile": - result = ALTERNATEMOBILE_AUTHENTICATIONPHONETYPE - case "office": - result = OFFICE_AUTHENTICATIONPHONETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONPHONETYPE - default: - return 0, errors.New("Unknown AuthenticationPhoneType value: " + v) - } - return &result, nil -} -func SerializeAuthenticationPhoneType(values []AuthenticationPhoneType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationPhoneType) isMultiValue() bool { - return false -} diff --git a/models/authentication_protocol.go b/models/authentication_protocol.go deleted file mode 100644 index 16741c07e6f..00000000000 --- a/models/authentication_protocol.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationProtocol int - -const ( - WSFED_AUTHENTICATIONPROTOCOL AuthenticationProtocol = iota - SAML_AUTHENTICATIONPROTOCOL - UNKNOWNFUTUREVALUE_AUTHENTICATIONPROTOCOL -) - -func (i AuthenticationProtocol) String() string { - return []string{"wsFed", "saml", "unknownFutureValue"}[i] -} -func ParseAuthenticationProtocol(v string) (any, error) { - result := WSFED_AUTHENTICATIONPROTOCOL - switch v { - case "wsFed": - result = WSFED_AUTHENTICATIONPROTOCOL - case "saml": - result = SAML_AUTHENTICATIONPROTOCOL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONPROTOCOL - default: - return 0, errors.New("Unknown AuthenticationProtocol value: " + v) - } - return &result, nil -} -func SerializeAuthenticationProtocol(values []AuthenticationProtocol) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationProtocol) isMultiValue() bool { - return false -} diff --git a/models/authentication_requirement_policy.go b/models/authentication_requirement_policy.go index 7263c740417..9c3ad296334 100644 --- a/models/authentication_requirement_policy.go +++ b/models/authentication_requirement_policy.go @@ -73,12 +73,12 @@ func (m *AuthenticationRequirementPolicy) GetFieldDeserializers()(map[string]fun return nil } res["requirementProvider"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRequirementProvider) + val, err := n.GetEnumValue(ParseAuthenticationRequirementPolicy_requirementProvider) if err != nil { return err } if val != nil { - m.SetRequirementProvider(val.(*RequirementProvider)) + m.SetRequirementProvider(val.(*AuthenticationRequirementPolicy_requirementProvider)) } return nil } @@ -96,13 +96,13 @@ func (m *AuthenticationRequirementPolicy) GetOdataType()(*string) { return nil } // GetRequirementProvider gets the requirementProvider property value. Identifies what Microsoft Entra feature requires MFA in this policy. Possible values are: user, request, servicePrincipal, v1ConditionalAccess, multiConditionalAccess, tenantSessionRiskPolicy, accountCompromisePolicies, v1ConditionalAccessDependency, v1ConditionalAccessPolicyIdRequested, mfaRegistrationRequiredByIdentityProtectionPolicy, baselineProtection, mfaRegistrationRequiredByBaselineProtection, mfaRegistrationRequiredByMultiConditionalAccess, enforcedForCspAdmins, securityDefaults, mfaRegistrationRequiredBySecurityDefaults, proofUpCodeRequest, crossTenantOutboundRule, gpsLocationCondition, riskBasedPolicy, unknownFutureValue. -func (m *AuthenticationRequirementPolicy) GetRequirementProvider()(*RequirementProvider) { +func (m *AuthenticationRequirementPolicy) GetRequirementProvider()(*AuthenticationRequirementPolicy_requirementProvider) { val, err := m.GetBackingStore().Get("requirementProvider") if err != nil { panic(err) } if val != nil { - return val.(*RequirementProvider) + return val.(*AuthenticationRequirementPolicy_requirementProvider) } return nil } @@ -161,7 +161,7 @@ func (m *AuthenticationRequirementPolicy) SetOdataType(value *string)() { } } // SetRequirementProvider sets the requirementProvider property value. Identifies what Microsoft Entra feature requires MFA in this policy. Possible values are: user, request, servicePrincipal, v1ConditionalAccess, multiConditionalAccess, tenantSessionRiskPolicy, accountCompromisePolicies, v1ConditionalAccessDependency, v1ConditionalAccessPolicyIdRequested, mfaRegistrationRequiredByIdentityProtectionPolicy, baselineProtection, mfaRegistrationRequiredByBaselineProtection, mfaRegistrationRequiredByMultiConditionalAccess, enforcedForCspAdmins, securityDefaults, mfaRegistrationRequiredBySecurityDefaults, proofUpCodeRequest, crossTenantOutboundRule, gpsLocationCondition, riskBasedPolicy, unknownFutureValue. -func (m *AuthenticationRequirementPolicy) SetRequirementProvider(value *RequirementProvider)() { +func (m *AuthenticationRequirementPolicy) SetRequirementProvider(value *AuthenticationRequirementPolicy_requirementProvider)() { err := m.GetBackingStore().Set("requirementProvider", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type AuthenticationRequirementPolicyable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDetail()(*string) GetOdataType()(*string) - GetRequirementProvider()(*RequirementProvider) + GetRequirementProvider()(*AuthenticationRequirementPolicy_requirementProvider) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDetail(value *string)() SetOdataType(value *string)() - SetRequirementProvider(value *RequirementProvider)() + SetRequirementProvider(value *AuthenticationRequirementPolicy_requirementProvider)() } diff --git a/models/authentication_requirement_policy_requirement_provider.go b/models/authentication_requirement_policy_requirement_provider.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_strength.go b/models/authentication_strength.go index 6477271b8f2..25d859f9947 100644 --- a/models/authentication_strength.go +++ b/models/authentication_strength.go @@ -46,13 +46,13 @@ func (m *AuthenticationStrength) GetAuthenticationStrengthId()(*string) { return nil } // GetAuthenticationStrengthResult gets the authenticationStrengthResult property value. The result of the authentication strength. The possible values are: notSet, skippedForProofUp, satisfied, singleChallengeRequired, multipleChallengesRequired, singleRegistrationRequired, multipleRegistrationsRequired, cannotSatisfyDueToCombinationConfiguration, cannotSatisfy, unknownFutureValue. -func (m *AuthenticationStrength) GetAuthenticationStrengthResult()(*AuthenticationStrengthResult) { +func (m *AuthenticationStrength) GetAuthenticationStrengthResult()(*AuthenticationStrength_authenticationStrengthResult) { val, err := m.GetBackingStore().Get("authenticationStrengthResult") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationStrengthResult) + return val.(*AuthenticationStrength_authenticationStrengthResult) } return nil } @@ -85,12 +85,12 @@ func (m *AuthenticationStrength) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["authenticationStrengthResult"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationStrengthResult) + val, err := n.GetEnumValue(ParseAuthenticationStrength_authenticationStrengthResult) if err != nil { return err } if val != nil { - m.SetAuthenticationStrengthResult(val.(*AuthenticationStrengthResult)) + m.SetAuthenticationStrengthResult(val.(*AuthenticationStrength_authenticationStrengthResult)) } return nil } @@ -177,7 +177,7 @@ func (m *AuthenticationStrength) SetAuthenticationStrengthId(value *string)() { } } // SetAuthenticationStrengthResult sets the authenticationStrengthResult property value. The result of the authentication strength. The possible values are: notSet, skippedForProofUp, satisfied, singleChallengeRequired, multipleChallengesRequired, singleRegistrationRequired, multipleRegistrationsRequired, cannotSatisfyDueToCombinationConfiguration, cannotSatisfy, unknownFutureValue. -func (m *AuthenticationStrength) SetAuthenticationStrengthResult(value *AuthenticationStrengthResult)() { +func (m *AuthenticationStrength) SetAuthenticationStrengthResult(value *AuthenticationStrength_authenticationStrengthResult)() { err := m.GetBackingStore().Set("authenticationStrengthResult", value) if err != nil { panic(err) @@ -207,12 +207,12 @@ type AuthenticationStrengthable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAuthenticationStrengthId()(*string) - GetAuthenticationStrengthResult()(*AuthenticationStrengthResult) + GetAuthenticationStrengthResult()(*AuthenticationStrength_authenticationStrengthResult) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDisplayName()(*string) GetOdataType()(*string) SetAuthenticationStrengthId(value *string)() - SetAuthenticationStrengthResult(value *AuthenticationStrengthResult)() + SetAuthenticationStrengthResult(value *AuthenticationStrength_authenticationStrengthResult)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetOdataType(value *string)() diff --git a/models/authentication_strength_authentication_strength_result.go b/models/authentication_strength_authentication_strength_result.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authentication_strength_result.go b/models/authentication_strength_result.go deleted file mode 100644 index 7002a410f94..00000000000 --- a/models/authentication_strength_result.go +++ /dev/null @@ -1,61 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthenticationStrengthResult int - -const ( - NOTSET_AUTHENTICATIONSTRENGTHRESULT AuthenticationStrengthResult = iota - SKIPPEDFORPROOFUP_AUTHENTICATIONSTRENGTHRESULT - SATISFIED_AUTHENTICATIONSTRENGTHRESULT - SINGLECHALLENGEREQUIRED_AUTHENTICATIONSTRENGTHRESULT - MULTIPLECHALLENGESREQUIRED_AUTHENTICATIONSTRENGTHRESULT - SINGLEREGISTRATIONREQUIRED_AUTHENTICATIONSTRENGTHRESULT - MULTIPLEREGISTRATIONSREQUIRED_AUTHENTICATIONSTRENGTHRESULT - CANNOTSATISFYDUETOCOMBINATIONCONFIGURATION_AUTHENTICATIONSTRENGTHRESULT - CANNOTSATISFY_AUTHENTICATIONSTRENGTHRESULT - UNKNOWNFUTUREVALUE_AUTHENTICATIONSTRENGTHRESULT -) - -func (i AuthenticationStrengthResult) String() string { - return []string{"notSet", "skippedForProofUp", "satisfied", "singleChallengeRequired", "multipleChallengesRequired", "singleRegistrationRequired", "multipleRegistrationsRequired", "cannotSatisfyDueToCombinationConfiguration", "cannotSatisfy", "unknownFutureValue"}[i] -} -func ParseAuthenticationStrengthResult(v string) (any, error) { - result := NOTSET_AUTHENTICATIONSTRENGTHRESULT - switch v { - case "notSet": - result = NOTSET_AUTHENTICATIONSTRENGTHRESULT - case "skippedForProofUp": - result = SKIPPEDFORPROOFUP_AUTHENTICATIONSTRENGTHRESULT - case "satisfied": - result = SATISFIED_AUTHENTICATIONSTRENGTHRESULT - case "singleChallengeRequired": - result = SINGLECHALLENGEREQUIRED_AUTHENTICATIONSTRENGTHRESULT - case "multipleChallengesRequired": - result = MULTIPLECHALLENGESREQUIRED_AUTHENTICATIONSTRENGTHRESULT - case "singleRegistrationRequired": - result = SINGLEREGISTRATIONREQUIRED_AUTHENTICATIONSTRENGTHRESULT - case "multipleRegistrationsRequired": - result = MULTIPLEREGISTRATIONSREQUIRED_AUTHENTICATIONSTRENGTHRESULT - case "cannotSatisfyDueToCombinationConfiguration": - result = CANNOTSATISFYDUETOCOMBINATIONCONFIGURATION_AUTHENTICATIONSTRENGTHRESULT - case "cannotSatisfy": - result = CANNOTSATISFY_AUTHENTICATIONSTRENGTHRESULT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHENTICATIONSTRENGTHRESULT - default: - return 0, errors.New("Unknown AuthenticationStrengthResult value: " + v) - } - return &result, nil -} -func SerializeAuthenticationStrengthResult(values []AuthenticationStrengthResult) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationStrengthResult) isMultiValue() bool { - return false -} diff --git a/models/authentication_transform_constant.go b/models/authentication_transform_constant.go deleted file mode 100644 index 74c3e152df4..00000000000 --- a/models/authentication_transform_constant.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// Authentication transform values for Windows10 VPN policies with IKEv2 connection type. -type AuthenticationTransformConstant int - -const ( - // MD596 - MD5_96_AUTHENTICATIONTRANSFORMCONSTANT AuthenticationTransformConstant = iota - // SHA196 - SHA1_96_AUTHENTICATIONTRANSFORMCONSTANT - // SHA256128 - SHA_256_128_AUTHENTICATIONTRANSFORMCONSTANT - // GCMAES128 - AES128GCM_AUTHENTICATIONTRANSFORMCONSTANT - // GCMAES192 - AES192GCM_AUTHENTICATIONTRANSFORMCONSTANT - // GCMAES256 - AES256GCM_AUTHENTICATIONTRANSFORMCONSTANT -) - -func (i AuthenticationTransformConstant) String() string { - return []string{"md5_96", "sha1_96", "sha_256_128", "aes128Gcm", "aes192Gcm", "aes256Gcm"}[i] -} -func ParseAuthenticationTransformConstant(v string) (any, error) { - result := MD5_96_AUTHENTICATIONTRANSFORMCONSTANT - switch v { - case "md5_96": - result = MD5_96_AUTHENTICATIONTRANSFORMCONSTANT - case "sha1_96": - result = SHA1_96_AUTHENTICATIONTRANSFORMCONSTANT - case "sha_256_128": - result = SHA_256_128_AUTHENTICATIONTRANSFORMCONSTANT - case "aes128Gcm": - result = AES128GCM_AUTHENTICATIONTRANSFORMCONSTANT - case "aes192Gcm": - result = AES192GCM_AUTHENTICATIONTRANSFORMCONSTANT - case "aes256Gcm": - result = AES256GCM_AUTHENTICATIONTRANSFORMCONSTANT - default: - return 0, errors.New("Unknown AuthenticationTransformConstant value: " + v) - } - return &result, nil -} -func SerializeAuthenticationTransformConstant(values []AuthenticationTransformConstant) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthenticationTransformConstant) isMultiValue() bool { - return false -} diff --git a/models/authorization_policy.go b/models/authorization_policy.go index 14dceabb42c..3c59796e04a 100644 --- a/models/authorization_policy.go +++ b/models/authorization_policy.go @@ -56,13 +56,13 @@ func (m *AuthorizationPolicy) GetAllowEmailVerifiedUsersToJoinOrganization()(*bo return nil } // GetAllowInvitesFrom gets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. See more in the table below. -func (m *AuthorizationPolicy) GetAllowInvitesFrom()(*AllowInvitesFrom) { +func (m *AuthorizationPolicy) GetAllowInvitesFrom()(*AuthorizationPolicy_allowInvitesFrom) { val, err := m.GetBackingStore().Get("allowInvitesFrom") if err != nil { panic(err) } if val != nil { - return val.(*AllowInvitesFrom) + return val.(*AuthorizationPolicy_allowInvitesFrom) } return nil } @@ -155,12 +155,12 @@ func (m *AuthorizationPolicy) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["allowInvitesFrom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAllowInvitesFrom) + val, err := n.GetEnumValue(ParseAuthorizationPolicy_allowInvitesFrom) if err != nil { return err } if val != nil { - m.SetAllowInvitesFrom(val.(*AllowInvitesFrom)) + m.SetAllowInvitesFrom(val.(*AuthorizationPolicy_allowInvitesFrom)) } return nil } @@ -379,7 +379,7 @@ func (m *AuthorizationPolicy) SetAllowEmailVerifiedUsersToJoinOrganization(value } } // SetAllowInvitesFrom sets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. See more in the table below. -func (m *AuthorizationPolicy) SetAllowInvitesFrom(value *AllowInvitesFrom)() { +func (m *AuthorizationPolicy) SetAllowInvitesFrom(value *AuthorizationPolicy_allowInvitesFrom)() { err := m.GetBackingStore().Set("allowInvitesFrom", value) if err != nil { panic(err) @@ -441,7 +441,7 @@ type AuthorizationPolicyable interface { GetAllowedToSignUpEmailBasedSubscriptions()(*bool) GetAllowedToUseSSPR()(*bool) GetAllowEmailVerifiedUsersToJoinOrganization()(*bool) - GetAllowInvitesFrom()(*AllowInvitesFrom) + GetAllowInvitesFrom()(*AuthorizationPolicy_allowInvitesFrom) GetAllowUserConsentForRiskyApps()(*bool) GetBlockMsolPowerShell()(*bool) GetDefaultUserRoleOverrides()([]DefaultUserRoleOverrideable) @@ -452,7 +452,7 @@ type AuthorizationPolicyable interface { SetAllowedToSignUpEmailBasedSubscriptions(value *bool)() SetAllowedToUseSSPR(value *bool)() SetAllowEmailVerifiedUsersToJoinOrganization(value *bool)() - SetAllowInvitesFrom(value *AllowInvitesFrom)() + SetAllowInvitesFrom(value *AuthorizationPolicy_allowInvitesFrom)() SetAllowUserConsentForRiskyApps(value *bool)() SetBlockMsolPowerShell(value *bool)() SetDefaultUserRoleOverrides(value []DefaultUserRoleOverrideable)() diff --git a/models/authorization_policy_allow_invites_from.go b/models/authorization_policy_allow_invites_from.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authorization_system_action_type.go b/models/authorization_system_action_type.go deleted file mode 100644 index 40ebe5a08e0..00000000000 --- a/models/authorization_system_action_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthorizationSystemActionType int - -const ( - DELETE_AUTHORIZATIONSYSTEMACTIONTYPE AuthorizationSystemActionType = iota - READ_AUTHORIZATIONSYSTEMACTIONTYPE - UNKNOWNFUTUREVALUE_AUTHORIZATIONSYSTEMACTIONTYPE -) - -func (i AuthorizationSystemActionType) String() string { - return []string{"delete", "read", "unknownFutureValue"}[i] -} -func ParseAuthorizationSystemActionType(v string) (any, error) { - result := DELETE_AUTHORIZATIONSYSTEMACTIONTYPE - switch v { - case "delete": - result = DELETE_AUTHORIZATIONSYSTEMACTIONTYPE - case "read": - result = READ_AUTHORIZATIONSYSTEMACTIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHORIZATIONSYSTEMACTIONTYPE - default: - return 0, errors.New("Unknown AuthorizationSystemActionType value: " + v) - } - return &result, nil -} -func SerializeAuthorizationSystemActionType(values []AuthorizationSystemActionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthorizationSystemActionType) isMultiValue() bool { - return false -} diff --git a/models/authorization_system_info.go b/models/authorization_system_info.go index 395cf4e97f0..44ea78fdc9d 100644 --- a/models/authorization_system_info.go +++ b/models/authorization_system_info.go @@ -35,13 +35,13 @@ func (m *AuthorizationSystemInfo) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAuthorizationSystemType gets the authorizationSystemType property value. The type of authorization system.The possible values are: azure, gcp, aws, unknownFutureValue. -func (m *AuthorizationSystemInfo) GetAuthorizationSystemType()(*AuthorizationSystemType) { +func (m *AuthorizationSystemInfo) GetAuthorizationSystemType()(*AuthorizationSystemInfo_authorizationSystemType) { val, err := m.GetBackingStore().Get("authorizationSystemType") if err != nil { panic(err) } if val != nil { - return val.(*AuthorizationSystemType) + return val.(*AuthorizationSystemInfo_authorizationSystemType) } return nil } @@ -64,12 +64,12 @@ func (m *AuthorizationSystemInfo) GetDisplayName()(*string) { func (m *AuthorizationSystemInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["authorizationSystemType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthorizationSystemType) + val, err := n.GetEnumValue(ParseAuthorizationSystemInfo_authorizationSystemType) if err != nil { return err } if val != nil { - m.SetAuthorizationSystemType(val.(*AuthorizationSystemType)) + m.SetAuthorizationSystemType(val.(*AuthorizationSystemInfo_authorizationSystemType)) } return nil } @@ -170,7 +170,7 @@ func (m *AuthorizationSystemInfo) SetAdditionalData(value map[string]any)() { } } // SetAuthorizationSystemType sets the authorizationSystemType property value. The type of authorization system.The possible values are: azure, gcp, aws, unknownFutureValue. -func (m *AuthorizationSystemInfo) SetAuthorizationSystemType(value *AuthorizationSystemType)() { +func (m *AuthorizationSystemInfo) SetAuthorizationSystemType(value *AuthorizationSystemInfo_authorizationSystemType)() { err := m.GetBackingStore().Set("authorizationSystemType", value) if err != nil { panic(err) @@ -206,12 +206,12 @@ type AuthorizationSystemInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthorizationSystemType()(*AuthorizationSystemType) + GetAuthorizationSystemType()(*AuthorizationSystemInfo_authorizationSystemType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDisplayName()(*string) GetId()(*string) GetOdataType()(*string) - SetAuthorizationSystemType(value *AuthorizationSystemType)() + SetAuthorizationSystemType(value *AuthorizationSystemInfo_authorizationSystemType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetId(value *string)() diff --git a/models/authorization_system_info_authorization_system_type.go b/models/authorization_system_info_authorization_system_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/authorization_system_type.go b/models/authorization_system_type.go deleted file mode 100644 index 79640934618..00000000000 --- a/models/authorization_system_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type AuthorizationSystemType int - -const ( - AZURE_AUTHORIZATIONSYSTEMTYPE AuthorizationSystemType = iota - GCP_AUTHORIZATIONSYSTEMTYPE - AWS_AUTHORIZATIONSYSTEMTYPE - UNKNOWNFUTUREVALUE_AUTHORIZATIONSYSTEMTYPE -) - -func (i AuthorizationSystemType) String() string { - return []string{"azure", "gcp", "aws", "unknownFutureValue"}[i] -} -func ParseAuthorizationSystemType(v string) (any, error) { - result := AZURE_AUTHORIZATIONSYSTEMTYPE - switch v { - case "azure": - result = AZURE_AUTHORIZATIONSYSTEMTYPE - case "gcp": - result = GCP_AUTHORIZATIONSYSTEMTYPE - case "aws": - result = AWS_AUTHORIZATIONSYSTEMTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUTHORIZATIONSYSTEMTYPE - default: - return 0, errors.New("Unknown AuthorizationSystemType value: " + v) - } - return &result, nil -} -func SerializeAuthorizationSystemType(values []AuthorizationSystemType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuthorizationSystemType) isMultiValue() bool { - return false -} diff --git a/models/authorization_system_type_action.go b/models/authorization_system_type_action.go index c7339d23b3c..a9f8f42aa21 100644 --- a/models/authorization_system_type_action.go +++ b/models/authorization_system_type_action.go @@ -42,13 +42,13 @@ func CreateAuthorizationSystemTypeActionFromDiscriminatorValue(parseNode i878a80 return NewAuthorizationSystemTypeAction(), nil } // GetActionType gets the actionType property value. The type of action allowed in the authorization system's service. The possible values are: delete, read, unknownFutureValue. Supports $filter and (eq). -func (m *AuthorizationSystemTypeAction) GetActionType()(*AuthorizationSystemActionType) { +func (m *AuthorizationSystemTypeAction) GetActionType()(*AuthorizationSystemTypeAction_actionType) { val, err := m.GetBackingStore().Get("actionType") if err != nil { panic(err) } if val != nil { - return val.(*AuthorizationSystemActionType) + return val.(*AuthorizationSystemTypeAction_actionType) } return nil } @@ -67,12 +67,12 @@ func (m *AuthorizationSystemTypeAction) GetExternalId()(*string) { func (m *AuthorizationSystemTypeAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["actionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthorizationSystemActionType) + val, err := n.GetEnumValue(ParseAuthorizationSystemTypeAction_actionType) if err != nil { return err } if val != nil { - m.SetActionType(val.(*AuthorizationSystemActionType)) + m.SetActionType(val.(*AuthorizationSystemTypeAction_actionType)) } return nil } @@ -171,7 +171,7 @@ func (m *AuthorizationSystemTypeAction) Serialize(writer i878a80d2330e89d2689638 return nil } // SetActionType sets the actionType property value. The type of action allowed in the authorization system's service. The possible values are: delete, read, unknownFutureValue. Supports $filter and (eq). -func (m *AuthorizationSystemTypeAction) SetActionType(value *AuthorizationSystemActionType)() { +func (m *AuthorizationSystemTypeAction) SetActionType(value *AuthorizationSystemTypeAction_actionType)() { err := m.GetBackingStore().Set("actionType", value) if err != nil { panic(err) @@ -202,11 +202,11 @@ func (m *AuthorizationSystemTypeAction) SetSeverity(value *AuthorizationSystemAc type AuthorizationSystemTypeActionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActionType()(*AuthorizationSystemActionType) + GetActionType()(*AuthorizationSystemTypeAction_actionType) GetExternalId()(*string) GetResourceTypes()([]string) GetSeverity()(*AuthorizationSystemActionSeverity) - SetActionType(value *AuthorizationSystemActionType)() + SetActionType(value *AuthorizationSystemTypeAction_actionType)() SetExternalId(value *string)() SetResourceTypes(value []string)() SetSeverity(value *AuthorizationSystemActionSeverity)() diff --git a/models/authorization_system_type_action_action_type.go b/models/authorization_system_type_action_action_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/automatic_replies_setting.go b/models/automatic_replies_setting.go index 3fd8ea8ba27..2e8228ed11e 100644 --- a/models/automatic_replies_setting.go +++ b/models/automatic_replies_setting.go @@ -39,13 +39,13 @@ func (m *AutomaticRepliesSetting) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd return m.backingStore } // GetExternalAudience gets the externalAudience property value. The set of audience external to the signed-in user's organization who will receive the ExternalReplyMessage, if Status is AlwaysEnabled or Scheduled. Possible values are: none, contactsOnly, all. -func (m *AutomaticRepliesSetting) GetExternalAudience()(*ExternalAudienceScope) { +func (m *AutomaticRepliesSetting) GetExternalAudience()(*AutomaticRepliesSetting_externalAudience) { val, err := m.GetBackingStore().Get("externalAudience") if err != nil { panic(err) } if val != nil { - return val.(*ExternalAudienceScope) + return val.(*AutomaticRepliesSetting_externalAudience) } return nil } @@ -64,12 +64,12 @@ func (m *AutomaticRepliesSetting) GetExternalReplyMessage()(*string) { func (m *AutomaticRepliesSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["externalAudience"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExternalAudienceScope) + val, err := n.GetEnumValue(ParseAutomaticRepliesSetting_externalAudience) if err != nil { return err } if val != nil { - m.SetExternalAudience(val.(*ExternalAudienceScope)) + m.SetExternalAudience(val.(*AutomaticRepliesSetting_externalAudience)) } return nil } @@ -124,12 +124,12 @@ func (m *AutomaticRepliesSetting) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAutomaticRepliesStatus) + val, err := n.GetEnumValue(ParseAutomaticRepliesSetting_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AutomaticRepliesStatus)) + m.SetStatus(val.(*AutomaticRepliesSetting_status)) } return nil } @@ -180,13 +180,13 @@ func (m *AutomaticRepliesSetting) GetScheduledStartDateTime()(DateTimeTimeZoneab return nil } // GetStatus gets the status property value. Configurations status for automatic replies. Possible values are: disabled, alwaysEnabled, scheduled. -func (m *AutomaticRepliesSetting) GetStatus()(*AutomaticRepliesStatus) { +func (m *AutomaticRepliesSetting) GetStatus()(*AutomaticRepliesSetting_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AutomaticRepliesStatus) + return val.(*AutomaticRepliesSetting_status) } return nil } @@ -256,7 +256,7 @@ func (m *AutomaticRepliesSetting) SetBackingStore(value ie8677ce2c7e1b4c22e9c382 m.backingStore = value } // SetExternalAudience sets the externalAudience property value. The set of audience external to the signed-in user's organization who will receive the ExternalReplyMessage, if Status is AlwaysEnabled or Scheduled. Possible values are: none, contactsOnly, all. -func (m *AutomaticRepliesSetting) SetExternalAudience(value *ExternalAudienceScope)() { +func (m *AutomaticRepliesSetting) SetExternalAudience(value *AutomaticRepliesSetting_externalAudience)() { err := m.GetBackingStore().Set("externalAudience", value) if err != nil { panic(err) @@ -298,7 +298,7 @@ func (m *AutomaticRepliesSetting) SetScheduledStartDateTime(value DateTimeTimeZo } } // SetStatus sets the status property value. Configurations status for automatic replies. Possible values are: disabled, alwaysEnabled, scheduled. -func (m *AutomaticRepliesSetting) SetStatus(value *AutomaticRepliesStatus)() { +func (m *AutomaticRepliesSetting) SetStatus(value *AutomaticRepliesSetting_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -310,19 +310,19 @@ type AutomaticRepliesSettingable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetExternalAudience()(*ExternalAudienceScope) + GetExternalAudience()(*AutomaticRepliesSetting_externalAudience) GetExternalReplyMessage()(*string) GetInternalReplyMessage()(*string) GetOdataType()(*string) GetScheduledEndDateTime()(DateTimeTimeZoneable) GetScheduledStartDateTime()(DateTimeTimeZoneable) - GetStatus()(*AutomaticRepliesStatus) + GetStatus()(*AutomaticRepliesSetting_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetExternalAudience(value *ExternalAudienceScope)() + SetExternalAudience(value *AutomaticRepliesSetting_externalAudience)() SetExternalReplyMessage(value *string)() SetInternalReplyMessage(value *string)() SetOdataType(value *string)() SetScheduledEndDateTime(value DateTimeTimeZoneable)() SetScheduledStartDateTime(value DateTimeTimeZoneable)() - SetStatus(value *AutomaticRepliesStatus)() + SetStatus(value *AutomaticRepliesSetting_status)() } diff --git a/models/automatic_replies_setting_external_audience.go b/models/automatic_replies_setting_external_audience.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/automatic_replies_setting_status.go b/models/automatic_replies_setting_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/automatic_replies_status.go b/models/automatic_replies_status.go deleted file mode 100644 index c695debc889..00000000000 --- a/models/automatic_replies_status.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type AutomaticRepliesStatus int - -const ( - DISABLED_AUTOMATICREPLIESSTATUS AutomaticRepliesStatus = iota - ALWAYSENABLED_AUTOMATICREPLIESSTATUS - SCHEDULED_AUTOMATICREPLIESSTATUS -) - -func (i AutomaticRepliesStatus) String() string { - return []string{"disabled", "alwaysEnabled", "scheduled"}[i] -} -func ParseAutomaticRepliesStatus(v string) (any, error) { - result := DISABLED_AUTOMATICREPLIESSTATUS - switch v { - case "disabled": - result = DISABLED_AUTOMATICREPLIESSTATUS - case "alwaysEnabled": - result = ALWAYSENABLED_AUTOMATICREPLIESSTATUS - case "scheduled": - result = SCHEDULED_AUTOMATICREPLIESSTATUS - default: - return 0, errors.New("Unknown AutomaticRepliesStatus value: " + v) - } - return &result, nil -} -func SerializeAutomaticRepliesStatus(values []AutomaticRepliesStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AutomaticRepliesStatus) isMultiValue() bool { - return false -} diff --git a/models/availability_item.go b/models/availability_item.go index 61c94ff4248..930d2bfa3c7 100644 --- a/models/availability_item.go +++ b/models/availability_item.go @@ -93,12 +93,12 @@ func (m *AvailabilityItem) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBookingsAvailabilityStatus) + val, err := n.GetEnumValue(ParseAvailabilityItem_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*BookingsAvailabilityStatus)) + m.SetStatus(val.(*AvailabilityItem_status)) } return nil } @@ -138,13 +138,13 @@ func (m *AvailabilityItem) GetStartDateTime()(DateTimeTimeZoneable) { return nil } // GetStatus gets the status property value. The status of the staff member. Possible values are: available, busy, slotsAvailable, outOfOffice, unknownFutureValue. -func (m *AvailabilityItem) GetStatus()(*BookingsAvailabilityStatus) { +func (m *AvailabilityItem) GetStatus()(*AvailabilityItem_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*BookingsAvailabilityStatus) + return val.(*AvailabilityItem_status) } return nil } @@ -229,7 +229,7 @@ func (m *AvailabilityItem) SetStartDateTime(value DateTimeTimeZoneable)() { } } // SetStatus sets the status property value. The status of the staff member. Possible values are: available, busy, slotsAvailable, outOfOffice, unknownFutureValue. -func (m *AvailabilityItem) SetStatus(value *BookingsAvailabilityStatus)() { +func (m *AvailabilityItem) SetStatus(value *AvailabilityItem_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -245,11 +245,11 @@ type AvailabilityItemable interface { GetOdataType()(*string) GetServiceId()(*string) GetStartDateTime()(DateTimeTimeZoneable) - GetStatus()(*BookingsAvailabilityStatus) + GetStatus()(*AvailabilityItem_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetEndDateTime(value DateTimeTimeZoneable)() SetOdataType(value *string)() SetServiceId(value *string)() SetStartDateTime(value DateTimeTimeZoneable)() - SetStatus(value *BookingsAvailabilityStatus)() + SetStatus(value *AvailabilityItem_status)() } diff --git a/models/availability_item_status.go b/models/availability_item_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/azure_a_d_join_policy.go b/models/azure_a_d_join_policy.go index f2e6ac51b29..c8d644860a3 100644 --- a/models/azure_a_d_join_policy.go +++ b/models/azure_a_d_join_policy.go @@ -34,7 +34,7 @@ func (m *AzureADJoinPolicy) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAllowedToJoin gets the allowedToJoin property value. The allowedToJoin property +// GetAllowedToJoin gets the allowedToJoin property value. Determines if Microsoft Entra join is allowed. func (m *AzureADJoinPolicy) GetAllowedToJoin()(DeviceRegistrationMembershipable) { val, err := m.GetBackingStore().Get("allowedToJoin") if err != nil { @@ -84,7 +84,7 @@ func (m *AzureADJoinPolicy) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetIsAdminConfigurable gets the isAdminConfigurable property value. Specifies whether this policy scope is configurable by the admin. The default value is false. When an admin has enabled Intune (MEM) to manage devices, this property is set to false and appliesTo defaults to 1 (meaning all). +// GetIsAdminConfigurable gets the isAdminConfigurable property value. Determines if administrators can modify this policy. func (m *AzureADJoinPolicy) GetIsAdminConfigurable()(*bool) { val, err := m.GetBackingStore().Get("isAdminConfigurable") if err != nil { @@ -141,7 +141,7 @@ func (m *AzureADJoinPolicy) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAllowedToJoin sets the allowedToJoin property value. The allowedToJoin property +// SetAllowedToJoin sets the allowedToJoin property value. Determines if Microsoft Entra join is allowed. func (m *AzureADJoinPolicy) SetAllowedToJoin(value DeviceRegistrationMembershipable)() { err := m.GetBackingStore().Set("allowedToJoin", value) if err != nil { @@ -152,7 +152,7 @@ func (m *AzureADJoinPolicy) SetAllowedToJoin(value DeviceRegistrationMembershipa func (m *AzureADJoinPolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsAdminConfigurable sets the isAdminConfigurable property value. Specifies whether this policy scope is configurable by the admin. The default value is false. When an admin has enabled Intune (MEM) to manage devices, this property is set to false and appliesTo defaults to 1 (meaning all). +// SetIsAdminConfigurable sets the isAdminConfigurable property value. Determines if administrators can modify this policy. func (m *AzureADJoinPolicy) SetIsAdminConfigurable(value *bool)() { err := m.GetBackingStore().Set("isAdminConfigurable", value) if err != nil { diff --git a/models/azure_a_d_registration_policy.go b/models/azure_a_d_registration_policy.go index e2c6b67e3eb..a08c63b2185 100644 --- a/models/azure_a_d_registration_policy.go +++ b/models/azure_a_d_registration_policy.go @@ -34,7 +34,7 @@ func (m *AzureADRegistrationPolicy) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAllowedToRegister gets the allowedToRegister property value. The allowedToRegister property +// GetAllowedToRegister gets the allowedToRegister property value. Determines if Microsoft Entra registered is allowed. func (m *AzureADRegistrationPolicy) GetAllowedToRegister()(DeviceRegistrationMembershipable) { val, err := m.GetBackingStore().Get("allowedToRegister") if err != nil { @@ -84,7 +84,7 @@ func (m *AzureADRegistrationPolicy) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetIsAdminConfigurable gets the isAdminConfigurable property value. Specifies whether this policy scope is configurable by the admin. The default value is false. When an admin has enabled Intune (MEM) to manage devices, this property is set to false and appliesTo defaults to 1 (meaning all). +// GetIsAdminConfigurable gets the isAdminConfigurable property value. Determines if administrators can modify this policy. func (m *AzureADRegistrationPolicy) GetIsAdminConfigurable()(*bool) { val, err := m.GetBackingStore().Get("isAdminConfigurable") if err != nil { @@ -141,7 +141,7 @@ func (m *AzureADRegistrationPolicy) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAllowedToRegister sets the allowedToRegister property value. The allowedToRegister property +// SetAllowedToRegister sets the allowedToRegister property value. Determines if Microsoft Entra registered is allowed. func (m *AzureADRegistrationPolicy) SetAllowedToRegister(value DeviceRegistrationMembershipable)() { err := m.GetBackingStore().Set("allowedToRegister", value) if err != nil { @@ -152,7 +152,7 @@ func (m *AzureADRegistrationPolicy) SetAllowedToRegister(value DeviceRegistratio func (m *AzureADRegistrationPolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsAdminConfigurable sets the isAdminConfigurable property value. Specifies whether this policy scope is configurable by the admin. The default value is false. When an admin has enabled Intune (MEM) to manage devices, this property is set to false and appliesTo defaults to 1 (meaning all). +// SetIsAdminConfigurable sets the isAdminConfigurable property value. Determines if administrators can modify this policy. func (m *AzureADRegistrationPolicy) SetIsAdminConfigurable(value *bool)() { err := m.GetBackingStore().Set("isAdminConfigurable", value) if err != nil { diff --git a/models/b2b_identity_providers_type.go b/models/b2b_identity_providers_type.go deleted file mode 100644 index 02d4261278a..00000000000 --- a/models/b2b_identity_providers_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type B2bIdentityProvidersType int - -const ( - AZUREACTIVEDIRECTORY_B2BIDENTITYPROVIDERSTYPE B2bIdentityProvidersType = iota - EXTERNALFEDERATION_B2BIDENTITYPROVIDERSTYPE - SOCIALIDENTITYPROVIDERS_B2BIDENTITYPROVIDERSTYPE - EMAILONETIMEPASSCODE_B2BIDENTITYPROVIDERSTYPE - MICROSOFTACCOUNT_B2BIDENTITYPROVIDERSTYPE - DEFAULTCONFIGUREDIDP_B2BIDENTITYPROVIDERSTYPE - UNKNOWNFUTUREVALUE_B2BIDENTITYPROVIDERSTYPE -) - -func (i B2bIdentityProvidersType) String() string { - return []string{"azureActiveDirectory", "externalFederation", "socialIdentityProviders", "emailOneTimePasscode", "microsoftAccount", "defaultConfiguredIdp", "unknownFutureValue"}[i] -} -func ParseB2bIdentityProvidersType(v string) (any, error) { - result := AZUREACTIVEDIRECTORY_B2BIDENTITYPROVIDERSTYPE - switch v { - case "azureActiveDirectory": - result = AZUREACTIVEDIRECTORY_B2BIDENTITYPROVIDERSTYPE - case "externalFederation": - result = EXTERNALFEDERATION_B2BIDENTITYPROVIDERSTYPE - case "socialIdentityProviders": - result = SOCIALIDENTITYPROVIDERS_B2BIDENTITYPROVIDERSTYPE - case "emailOneTimePasscode": - result = EMAILONETIMEPASSCODE_B2BIDENTITYPROVIDERSTYPE - case "microsoftAccount": - result = MICROSOFTACCOUNT_B2BIDENTITYPROVIDERSTYPE - case "defaultConfiguredIdp": - result = DEFAULTCONFIGUREDIDP_B2BIDENTITYPROVIDERSTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_B2BIDENTITYPROVIDERSTYPE - default: - return 0, errors.New("Unknown B2bIdentityProvidersType value: " + v) - } - return &result, nil -} -func SerializeB2bIdentityProvidersType(values []B2bIdentityProvidersType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i B2bIdentityProvidersType) isMultiValue() bool { - return false -} diff --git a/models/base_site_page.go b/models/base_site_page.go index a3ed41ff96a..2b61185cb5d 100644 --- a/models/base_site_page.go +++ b/models/base_site_page.go @@ -43,12 +43,12 @@ func CreateBaseSitePageFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 func (m *BaseSitePage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseItem.GetFieldDeserializers() res["pageLayout"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePageLayoutType) + val, err := n.GetEnumValue(ParseBaseSitePage_pageLayout) if err != nil { return err } if val != nil { - m.SetPageLayout(val.(*PageLayoutType)) + m.SetPageLayout(val.(*BaseSitePage_pageLayout)) } return nil } @@ -75,13 +75,13 @@ func (m *BaseSitePage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return res } // GetPageLayout gets the pageLayout property value. The name of the page layout of the page. The possible values are: microsoftReserved, article, home, unknownFutureValue. -func (m *BaseSitePage) GetPageLayout()(*PageLayoutType) { +func (m *BaseSitePage) GetPageLayout()(*BaseSitePage_pageLayout) { val, err := m.GetBackingStore().Get("pageLayout") if err != nil { panic(err) } if val != nil { - return val.(*PageLayoutType) + return val.(*BaseSitePage_pageLayout) } return nil } @@ -135,7 +135,7 @@ func (m *BaseSitePage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return nil } // SetPageLayout sets the pageLayout property value. The name of the page layout of the page. The possible values are: microsoftReserved, article, home, unknownFutureValue. -func (m *BaseSitePage) SetPageLayout(value *PageLayoutType)() { +func (m *BaseSitePage) SetPageLayout(value *BaseSitePage_pageLayout)() { err := m.GetBackingStore().Set("pageLayout", value) if err != nil { panic(err) @@ -159,10 +159,10 @@ func (m *BaseSitePage) SetTitle(value *string)() { type BaseSitePageable interface { BaseItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetPageLayout()(*PageLayoutType) + GetPageLayout()(*BaseSitePage_pageLayout) GetPublishingState()(PublicationFacetable) GetTitle()(*string) - SetPageLayout(value *PageLayoutType)() + SetPageLayout(value *BaseSitePage_pageLayout)() SetPublishingState(value PublicationFacetable)() SetTitle(value *string)() } diff --git a/models/base_site_page_page_layout.go b/models/base_site_page_page_layout.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/bit_locker_encryption_method.go b/models/bit_locker_encryption_method.go deleted file mode 100644 index 7a346e16b7a..00000000000 --- a/models/bit_locker_encryption_method.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// BitLockerEncryptionMethod types -type BitLockerEncryptionMethod int - -const ( - // AES-CBC 128-bit. - AESCBC128_BITLOCKERENCRYPTIONMETHOD BitLockerEncryptionMethod = iota - // AES-CBC 256-bit. - AESCBC256_BITLOCKERENCRYPTIONMETHOD - // XTS-AES 128-bit. - XTSAES128_BITLOCKERENCRYPTIONMETHOD - // XTS-AES 256-bit. - XTSAES256_BITLOCKERENCRYPTIONMETHOD -) - -func (i BitLockerEncryptionMethod) String() string { - return []string{"aesCbc128", "aesCbc256", "xtsAes128", "xtsAes256"}[i] -} -func ParseBitLockerEncryptionMethod(v string) (any, error) { - result := AESCBC128_BITLOCKERENCRYPTIONMETHOD - switch v { - case "aesCbc128": - result = AESCBC128_BITLOCKERENCRYPTIONMETHOD - case "aesCbc256": - result = AESCBC256_BITLOCKERENCRYPTIONMETHOD - case "xtsAes128": - result = XTSAES128_BITLOCKERENCRYPTIONMETHOD - case "xtsAes256": - result = XTSAES256_BITLOCKERENCRYPTIONMETHOD - default: - return 0, errors.New("Unknown BitLockerEncryptionMethod value: " + v) - } - return &result, nil -} -func SerializeBitLockerEncryptionMethod(values []BitLockerEncryptionMethod) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i BitLockerEncryptionMethod) isMultiValue() bool { - return false -} diff --git a/models/bit_locker_fixed_drive_policy.go b/models/bit_locker_fixed_drive_policy.go index b2307becc2c..3026ac0015f 100644 --- a/models/bit_locker_fixed_drive_policy.go +++ b/models/bit_locker_fixed_drive_policy.go @@ -39,13 +39,13 @@ func (m *BitLockerFixedDrivePolicy) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827e return m.backingStore } // GetEncryptionMethod gets the encryptionMethod property value. Select the encryption method for fixed drives. Possible values are: aesCbc128, aesCbc256, xtsAes128, xtsAes256. -func (m *BitLockerFixedDrivePolicy) GetEncryptionMethod()(*BitLockerEncryptionMethod) { +func (m *BitLockerFixedDrivePolicy) GetEncryptionMethod()(*BitLockerFixedDrivePolicy_encryptionMethod) { val, err := m.GetBackingStore().Get("encryptionMethod") if err != nil { panic(err) } if val != nil { - return val.(*BitLockerEncryptionMethod) + return val.(*BitLockerFixedDrivePolicy_encryptionMethod) } return nil } @@ -53,12 +53,12 @@ func (m *BitLockerFixedDrivePolicy) GetEncryptionMethod()(*BitLockerEncryptionMe func (m *BitLockerFixedDrivePolicy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["encryptionMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBitLockerEncryptionMethod) + val, err := n.GetEnumValue(ParseBitLockerFixedDrivePolicy_encryptionMethod) if err != nil { return err } if val != nil { - m.SetEncryptionMethod(val.(*BitLockerEncryptionMethod)) + m.SetEncryptionMethod(val.(*BitLockerFixedDrivePolicy_encryptionMethod)) } return nil } @@ -174,7 +174,7 @@ func (m *BitLockerFixedDrivePolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3 m.backingStore = value } // SetEncryptionMethod sets the encryptionMethod property value. Select the encryption method for fixed drives. Possible values are: aesCbc128, aesCbc256, xtsAes128, xtsAes256. -func (m *BitLockerFixedDrivePolicy) SetEncryptionMethod(value *BitLockerEncryptionMethod)() { +func (m *BitLockerFixedDrivePolicy) SetEncryptionMethod(value *BitLockerFixedDrivePolicy_encryptionMethod)() { err := m.GetBackingStore().Set("encryptionMethod", value) if err != nil { panic(err) @@ -207,12 +207,12 @@ type BitLockerFixedDrivePolicyable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEncryptionMethod()(*BitLockerEncryptionMethod) + GetEncryptionMethod()(*BitLockerFixedDrivePolicy_encryptionMethod) GetOdataType()(*string) GetRecoveryOptions()(BitLockerRecoveryOptionsable) GetRequireEncryptionForWriteAccess()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEncryptionMethod(value *BitLockerEncryptionMethod)() + SetEncryptionMethod(value *BitLockerFixedDrivePolicy_encryptionMethod)() SetOdataType(value *string)() SetRecoveryOptions(value BitLockerRecoveryOptionsable)() SetRequireEncryptionForWriteAccess(value *bool)() diff --git a/models/bit_locker_fixed_drive_policy_encryption_method.go b/models/bit_locker_fixed_drive_policy_encryption_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/bit_locker_removable_drive_policy.go b/models/bit_locker_removable_drive_policy.go index 5994a280bf8..bba2cf99b9b 100644 --- a/models/bit_locker_removable_drive_policy.go +++ b/models/bit_locker_removable_drive_policy.go @@ -50,13 +50,13 @@ func (m *BitLockerRemovableDrivePolicy) GetBlockCrossOrganizationWriteAccess()(* return nil } // GetEncryptionMethod gets the encryptionMethod property value. Select the encryption method for removable drives. Possible values are: aesCbc128, aesCbc256, xtsAes128, xtsAes256. -func (m *BitLockerRemovableDrivePolicy) GetEncryptionMethod()(*BitLockerEncryptionMethod) { +func (m *BitLockerRemovableDrivePolicy) GetEncryptionMethod()(*BitLockerRemovableDrivePolicy_encryptionMethod) { val, err := m.GetBackingStore().Get("encryptionMethod") if err != nil { panic(err) } if val != nil { - return val.(*BitLockerEncryptionMethod) + return val.(*BitLockerRemovableDrivePolicy_encryptionMethod) } return nil } @@ -74,12 +74,12 @@ func (m *BitLockerRemovableDrivePolicy) GetFieldDeserializers()(map[string]func( return nil } res["encryptionMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBitLockerEncryptionMethod) + val, err := n.GetEnumValue(ParseBitLockerRemovableDrivePolicy_encryptionMethod) if err != nil { return err } if val != nil { - m.SetEncryptionMethod(val.(*BitLockerEncryptionMethod)) + m.SetEncryptionMethod(val.(*BitLockerRemovableDrivePolicy_encryptionMethod)) } return nil } @@ -181,7 +181,7 @@ func (m *BitLockerRemovableDrivePolicy) SetBlockCrossOrganizationWriteAccess(val } } // SetEncryptionMethod sets the encryptionMethod property value. Select the encryption method for removable drives. Possible values are: aesCbc128, aesCbc256, xtsAes128, xtsAes256. -func (m *BitLockerRemovableDrivePolicy) SetEncryptionMethod(value *BitLockerEncryptionMethod)() { +func (m *BitLockerRemovableDrivePolicy) SetEncryptionMethod(value *BitLockerRemovableDrivePolicy_encryptionMethod)() { err := m.GetBackingStore().Set("encryptionMethod", value) if err != nil { panic(err) @@ -208,12 +208,12 @@ type BitLockerRemovableDrivePolicyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetBlockCrossOrganizationWriteAccess()(*bool) - GetEncryptionMethod()(*BitLockerEncryptionMethod) + GetEncryptionMethod()(*BitLockerRemovableDrivePolicy_encryptionMethod) GetOdataType()(*string) GetRequireEncryptionForWriteAccess()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetBlockCrossOrganizationWriteAccess(value *bool)() - SetEncryptionMethod(value *BitLockerEncryptionMethod)() + SetEncryptionMethod(value *BitLockerRemovableDrivePolicy_encryptionMethod)() SetOdataType(value *string)() SetRequireEncryptionForWriteAccess(value *bool)() } diff --git a/models/bit_locker_removable_drive_policy_encryption_method.go b/models/bit_locker_removable_drive_policy_encryption_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/bit_locker_system_drive_policy.go b/models/bit_locker_system_drive_policy.go index 48af6e670eb..790e3a8d4a9 100644 --- a/models/bit_locker_system_drive_policy.go +++ b/models/bit_locker_system_drive_policy.go @@ -39,13 +39,13 @@ func (m *BitLockerSystemDrivePolicy) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827 return m.backingStore } // GetEncryptionMethod gets the encryptionMethod property value. Select the encryption method for operating system drives. Possible values are: aesCbc128, aesCbc256, xtsAes128, xtsAes256. -func (m *BitLockerSystemDrivePolicy) GetEncryptionMethod()(*BitLockerEncryptionMethod) { +func (m *BitLockerSystemDrivePolicy) GetEncryptionMethod()(*BitLockerSystemDrivePolicy_encryptionMethod) { val, err := m.GetBackingStore().Get("encryptionMethod") if err != nil { panic(err) } if val != nil { - return val.(*BitLockerEncryptionMethod) + return val.(*BitLockerSystemDrivePolicy_encryptionMethod) } return nil } @@ -53,12 +53,12 @@ func (m *BitLockerSystemDrivePolicy) GetEncryptionMethod()(*BitLockerEncryptionM func (m *BitLockerSystemDrivePolicy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["encryptionMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBitLockerEncryptionMethod) + val, err := n.GetEnumValue(ParseBitLockerSystemDrivePolicy_encryptionMethod) if err != nil { return err } if val != nil { - m.SetEncryptionMethod(val.(*BitLockerEncryptionMethod)) + m.SetEncryptionMethod(val.(*BitLockerSystemDrivePolicy_encryptionMethod)) } return nil } @@ -421,7 +421,7 @@ func (m *BitLockerSystemDrivePolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c m.backingStore = value } // SetEncryptionMethod sets the encryptionMethod property value. Select the encryption method for operating system drives. Possible values are: aesCbc128, aesCbc256, xtsAes128, xtsAes256. -func (m *BitLockerSystemDrivePolicy) SetEncryptionMethod(value *BitLockerEncryptionMethod)() { +func (m *BitLockerSystemDrivePolicy) SetEncryptionMethod(value *BitLockerSystemDrivePolicy_encryptionMethod)() { err := m.GetBackingStore().Set("encryptionMethod", value) if err != nil { panic(err) @@ -517,7 +517,7 @@ type BitLockerSystemDrivePolicyable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEncryptionMethod()(*BitLockerEncryptionMethod) + GetEncryptionMethod()(*BitLockerSystemDrivePolicy_encryptionMethod) GetMinimumPinLength()(*int32) GetOdataType()(*string) GetPrebootRecoveryEnableMessageAndUrl()(*bool) @@ -531,7 +531,7 @@ type BitLockerSystemDrivePolicyable interface { GetStartupAuthenticationTpmPinUsage()(*ConfigurationUsage) GetStartupAuthenticationTpmUsage()(*ConfigurationUsage) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEncryptionMethod(value *BitLockerEncryptionMethod)() + SetEncryptionMethod(value *BitLockerSystemDrivePolicy_encryptionMethod)() SetMinimumPinLength(value *int32)() SetOdataType(value *string)() SetPrebootRecoveryEnableMessageAndUrl(value *bool)() diff --git a/models/bit_locker_system_drive_policy_encryption_method.go b/models/bit_locker_system_drive_policy_encryption_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/bitlocker_recovery_key.go b/models/bitlocker_recovery_key.go index d704afe8312..15414511d87 100644 --- a/models/bitlocker_recovery_key.go +++ b/models/bitlocker_recovery_key.go @@ -76,12 +76,12 @@ func (m *BitlockerRecoveryKey) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["volumeType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVolumeType) + val, err := n.GetEnumValue(ParseBitlockerRecoveryKey_volumeType) if err != nil { return err } if val != nil { - m.SetVolumeType(val.(*VolumeType)) + m.SetVolumeType(val.(*BitlockerRecoveryKey_volumeType)) } return nil } @@ -99,13 +99,13 @@ func (m *BitlockerRecoveryKey) GetKey()(*string) { return nil } // GetVolumeType gets the volumeType property value. Indicates the type of volume the BitLocker key is associated with. Possible values are: operatingSystemVolume, fixedDataVolume, removableDataVolume, unknownFutureValue. -func (m *BitlockerRecoveryKey) GetVolumeType()(*VolumeType) { +func (m *BitlockerRecoveryKey) GetVolumeType()(*BitlockerRecoveryKey_volumeType) { val, err := m.GetBackingStore().Get("volumeType") if err != nil { panic(err) } if val != nil { - return val.(*VolumeType) + return val.(*BitlockerRecoveryKey_volumeType) } return nil } @@ -164,7 +164,7 @@ func (m *BitlockerRecoveryKey) SetKey(value *string)() { } } // SetVolumeType sets the volumeType property value. Indicates the type of volume the BitLocker key is associated with. Possible values are: operatingSystemVolume, fixedDataVolume, removableDataVolume, unknownFutureValue. -func (m *BitlockerRecoveryKey) SetVolumeType(value *VolumeType)() { +func (m *BitlockerRecoveryKey) SetVolumeType(value *BitlockerRecoveryKey_volumeType)() { err := m.GetBackingStore().Set("volumeType", value) if err != nil { panic(err) @@ -177,9 +177,9 @@ type BitlockerRecoveryKeyable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDeviceId()(*string) GetKey()(*string) - GetVolumeType()(*VolumeType) + GetVolumeType()(*BitlockerRecoveryKey_volumeType) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDeviceId(value *string)() SetKey(value *string)() - SetVolumeType(value *VolumeType)() + SetVolumeType(value *BitlockerRecoveryKey_volumeType)() } diff --git a/models/bitlocker_recovery_key_volume_type.go b/models/bitlocker_recovery_key_volume_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/body_type.go b/models/body_type.go deleted file mode 100644 index b7caa538031..00000000000 --- a/models/body_type.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type BodyType int - -const ( - TEXT_BODYTYPE BodyType = iota - HTML_BODYTYPE -) - -func (i BodyType) String() string { - return []string{"text", "html"}[i] -} -func ParseBodyType(v string) (any, error) { - result := TEXT_BODYTYPE - switch v { - case "text": - result = TEXT_BODYTYPE - case "html": - result = HTML_BODYTYPE - default: - return 0, errors.New("Unknown BodyType value: " + v) - } - return &result, nil -} -func SerializeBodyType(values []BodyType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i BodyType) isMultiValue() bool { - return false -} diff --git a/models/booking_custom_question.go b/models/booking_custom_question.go index df02ae7d002..d130e5147c5 100644 --- a/models/booking_custom_question.go +++ b/models/booking_custom_question.go @@ -20,13 +20,13 @@ func CreateBookingCustomQuestionFromDiscriminatorValue(parseNode i878a80d2330e89 return NewBookingCustomQuestion(), nil } // GetAnswerInputType gets the answerInputType property value. The expected answer type. The possible values are: text, radioButton, unknownFutureValue. -func (m *BookingCustomQuestion) GetAnswerInputType()(*AnswerInputType) { +func (m *BookingCustomQuestion) GetAnswerInputType()(*BookingCustomQuestion_answerInputType) { val, err := m.GetBackingStore().Get("answerInputType") if err != nil { panic(err) } if val != nil { - return val.(*AnswerInputType) + return val.(*BookingCustomQuestion_answerInputType) } return nil } @@ -56,12 +56,12 @@ func (m *BookingCustomQuestion) GetDisplayName()(*string) { func (m *BookingCustomQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["answerInputType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAnswerInputType) + val, err := n.GetEnumValue(ParseBookingCustomQuestion_answerInputType) if err != nil { return err } if val != nil { - m.SetAnswerInputType(val.(*AnswerInputType)) + m.SetAnswerInputType(val.(*BookingCustomQuestion_answerInputType)) } return nil } @@ -121,7 +121,7 @@ func (m *BookingCustomQuestion) Serialize(writer i878a80d2330e89d26896388a3f487e return nil } // SetAnswerInputType sets the answerInputType property value. The expected answer type. The possible values are: text, radioButton, unknownFutureValue. -func (m *BookingCustomQuestion) SetAnswerInputType(value *AnswerInputType)() { +func (m *BookingCustomQuestion) SetAnswerInputType(value *BookingCustomQuestion_answerInputType)() { err := m.GetBackingStore().Set("answerInputType", value) if err != nil { panic(err) @@ -145,10 +145,10 @@ func (m *BookingCustomQuestion) SetDisplayName(value *string)() { type BookingCustomQuestionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAnswerInputType()(*AnswerInputType) + GetAnswerInputType()(*BookingCustomQuestion_answerInputType) GetAnswerOptions()([]string) GetDisplayName()(*string) - SetAnswerInputType(value *AnswerInputType)() + SetAnswerInputType(value *BookingCustomQuestion_answerInputType)() SetAnswerOptions(value []string)() SetDisplayName(value *string)() } diff --git a/models/booking_custom_question_answer_input_type.go b/models/booking_custom_question_answer_input_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/booking_question_answer.go b/models/booking_question_answer.go index 3f107b4bdff..fe6cbc98876 100644 --- a/models/booking_question_answer.go +++ b/models/booking_question_answer.go @@ -46,13 +46,13 @@ func (m *BookingQuestionAnswer) GetAnswer()(*string) { return nil } // GetAnswerInputType gets the answerInputType property value. The expected answer type. The possible values are: text, radioButton, unknownFutureValue. -func (m *BookingQuestionAnswer) GetAnswerInputType()(*AnswerInputType) { +func (m *BookingQuestionAnswer) GetAnswerInputType()(*BookingQuestionAnswer_answerInputType) { val, err := m.GetBackingStore().Get("answerInputType") if err != nil { panic(err) } if val != nil { - return val.(*AnswerInputType) + return val.(*BookingQuestionAnswer_answerInputType) } return nil } @@ -85,12 +85,12 @@ func (m *BookingQuestionAnswer) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["answerInputType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAnswerInputType) + val, err := n.GetEnumValue(ParseBookingQuestionAnswer_answerInputType) if err != nil { return err } if val != nil { - m.SetAnswerInputType(val.(*AnswerInputType)) + m.SetAnswerInputType(val.(*BookingQuestionAnswer_answerInputType)) } return nil } @@ -297,7 +297,7 @@ func (m *BookingQuestionAnswer) SetAnswer(value *string)() { } } // SetAnswerInputType sets the answerInputType property value. The expected answer type. The possible values are: text, radioButton, unknownFutureValue. -func (m *BookingQuestionAnswer) SetAnswerInputType(value *AnswerInputType)() { +func (m *BookingQuestionAnswer) SetAnswerInputType(value *BookingQuestionAnswer_answerInputType)() { err := m.GetBackingStore().Set("answerInputType", value) if err != nil { panic(err) @@ -355,7 +355,7 @@ type BookingQuestionAnswerable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAnswer()(*string) - GetAnswerInputType()(*AnswerInputType) + GetAnswerInputType()(*BookingQuestionAnswer_answerInputType) GetAnswerOptions()([]string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetIsRequired()(*bool) @@ -364,7 +364,7 @@ type BookingQuestionAnswerable interface { GetQuestionId()(*string) GetSelectedOptions()([]string) SetAnswer(value *string)() - SetAnswerInputType(value *AnswerInputType)() + SetAnswerInputType(value *BookingQuestionAnswer_answerInputType)() SetAnswerOptions(value []string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetIsRequired(value *bool)() diff --git a/models/booking_question_answer_answer_input_type.go b/models/booking_question_answer_answer_input_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/booking_type.go b/models/booking_type.go deleted file mode 100644 index 9ba6d534802..00000000000 --- a/models/booking_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type BookingType int - -const ( - UNKNOWN_BOOKINGTYPE BookingType = iota - STANDARD_BOOKINGTYPE - RESERVED_BOOKINGTYPE -) - -func (i BookingType) String() string { - return []string{"unknown", "standard", "reserved"}[i] -} -func ParseBookingType(v string) (any, error) { - result := UNKNOWN_BOOKINGTYPE - switch v { - case "unknown": - result = UNKNOWN_BOOKINGTYPE - case "standard": - result = STANDARD_BOOKINGTYPE - case "reserved": - result = RESERVED_BOOKINGTYPE - default: - return 0, errors.New("Unknown BookingType value: " + v) - } - return &result, nil -} -func SerializeBookingType(values []BookingType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i BookingType) isMultiValue() bool { - return false -} diff --git a/models/bookings_availability_status.go b/models/bookings_availability_status.go deleted file mode 100644 index 062ff679062..00000000000 --- a/models/bookings_availability_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type BookingsAvailabilityStatus int - -const ( - AVAILABLE_BOOKINGSAVAILABILITYSTATUS BookingsAvailabilityStatus = iota - BUSY_BOOKINGSAVAILABILITYSTATUS - SLOTSAVAILABLE_BOOKINGSAVAILABILITYSTATUS - OUTOFOFFICE_BOOKINGSAVAILABILITYSTATUS - UNKNOWNFUTUREVALUE_BOOKINGSAVAILABILITYSTATUS -) - -func (i BookingsAvailabilityStatus) String() string { - return []string{"available", "busy", "slotsAvailable", "outOfOffice", "unknownFutureValue"}[i] -} -func ParseBookingsAvailabilityStatus(v string) (any, error) { - result := AVAILABLE_BOOKINGSAVAILABILITYSTATUS - switch v { - case "available": - result = AVAILABLE_BOOKINGSAVAILABILITYSTATUS - case "busy": - result = BUSY_BOOKINGSAVAILABILITYSTATUS - case "slotsAvailable": - result = SLOTSAVAILABLE_BOOKINGSAVAILABILITYSTATUS - case "outOfOffice": - result = OUTOFOFFICE_BOOKINGSAVAILABILITYSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_BOOKINGSAVAILABILITYSTATUS - default: - return 0, errors.New("Unknown BookingsAvailabilityStatus value: " + v) - } - return &result, nil -} -func SerializeBookingsAvailabilityStatus(values []BookingsAvailabilityStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i BookingsAvailabilityStatus) isMultiValue() bool { - return false -} diff --git a/models/broadcast_meeting_audience.go b/models/broadcast_meeting_audience.go deleted file mode 100644 index 93406783085..00000000000 --- a/models/broadcast_meeting_audience.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type BroadcastMeetingAudience int - -const ( - ROLEISATTENDEE_BROADCASTMEETINGAUDIENCE BroadcastMeetingAudience = iota - ORGANIZATION_BROADCASTMEETINGAUDIENCE - EVERYONE_BROADCASTMEETINGAUDIENCE - UNKNOWNFUTUREVALUE_BROADCASTMEETINGAUDIENCE -) - -func (i BroadcastMeetingAudience) String() string { - return []string{"roleIsAttendee", "organization", "everyone", "unknownFutureValue"}[i] -} -func ParseBroadcastMeetingAudience(v string) (any, error) { - result := ROLEISATTENDEE_BROADCASTMEETINGAUDIENCE - switch v { - case "roleIsAttendee": - result = ROLEISATTENDEE_BROADCASTMEETINGAUDIENCE - case "organization": - result = ORGANIZATION_BROADCASTMEETINGAUDIENCE - case "everyone": - result = EVERYONE_BROADCASTMEETINGAUDIENCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_BROADCASTMEETINGAUDIENCE - default: - return 0, errors.New("Unknown BroadcastMeetingAudience value: " + v) - } - return &result, nil -} -func SerializeBroadcastMeetingAudience(values []BroadcastMeetingAudience) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i BroadcastMeetingAudience) isMultiValue() bool { - return false -} diff --git a/models/broadcast_meeting_settings.go b/models/broadcast_meeting_settings.go index 0efec777c6e..ea7cbe56814 100644 --- a/models/broadcast_meeting_settings.go +++ b/models/broadcast_meeting_settings.go @@ -35,13 +35,13 @@ func (m *BroadcastMeetingSettings) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAllowedAudience gets the allowedAudience property value. Defines who can join the Teams live event. Possible values are listed in the following table. -func (m *BroadcastMeetingSettings) GetAllowedAudience()(*BroadcastMeetingAudience) { +func (m *BroadcastMeetingSettings) GetAllowedAudience()(*BroadcastMeetingSettings_allowedAudience) { val, err := m.GetBackingStore().Get("allowedAudience") if err != nil { panic(err) } if val != nil { - return val.(*BroadcastMeetingAudience) + return val.(*BroadcastMeetingSettings_allowedAudience) } return nil } @@ -64,12 +64,12 @@ func (m *BroadcastMeetingSettings) GetCaptions()(BroadcastMeetingCaptionSettings func (m *BroadcastMeetingSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["allowedAudience"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBroadcastMeetingAudience) + val, err := n.GetEnumValue(ParseBroadcastMeetingSettings_allowedAudience) if err != nil { return err } if val != nil { - m.SetAllowedAudience(val.(*BroadcastMeetingAudience)) + m.SetAllowedAudience(val.(*BroadcastMeetingSettings_allowedAudience)) } return nil } @@ -251,7 +251,7 @@ func (m *BroadcastMeetingSettings) SetAdditionalData(value map[string]any)() { } } // SetAllowedAudience sets the allowedAudience property value. Defines who can join the Teams live event. Possible values are listed in the following table. -func (m *BroadcastMeetingSettings) SetAllowedAudience(value *BroadcastMeetingAudience)() { +func (m *BroadcastMeetingSettings) SetAllowedAudience(value *BroadcastMeetingSettings_allowedAudience)() { err := m.GetBackingStore().Set("allowedAudience", value) if err != nil { panic(err) @@ -308,7 +308,7 @@ type BroadcastMeetingSettingsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedAudience()(*BroadcastMeetingAudience) + GetAllowedAudience()(*BroadcastMeetingSettings_allowedAudience) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCaptions()(BroadcastMeetingCaptionSettingsable) GetIsAttendeeReportEnabled()(*bool) @@ -316,7 +316,7 @@ type BroadcastMeetingSettingsable interface { GetIsRecordingEnabled()(*bool) GetIsVideoOnDemandEnabled()(*bool) GetOdataType()(*string) - SetAllowedAudience(value *BroadcastMeetingAudience)() + SetAllowedAudience(value *BroadcastMeetingSettings_allowedAudience)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCaptions(value BroadcastMeetingCaptionSettingsable)() SetIsAttendeeReportEnabled(value *bool)() diff --git a/models/broadcast_meeting_settings_allowed_audience.go b/models/broadcast_meeting_settings_allowed_audience.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/browser_shared_cookie_history.go b/models/browser_shared_cookie_history.go index 5ea183ec1f3..295fd00efbb 100644 --- a/models/browser_shared_cookie_history.go +++ b/models/browser_shared_cookie_history.go @@ -145,12 +145,12 @@ func (m *BrowserSharedCookieHistory) GetFieldDeserializers()(map[string]func(i87 return nil } res["sourceEnvironment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBrowserSharedCookieSourceEnvironment) + val, err := n.GetEnumValue(ParseBrowserSharedCookieHistory_sourceEnvironment) if err != nil { return err } if val != nil { - m.SetSourceEnvironment(val.(*BrowserSharedCookieSourceEnvironment)) + m.SetSourceEnvironment(val.(*BrowserSharedCookieHistory_sourceEnvironment)) } return nil } @@ -223,13 +223,13 @@ func (m *BrowserSharedCookieHistory) GetPublishedDateTime()(*i336074805fc853987a return nil } // GetSourceEnvironment gets the sourceEnvironment property value. Specifies how the cookies are shared between Microsoft Edge and Internet Explorer. The possible values are: microsoftEdge, internetExplorer11, both, unknownFutureValue. -func (m *BrowserSharedCookieHistory) GetSourceEnvironment()(*BrowserSharedCookieSourceEnvironment) { +func (m *BrowserSharedCookieHistory) GetSourceEnvironment()(*BrowserSharedCookieHistory_sourceEnvironment) { val, err := m.GetBackingStore().Get("sourceEnvironment") if err != nil { panic(err) } if val != nil { - return val.(*BrowserSharedCookieSourceEnvironment) + return val.(*BrowserSharedCookieHistory_sourceEnvironment) } return nil } @@ -366,7 +366,7 @@ func (m *BrowserSharedCookieHistory) SetPublishedDateTime(value *i336074805fc853 } } // SetSourceEnvironment sets the sourceEnvironment property value. Specifies how the cookies are shared between Microsoft Edge and Internet Explorer. The possible values are: microsoftEdge, internetExplorer11, both, unknownFutureValue. -func (m *BrowserSharedCookieHistory) SetSourceEnvironment(value *BrowserSharedCookieSourceEnvironment)() { +func (m *BrowserSharedCookieHistory) SetSourceEnvironment(value *BrowserSharedCookieHistory_sourceEnvironment)() { err := m.GetBackingStore().Set("sourceEnvironment", value) if err != nil { panic(err) @@ -386,7 +386,7 @@ type BrowserSharedCookieHistoryable interface { GetOdataType()(*string) GetPath()(*string) GetPublishedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetSourceEnvironment()(*BrowserSharedCookieSourceEnvironment) + GetSourceEnvironment()(*BrowserSharedCookieHistory_sourceEnvironment) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetComment(value *string)() SetDisplayName(value *string)() @@ -396,5 +396,5 @@ type BrowserSharedCookieHistoryable interface { SetOdataType(value *string)() SetPath(value *string)() SetPublishedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetSourceEnvironment(value *BrowserSharedCookieSourceEnvironment)() + SetSourceEnvironment(value *BrowserSharedCookieHistory_sourceEnvironment)() } diff --git a/models/browser_shared_cookie_history_source_environment.go b/models/browser_shared_cookie_history_source_environment.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/browser_site_history.go b/models/browser_site_history.go index 990d4fc2c46..37eb8e205fa 100644 --- a/models/browser_site_history.go +++ b/models/browser_site_history.go @@ -62,13 +62,13 @@ func (m *BrowserSiteHistory) GetComment()(*string) { return nil } // GetCompatibilityMode gets the compatibilityMode property value. Controls what compatibility setting is used for specific sites or domains. The possible values are: default, internetExplorer8Enterprise, internetExplorer7Enterprise, internetExplorer11, internetExplorer10, internetExplorer9, internetExplorer8, internetExplorer7, internetExplorer5, unknownFutureValue. -func (m *BrowserSiteHistory) GetCompatibilityMode()(*BrowserSiteCompatibilityMode) { +func (m *BrowserSiteHistory) GetCompatibilityMode()(*BrowserSiteHistory_compatibilityMode) { val, err := m.GetBackingStore().Get("compatibilityMode") if err != nil { panic(err) } if val != nil { - return val.(*BrowserSiteCompatibilityMode) + return val.(*BrowserSiteHistory_compatibilityMode) } return nil } @@ -96,12 +96,12 @@ func (m *BrowserSiteHistory) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["compatibilityMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBrowserSiteCompatibilityMode) + val, err := n.GetEnumValue(ParseBrowserSiteHistory_compatibilityMode) if err != nil { return err } if val != nil { - m.SetCompatibilityMode(val.(*BrowserSiteCompatibilityMode)) + m.SetCompatibilityMode(val.(*BrowserSiteHistory_compatibilityMode)) } return nil } @@ -116,12 +116,12 @@ func (m *BrowserSiteHistory) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["mergeType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBrowserSiteMergeType) + val, err := n.GetEnumValue(ParseBrowserSiteHistory_mergeType) if err != nil { return err } if val != nil { - m.SetMergeType(val.(*BrowserSiteMergeType)) + m.SetMergeType(val.(*BrowserSiteHistory_mergeType)) } return nil } @@ -146,12 +146,12 @@ func (m *BrowserSiteHistory) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["targetEnvironment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBrowserSiteTargetEnvironment) + val, err := n.GetEnumValue(ParseBrowserSiteHistory_targetEnvironment) if err != nil { return err } if val != nil { - m.SetTargetEnvironment(val.(*BrowserSiteTargetEnvironment)) + m.SetTargetEnvironment(val.(*BrowserSiteHistory_targetEnvironment)) } return nil } @@ -169,13 +169,13 @@ func (m *BrowserSiteHistory) GetLastModifiedBy()(IdentitySetable) { return nil } // GetMergeType gets the mergeType property value. The merge type of the site. The possible values are: noMerge, default, unknownFutureValue. -func (m *BrowserSiteHistory) GetMergeType()(*BrowserSiteMergeType) { +func (m *BrowserSiteHistory) GetMergeType()(*BrowserSiteHistory_mergeType) { val, err := m.GetBackingStore().Get("mergeType") if err != nil { panic(err) } if val != nil { - return val.(*BrowserSiteMergeType) + return val.(*BrowserSiteHistory_mergeType) } return nil } @@ -202,13 +202,13 @@ func (m *BrowserSiteHistory) GetPublishedDateTime()(*i336074805fc853987abe6f7fe3 return nil } // GetTargetEnvironment gets the targetEnvironment property value. The target environment that the site should open in. The possible values are: internetExplorerMode, internetExplorer11, microsoftEdge, configurable, none, unknownFutureValue.Prior to June 15, 2022, the internetExplorer11 option would allow opening a site in the Internet Explorer 11 (IE11) desktop application. Following the retirement of IE11 on June 15, 2022, the internetExplorer11 option will no longer open an IE11 window and will instead behave the same as the internetExplorerMode option. -func (m *BrowserSiteHistory) GetTargetEnvironment()(*BrowserSiteTargetEnvironment) { +func (m *BrowserSiteHistory) GetTargetEnvironment()(*BrowserSiteHistory_targetEnvironment) { val, err := m.GetBackingStore().Get("targetEnvironment") if err != nil { panic(err) } if val != nil { - return val.(*BrowserSiteTargetEnvironment) + return val.(*BrowserSiteHistory_targetEnvironment) } return nil } @@ -299,7 +299,7 @@ func (m *BrowserSiteHistory) SetComment(value *string)() { } } // SetCompatibilityMode sets the compatibilityMode property value. Controls what compatibility setting is used for specific sites or domains. The possible values are: default, internetExplorer8Enterprise, internetExplorer7Enterprise, internetExplorer11, internetExplorer10, internetExplorer9, internetExplorer8, internetExplorer7, internetExplorer5, unknownFutureValue. -func (m *BrowserSiteHistory) SetCompatibilityMode(value *BrowserSiteCompatibilityMode)() { +func (m *BrowserSiteHistory) SetCompatibilityMode(value *BrowserSiteHistory_compatibilityMode)() { err := m.GetBackingStore().Set("compatibilityMode", value) if err != nil { panic(err) @@ -313,7 +313,7 @@ func (m *BrowserSiteHistory) SetLastModifiedBy(value IdentitySetable)() { } } // SetMergeType sets the mergeType property value. The merge type of the site. The possible values are: noMerge, default, unknownFutureValue. -func (m *BrowserSiteHistory) SetMergeType(value *BrowserSiteMergeType)() { +func (m *BrowserSiteHistory) SetMergeType(value *BrowserSiteHistory_mergeType)() { err := m.GetBackingStore().Set("mergeType", value) if err != nil { panic(err) @@ -334,7 +334,7 @@ func (m *BrowserSiteHistory) SetPublishedDateTime(value *i336074805fc853987abe6f } } // SetTargetEnvironment sets the targetEnvironment property value. The target environment that the site should open in. The possible values are: internetExplorerMode, internetExplorer11, microsoftEdge, configurable, none, unknownFutureValue.Prior to June 15, 2022, the internetExplorer11 option would allow opening a site in the Internet Explorer 11 (IE11) desktop application. Following the retirement of IE11 on June 15, 2022, the internetExplorer11 option will no longer open an IE11 window and will instead behave the same as the internetExplorerMode option. -func (m *BrowserSiteHistory) SetTargetEnvironment(value *BrowserSiteTargetEnvironment)() { +func (m *BrowserSiteHistory) SetTargetEnvironment(value *BrowserSiteHistory_targetEnvironment)() { err := m.GetBackingStore().Set("targetEnvironment", value) if err != nil { panic(err) @@ -348,19 +348,19 @@ type BrowserSiteHistoryable interface { GetAllowRedirect()(*bool) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetComment()(*string) - GetCompatibilityMode()(*BrowserSiteCompatibilityMode) + GetCompatibilityMode()(*BrowserSiteHistory_compatibilityMode) GetLastModifiedBy()(IdentitySetable) - GetMergeType()(*BrowserSiteMergeType) + GetMergeType()(*BrowserSiteHistory_mergeType) GetOdataType()(*string) GetPublishedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetTargetEnvironment()(*BrowserSiteTargetEnvironment) + GetTargetEnvironment()(*BrowserSiteHistory_targetEnvironment) SetAllowRedirect(value *bool)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetComment(value *string)() - SetCompatibilityMode(value *BrowserSiteCompatibilityMode)() + SetCompatibilityMode(value *BrowserSiteHistory_compatibilityMode)() SetLastModifiedBy(value IdentitySetable)() - SetMergeType(value *BrowserSiteMergeType)() + SetMergeType(value *BrowserSiteHistory_mergeType)() SetOdataType(value *string)() SetPublishedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetTargetEnvironment(value *BrowserSiteTargetEnvironment)() + SetTargetEnvironment(value *BrowserSiteHistory_targetEnvironment)() } diff --git a/models/browser_site_history_compatibility_mode.go b/models/browser_site_history_compatibility_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/browser_site_history_merge_type.go b/models/browser_site_history_merge_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/browser_site_history_target_environment.go b/models/browser_site_history_target_environment.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/built_in_identity_provider.go b/models/built_in_identity_provider.go index 51db2fcb77f..0efc3c69fba 100644 --- a/models/built_in_identity_provider.go +++ b/models/built_in_identity_provider.go @@ -35,12 +35,12 @@ func (m *BuiltInIdentityProvider) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIdentityProviderState) + val, err := n.GetEnumValue(ParseBuiltInIdentityProvider_state) if err != nil { return err } if val != nil { - m.SetState(val.(*IdentityProviderState)) + m.SetState(val.(*BuiltInIdentityProvider_state)) } return nil } @@ -58,13 +58,13 @@ func (m *BuiltInIdentityProvider) GetIdentityProviderType()(*string) { return nil } // GetState gets the state property value. The state property -func (m *BuiltInIdentityProvider) GetState()(*IdentityProviderState) { +func (m *BuiltInIdentityProvider) GetState()(*BuiltInIdentityProvider_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*IdentityProviderState) + return val.(*BuiltInIdentityProvider_state) } return nil } @@ -97,7 +97,7 @@ func (m *BuiltInIdentityProvider) SetIdentityProviderType(value *string)() { } } // SetState sets the state property value. The state property -func (m *BuiltInIdentityProvider) SetState(value *IdentityProviderState)() { +func (m *BuiltInIdentityProvider) SetState(value *BuiltInIdentityProvider_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -108,7 +108,7 @@ type BuiltInIdentityProviderable interface { IdentityProviderBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIdentityProviderType()(*string) - GetState()(*IdentityProviderState) + GetState()(*BuiltInIdentityProvider_state) SetIdentityProviderType(value *string)() - SetState(value *IdentityProviderState)() + SetState(value *BuiltInIdentityProvider_state)() } diff --git a/models/built_in_identity_provider_state.go b/models/built_in_identity_provider_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/calendar.go b/models/calendar.go index 76e66d74d26..7939e81060e 100644 --- a/models/calendar.go +++ b/models/calendar.go @@ -20,13 +20,13 @@ func CreateCalendarFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f4 return NewCalendar(), nil } // GetAllowedOnlineMeetingProviders gets the allowedOnlineMeetingProviders property value. Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. -func (m *Calendar) GetAllowedOnlineMeetingProviders()([]OnlineMeetingProviderType) { +func (m *Calendar) GetAllowedOnlineMeetingProviders()([]Calendar_allowedOnlineMeetingProviders) { val, err := m.GetBackingStore().Get("allowedOnlineMeetingProviders") if err != nil { panic(err) } if val != nil { - return val.([]OnlineMeetingProviderType) + return val.([]Calendar_allowedOnlineMeetingProviders) } return nil } @@ -108,24 +108,24 @@ func (m *Calendar) GetChangeKey()(*string) { return nil } // GetColor gets the color property value. Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor. -func (m *Calendar) GetColor()(*CalendarColor) { +func (m *Calendar) GetColor()(*Calendar_color) { val, err := m.GetBackingStore().Get("color") if err != nil { panic(err) } if val != nil { - return val.(*CalendarColor) + return val.(*Calendar_color) } return nil } // GetDefaultOnlineMeetingProvider gets the defaultOnlineMeetingProvider property value. The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. -func (m *Calendar) GetDefaultOnlineMeetingProvider()(*OnlineMeetingProviderType) { +func (m *Calendar) GetDefaultOnlineMeetingProvider()(*Calendar_defaultOnlineMeetingProvider) { val, err := m.GetBackingStore().Get("defaultOnlineMeetingProvider") if err != nil { panic(err) } if val != nil { - return val.(*OnlineMeetingProviderType) + return val.(*Calendar_defaultOnlineMeetingProvider) } return nil } @@ -144,15 +144,15 @@ func (m *Calendar) GetEvents()([]Eventable) { func (m *Calendar) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["allowedOnlineMeetingProviders"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseOnlineMeetingProviderType) + val, err := n.GetCollectionOfEnumValues(ParseCalendar_allowedOnlineMeetingProviders) if err != nil { return err } if val != nil { - res := make([]OnlineMeetingProviderType, len(val)) + res := make([]Calendar_allowedOnlineMeetingProviders, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*OnlineMeetingProviderType)) + res[i] = *(v.(*Calendar_allowedOnlineMeetingProviders)) } } m.SetAllowedOnlineMeetingProviders(res) @@ -242,22 +242,22 @@ func (m *Calendar) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCalendarColor) + val, err := n.GetEnumValue(ParseCalendar_color) if err != nil { return err } if val != nil { - m.SetColor(val.(*CalendarColor)) + m.SetColor(val.(*Calendar_color)) } return nil } res["defaultOnlineMeetingProvider"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnlineMeetingProviderType) + val, err := n.GetEnumValue(ParseCalendar_defaultOnlineMeetingProvider) if err != nil { return err } if val != nil { - m.SetDefaultOnlineMeetingProvider(val.(*OnlineMeetingProviderType)) + m.SetDefaultOnlineMeetingProvider(val.(*Calendar_defaultOnlineMeetingProvider)) } return nil } @@ -508,7 +508,7 @@ func (m *Calendar) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } if m.GetAllowedOnlineMeetingProviders() != nil { - err = writer.WriteCollectionOfStringValues("allowedOnlineMeetingProviders", SerializeOnlineMeetingProviderType(m.GetAllowedOnlineMeetingProviders())) + err = writer.WriteCollectionOfStringValues("allowedOnlineMeetingProviders", SerializeCalendar_allowedOnlineMeetingProviders(m.GetAllowedOnlineMeetingProviders())) if err != nil { return err } @@ -668,7 +668,7 @@ func (m *Calendar) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return nil } // SetAllowedOnlineMeetingProviders sets the allowedOnlineMeetingProviders property value. Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. -func (m *Calendar) SetAllowedOnlineMeetingProviders(value []OnlineMeetingProviderType)() { +func (m *Calendar) SetAllowedOnlineMeetingProviders(value []Calendar_allowedOnlineMeetingProviders)() { err := m.GetBackingStore().Set("allowedOnlineMeetingProviders", value) if err != nil { panic(err) @@ -724,14 +724,14 @@ func (m *Calendar) SetChangeKey(value *string)() { } } // SetColor sets the color property value. Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor. -func (m *Calendar) SetColor(value *CalendarColor)() { +func (m *Calendar) SetColor(value *Calendar_color)() { err := m.GetBackingStore().Set("color", value) if err != nil { panic(err) } } // SetDefaultOnlineMeetingProvider sets the defaultOnlineMeetingProvider property value. The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. -func (m *Calendar) SetDefaultOnlineMeetingProvider(value *OnlineMeetingProviderType)() { +func (m *Calendar) SetDefaultOnlineMeetingProvider(value *Calendar_defaultOnlineMeetingProvider)() { err := m.GetBackingStore().Set("defaultOnlineMeetingProvider", value) if err != nil { panic(err) @@ -818,7 +818,7 @@ func (m *Calendar) SetSingleValueExtendedProperties(value []SingleValueLegacyExt type Calendarable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedOnlineMeetingProviders()([]OnlineMeetingProviderType) + GetAllowedOnlineMeetingProviders()([]Calendar_allowedOnlineMeetingProviders) GetCalendarGroupId()(*string) GetCalendarPermissions()([]CalendarPermissionable) GetCalendarView()([]Eventable) @@ -826,8 +826,8 @@ type Calendarable interface { GetCanShare()(*bool) GetCanViewPrivateItems()(*bool) GetChangeKey()(*string) - GetColor()(*CalendarColor) - GetDefaultOnlineMeetingProvider()(*OnlineMeetingProviderType) + GetColor()(*Calendar_color) + GetDefaultOnlineMeetingProvider()(*Calendar_defaultOnlineMeetingProvider) GetEvents()([]Eventable) GetHexColor()(*string) GetIsDefaultCalendar()(*bool) @@ -839,7 +839,7 @@ type Calendarable interface { GetName()(*string) GetOwner()(EmailAddressable) GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPropertyable) - SetAllowedOnlineMeetingProviders(value []OnlineMeetingProviderType)() + SetAllowedOnlineMeetingProviders(value []Calendar_allowedOnlineMeetingProviders)() SetCalendarGroupId(value *string)() SetCalendarPermissions(value []CalendarPermissionable)() SetCalendarView(value []Eventable)() @@ -847,8 +847,8 @@ type Calendarable interface { SetCanShare(value *bool)() SetCanViewPrivateItems(value *bool)() SetChangeKey(value *string)() - SetColor(value *CalendarColor)() - SetDefaultOnlineMeetingProvider(value *OnlineMeetingProviderType)() + SetColor(value *Calendar_color)() + SetDefaultOnlineMeetingProvider(value *Calendar_defaultOnlineMeetingProvider)() SetEvents(value []Eventable)() SetHexColor(value *string)() SetIsDefaultCalendar(value *bool)() diff --git a/models/calendar_allowed_online_meeting_providers.go b/models/calendar_allowed_online_meeting_providers.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/calendar_color.go b/models/calendar_color.go index ccc917c0188..e69de29bb2d 100644 --- a/models/calendar_color.go +++ b/models/calendar_color.go @@ -1,64 +0,0 @@ -package models -import ( - "errors" -) -// -type CalendarColor int - -const ( - AUTO_CALENDARCOLOR CalendarColor = iota - LIGHTBLUE_CALENDARCOLOR - LIGHTGREEN_CALENDARCOLOR - LIGHTORANGE_CALENDARCOLOR - LIGHTGRAY_CALENDARCOLOR - LIGHTYELLOW_CALENDARCOLOR - LIGHTTEAL_CALENDARCOLOR - LIGHTPINK_CALENDARCOLOR - LIGHTBROWN_CALENDARCOLOR - LIGHTRED_CALENDARCOLOR - MAXCOLOR_CALENDARCOLOR -) - -func (i CalendarColor) String() string { - return []string{"auto", "lightBlue", "lightGreen", "lightOrange", "lightGray", "lightYellow", "lightTeal", "lightPink", "lightBrown", "lightRed", "maxColor"}[i] -} -func ParseCalendarColor(v string) (any, error) { - result := AUTO_CALENDARCOLOR - switch v { - case "auto": - result = AUTO_CALENDARCOLOR - case "lightBlue": - result = LIGHTBLUE_CALENDARCOLOR - case "lightGreen": - result = LIGHTGREEN_CALENDARCOLOR - case "lightOrange": - result = LIGHTORANGE_CALENDARCOLOR - case "lightGray": - result = LIGHTGRAY_CALENDARCOLOR - case "lightYellow": - result = LIGHTYELLOW_CALENDARCOLOR - case "lightTeal": - result = LIGHTTEAL_CALENDARCOLOR - case "lightPink": - result = LIGHTPINK_CALENDARCOLOR - case "lightBrown": - result = LIGHTBROWN_CALENDARCOLOR - case "lightRed": - result = LIGHTRED_CALENDARCOLOR - case "maxColor": - result = MAXCOLOR_CALENDARCOLOR - default: - return 0, errors.New("Unknown CalendarColor value: " + v) - } - return &result, nil -} -func SerializeCalendarColor(values []CalendarColor) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CalendarColor) isMultiValue() bool { - return false -} diff --git a/models/calendar_default_online_meeting_provider.go b/models/calendar_default_online_meeting_provider.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/calendar_permission.go b/models/calendar_permission.go index 2ddbeaf6c77..b862abbd1d1 100644 --- a/models/calendar_permission.go +++ b/models/calendar_permission.go @@ -20,13 +20,13 @@ func CreateCalendarPermissionFromDiscriminatorValue(parseNode i878a80d2330e89d26 return NewCalendarPermission(), nil } // GetAllowedRoles gets the allowedRoles property value. List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom. -func (m *CalendarPermission) GetAllowedRoles()([]CalendarRoleType) { +func (m *CalendarPermission) GetAllowedRoles()([]CalendarPermission_allowedRoles) { val, err := m.GetBackingStore().Get("allowedRoles") if err != nil { panic(err) } if val != nil { - return val.([]CalendarRoleType) + return val.([]CalendarPermission_allowedRoles) } return nil } @@ -45,15 +45,15 @@ func (m *CalendarPermission) GetEmailAddress()(EmailAddressable) { func (m *CalendarPermission) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["allowedRoles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseCalendarRoleType) + val, err := n.GetCollectionOfEnumValues(ParseCalendarPermission_allowedRoles) if err != nil { return err } if val != nil { - res := make([]CalendarRoleType, len(val)) + res := make([]CalendarPermission_allowedRoles, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*CalendarRoleType)) + res[i] = *(v.(*CalendarPermission_allowedRoles)) } } m.SetAllowedRoles(res) @@ -91,12 +91,12 @@ func (m *CalendarPermission) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCalendarRoleType) + val, err := n.GetEnumValue(ParseCalendarPermission_role) if err != nil { return err } if val != nil { - m.SetRole(val.(*CalendarRoleType)) + m.SetRole(val.(*CalendarPermission_role)) } return nil } @@ -125,13 +125,13 @@ func (m *CalendarPermission) GetIsRemovable()(*bool) { return nil } // GetRole gets the role property value. Current permission level of the calendar share recipient or delegate. -func (m *CalendarPermission) GetRole()(*CalendarRoleType) { +func (m *CalendarPermission) GetRole()(*CalendarPermission_role) { val, err := m.GetBackingStore().Get("role") if err != nil { panic(err) } if val != nil { - return val.(*CalendarRoleType) + return val.(*CalendarPermission_role) } return nil } @@ -142,7 +142,7 @@ func (m *CalendarPermission) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } if m.GetAllowedRoles() != nil { - err = writer.WriteCollectionOfStringValues("allowedRoles", SerializeCalendarRoleType(m.GetAllowedRoles())) + err = writer.WriteCollectionOfStringValues("allowedRoles", SerializeCalendarPermission_allowedRoles(m.GetAllowedRoles())) if err != nil { return err } @@ -175,7 +175,7 @@ func (m *CalendarPermission) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return nil } // SetAllowedRoles sets the allowedRoles property value. List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom. -func (m *CalendarPermission) SetAllowedRoles(value []CalendarRoleType)() { +func (m *CalendarPermission) SetAllowedRoles(value []CalendarPermission_allowedRoles)() { err := m.GetBackingStore().Set("allowedRoles", value) if err != nil { panic(err) @@ -203,7 +203,7 @@ func (m *CalendarPermission) SetIsRemovable(value *bool)() { } } // SetRole sets the role property value. Current permission level of the calendar share recipient or delegate. -func (m *CalendarPermission) SetRole(value *CalendarRoleType)() { +func (m *CalendarPermission) SetRole(value *CalendarPermission_role)() { err := m.GetBackingStore().Set("role", value) if err != nil { panic(err) @@ -213,14 +213,14 @@ func (m *CalendarPermission) SetRole(value *CalendarRoleType)() { type CalendarPermissionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedRoles()([]CalendarRoleType) + GetAllowedRoles()([]CalendarPermission_allowedRoles) GetEmailAddress()(EmailAddressable) GetIsInsideOrganization()(*bool) GetIsRemovable()(*bool) - GetRole()(*CalendarRoleType) - SetAllowedRoles(value []CalendarRoleType)() + GetRole()(*CalendarPermission_role) + SetAllowedRoles(value []CalendarPermission_allowedRoles)() SetEmailAddress(value EmailAddressable)() SetIsInsideOrganization(value *bool)() SetIsRemovable(value *bool)() - SetRole(value *CalendarRoleType)() + SetRole(value *CalendarPermission_role)() } diff --git a/models/calendar_permission_allowed_roles.go b/models/calendar_permission_allowed_roles.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/calendar_permission_role.go b/models/calendar_permission_role.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/calendar_sharing_action.go b/models/calendar_sharing_action.go deleted file mode 100644 index 038332bff7e..00000000000 --- a/models/calendar_sharing_action.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type CalendarSharingAction int - -const ( - ACCEPT_CALENDARSHARINGACTION CalendarSharingAction = iota - ACCEPTANDVIEWCALENDAR_CALENDARSHARINGACTION - VIEWCALENDAR_CALENDARSHARINGACTION - ADDTHISCALENDAR_CALENDARSHARINGACTION -) - -func (i CalendarSharingAction) String() string { - return []string{"accept", "acceptAndViewCalendar", "viewCalendar", "addThisCalendar"}[i] -} -func ParseCalendarSharingAction(v string) (any, error) { - result := ACCEPT_CALENDARSHARINGACTION - switch v { - case "accept": - result = ACCEPT_CALENDARSHARINGACTION - case "acceptAndViewCalendar": - result = ACCEPTANDVIEWCALENDAR_CALENDARSHARINGACTION - case "viewCalendar": - result = VIEWCALENDAR_CALENDARSHARINGACTION - case "addThisCalendar": - result = ADDTHISCALENDAR_CALENDARSHARINGACTION - default: - return 0, errors.New("Unknown CalendarSharingAction value: " + v) - } - return &result, nil -} -func SerializeCalendarSharingAction(values []CalendarSharingAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CalendarSharingAction) isMultiValue() bool { - return false -} diff --git a/models/calendar_sharing_action_importance.go b/models/calendar_sharing_action_importance.go deleted file mode 100644 index a18ce35e9a7..00000000000 --- a/models/calendar_sharing_action_importance.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type CalendarSharingActionImportance int - -const ( - PRIMARY_CALENDARSHARINGACTIONIMPORTANCE CalendarSharingActionImportance = iota - SECONDARY_CALENDARSHARINGACTIONIMPORTANCE -) - -func (i CalendarSharingActionImportance) String() string { - return []string{"primary", "secondary"}[i] -} -func ParseCalendarSharingActionImportance(v string) (any, error) { - result := PRIMARY_CALENDARSHARINGACTIONIMPORTANCE - switch v { - case "primary": - result = PRIMARY_CALENDARSHARINGACTIONIMPORTANCE - case "secondary": - result = SECONDARY_CALENDARSHARINGACTIONIMPORTANCE - default: - return 0, errors.New("Unknown CalendarSharingActionImportance value: " + v) - } - return &result, nil -} -func SerializeCalendarSharingActionImportance(values []CalendarSharingActionImportance) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CalendarSharingActionImportance) isMultiValue() bool { - return false -} diff --git a/models/calendar_sharing_action_type.go b/models/calendar_sharing_action_type.go deleted file mode 100644 index 21fb9eb8252..00000000000 --- a/models/calendar_sharing_action_type.go +++ /dev/null @@ -1,34 +0,0 @@ -package models -import ( - "errors" -) -// -type CalendarSharingActionType int - -const ( - ACCEPT_CALENDARSHARINGACTIONTYPE CalendarSharingActionType = iota -) - -func (i CalendarSharingActionType) String() string { - return []string{"accept"}[i] -} -func ParseCalendarSharingActionType(v string) (any, error) { - result := ACCEPT_CALENDARSHARINGACTIONTYPE - switch v { - case "accept": - result = ACCEPT_CALENDARSHARINGACTIONTYPE - default: - return 0, errors.New("Unknown CalendarSharingActionType value: " + v) - } - return &result, nil -} -func SerializeCalendarSharingActionType(values []CalendarSharingActionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CalendarSharingActionType) isMultiValue() bool { - return false -} diff --git a/models/calendar_sharing_message_action.go b/models/calendar_sharing_message_action.go index f86c5a60fa0..68170aa7c67 100644 --- a/models/calendar_sharing_message_action.go +++ b/models/calendar_sharing_message_action.go @@ -23,24 +23,24 @@ func CreateCalendarSharingMessageActionFromDiscriminatorValue(parseNode i878a80d return NewCalendarSharingMessageAction(), nil } // GetAction gets the action property value. The action property -func (m *CalendarSharingMessageAction) GetAction()(*CalendarSharingAction) { +func (m *CalendarSharingMessageAction) GetAction()(*CalendarSharingMessageAction_action) { val, err := m.GetBackingStore().Get("action") if err != nil { panic(err) } if val != nil { - return val.(*CalendarSharingAction) + return val.(*CalendarSharingMessageAction_action) } return nil } // GetActionType gets the actionType property value. The actionType property -func (m *CalendarSharingMessageAction) GetActionType()(*CalendarSharingActionType) { +func (m *CalendarSharingMessageAction) GetActionType()(*CalendarSharingMessageAction_actionType) { val, err := m.GetBackingStore().Get("actionType") if err != nil { panic(err) } if val != nil { - return val.(*CalendarSharingActionType) + return val.(*CalendarSharingMessageAction_actionType) } return nil } @@ -64,32 +64,32 @@ func (m *CalendarSharingMessageAction) GetBackingStore()(ie8677ce2c7e1b4c22e9c38 func (m *CalendarSharingMessageAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCalendarSharingAction) + val, err := n.GetEnumValue(ParseCalendarSharingMessageAction_action) if err != nil { return err } if val != nil { - m.SetAction(val.(*CalendarSharingAction)) + m.SetAction(val.(*CalendarSharingMessageAction_action)) } return nil } res["actionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCalendarSharingActionType) + val, err := n.GetEnumValue(ParseCalendarSharingMessageAction_actionType) if err != nil { return err } if val != nil { - m.SetActionType(val.(*CalendarSharingActionType)) + m.SetActionType(val.(*CalendarSharingMessageAction_actionType)) } return nil } res["importance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCalendarSharingActionImportance) + val, err := n.GetEnumValue(ParseCalendarSharingMessageAction_importance) if err != nil { return err } if val != nil { - m.SetImportance(val.(*CalendarSharingActionImportance)) + m.SetImportance(val.(*CalendarSharingMessageAction_importance)) } return nil } @@ -106,13 +106,13 @@ func (m *CalendarSharingMessageAction) GetFieldDeserializers()(map[string]func(i return res } // GetImportance gets the importance property value. The importance property -func (m *CalendarSharingMessageAction) GetImportance()(*CalendarSharingActionImportance) { +func (m *CalendarSharingMessageAction) GetImportance()(*CalendarSharingMessageAction_importance) { val, err := m.GetBackingStore().Get("importance") if err != nil { panic(err) } if val != nil { - return val.(*CalendarSharingActionImportance) + return val.(*CalendarSharingMessageAction_importance) } return nil } @@ -165,14 +165,14 @@ func (m *CalendarSharingMessageAction) Serialize(writer i878a80d2330e89d26896388 return nil } // SetAction sets the action property value. The action property -func (m *CalendarSharingMessageAction) SetAction(value *CalendarSharingAction)() { +func (m *CalendarSharingMessageAction) SetAction(value *CalendarSharingMessageAction_action)() { err := m.GetBackingStore().Set("action", value) if err != nil { panic(err) } } // SetActionType sets the actionType property value. The actionType property -func (m *CalendarSharingMessageAction) SetActionType(value *CalendarSharingActionType)() { +func (m *CalendarSharingMessageAction) SetActionType(value *CalendarSharingMessageAction_actionType)() { err := m.GetBackingStore().Set("actionType", value) if err != nil { panic(err) @@ -190,7 +190,7 @@ func (m *CalendarSharingMessageAction) SetBackingStore(value ie8677ce2c7e1b4c22e m.backingStore = value } // SetImportance sets the importance property value. The importance property -func (m *CalendarSharingMessageAction) SetImportance(value *CalendarSharingActionImportance)() { +func (m *CalendarSharingMessageAction) SetImportance(value *CalendarSharingMessageAction_importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) @@ -208,14 +208,14 @@ type CalendarSharingMessageActionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAction()(*CalendarSharingAction) - GetActionType()(*CalendarSharingActionType) + GetAction()(*CalendarSharingMessageAction_action) + GetActionType()(*CalendarSharingMessageAction_actionType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetImportance()(*CalendarSharingActionImportance) + GetImportance()(*CalendarSharingMessageAction_importance) GetOdataType()(*string) - SetAction(value *CalendarSharingAction)() - SetActionType(value *CalendarSharingActionType)() + SetAction(value *CalendarSharingMessageAction_action)() + SetActionType(value *CalendarSharingMessageAction_actionType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetImportance(value *CalendarSharingActionImportance)() + SetImportance(value *CalendarSharingMessageAction_importance)() SetOdataType(value *string)() } diff --git a/models/calendar_sharing_message_action_action.go b/models/calendar_sharing_message_action_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/calendar_sharing_message_action_action_type.go b/models/calendar_sharing_message_action_action_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/calendar_sharing_message_action_importance.go b/models/calendar_sharing_message_action_importance.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call.go b/models/call.go index d76a8a85c82..c610bd30482 100644 --- a/models/call.go +++ b/models/call.go @@ -20,13 +20,13 @@ func CreateCallFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487ee return NewCall(), nil } // GetActiveModalities gets the activeModalities property value. The list of active modalities. Possible values are: unknown, audio, video, videoBasedScreenSharing, data. Read-only. -func (m *Call) GetActiveModalities()([]Modality) { +func (m *Call) GetActiveModalities()([]Call_activeModalities) { val, err := m.GetBackingStore().Get("activeModalities") if err != nil { panic(err) } if val != nil { - return val.([]Modality) + return val.([]Call_activeModalities) } return nil } @@ -119,13 +119,13 @@ func (m *Call) GetContentSharingSessions()([]ContentSharingSessionable) { return nil } // GetDirection gets the direction property value. The direction of the call. The possible values are incoming or outgoing. Read-only. -func (m *Call) GetDirection()(*CallDirection) { +func (m *Call) GetDirection()(*Call_direction) { val, err := m.GetBackingStore().Get("direction") if err != nil { panic(err) } if val != nil { - return val.(*CallDirection) + return val.(*Call_direction) } return nil } @@ -133,15 +133,15 @@ func (m *Call) GetDirection()(*CallDirection) { func (m *Call) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["activeModalities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseModality) + val, err := n.GetCollectionOfEnumValues(ParseCall_activeModalities) if err != nil { return err } if val != nil { - res := make([]Modality, len(val)) + res := make([]Call_activeModalities, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*Modality)) + res[i] = *(v.(*Call_activeModalities)) } } m.SetActiveModalities(res) @@ -247,12 +247,12 @@ func (m *Call) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["direction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCallDirection) + val, err := n.GetEnumValue(ParseCall_direction) if err != nil { return err } if val != nil { - m.SetDirection(val.(*CallDirection)) + m.SetDirection(val.(*Call_direction)) } return nil } @@ -349,15 +349,15 @@ func (m *Call) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["requestedModalities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseModality) + val, err := n.GetCollectionOfEnumValues(ParseCall_requestedModalities) if err != nil { return err } if val != nil { - res := make([]Modality, len(val)) + res := make([]Call_requestedModalities, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*Modality)) + res[i] = *(v.(*Call_requestedModalities)) } } m.SetRequestedModalities(res) @@ -385,15 +385,15 @@ func (m *Call) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["routingPolicies"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseRoutingPolicy) + val, err := n.GetCollectionOfEnumValues(ParseCall_routingPolicies) if err != nil { return err } if val != nil { - res := make([]RoutingPolicy, len(val)) + res := make([]Call_routingPolicies, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*RoutingPolicy)) + res[i] = *(v.(*Call_routingPolicies)) } } m.SetRoutingPolicies(res) @@ -411,12 +411,12 @@ func (m *Call) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCallState) + val, err := n.GetEnumValue(ParseCall_state) if err != nil { return err } if val != nil { - m.SetState(val.(*CallState)) + m.SetState(val.(*Call_state)) } return nil } @@ -577,13 +577,13 @@ func (m *Call) GetParticipants()([]Participantable) { return nil } // GetRequestedModalities gets the requestedModalities property value. The requestedModalities property -func (m *Call) GetRequestedModalities()([]Modality) { +func (m *Call) GetRequestedModalities()([]Call_requestedModalities) { val, err := m.GetBackingStore().Get("requestedModalities") if err != nil { panic(err) } if val != nil { - return val.([]Modality) + return val.([]Call_requestedModalities) } return nil } @@ -610,13 +610,13 @@ func (m *Call) GetRingingTimeoutInSeconds()(*int32) { return nil } // GetRoutingPolicies gets the routingPolicies property value. The routingPolicies property -func (m *Call) GetRoutingPolicies()([]RoutingPolicy) { +func (m *Call) GetRoutingPolicies()([]Call_routingPolicies) { val, err := m.GetBackingStore().Get("routingPolicies") if err != nil { panic(err) } if val != nil { - return val.([]RoutingPolicy) + return val.([]Call_routingPolicies) } return nil } @@ -632,13 +632,13 @@ func (m *Call) GetSource()(ParticipantInfoable) { return nil } // GetState gets the state property value. The state property -func (m *Call) GetState()(*CallState) { +func (m *Call) GetState()(*Call_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*CallState) + return val.(*Call_state) } return nil } @@ -715,7 +715,7 @@ func (m *Call) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 return err } if m.GetActiveModalities() != nil { - err = writer.WriteCollectionOfStringValues("activeModalities", SerializeModality(m.GetActiveModalities())) + err = writer.WriteCollectionOfStringValues("activeModalities", SerializeCall_activeModalities(m.GetActiveModalities())) if err != nil { return err } @@ -854,7 +854,7 @@ func (m *Call) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 } } if m.GetRequestedModalities() != nil { - err = writer.WriteCollectionOfStringValues("requestedModalities", SerializeModality(m.GetRequestedModalities())) + err = writer.WriteCollectionOfStringValues("requestedModalities", SerializeCall_requestedModalities(m.GetRequestedModalities())) if err != nil { return err } @@ -872,7 +872,7 @@ func (m *Call) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 } } if m.GetRoutingPolicies() != nil { - err = writer.WriteCollectionOfStringValues("routingPolicies", SerializeRoutingPolicy(m.GetRoutingPolicies())) + err = writer.WriteCollectionOfStringValues("routingPolicies", SerializeCall_routingPolicies(m.GetRoutingPolicies())) if err != nil { return err } @@ -935,7 +935,7 @@ func (m *Call) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 return nil } // SetActiveModalities sets the activeModalities property value. The list of active modalities. Possible values are: unknown, audio, video, videoBasedScreenSharing, data. Read-only. -func (m *Call) SetActiveModalities(value []Modality)() { +func (m *Call) SetActiveModalities(value []Call_activeModalities)() { err := m.GetBackingStore().Set("activeModalities", value) if err != nil { panic(err) @@ -998,7 +998,7 @@ func (m *Call) SetContentSharingSessions(value []ContentSharingSessionable)() { } } // SetDirection sets the direction property value. The direction of the call. The possible values are incoming or outgoing. Read-only. -func (m *Call) SetDirection(value *CallDirection)() { +func (m *Call) SetDirection(value *Call_direction)() { err := m.GetBackingStore().Set("direction", value) if err != nil { panic(err) @@ -1061,7 +1061,7 @@ func (m *Call) SetParticipants(value []Participantable)() { } } // SetRequestedModalities sets the requestedModalities property value. The requestedModalities property -func (m *Call) SetRequestedModalities(value []Modality)() { +func (m *Call) SetRequestedModalities(value []Call_requestedModalities)() { err := m.GetBackingStore().Set("requestedModalities", value) if err != nil { panic(err) @@ -1082,7 +1082,7 @@ func (m *Call) SetRingingTimeoutInSeconds(value *int32)() { } } // SetRoutingPolicies sets the routingPolicies property value. The routingPolicies property -func (m *Call) SetRoutingPolicies(value []RoutingPolicy)() { +func (m *Call) SetRoutingPolicies(value []Call_routingPolicies)() { err := m.GetBackingStore().Set("routingPolicies", value) if err != nil { panic(err) @@ -1096,7 +1096,7 @@ func (m *Call) SetSource(value ParticipantInfoable)() { } } // SetState sets the state property value. The state property -func (m *Call) SetState(value *CallState)() { +func (m *Call) SetState(value *Call_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -1148,7 +1148,7 @@ func (m *Call) SetTranscription(value CallTranscriptionInfoable)() { type Callable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActiveModalities()([]Modality) + GetActiveModalities()([]Call_activeModalities) GetAnsweredBy()(ParticipantInfoable) GetAudioRoutingGroups()([]AudioRoutingGroupable) GetCallbackUri()(*string) @@ -1157,7 +1157,7 @@ type Callable interface { GetCallRoutes()([]CallRouteable) GetChatInfo()(ChatInfoable) GetContentSharingSessions()([]ContentSharingSessionable) - GetDirection()(*CallDirection) + GetDirection()(*Call_direction) GetIncomingContext()(IncomingContextable) GetMediaConfig()(MediaConfigable) GetMediaState()(CallMediaStateable) @@ -1166,19 +1166,19 @@ type Callable interface { GetMyParticipantId()(*string) GetOperations()([]CommsOperationable) GetParticipants()([]Participantable) - GetRequestedModalities()([]Modality) + GetRequestedModalities()([]Call_requestedModalities) GetResultInfo()(ResultInfoable) GetRingingTimeoutInSeconds()(*int32) - GetRoutingPolicies()([]RoutingPolicy) + GetRoutingPolicies()([]Call_routingPolicies) GetSource()(ParticipantInfoable) - GetState()(*CallState) + GetState()(*Call_state) GetSubject()(*string) GetTargets()([]InvitationParticipantInfoable) GetTenantId()(*string) GetTerminationReason()(*string) GetToneInfo()(ToneInfoable) GetTranscription()(CallTranscriptionInfoable) - SetActiveModalities(value []Modality)() + SetActiveModalities(value []Call_activeModalities)() SetAnsweredBy(value ParticipantInfoable)() SetAudioRoutingGroups(value []AudioRoutingGroupable)() SetCallbackUri(value *string)() @@ -1187,7 +1187,7 @@ type Callable interface { SetCallRoutes(value []CallRouteable)() SetChatInfo(value ChatInfoable)() SetContentSharingSessions(value []ContentSharingSessionable)() - SetDirection(value *CallDirection)() + SetDirection(value *Call_direction)() SetIncomingContext(value IncomingContextable)() SetMediaConfig(value MediaConfigable)() SetMediaState(value CallMediaStateable)() @@ -1196,12 +1196,12 @@ type Callable interface { SetMyParticipantId(value *string)() SetOperations(value []CommsOperationable)() SetParticipants(value []Participantable)() - SetRequestedModalities(value []Modality)() + SetRequestedModalities(value []Call_requestedModalities)() SetResultInfo(value ResultInfoable)() SetRingingTimeoutInSeconds(value *int32)() - SetRoutingPolicies(value []RoutingPolicy)() + SetRoutingPolicies(value []Call_routingPolicies)() SetSource(value ParticipantInfoable)() - SetState(value *CallState)() + SetState(value *Call_state)() SetSubject(value *string)() SetTargets(value []InvitationParticipantInfoable)() SetTenantId(value *string)() diff --git a/models/call_active_modalities.go b/models/call_active_modalities.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call_direction.go b/models/call_direction.go index 25f31476544..e69de29bb2d 100644 --- a/models/call_direction.go +++ b/models/call_direction.go @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type CallDirection int - -const ( - INCOMING_CALLDIRECTION CallDirection = iota - OUTGOING_CALLDIRECTION -) - -func (i CallDirection) String() string { - return []string{"incoming", "outgoing"}[i] -} -func ParseCallDirection(v string) (any, error) { - result := INCOMING_CALLDIRECTION - switch v { - case "incoming": - result = INCOMING_CALLDIRECTION - case "outgoing": - result = OUTGOING_CALLDIRECTION - default: - return 0, errors.New("Unknown CallDirection value: " + v) - } - return &result, nil -} -func SerializeCallDirection(values []CallDirection) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CallDirection) isMultiValue() bool { - return false -} diff --git a/models/call_disposition.go b/models/call_disposition.go deleted file mode 100644 index b7c88b5cfde..00000000000 --- a/models/call_disposition.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CallDisposition int - -const ( - DEFAULTESCAPED_CALLDISPOSITION CallDisposition = iota - SIMULTANEOUSRING_CALLDISPOSITION - FORWARD_CALLDISPOSITION -) - -func (i CallDisposition) String() string { - return []string{"default", "simultaneousRing", "forward"}[i] -} -func ParseCallDisposition(v string) (any, error) { - result := DEFAULTESCAPED_CALLDISPOSITION - switch v { - case "default": - result = DEFAULTESCAPED_CALLDISPOSITION - case "simultaneousRing": - result = SIMULTANEOUSRING_CALLDISPOSITION - case "forward": - result = FORWARD_CALLDISPOSITION - default: - return 0, errors.New("Unknown CallDisposition value: " + v) - } - return &result, nil -} -func SerializeCallDisposition(values []CallDisposition) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CallDisposition) isMultiValue() bool { - return false -} diff --git a/models/call_ended_event_message_detail.go b/models/call_ended_event_message_detail.go index 11e1d49abea..4439f375d66 100644 --- a/models/call_ended_event_message_detail.go +++ b/models/call_ended_event_message_detail.go @@ -33,13 +33,13 @@ func (m *CallEndedEventMessageDetail) GetCallDuration()(*i878a80d2330e89d2689638 return nil } // GetCallEventType gets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue. -func (m *CallEndedEventMessageDetail) GetCallEventType()(*TeamworkCallEventType) { +func (m *CallEndedEventMessageDetail) GetCallEventType()(*CallEndedEventMessageDetail_callEventType) { val, err := m.GetBackingStore().Get("callEventType") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkCallEventType) + return val.(*CallEndedEventMessageDetail_callEventType) } return nil } @@ -79,12 +79,12 @@ func (m *CallEndedEventMessageDetail) GetFieldDeserializers()(map[string]func(i8 return nil } res["callEventType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkCallEventType) + val, err := n.GetEnumValue(ParseCallEndedEventMessageDetail_callEventType) if err != nil { return err } if val != nil { - m.SetCallEventType(val.(*TeamworkCallEventType)) + m.SetCallEventType(val.(*CallEndedEventMessageDetail_callEventType)) } return nil } @@ -190,7 +190,7 @@ func (m *CallEndedEventMessageDetail) SetCallDuration(value *i878a80d2330e89d268 } } // SetCallEventType sets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue. -func (m *CallEndedEventMessageDetail) SetCallEventType(value *TeamworkCallEventType)() { +func (m *CallEndedEventMessageDetail) SetCallEventType(value *CallEndedEventMessageDetail_callEventType)() { err := m.GetBackingStore().Set("callEventType", value) if err != nil { panic(err) @@ -222,12 +222,12 @@ type CallEndedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCallDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) - GetCallEventType()(*TeamworkCallEventType) + GetCallEventType()(*CallEndedEventMessageDetail_callEventType) GetCallId()(*string) GetCallParticipants()([]CallParticipantInfoable) GetInitiator()(IdentitySetable) SetCallDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() - SetCallEventType(value *TeamworkCallEventType)() + SetCallEventType(value *CallEndedEventMessageDetail_callEventType)() SetCallId(value *string)() SetCallParticipants(value []CallParticipantInfoable)() SetInitiator(value IdentitySetable)() diff --git a/models/call_ended_event_message_detail_call_event_type.go b/models/call_ended_event_message_detail_call_event_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call_event.go b/models/call_event.go index 9ebd4842c8e..dbeb56a391f 100644 --- a/models/call_event.go +++ b/models/call_event.go @@ -21,13 +21,13 @@ func CreateCallEventFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewCallEvent(), nil } // GetCallEventType gets the callEventType property value. The callEventType property -func (m *CallEvent) GetCallEventType()(*CallEventType) { +func (m *CallEvent) GetCallEventType()(*CallEvent_callEventType) { val, err := m.GetBackingStore().Get("callEventType") if err != nil { panic(err) } if val != nil { - return val.(*CallEventType) + return val.(*CallEvent_callEventType) } return nil } @@ -46,12 +46,12 @@ func (m *CallEvent) GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077 func (m *CallEvent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["callEventType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCallEventType) + val, err := n.GetEnumValue(ParseCallEvent_callEventType) if err != nil { return err } if val != nil { - m.SetCallEventType(val.(*CallEventType)) + m.SetCallEventType(val.(*CallEvent_callEventType)) } return nil } @@ -128,7 +128,7 @@ func (m *CallEvent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return nil } // SetCallEventType sets the callEventType property value. The callEventType property -func (m *CallEvent) SetCallEventType(value *CallEventType)() { +func (m *CallEvent) SetCallEventType(value *CallEvent_callEventType)() { err := m.GetBackingStore().Set("callEventType", value) if err != nil { panic(err) @@ -152,10 +152,10 @@ func (m *CallEvent) SetParticipants(value []Participantable)() { type CallEventable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCallEventType()(*CallEventType) + GetCallEventType()(*CallEvent_callEventType) GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetParticipants()([]Participantable) - SetCallEventType(value *CallEventType)() + SetCallEventType(value *CallEvent_callEventType)() SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetParticipants(value []Participantable)() } diff --git a/models/call_event_call_event_type.go b/models/call_event_call_event_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call_event_type.go b/models/call_event_type.go deleted file mode 100644 index 42ab8845ce6..00000000000 --- a/models/call_event_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type CallEventType int - -const ( - CALLSTARTED_CALLEVENTTYPE CallEventType = iota - CALLENDED_CALLEVENTTYPE - UNKNOWNFUTUREVALUE_CALLEVENTTYPE - ROSTERUPDATED_CALLEVENTTYPE -) - -func (i CallEventType) String() string { - return []string{"callStarted", "callEnded", "unknownFutureValue", "rosterUpdated"}[i] -} -func ParseCallEventType(v string) (any, error) { - result := CALLSTARTED_CALLEVENTTYPE - switch v { - case "callStarted": - result = CALLSTARTED_CALLEVENTTYPE - case "callEnded": - result = CALLENDED_CALLEVENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CALLEVENTTYPE - case "rosterUpdated": - result = ROSTERUPDATED_CALLEVENTTYPE - default: - return 0, errors.New("Unknown CallEventType value: " + v) - } - return &result, nil -} -func SerializeCallEventType(values []CallEventType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CallEventType) isMultiValue() bool { - return false -} diff --git a/models/call_media_state.go b/models/call_media_state.go index 7027d2040f6..72357675ca1 100644 --- a/models/call_media_state.go +++ b/models/call_media_state.go @@ -35,13 +35,13 @@ func (m *CallMediaState) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAudio gets the audio property value. The audio media state. Possible values are: active, inactive, unknownFutureValue. -func (m *CallMediaState) GetAudio()(*MediaState) { +func (m *CallMediaState) GetAudio()(*CallMediaState_audio) { val, err := m.GetBackingStore().Get("audio") if err != nil { panic(err) } if val != nil { - return val.(*MediaState) + return val.(*CallMediaState_audio) } return nil } @@ -53,12 +53,12 @@ func (m *CallMediaState) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185 func (m *CallMediaState) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["audio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMediaState) + val, err := n.GetEnumValue(ParseCallMediaState_audio) if err != nil { return err } if val != nil { - m.SetAudio(val.(*MediaState)) + m.SetAudio(val.(*CallMediaState_audio)) } return nil } @@ -116,7 +116,7 @@ func (m *CallMediaState) SetAdditionalData(value map[string]any)() { } } // SetAudio sets the audio property value. The audio media state. Possible values are: active, inactive, unknownFutureValue. -func (m *CallMediaState) SetAudio(value *MediaState)() { +func (m *CallMediaState) SetAudio(value *CallMediaState_audio)() { err := m.GetBackingStore().Set("audio", value) if err != nil { panic(err) @@ -138,10 +138,10 @@ type CallMediaStateable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAudio()(*MediaState) + GetAudio()(*CallMediaState_audio) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - SetAudio(value *MediaState)() + SetAudio(value *CallMediaState_audio)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() } diff --git a/models/call_media_state_audio.go b/models/call_media_state_audio.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call_recording_event_message_detail.go b/models/call_recording_event_message_detail.go index 749b98d6e4c..5e95ac01767 100644 --- a/models/call_recording_event_message_detail.go +++ b/models/call_recording_event_message_detail.go @@ -55,13 +55,13 @@ func (m *CallRecordingEventMessageDetail) GetCallRecordingDuration()(*i878a80d23 return nil } // GetCallRecordingStatus gets the callRecordingStatus property value. Status of the call recording. Possible values are: success, failure, initial, chunkFinished, unknownFutureValue. -func (m *CallRecordingEventMessageDetail) GetCallRecordingStatus()(*CallRecordingStatus) { +func (m *CallRecordingEventMessageDetail) GetCallRecordingStatus()(*CallRecordingEventMessageDetail_callRecordingStatus) { val, err := m.GetBackingStore().Get("callRecordingStatus") if err != nil { panic(err) } if val != nil { - return val.(*CallRecordingStatus) + return val.(*CallRecordingEventMessageDetail_callRecordingStatus) } return nil } @@ -110,12 +110,12 @@ func (m *CallRecordingEventMessageDetail) GetFieldDeserializers()(map[string]fun return nil } res["callRecordingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCallRecordingStatus) + val, err := n.GetEnumValue(ParseCallRecordingEventMessageDetail_callRecordingStatus) if err != nil { return err } if val != nil { - m.SetCallRecordingStatus(val.(*CallRecordingStatus)) + m.SetCallRecordingStatus(val.(*CallRecordingEventMessageDetail_callRecordingStatus)) } return nil } @@ -246,7 +246,7 @@ func (m *CallRecordingEventMessageDetail) SetCallRecordingDuration(value *i878a8 } } // SetCallRecordingStatus sets the callRecordingStatus property value. Status of the call recording. Possible values are: success, failure, initial, chunkFinished, unknownFutureValue. -func (m *CallRecordingEventMessageDetail) SetCallRecordingStatus(value *CallRecordingStatus)() { +func (m *CallRecordingEventMessageDetail) SetCallRecordingStatus(value *CallRecordingEventMessageDetail_callRecordingStatus)() { err := m.GetBackingStore().Set("callRecordingStatus", value) if err != nil { panic(err) @@ -280,14 +280,14 @@ type CallRecordingEventMessageDetailable interface { GetCallId()(*string) GetCallRecordingDisplayName()(*string) GetCallRecordingDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) - GetCallRecordingStatus()(*CallRecordingStatus) + GetCallRecordingStatus()(*CallRecordingEventMessageDetail_callRecordingStatus) GetCallRecordingUrl()(*string) GetInitiator()(IdentitySetable) GetMeetingOrganizer()(IdentitySetable) SetCallId(value *string)() SetCallRecordingDisplayName(value *string)() SetCallRecordingDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() - SetCallRecordingStatus(value *CallRecordingStatus)() + SetCallRecordingStatus(value *CallRecordingEventMessageDetail_callRecordingStatus)() SetCallRecordingUrl(value *string)() SetInitiator(value IdentitySetable)() SetMeetingOrganizer(value IdentitySetable)() diff --git a/models/call_recording_event_message_detail_call_recording_status.go b/models/call_recording_event_message_detail_call_recording_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call_recording_status.go b/models/call_recording_status.go deleted file mode 100644 index 7049144f68f..00000000000 --- a/models/call_recording_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type CallRecordingStatus int - -const ( - SUCCESS_CALLRECORDINGSTATUS CallRecordingStatus = iota - FAILURE_CALLRECORDINGSTATUS - INITIAL_CALLRECORDINGSTATUS - CHUNKFINISHED_CALLRECORDINGSTATUS - UNKNOWNFUTUREVALUE_CALLRECORDINGSTATUS -) - -func (i CallRecordingStatus) String() string { - return []string{"success", "failure", "initial", "chunkFinished", "unknownFutureValue"}[i] -} -func ParseCallRecordingStatus(v string) (any, error) { - result := SUCCESS_CALLRECORDINGSTATUS - switch v { - case "success": - result = SUCCESS_CALLRECORDINGSTATUS - case "failure": - result = FAILURE_CALLRECORDINGSTATUS - case "initial": - result = INITIAL_CALLRECORDINGSTATUS - case "chunkFinished": - result = CHUNKFINISHED_CALLRECORDINGSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CALLRECORDINGSTATUS - default: - return 0, errors.New("Unknown CallRecordingStatus value: " + v) - } - return &result, nil -} -func SerializeCallRecordingStatus(values []CallRecordingStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CallRecordingStatus) isMultiValue() bool { - return false -} diff --git a/models/call_requested_modalities.go b/models/call_requested_modalities.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call_routing_policies.go b/models/call_routing_policies.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call_started_event_message_detail.go b/models/call_started_event_message_detail.go index 0eb314c6a12..2efa367db55 100644 --- a/models/call_started_event_message_detail.go +++ b/models/call_started_event_message_detail.go @@ -22,13 +22,13 @@ func CreateCallStartedEventMessageDetailFromDiscriminatorValue(parseNode i878a80 return NewCallStartedEventMessageDetail(), nil } // GetCallEventType gets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue. -func (m *CallStartedEventMessageDetail) GetCallEventType()(*TeamworkCallEventType) { +func (m *CallStartedEventMessageDetail) GetCallEventType()(*CallStartedEventMessageDetail_callEventType) { val, err := m.GetBackingStore().Get("callEventType") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkCallEventType) + return val.(*CallStartedEventMessageDetail_callEventType) } return nil } @@ -47,12 +47,12 @@ func (m *CallStartedEventMessageDetail) GetCallId()(*string) { func (m *CallStartedEventMessageDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.EventMessageDetail.GetFieldDeserializers() res["callEventType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkCallEventType) + val, err := n.GetEnumValue(ParseCallStartedEventMessageDetail_callEventType) if err != nil { return err } if val != nil { - m.SetCallEventType(val.(*TeamworkCallEventType)) + m.SetCallEventType(val.(*CallStartedEventMessageDetail_callEventType)) } return nil } @@ -117,7 +117,7 @@ func (m *CallStartedEventMessageDetail) Serialize(writer i878a80d2330e89d2689638 return nil } // SetCallEventType sets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue. -func (m *CallStartedEventMessageDetail) SetCallEventType(value *TeamworkCallEventType)() { +func (m *CallStartedEventMessageDetail) SetCallEventType(value *CallStartedEventMessageDetail_callEventType)() { err := m.GetBackingStore().Set("callEventType", value) if err != nil { panic(err) @@ -141,10 +141,10 @@ func (m *CallStartedEventMessageDetail) SetInitiator(value IdentitySetable)() { type CallStartedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCallEventType()(*TeamworkCallEventType) + GetCallEventType()(*CallStartedEventMessageDetail_callEventType) GetCallId()(*string) GetInitiator()(IdentitySetable) - SetCallEventType(value *TeamworkCallEventType)() + SetCallEventType(value *CallStartedEventMessageDetail_callEventType)() SetCallId(value *string)() SetInitiator(value IdentitySetable)() } diff --git a/models/call_started_event_message_detail_call_event_type.go b/models/call_started_event_message_detail_call_event_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/call_state.go b/models/call_state.go index e95ce28af1b..e69de29bb2d 100644 --- a/models/call_state.go +++ b/models/call_state.go @@ -1,64 +0,0 @@ -package models -import ( - "errors" -) -// -type CallState int - -const ( - INCOMING_CALLSTATE CallState = iota - ESTABLISHING_CALLSTATE - RINGING_CALLSTATE - ESTABLISHED_CALLSTATE - HOLD_CALLSTATE - TRANSFERRING_CALLSTATE - TRANSFERACCEPTED_CALLSTATE - REDIRECTING_CALLSTATE - TERMINATING_CALLSTATE - TERMINATED_CALLSTATE - UNKNOWNFUTUREVALUE_CALLSTATE -) - -func (i CallState) String() string { - return []string{"incoming", "establishing", "ringing", "established", "hold", "transferring", "transferAccepted", "redirecting", "terminating", "terminated", "unknownFutureValue"}[i] -} -func ParseCallState(v string) (any, error) { - result := INCOMING_CALLSTATE - switch v { - case "incoming": - result = INCOMING_CALLSTATE - case "establishing": - result = ESTABLISHING_CALLSTATE - case "ringing": - result = RINGING_CALLSTATE - case "established": - result = ESTABLISHED_CALLSTATE - case "hold": - result = HOLD_CALLSTATE - case "transferring": - result = TRANSFERRING_CALLSTATE - case "transferAccepted": - result = TRANSFERACCEPTED_CALLSTATE - case "redirecting": - result = REDIRECTING_CALLSTATE - case "terminating": - result = TERMINATING_CALLSTATE - case "terminated": - result = TERMINATED_CALLSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CALLSTATE - default: - return 0, errors.New("Unknown CallState value: " + v) - } - return &result, nil -} -func SerializeCallState(values []CallState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CallState) isMultiValue() bool { - return false -} diff --git a/models/callrecords/audio_codec.go b/models/callrecords/audio_codec.go deleted file mode 100644 index 945d0d18036..00000000000 --- a/models/callrecords/audio_codec.go +++ /dev/null @@ -1,100 +0,0 @@ -package callrecords -import ( - "errors" -) -// -type AudioCodec int - -const ( - UNKNOWN_AUDIOCODEC AudioCodec = iota - INVALID_AUDIOCODEC - CN_AUDIOCODEC - PCMA_AUDIOCODEC - PCMU_AUDIOCODEC - AMRWIDE_AUDIOCODEC - G722_AUDIOCODEC - G7221_AUDIOCODEC - G7221C_AUDIOCODEC - G729_AUDIOCODEC - MULTICHANNELAUDIO_AUDIOCODEC - MUCHV2_AUDIOCODEC - OPUS_AUDIOCODEC - SATIN_AUDIOCODEC - SATINFULLBAND_AUDIOCODEC - RTAUDIO8_AUDIOCODEC - RTAUDIO16_AUDIOCODEC - SILK_AUDIOCODEC - SILKNARROW_AUDIOCODEC - SILKWIDE_AUDIOCODEC - SIREN_AUDIOCODEC - XMSRTA_AUDIOCODEC - UNKNOWNFUTUREVALUE_AUDIOCODEC -) - -func (i AudioCodec) String() string { - return []string{"unknown", "invalid", "cn", "pcma", "pcmu", "amrWide", "g722", "g7221", "g7221c", "g729", "multiChannelAudio", "muchv2", "opus", "satin", "satinFullband", "rtAudio8", "rtAudio16", "silk", "silkNarrow", "silkWide", "siren", "xmsRta", "unknownFutureValue"}[i] -} -func ParseAudioCodec(v string) (any, error) { - result := UNKNOWN_AUDIOCODEC - switch v { - case "unknown": - result = UNKNOWN_AUDIOCODEC - case "invalid": - result = INVALID_AUDIOCODEC - case "cn": - result = CN_AUDIOCODEC - case "pcma": - result = PCMA_AUDIOCODEC - case "pcmu": - result = PCMU_AUDIOCODEC - case "amrWide": - result = AMRWIDE_AUDIOCODEC - case "g722": - result = G722_AUDIOCODEC - case "g7221": - result = G7221_AUDIOCODEC - case "g7221c": - result = G7221C_AUDIOCODEC - case "g729": - result = G729_AUDIOCODEC - case "multiChannelAudio": - result = MULTICHANNELAUDIO_AUDIOCODEC - case "muchv2": - result = MUCHV2_AUDIOCODEC - case "opus": - result = OPUS_AUDIOCODEC - case "satin": - result = SATIN_AUDIOCODEC - case "satinFullband": - result = SATINFULLBAND_AUDIOCODEC - case "rtAudio8": - result = RTAUDIO8_AUDIOCODEC - case "rtAudio16": - result = RTAUDIO16_AUDIOCODEC - case "silk": - result = SILK_AUDIOCODEC - case "silkNarrow": - result = SILKNARROW_AUDIOCODEC - case "silkWide": - result = SILKWIDE_AUDIOCODEC - case "siren": - result = SIREN_AUDIOCODEC - case "xmsRta": - result = XMSRTA_AUDIOCODEC - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUDIOCODEC - default: - return 0, errors.New("Unknown AudioCodec value: " + v) - } - return &result, nil -} -func SerializeAudioCodec(values []AudioCodec) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AudioCodec) isMultiValue() bool { - return false -} diff --git a/models/callrecords/media_stream.go b/models/callrecords/media_stream.go index 35b2a5e81ce..39762e97ec4 100644 --- a/models/callrecords/media_stream.go +++ b/models/callrecords/media_stream.go @@ -36,13 +36,13 @@ func (m *MediaStream) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAudioCodec gets the audioCodec property value. Codec name used to encode audio for transmission on the network. Possible values are: unknown, invalid, cn, pcma, pcmu, amrWide, g722, g7221, g7221c, g729, multiChannelAudio, muchv2, opus, satin, satinFullband, rtAudio8, rtAudio16, silk, silkNarrow, silkWide, siren, xmsRta, unknownFutureValue. -func (m *MediaStream) GetAudioCodec()(*AudioCodec) { +func (m *MediaStream) GetAudioCodec()(*MediaStream_audioCodec) { val, err := m.GetBackingStore().Get("audioCodec") if err != nil { panic(err) } if val != nil { - return val.(*AudioCodec) + return val.(*MediaStream_audioCodec) } return nil } @@ -197,12 +197,12 @@ func (m *MediaStream) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077 func (m *MediaStream) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["audioCodec"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAudioCodec) + val, err := n.GetEnumValue(ParseMediaStream_audioCodec) if err != nil { return err } if val != nil { - m.SetAudioCodec(val.(*AudioCodec)) + m.SetAudioCodec(val.(*MediaStream_audioCodec)) } return nil } @@ -487,12 +487,12 @@ func (m *MediaStream) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["videoCodec"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVideoCodec) + val, err := n.GetEnumValue(ParseMediaStream_videoCodec) if err != nil { return err } if val != nil { - m.SetVideoCodec(val.(*VideoCodec)) + m.SetVideoCodec(val.(*MediaStream_videoCodec)) } return nil } @@ -674,13 +674,13 @@ func (m *MediaStream) GetStreamId()(*string) { return nil } // GetVideoCodec gets the videoCodec property value. Codec name used to encode video for transmission on the network. Possible values are: unknown, invalid, av1, h263, h264, h264s, h264uc, h265, rtvc1, rtVideo, xrtvc1, unknownFutureValue. -func (m *MediaStream) GetVideoCodec()(*VideoCodec) { +func (m *MediaStream) GetVideoCodec()(*MediaStream_videoCodec) { val, err := m.GetBackingStore().Get("videoCodec") if err != nil { panic(err) } if val != nil { - return val.(*VideoCodec) + return val.(*MediaStream_videoCodec) } return nil } @@ -902,7 +902,7 @@ func (m *MediaStream) SetAdditionalData(value map[string]any)() { } } // SetAudioCodec sets the audioCodec property value. Codec name used to encode audio for transmission on the network. Possible values are: unknown, invalid, cn, pcma, pcmu, amrWide, g722, g7221, g7221c, g729, multiChannelAudio, muchv2, opus, satin, satinFullband, rtAudio8, rtAudio16, silk, silkNarrow, silkWide, siren, xmsRta, unknownFutureValue. -func (m *MediaStream) SetAudioCodec(value *AudioCodec)() { +func (m *MediaStream) SetAudioCodec(value *MediaStream_audioCodec)() { err := m.GetBackingStore().Set("audioCodec", value) if err != nil { panic(err) @@ -1109,7 +1109,7 @@ func (m *MediaStream) SetStreamId(value *string)() { } } // SetVideoCodec sets the videoCodec property value. Codec name used to encode video for transmission on the network. Possible values are: unknown, invalid, av1, h263, h264, h264s, h264uc, h265, rtvc1, rtVideo, xrtvc1, unknownFutureValue. -func (m *MediaStream) SetVideoCodec(value *VideoCodec)() { +func (m *MediaStream) SetVideoCodec(value *MediaStream_videoCodec)() { err := m.GetBackingStore().Set("videoCodec", value) if err != nil { panic(err) @@ -1127,7 +1127,7 @@ type MediaStreamable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAudioCodec()(*AudioCodec) + GetAudioCodec()(*MediaStream_audioCodec) GetAverageAudioDegradation()(*float32) GetAverageAudioNetworkJitter()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetAverageBandwidthEstimate()(*int64) @@ -1157,9 +1157,9 @@ type MediaStreamable interface { GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetStreamDirection()(*MediaStreamDirection) GetStreamId()(*string) - GetVideoCodec()(*VideoCodec) + GetVideoCodec()(*MediaStream_videoCodec) GetWasMediaBypassed()(*bool) - SetAudioCodec(value *AudioCodec)() + SetAudioCodec(value *MediaStream_audioCodec)() SetAverageAudioDegradation(value *float32)() SetAverageAudioNetworkJitter(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetAverageBandwidthEstimate(value *int64)() @@ -1189,6 +1189,6 @@ type MediaStreamable interface { SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetStreamDirection(value *MediaStreamDirection)() SetStreamId(value *string)() - SetVideoCodec(value *VideoCodec)() + SetVideoCodec(value *MediaStream_videoCodec)() SetWasMediaBypassed(value *bool)() } diff --git a/models/callrecords/media_stream_audio_codec.go b/models/callrecords/media_stream_audio_codec.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/callrecords/media_stream_video_codec.go b/models/callrecords/media_stream_video_codec.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/callrecords/pstn_blocked_users_log_row.go b/models/callrecords/pstn_blocked_users_log_row.go index d3725da1d24..edd5acfbdd9 100644 --- a/models/callrecords/pstn_blocked_users_log_row.go +++ b/models/callrecords/pstn_blocked_users_log_row.go @@ -105,12 +105,12 @@ func (m *PstnBlockedUsersLogRow) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["userBlockMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePstnUserBlockMode) + val, err := n.GetEnumValue(ParsePstnBlockedUsersLogRow_userBlockMode) if err != nil { return err } if val != nil { - m.SetUserBlockMode(val.(*PstnUserBlockMode)) + m.SetUserBlockMode(val.(*PstnBlockedUsersLogRow_userBlockMode)) } return nil } @@ -179,13 +179,13 @@ func (m *PstnBlockedUsersLogRow) GetRemediationId()(*string) { return nil } // GetUserBlockMode gets the userBlockMode property value. Indicates whether the user is blocked or unblocked from making PSTN calls in Microsoft Teams. The possible values are: blocked, unblocked, unknownFutureValue. -func (m *PstnBlockedUsersLogRow) GetUserBlockMode()(*PstnUserBlockMode) { +func (m *PstnBlockedUsersLogRow) GetUserBlockMode()(*PstnBlockedUsersLogRow_userBlockMode) { val, err := m.GetBackingStore().Get("userBlockMode") if err != nil { panic(err) } if val != nil { - return val.(*PstnUserBlockMode) + return val.(*PstnBlockedUsersLogRow_userBlockMode) } return nil } @@ -338,7 +338,7 @@ func (m *PstnBlockedUsersLogRow) SetRemediationId(value *string)() { } } // SetUserBlockMode sets the userBlockMode property value. Indicates whether the user is blocked or unblocked from making PSTN calls in Microsoft Teams. The possible values are: blocked, unblocked, unknownFutureValue. -func (m *PstnBlockedUsersLogRow) SetUserBlockMode(value *PstnUserBlockMode)() { +func (m *PstnBlockedUsersLogRow) SetUserBlockMode(value *PstnBlockedUsersLogRow_userBlockMode)() { err := m.GetBackingStore().Set("userBlockMode", value) if err != nil { panic(err) @@ -382,7 +382,7 @@ type PstnBlockedUsersLogRowable interface { GetBlockReason()(*string) GetOdataType()(*string) GetRemediationId()(*string) - GetUserBlockMode()(*PstnUserBlockMode) + GetUserBlockMode()(*PstnBlockedUsersLogRow_userBlockMode) GetUserDisplayName()(*string) GetUserId()(*string) GetUserPrincipalName()(*string) @@ -392,7 +392,7 @@ type PstnBlockedUsersLogRowable interface { SetBlockReason(value *string)() SetOdataType(value *string)() SetRemediationId(value *string)() - SetUserBlockMode(value *PstnUserBlockMode)() + SetUserBlockMode(value *PstnBlockedUsersLogRow_userBlockMode)() SetUserDisplayName(value *string)() SetUserId(value *string)() SetUserPrincipalName(value *string)() diff --git a/models/callrecords/pstn_blocked_users_log_row_user_block_mode.go b/models/callrecords/pstn_blocked_users_log_row_user_block_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/callrecords/pstn_call_duration_source.go b/models/callrecords/pstn_call_duration_source.go deleted file mode 100644 index e6bbfb2dccb..00000000000 --- a/models/callrecords/pstn_call_duration_source.go +++ /dev/null @@ -1,37 +0,0 @@ -package callrecords -import ( - "errors" -) -// -type PstnCallDurationSource int - -const ( - MICROSOFT_PSTNCALLDURATIONSOURCE PstnCallDurationSource = iota - OPERATOR_PSTNCALLDURATIONSOURCE -) - -func (i PstnCallDurationSource) String() string { - return []string{"microsoft", "operator"}[i] -} -func ParsePstnCallDurationSource(v string) (any, error) { - result := MICROSOFT_PSTNCALLDURATIONSOURCE - switch v { - case "microsoft": - result = MICROSOFT_PSTNCALLDURATIONSOURCE - case "operator": - result = OPERATOR_PSTNCALLDURATIONSOURCE - default: - return 0, errors.New("Unknown PstnCallDurationSource value: " + v) - } - return &result, nil -} -func SerializePstnCallDurationSource(values []PstnCallDurationSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PstnCallDurationSource) isMultiValue() bool { - return false -} diff --git a/models/callrecords/pstn_call_log_row.go b/models/callrecords/pstn_call_log_row.go index c711a95538f..336cf6ea002 100644 --- a/models/callrecords/pstn_call_log_row.go +++ b/models/callrecords/pstn_call_log_row.go @@ -40,13 +40,13 @@ func (m *PstnCallLogRow) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185 return m.backingStore } // GetCallDurationSource gets the callDurationSource property value. The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator may provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. -func (m *PstnCallLogRow) GetCallDurationSource()(*PstnCallDurationSource) { +func (m *PstnCallLogRow) GetCallDurationSource()(*PstnCallLogRow_callDurationSource) { val, err := m.GetBackingStore().Get("callDurationSource") if err != nil { panic(err) } if val != nil { - return val.(*PstnCallDurationSource) + return val.(*PstnCallLogRow_callDurationSource) } return nil } @@ -230,12 +230,12 @@ func (m *PstnCallLogRow) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3 func (m *PstnCallLogRow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["callDurationSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePstnCallDurationSource) + val, err := n.GetEnumValue(ParsePstnCallLogRow_callDurationSource) if err != nil { return err } if val != nil { - m.SetCallDurationSource(val.(*PstnCallDurationSource)) + m.SetCallDurationSource(val.(*PstnCallLogRow_callDurationSource)) } return nil } @@ -850,7 +850,7 @@ func (m *PstnCallLogRow) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d4 m.backingStore = value } // SetCallDurationSource sets the callDurationSource property value. The source of the call duration data. If the call uses a third-party telecommunications operator via the Operator Connect Program, the operator may provide their own call duration data. In this case, the property value is operator. Otherwise, the value is microsoft. -func (m *PstnCallLogRow) SetCallDurationSource(value *PstnCallDurationSource)() { +func (m *PstnCallLogRow) SetCallDurationSource(value *PstnCallLogRow_callDurationSource)() { err := m.GetBackingStore().Set("callDurationSource", value) if err != nil { panic(err) @@ -1058,7 +1058,7 @@ type PstnCallLogRowable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCallDurationSource()(*PstnCallDurationSource) + GetCallDurationSource()(*PstnCallLogRow_callDurationSource) GetCalleeNumber()(*string) GetCallerNumber()(*string) GetCallId()(*string) @@ -1088,7 +1088,7 @@ type PstnCallLogRowable interface { GetUserId()(*string) GetUserPrincipalName()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCallDurationSource(value *PstnCallDurationSource)() + SetCallDurationSource(value *PstnCallLogRow_callDurationSource)() SetCalleeNumber(value *string)() SetCallerNumber(value *string)() SetCallId(value *string)() diff --git a/models/callrecords/pstn_call_log_row_call_duration_source.go b/models/callrecords/pstn_call_log_row_call_duration_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/callrecords/pstn_user_block_mode.go b/models/callrecords/pstn_user_block_mode.go deleted file mode 100644 index 95f812efbc2..00000000000 --- a/models/callrecords/pstn_user_block_mode.go +++ /dev/null @@ -1,40 +0,0 @@ -package callrecords -import ( - "errors" -) -// -type PstnUserBlockMode int - -const ( - BLOCKED_PSTNUSERBLOCKMODE PstnUserBlockMode = iota - UNBLOCKED_PSTNUSERBLOCKMODE - UNKNOWNFUTUREVALUE_PSTNUSERBLOCKMODE -) - -func (i PstnUserBlockMode) String() string { - return []string{"blocked", "unblocked", "unknownFutureValue"}[i] -} -func ParsePstnUserBlockMode(v string) (any, error) { - result := BLOCKED_PSTNUSERBLOCKMODE - switch v { - case "blocked": - result = BLOCKED_PSTNUSERBLOCKMODE - case "unblocked": - result = UNBLOCKED_PSTNUSERBLOCKMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PSTNUSERBLOCKMODE - default: - return 0, errors.New("Unknown PstnUserBlockMode value: " + v) - } - return &result, nil -} -func SerializePstnUserBlockMode(values []PstnUserBlockMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PstnUserBlockMode) isMultiValue() bool { - return false -} diff --git a/models/callrecords/video_codec.go b/models/callrecords/video_codec.go deleted file mode 100644 index b9c38c7376d..00000000000 --- a/models/callrecords/video_codec.go +++ /dev/null @@ -1,67 +0,0 @@ -package callrecords -import ( - "errors" -) -// -type VideoCodec int - -const ( - UNKNOWN_VIDEOCODEC VideoCodec = iota - INVALID_VIDEOCODEC - AV1_VIDEOCODEC - H263_VIDEOCODEC - H264_VIDEOCODEC - H264S_VIDEOCODEC - H264UC_VIDEOCODEC - H265_VIDEOCODEC - RTVC1_VIDEOCODEC - RTVIDEO_VIDEOCODEC - XRTVC1_VIDEOCODEC - UNKNOWNFUTUREVALUE_VIDEOCODEC -) - -func (i VideoCodec) String() string { - return []string{"unknown", "invalid", "av1", "h263", "h264", "h264s", "h264uc", "h265", "rtvc1", "rtVideo", "xrtvc1", "unknownFutureValue"}[i] -} -func ParseVideoCodec(v string) (any, error) { - result := UNKNOWN_VIDEOCODEC - switch v { - case "unknown": - result = UNKNOWN_VIDEOCODEC - case "invalid": - result = INVALID_VIDEOCODEC - case "av1": - result = AV1_VIDEOCODEC - case "h263": - result = H263_VIDEOCODEC - case "h264": - result = H264_VIDEOCODEC - case "h264s": - result = H264S_VIDEOCODEC - case "h264uc": - result = H264UC_VIDEOCODEC - case "h265": - result = H265_VIDEOCODEC - case "rtvc1": - result = RTVC1_VIDEOCODEC - case "rtVideo": - result = RTVIDEO_VIDEOCODEC - case "xrtvc1": - result = XRTVC1_VIDEOCODEC - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_VIDEOCODEC - default: - return 0, errors.New("Unknown VideoCodec value: " + v) - } - return &result, nil -} -func SerializeVideoCodec(values []VideoCodec) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VideoCodec) isMultiValue() bool { - return false -} diff --git a/models/category_color.go b/models/category_color.go deleted file mode 100644 index 92ef65607e5..00000000000 --- a/models/category_color.go +++ /dev/null @@ -1,109 +0,0 @@ -package models -import ( - "errors" -) -// -type CategoryColor int - -const ( - NONE_CATEGORYCOLOR CategoryColor = iota - PRESET0_CATEGORYCOLOR - PRESET1_CATEGORYCOLOR - PRESET2_CATEGORYCOLOR - PRESET3_CATEGORYCOLOR - PRESET4_CATEGORYCOLOR - PRESET5_CATEGORYCOLOR - PRESET6_CATEGORYCOLOR - PRESET7_CATEGORYCOLOR - PRESET8_CATEGORYCOLOR - PRESET9_CATEGORYCOLOR - PRESET10_CATEGORYCOLOR - PRESET11_CATEGORYCOLOR - PRESET12_CATEGORYCOLOR - PRESET13_CATEGORYCOLOR - PRESET14_CATEGORYCOLOR - PRESET15_CATEGORYCOLOR - PRESET16_CATEGORYCOLOR - PRESET17_CATEGORYCOLOR - PRESET18_CATEGORYCOLOR - PRESET19_CATEGORYCOLOR - PRESET20_CATEGORYCOLOR - PRESET21_CATEGORYCOLOR - PRESET22_CATEGORYCOLOR - PRESET23_CATEGORYCOLOR - PRESET24_CATEGORYCOLOR -) - -func (i CategoryColor) String() string { - return []string{"none", "preset0", "preset1", "preset2", "preset3", "preset4", "preset5", "preset6", "preset7", "preset8", "preset9", "preset10", "preset11", "preset12", "preset13", "preset14", "preset15", "preset16", "preset17", "preset18", "preset19", "preset20", "preset21", "preset22", "preset23", "preset24"}[i] -} -func ParseCategoryColor(v string) (any, error) { - result := NONE_CATEGORYCOLOR - switch v { - case "none": - result = NONE_CATEGORYCOLOR - case "preset0": - result = PRESET0_CATEGORYCOLOR - case "preset1": - result = PRESET1_CATEGORYCOLOR - case "preset2": - result = PRESET2_CATEGORYCOLOR - case "preset3": - result = PRESET3_CATEGORYCOLOR - case "preset4": - result = PRESET4_CATEGORYCOLOR - case "preset5": - result = PRESET5_CATEGORYCOLOR - case "preset6": - result = PRESET6_CATEGORYCOLOR - case "preset7": - result = PRESET7_CATEGORYCOLOR - case "preset8": - result = PRESET8_CATEGORYCOLOR - case "preset9": - result = PRESET9_CATEGORYCOLOR - case "preset10": - result = PRESET10_CATEGORYCOLOR - case "preset11": - result = PRESET11_CATEGORYCOLOR - case "preset12": - result = PRESET12_CATEGORYCOLOR - case "preset13": - result = PRESET13_CATEGORYCOLOR - case "preset14": - result = PRESET14_CATEGORYCOLOR - case "preset15": - result = PRESET15_CATEGORYCOLOR - case "preset16": - result = PRESET16_CATEGORYCOLOR - case "preset17": - result = PRESET17_CATEGORYCOLOR - case "preset18": - result = PRESET18_CATEGORYCOLOR - case "preset19": - result = PRESET19_CATEGORYCOLOR - case "preset20": - result = PRESET20_CATEGORYCOLOR - case "preset21": - result = PRESET21_CATEGORYCOLOR - case "preset22": - result = PRESET22_CATEGORYCOLOR - case "preset23": - result = PRESET23_CATEGORYCOLOR - case "preset24": - result = PRESET24_CATEGORYCOLOR - default: - return 0, errors.New("Unknown CategoryColor value: " + v) - } - return &result, nil -} -func SerializeCategoryColor(values []CategoryColor) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CategoryColor) isMultiValue() bool { - return false -} diff --git a/models/channel.go b/models/channel.go index a3ddf5780d1..1bc7d22df27 100644 --- a/models/channel.go +++ b/models/channel.go @@ -117,6 +117,16 @@ func (m *Channel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } res["isFavoriteByDefault"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -144,12 +154,12 @@ func (m *Channel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["membershipType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseChannelMembershipType) + val, err := n.GetEnumValue(ParseChannel_membershipType) if err != nil { return err } if val != nil { - m.SetMembershipType(val.(*ChannelMembershipType)) + m.SetMembershipType(val.(*Channel_membershipType)) } return nil } @@ -254,6 +264,17 @@ func (m *Channel) GetFilesFolder()(DriveItemable) { } return nil } +// GetIsArchived gets the isArchived property value. The isArchived property +func (m *Channel) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetIsFavoriteByDefault gets the isFavoriteByDefault property value. Indicates whether the channel should automatically be marked 'favorite' for all members of the team. Can only be set programmatically with Create team. Default: false. func (m *Channel) GetIsFavoriteByDefault()(*bool) { val, err := m.GetBackingStore().Get("isFavoriteByDefault") @@ -277,13 +298,13 @@ func (m *Channel) GetMembers()([]ConversationMemberable) { return nil } // GetMembershipType gets the membershipType property value. The type of the channel. Can be set during creation and can't be changed. The possible values are: standard, private, unknownFutureValue, shared. The default value is standard. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: shared. -func (m *Channel) GetMembershipType()(*ChannelMembershipType) { +func (m *Channel) GetMembershipType()(*Channel_membershipType) { val, err := m.GetBackingStore().Get("membershipType") if err != nil { panic(err) } if val != nil { - return val.(*ChannelMembershipType) + return val.(*Channel_membershipType) } return nil } @@ -400,6 +421,12 @@ func (m *Channel) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isFavoriteByDefault", m.GetIsFavoriteByDefault()) if err != nil { @@ -522,6 +549,13 @@ func (m *Channel) SetFilesFolder(value DriveItemable)() { panic(err) } } +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *Channel) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} // SetIsFavoriteByDefault sets the isFavoriteByDefault property value. Indicates whether the channel should automatically be marked 'favorite' for all members of the team. Can only be set programmatically with Create team. Default: false. func (m *Channel) SetIsFavoriteByDefault(value *bool)() { err := m.GetBackingStore().Set("isFavoriteByDefault", value) @@ -537,7 +571,7 @@ func (m *Channel) SetMembers(value []ConversationMemberable)() { } } // SetMembershipType sets the membershipType property value. The type of the channel. Can be set during creation and can't be changed. The possible values are: standard, private, unknownFutureValue, shared. The default value is standard. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: shared. -func (m *Channel) SetMembershipType(value *ChannelMembershipType)() { +func (m *Channel) SetMembershipType(value *Channel_membershipType)() { err := m.GetBackingStore().Set("membershipType", value) if err != nil { panic(err) @@ -601,9 +635,10 @@ type Channelable interface { GetDisplayName()(*string) GetEmail()(*string) GetFilesFolder()(DriveItemable) + GetIsArchived()(*bool) GetIsFavoriteByDefault()(*bool) GetMembers()([]ConversationMemberable) - GetMembershipType()(*ChannelMembershipType) + GetMembershipType()(*Channel_membershipType) GetMessages()([]ChatMessageable) GetModerationSettings()(ChannelModerationSettingsable) GetSharedWithTeams()([]SharedWithChannelTeamInfoable) @@ -616,9 +651,10 @@ type Channelable interface { SetDisplayName(value *string)() SetEmail(value *string)() SetFilesFolder(value DriveItemable)() + SetIsArchived(value *bool)() SetIsFavoriteByDefault(value *bool)() SetMembers(value []ConversationMemberable)() - SetMembershipType(value *ChannelMembershipType)() + SetMembershipType(value *Channel_membershipType)() SetMessages(value []ChatMessageable)() SetModerationSettings(value ChannelModerationSettingsable)() SetSharedWithTeams(value []SharedWithChannelTeamInfoable)() diff --git a/models/channel_membership_type.go b/models/channel_membership_type.go index 5230c9271da..e69de29bb2d 100644 --- a/models/channel_membership_type.go +++ b/models/channel_membership_type.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ChannelMembershipType int - -const ( - STANDARD_CHANNELMEMBERSHIPTYPE ChannelMembershipType = iota - PRIVATE_CHANNELMEMBERSHIPTYPE - UNKNOWNFUTUREVALUE_CHANNELMEMBERSHIPTYPE - SHARED_CHANNELMEMBERSHIPTYPE -) - -func (i ChannelMembershipType) String() string { - return []string{"standard", "private", "unknownFutureValue", "shared"}[i] -} -func ParseChannelMembershipType(v string) (any, error) { - result := STANDARD_CHANNELMEMBERSHIPTYPE - switch v { - case "standard": - result = STANDARD_CHANNELMEMBERSHIPTYPE - case "private": - result = PRIVATE_CHANNELMEMBERSHIPTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CHANNELMEMBERSHIPTYPE - case "shared": - result = SHARED_CHANNELMEMBERSHIPTYPE - default: - return 0, errors.New("Unknown ChannelMembershipType value: " + v) - } - return &result, nil -} -func SerializeChannelMembershipType(values []ChannelMembershipType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ChannelMembershipType) isMultiValue() bool { - return false -} diff --git a/models/channel_moderation_settings.go b/models/channel_moderation_settings.go index 26394992b53..c45f2240513 100644 --- a/models/channel_moderation_settings.go +++ b/models/channel_moderation_settings.go @@ -94,22 +94,22 @@ func (m *ChannelModerationSettings) GetFieldDeserializers()(map[string]func(i878 return nil } res["replyRestriction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseReplyRestriction) + val, err := n.GetEnumValue(ParseChannelModerationSettings_replyRestriction) if err != nil { return err } if val != nil { - m.SetReplyRestriction(val.(*ReplyRestriction)) + m.SetReplyRestriction(val.(*ChannelModerationSettings_replyRestriction)) } return nil } res["userNewMessageRestriction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserNewMessageRestriction) + val, err := n.GetEnumValue(ParseChannelModerationSettings_userNewMessageRestriction) if err != nil { return err } if val != nil { - m.SetUserNewMessageRestriction(val.(*UserNewMessageRestriction)) + m.SetUserNewMessageRestriction(val.(*ChannelModerationSettings_userNewMessageRestriction)) } return nil } @@ -127,24 +127,24 @@ func (m *ChannelModerationSettings) GetOdataType()(*string) { return nil } // GetReplyRestriction gets the replyRestriction property value. Indicates who is allowed to reply to the teams channel. Possible values are: everyone, authorAndModerators, unknownFutureValue. -func (m *ChannelModerationSettings) GetReplyRestriction()(*ReplyRestriction) { +func (m *ChannelModerationSettings) GetReplyRestriction()(*ChannelModerationSettings_replyRestriction) { val, err := m.GetBackingStore().Get("replyRestriction") if err != nil { panic(err) } if val != nil { - return val.(*ReplyRestriction) + return val.(*ChannelModerationSettings_replyRestriction) } return nil } // GetUserNewMessageRestriction gets the userNewMessageRestriction property value. Indicates who is allowed to post messages to teams channel. Possible values are: everyone, everyoneExceptGuests, moderators, unknownFutureValue. -func (m *ChannelModerationSettings) GetUserNewMessageRestriction()(*UserNewMessageRestriction) { +func (m *ChannelModerationSettings) GetUserNewMessageRestriction()(*ChannelModerationSettings_userNewMessageRestriction) { val, err := m.GetBackingStore().Get("userNewMessageRestriction") if err != nil { panic(err) } if val != nil { - return val.(*UserNewMessageRestriction) + return val.(*ChannelModerationSettings_userNewMessageRestriction) } return nil } @@ -223,14 +223,14 @@ func (m *ChannelModerationSettings) SetOdataType(value *string)() { } } // SetReplyRestriction sets the replyRestriction property value. Indicates who is allowed to reply to the teams channel. Possible values are: everyone, authorAndModerators, unknownFutureValue. -func (m *ChannelModerationSettings) SetReplyRestriction(value *ReplyRestriction)() { +func (m *ChannelModerationSettings) SetReplyRestriction(value *ChannelModerationSettings_replyRestriction)() { err := m.GetBackingStore().Set("replyRestriction", value) if err != nil { panic(err) } } // SetUserNewMessageRestriction sets the userNewMessageRestriction property value. Indicates who is allowed to post messages to teams channel. Possible values are: everyone, everyoneExceptGuests, moderators, unknownFutureValue. -func (m *ChannelModerationSettings) SetUserNewMessageRestriction(value *UserNewMessageRestriction)() { +func (m *ChannelModerationSettings) SetUserNewMessageRestriction(value *ChannelModerationSettings_userNewMessageRestriction)() { err := m.GetBackingStore().Set("userNewMessageRestriction", value) if err != nil { panic(err) @@ -245,12 +245,12 @@ type ChannelModerationSettingsable interface { GetAllowNewMessageFromConnectors()(*bool) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetReplyRestriction()(*ReplyRestriction) - GetUserNewMessageRestriction()(*UserNewMessageRestriction) + GetReplyRestriction()(*ChannelModerationSettings_replyRestriction) + GetUserNewMessageRestriction()(*ChannelModerationSettings_userNewMessageRestriction) SetAllowNewMessageFromBots(value *bool)() SetAllowNewMessageFromConnectors(value *bool)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetReplyRestriction(value *ReplyRestriction)() - SetUserNewMessageRestriction(value *UserNewMessageRestriction)() + SetReplyRestriction(value *ChannelModerationSettings_replyRestriction)() + SetUserNewMessageRestriction(value *ChannelModerationSettings_userNewMessageRestriction)() } diff --git a/models/channel_moderation_settings_reply_restriction.go b/models/channel_moderation_settings_reply_restriction.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/channel_moderation_settings_user_new_message_restriction.go b/models/channel_moderation_settings_user_new_message_restriction.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/chat_message_policy_violation.go b/models/chat_message_policy_violation.go index a95f9c744eb..6def9ba7c2f 100644 --- a/models/chat_message_policy_violation.go +++ b/models/chat_message_policy_violation.go @@ -39,13 +39,13 @@ func (m *ChatMessagePolicyViolation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827 return m.backingStore } // GetDlpAction gets the dlpAction property value. The action taken by the DLP provider on the message with sensitive content. Supported values are: NoneNotifySender -- Inform the sender of the violation but allow readers to read the message.BlockAccess -- Block readers from reading the message.BlockAccessExternal -- Block users outside the organization from reading the message, while allowing users within the organization to read the message. -func (m *ChatMessagePolicyViolation) GetDlpAction()(*ChatMessagePolicyViolationDlpActionTypes) { +func (m *ChatMessagePolicyViolation) GetDlpAction()(*ChatMessagePolicyViolation_dlpAction) { val, err := m.GetBackingStore().Get("dlpAction") if err != nil { panic(err) } if val != nil { - return val.(*ChatMessagePolicyViolationDlpActionTypes) + return val.(*ChatMessagePolicyViolation_dlpAction) } return nil } @@ -53,12 +53,12 @@ func (m *ChatMessagePolicyViolation) GetDlpAction()(*ChatMessagePolicyViolationD func (m *ChatMessagePolicyViolation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["dlpAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseChatMessagePolicyViolationDlpActionTypes) + val, err := n.GetEnumValue(ParseChatMessagePolicyViolation_dlpAction) if err != nil { return err } if val != nil { - m.SetDlpAction(val.(*ChatMessagePolicyViolationDlpActionTypes)) + m.SetDlpAction(val.(*ChatMessagePolicyViolation_dlpAction)) } return nil } @@ -93,22 +93,22 @@ func (m *ChatMessagePolicyViolation) GetFieldDeserializers()(map[string]func(i87 return nil } res["userAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseChatMessagePolicyViolationUserActionTypes) + val, err := n.GetEnumValue(ParseChatMessagePolicyViolation_userAction) if err != nil { return err } if val != nil { - m.SetUserAction(val.(*ChatMessagePolicyViolationUserActionTypes)) + m.SetUserAction(val.(*ChatMessagePolicyViolation_userAction)) } return nil } res["verdictDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseChatMessagePolicyViolationVerdictDetailsTypes) + val, err := n.GetEnumValue(ParseChatMessagePolicyViolation_verdictDetails) if err != nil { return err } if val != nil { - m.SetVerdictDetails(val.(*ChatMessagePolicyViolationVerdictDetailsTypes)) + m.SetVerdictDetails(val.(*ChatMessagePolicyViolation_verdictDetails)) } return nil } @@ -148,24 +148,24 @@ func (m *ChatMessagePolicyViolation) GetPolicyTip()(ChatMessagePolicyViolationPo return nil } // GetUserAction gets the userAction property value. Indicates the action taken by the user on a message blocked by the DLP provider. Supported values are: NoneOverrideReportFalsePositiveWhen the DLP provider is updating the message for blocking sensitive content, userAction isn't required. -func (m *ChatMessagePolicyViolation) GetUserAction()(*ChatMessagePolicyViolationUserActionTypes) { +func (m *ChatMessagePolicyViolation) GetUserAction()(*ChatMessagePolicyViolation_userAction) { val, err := m.GetBackingStore().Get("userAction") if err != nil { panic(err) } if val != nil { - return val.(*ChatMessagePolicyViolationUserActionTypes) + return val.(*ChatMessagePolicyViolation_userAction) } return nil } // GetVerdictDetails gets the verdictDetails property value. Indicates what actions the sender may take in response to the policy violation. Supported values are: NoneAllowFalsePositiveOverride -- Allows the sender to declare the policyViolation to be an error in the DLP app and its rules, and allow readers to see the message again if it was hidden by dlpAction.AllowOverrideWithoutJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, without needing to provide an explanation for doing so. AllowOverrideWithJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, after providing an explanation for doing so.AllowOverrideWithoutJustification and AllowOverrideWithJustification are mutually exclusive. -func (m *ChatMessagePolicyViolation) GetVerdictDetails()(*ChatMessagePolicyViolationVerdictDetailsTypes) { +func (m *ChatMessagePolicyViolation) GetVerdictDetails()(*ChatMessagePolicyViolation_verdictDetails) { val, err := m.GetBackingStore().Get("verdictDetails") if err != nil { panic(err) } if val != nil { - return val.(*ChatMessagePolicyViolationVerdictDetailsTypes) + return val.(*ChatMessagePolicyViolation_verdictDetails) } return nil } @@ -230,7 +230,7 @@ func (m *ChatMessagePolicyViolation) SetBackingStore(value ie8677ce2c7e1b4c22e9c m.backingStore = value } // SetDlpAction sets the dlpAction property value. The action taken by the DLP provider on the message with sensitive content. Supported values are: NoneNotifySender -- Inform the sender of the violation but allow readers to read the message.BlockAccess -- Block readers from reading the message.BlockAccessExternal -- Block users outside the organization from reading the message, while allowing users within the organization to read the message. -func (m *ChatMessagePolicyViolation) SetDlpAction(value *ChatMessagePolicyViolationDlpActionTypes)() { +func (m *ChatMessagePolicyViolation) SetDlpAction(value *ChatMessagePolicyViolation_dlpAction)() { err := m.GetBackingStore().Set("dlpAction", value) if err != nil { panic(err) @@ -258,14 +258,14 @@ func (m *ChatMessagePolicyViolation) SetPolicyTip(value ChatMessagePolicyViolati } } // SetUserAction sets the userAction property value. Indicates the action taken by the user on a message blocked by the DLP provider. Supported values are: NoneOverrideReportFalsePositiveWhen the DLP provider is updating the message for blocking sensitive content, userAction isn't required. -func (m *ChatMessagePolicyViolation) SetUserAction(value *ChatMessagePolicyViolationUserActionTypes)() { +func (m *ChatMessagePolicyViolation) SetUserAction(value *ChatMessagePolicyViolation_userAction)() { err := m.GetBackingStore().Set("userAction", value) if err != nil { panic(err) } } // SetVerdictDetails sets the verdictDetails property value. Indicates what actions the sender may take in response to the policy violation. Supported values are: NoneAllowFalsePositiveOverride -- Allows the sender to declare the policyViolation to be an error in the DLP app and its rules, and allow readers to see the message again if it was hidden by dlpAction.AllowOverrideWithoutJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, without needing to provide an explanation for doing so. AllowOverrideWithJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, after providing an explanation for doing so.AllowOverrideWithoutJustification and AllowOverrideWithJustification are mutually exclusive. -func (m *ChatMessagePolicyViolation) SetVerdictDetails(value *ChatMessagePolicyViolationVerdictDetailsTypes)() { +func (m *ChatMessagePolicyViolation) SetVerdictDetails(value *ChatMessagePolicyViolation_verdictDetails)() { err := m.GetBackingStore().Set("verdictDetails", value) if err != nil { panic(err) @@ -277,17 +277,17 @@ type ChatMessagePolicyViolationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDlpAction()(*ChatMessagePolicyViolationDlpActionTypes) + GetDlpAction()(*ChatMessagePolicyViolation_dlpAction) GetJustificationText()(*string) GetOdataType()(*string) GetPolicyTip()(ChatMessagePolicyViolationPolicyTipable) - GetUserAction()(*ChatMessagePolicyViolationUserActionTypes) - GetVerdictDetails()(*ChatMessagePolicyViolationVerdictDetailsTypes) + GetUserAction()(*ChatMessagePolicyViolation_userAction) + GetVerdictDetails()(*ChatMessagePolicyViolation_verdictDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDlpAction(value *ChatMessagePolicyViolationDlpActionTypes)() + SetDlpAction(value *ChatMessagePolicyViolation_dlpAction)() SetJustificationText(value *string)() SetOdataType(value *string)() SetPolicyTip(value ChatMessagePolicyViolationPolicyTipable)() - SetUserAction(value *ChatMessagePolicyViolationUserActionTypes)() - SetVerdictDetails(value *ChatMessagePolicyViolationVerdictDetailsTypes)() + SetUserAction(value *ChatMessagePolicyViolation_userAction)() + SetVerdictDetails(value *ChatMessagePolicyViolation_verdictDetails)() } diff --git a/models/chat_message_policy_violation_dlp_action.go b/models/chat_message_policy_violation_dlp_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/chat_message_policy_violation_dlp_action_types.go b/models/chat_message_policy_violation_dlp_action_types.go deleted file mode 100644 index 17f2b558720..00000000000 --- a/models/chat_message_policy_violation_dlp_action_types.go +++ /dev/null @@ -1,53 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type ChatMessagePolicyViolationDlpActionTypes int - -const ( - NONE_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES ChatMessagePolicyViolationDlpActionTypes = iota - NOTIFYSENDER_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES - BLOCKACCESS_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES - BLOCKACCESSEXTERNAL_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES -) - -func (i ChatMessagePolicyViolationDlpActionTypes) String() string { - var values []string - for p := ChatMessagePolicyViolationDlpActionTypes(1); p <= BLOCKACCESSEXTERNAL_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "notifySender", "blockAccess", "blockAccessExternal"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseChatMessagePolicyViolationDlpActionTypes(v string) (any, error) { - var result ChatMessagePolicyViolationDlpActionTypes - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES - case "notifySender": - result |= NOTIFYSENDER_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES - case "blockAccess": - result |= BLOCKACCESS_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES - case "blockAccessExternal": - result |= BLOCKACCESSEXTERNAL_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES - default: - return 0, errors.New("Unknown ChatMessagePolicyViolationDlpActionTypes value: " + v) - } - } - return &result, nil -} -func SerializeChatMessagePolicyViolationDlpActionTypes(values []ChatMessagePolicyViolationDlpActionTypes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ChatMessagePolicyViolationDlpActionTypes) isMultiValue() bool { - return true -} diff --git a/models/chat_message_policy_violation_user_action.go b/models/chat_message_policy_violation_user_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/chat_message_policy_violation_user_action_types.go b/models/chat_message_policy_violation_user_action_types.go deleted file mode 100644 index 68f0c919794..00000000000 --- a/models/chat_message_policy_violation_user_action_types.go +++ /dev/null @@ -1,50 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type ChatMessagePolicyViolationUserActionTypes int - -const ( - NONE_CHATMESSAGEPOLICYVIOLATIONUSERACTIONTYPES ChatMessagePolicyViolationUserActionTypes = iota - OVERRIDE_CHATMESSAGEPOLICYVIOLATIONUSERACTIONTYPES - REPORTFALSEPOSITIVE_CHATMESSAGEPOLICYVIOLATIONUSERACTIONTYPES -) - -func (i ChatMessagePolicyViolationUserActionTypes) String() string { - var values []string - for p := ChatMessagePolicyViolationUserActionTypes(1); p <= REPORTFALSEPOSITIVE_CHATMESSAGEPOLICYVIOLATIONUSERACTIONTYPES; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "override", "reportFalsePositive"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseChatMessagePolicyViolationUserActionTypes(v string) (any, error) { - var result ChatMessagePolicyViolationUserActionTypes - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_CHATMESSAGEPOLICYVIOLATIONUSERACTIONTYPES - case "override": - result |= OVERRIDE_CHATMESSAGEPOLICYVIOLATIONUSERACTIONTYPES - case "reportFalsePositive": - result |= REPORTFALSEPOSITIVE_CHATMESSAGEPOLICYVIOLATIONUSERACTIONTYPES - default: - return 0, errors.New("Unknown ChatMessagePolicyViolationUserActionTypes value: " + v) - } - } - return &result, nil -} -func SerializeChatMessagePolicyViolationUserActionTypes(values []ChatMessagePolicyViolationUserActionTypes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ChatMessagePolicyViolationUserActionTypes) isMultiValue() bool { - return true -} diff --git a/models/chat_message_policy_violation_verdict_details.go b/models/chat_message_policy_violation_verdict_details.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/chat_message_policy_violation_verdict_details_types.go b/models/chat_message_policy_violation_verdict_details_types.go deleted file mode 100644 index f02f194653a..00000000000 --- a/models/chat_message_policy_violation_verdict_details_types.go +++ /dev/null @@ -1,53 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type ChatMessagePolicyViolationVerdictDetailsTypes int - -const ( - NONE_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES ChatMessagePolicyViolationVerdictDetailsTypes = iota - ALLOWFALSEPOSITIVEOVERRIDE_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES - ALLOWOVERRIDEWITHOUTJUSTIFICATION_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES - ALLOWOVERRIDEWITHJUSTIFICATION_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES -) - -func (i ChatMessagePolicyViolationVerdictDetailsTypes) String() string { - var values []string - for p := ChatMessagePolicyViolationVerdictDetailsTypes(1); p <= ALLOWOVERRIDEWITHJUSTIFICATION_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "allowFalsePositiveOverride", "allowOverrideWithoutJustification", "allowOverrideWithJustification"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseChatMessagePolicyViolationVerdictDetailsTypes(v string) (any, error) { - var result ChatMessagePolicyViolationVerdictDetailsTypes - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES - case "allowFalsePositiveOverride": - result |= ALLOWFALSEPOSITIVEOVERRIDE_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES - case "allowOverrideWithoutJustification": - result |= ALLOWOVERRIDEWITHOUTJUSTIFICATION_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES - case "allowOverrideWithJustification": - result |= ALLOWOVERRIDEWITHJUSTIFICATION_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES - default: - return 0, errors.New("Unknown ChatMessagePolicyViolationVerdictDetailsTypes value: " + v) - } - } - return &result, nil -} -func SerializeChatMessagePolicyViolationVerdictDetailsTypes(values []ChatMessagePolicyViolationVerdictDetailsTypes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ChatMessagePolicyViolationVerdictDetailsTypes) isMultiValue() bool { - return true -} diff --git a/models/classification_method.go b/models/classification_method.go deleted file mode 100644 index 423b8b1c749..00000000000 --- a/models/classification_method.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ClassificationMethod int - -const ( - PATTERNMATCH_CLASSIFICATIONMETHOD ClassificationMethod = iota - EXACTDATAMATCH_CLASSIFICATIONMETHOD - FINGERPRINT_CLASSIFICATIONMETHOD - MACHINELEARNING_CLASSIFICATIONMETHOD -) - -func (i ClassificationMethod) String() string { - return []string{"patternMatch", "exactDataMatch", "fingerprint", "machineLearning"}[i] -} -func ParseClassificationMethod(v string) (any, error) { - result := PATTERNMATCH_CLASSIFICATIONMETHOD - switch v { - case "patternMatch": - result = PATTERNMATCH_CLASSIFICATIONMETHOD - case "exactDataMatch": - result = EXACTDATAMATCH_CLASSIFICATIONMETHOD - case "fingerprint": - result = FINGERPRINT_CLASSIFICATIONMETHOD - case "machineLearning": - result = MACHINELEARNING_CLASSIFICATIONMETHOD - default: - return 0, errors.New("Unknown ClassificationMethod value: " + v) - } - return &result, nil -} -func SerializeClassificationMethod(values []ClassificationMethod) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ClassificationMethod) isMultiValue() bool { - return false -} diff --git a/models/client_credential_type.go b/models/client_credential_type.go deleted file mode 100644 index b7cdf3ae5ca..00000000000 --- a/models/client_credential_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ClientCredentialType int - -const ( - NONE_CLIENTCREDENTIALTYPE ClientCredentialType = iota - CLIENTSECRET_CLIENTCREDENTIALTYPE - CLIENTASSERTION_CLIENTCREDENTIALTYPE - FEDERATEDIDENTITYCREDENTIAL_CLIENTCREDENTIALTYPE - MANAGEDIDENTITY_CLIENTCREDENTIALTYPE - CERTIFICATE_CLIENTCREDENTIALTYPE - UNKNOWNFUTUREVALUE_CLIENTCREDENTIALTYPE -) - -func (i ClientCredentialType) String() string { - return []string{"none", "clientSecret", "clientAssertion", "federatedIdentityCredential", "managedIdentity", "certificate", "unknownFutureValue"}[i] -} -func ParseClientCredentialType(v string) (any, error) { - result := NONE_CLIENTCREDENTIALTYPE - switch v { - case "none": - result = NONE_CLIENTCREDENTIALTYPE - case "clientSecret": - result = CLIENTSECRET_CLIENTCREDENTIALTYPE - case "clientAssertion": - result = CLIENTASSERTION_CLIENTCREDENTIALTYPE - case "federatedIdentityCredential": - result = FEDERATEDIDENTITYCREDENTIAL_CLIENTCREDENTIALTYPE - case "managedIdentity": - result = MANAGEDIDENTITY_CLIENTCREDENTIALTYPE - case "certificate": - result = CERTIFICATE_CLIENTCREDENTIALTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLIENTCREDENTIALTYPE - default: - return 0, errors.New("Unknown ClientCredentialType value: " + v) - } - return &result, nil -} -func SerializeClientCredentialType(values []ClientCredentialType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ClientCredentialType) isMultiValue() bool { - return false -} diff --git a/models/cloud_app_security_profile.go b/models/cloud_app_security_profile.go index 4b4d3c0fe19..ed1f74cf1a6 100644 --- a/models/cloud_app_security_profile.go +++ b/models/cloud_app_security_profile.go @@ -169,12 +169,12 @@ func (m *CloudAppSecurityProfile) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["permissionsRequired"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseApplicationPermissionsRequired) + val, err := n.GetEnumValue(ParseCloudAppSecurityProfile_permissionsRequired) if err != nil { return err } if val != nil { - m.SetPermissionsRequired(val.(*ApplicationPermissionsRequired)) + m.SetPermissionsRequired(val.(*CloudAppSecurityProfile_permissionsRequired)) } return nil } @@ -301,13 +301,13 @@ func (m *CloudAppSecurityProfile) GetName()(*string) { return nil } // GetPermissionsRequired gets the permissionsRequired property value. The permissionsRequired property -func (m *CloudAppSecurityProfile) GetPermissionsRequired()(*ApplicationPermissionsRequired) { +func (m *CloudAppSecurityProfile) GetPermissionsRequired()(*CloudAppSecurityProfile_permissionsRequired) { val, err := m.GetBackingStore().Get("permissionsRequired") if err != nil { panic(err) } if val != nil { - return val.(*ApplicationPermissionsRequired) + return val.(*CloudAppSecurityProfile_permissionsRequired) } return nil } @@ -563,7 +563,7 @@ func (m *CloudAppSecurityProfile) SetName(value *string)() { } } // SetPermissionsRequired sets the permissionsRequired property value. The permissionsRequired property -func (m *CloudAppSecurityProfile) SetPermissionsRequired(value *ApplicationPermissionsRequired)() { +func (m *CloudAppSecurityProfile) SetPermissionsRequired(value *CloudAppSecurityProfile_permissionsRequired)() { err := m.GetBackingStore().Set("permissionsRequired", value) if err != nil { panic(err) @@ -631,7 +631,7 @@ type CloudAppSecurityProfileable interface { GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetManifest()(*string) GetName()(*string) - GetPermissionsRequired()(*ApplicationPermissionsRequired) + GetPermissionsRequired()(*CloudAppSecurityProfile_permissionsRequired) GetPlatform()(*string) GetPolicyName()(*string) GetPublisher()(*string) @@ -648,7 +648,7 @@ type CloudAppSecurityProfileable interface { SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetManifest(value *string)() SetName(value *string)() - SetPermissionsRequired(value *ApplicationPermissionsRequired)() + SetPermissionsRequired(value *CloudAppSecurityProfile_permissionsRequired)() SetPlatform(value *string)() SetPolicyName(value *string)() SetPublisher(value *string)() diff --git a/models/cloud_app_security_profile_permissions_required.go b/models/cloud_app_security_profile_permissions_required.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_app_security_session_control.go b/models/cloud_app_security_session_control.go index d7c0640db00..725fc1515bf 100644 --- a/models/cloud_app_security_session_control.go +++ b/models/cloud_app_security_session_control.go @@ -22,13 +22,13 @@ func CreateCloudAppSecuritySessionControlFromDiscriminatorValue(parseNode i878a8 return NewCloudAppSecuritySessionControl(), nil } // GetCloudAppSecurityType gets the cloudAppSecurityType property value. Possible values are: mcasConfigured, monitorOnly, blockDownloads. To learn more about these values, Deploy Conditional Access App Control for featured apps. -func (m *CloudAppSecuritySessionControl) GetCloudAppSecurityType()(*CloudAppSecuritySessionControlType) { +func (m *CloudAppSecuritySessionControl) GetCloudAppSecurityType()(*CloudAppSecuritySessionControl_cloudAppSecurityType) { val, err := m.GetBackingStore().Get("cloudAppSecurityType") if err != nil { panic(err) } if val != nil { - return val.(*CloudAppSecuritySessionControlType) + return val.(*CloudAppSecuritySessionControl_cloudAppSecurityType) } return nil } @@ -36,12 +36,12 @@ func (m *CloudAppSecuritySessionControl) GetCloudAppSecurityType()(*CloudAppSecu func (m *CloudAppSecuritySessionControl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ConditionalAccessSessionControl.GetFieldDeserializers() res["cloudAppSecurityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudAppSecuritySessionControlType) + val, err := n.GetEnumValue(ParseCloudAppSecuritySessionControl_cloudAppSecurityType) if err != nil { return err } if val != nil { - m.SetCloudAppSecurityType(val.(*CloudAppSecuritySessionControlType)) + m.SetCloudAppSecurityType(val.(*CloudAppSecuritySessionControl_cloudAppSecurityType)) } return nil } @@ -63,7 +63,7 @@ func (m *CloudAppSecuritySessionControl) Serialize(writer i878a80d2330e89d268963 return nil } // SetCloudAppSecurityType sets the cloudAppSecurityType property value. Possible values are: mcasConfigured, monitorOnly, blockDownloads. To learn more about these values, Deploy Conditional Access App Control for featured apps. -func (m *CloudAppSecuritySessionControl) SetCloudAppSecurityType(value *CloudAppSecuritySessionControlType)() { +func (m *CloudAppSecuritySessionControl) SetCloudAppSecurityType(value *CloudAppSecuritySessionControl_cloudAppSecurityType)() { err := m.GetBackingStore().Set("cloudAppSecurityType", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *CloudAppSecuritySessionControl) SetCloudAppSecurityType(value *CloudApp type CloudAppSecuritySessionControlable interface { ConditionalAccessSessionControlable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCloudAppSecurityType()(*CloudAppSecuritySessionControlType) - SetCloudAppSecurityType(value *CloudAppSecuritySessionControlType)() + GetCloudAppSecurityType()(*CloudAppSecuritySessionControl_cloudAppSecurityType) + SetCloudAppSecurityType(value *CloudAppSecuritySessionControl_cloudAppSecurityType)() } diff --git a/models/cloud_app_security_session_control_cloud_app_security_type.go b/models/cloud_app_security_session_control_cloud_app_security_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_app_security_session_control_type.go b/models/cloud_app_security_session_control_type.go deleted file mode 100644 index e9600511fa4..00000000000 --- a/models/cloud_app_security_session_control_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudAppSecuritySessionControlType int - -const ( - MCASCONFIGURED_CLOUDAPPSECURITYSESSIONCONTROLTYPE CloudAppSecuritySessionControlType = iota - MONITORONLY_CLOUDAPPSECURITYSESSIONCONTROLTYPE - BLOCKDOWNLOADS_CLOUDAPPSECURITYSESSIONCONTROLTYPE - UNKNOWNFUTUREVALUE_CLOUDAPPSECURITYSESSIONCONTROLTYPE -) - -func (i CloudAppSecuritySessionControlType) String() string { - return []string{"mcasConfigured", "monitorOnly", "blockDownloads", "unknownFutureValue"}[i] -} -func ParseCloudAppSecuritySessionControlType(v string) (any, error) { - result := MCASCONFIGURED_CLOUDAPPSECURITYSESSIONCONTROLTYPE - switch v { - case "mcasConfigured": - result = MCASCONFIGURED_CLOUDAPPSECURITYSESSIONCONTROLTYPE - case "monitorOnly": - result = MONITORONLY_CLOUDAPPSECURITYSESSIONCONTROLTYPE - case "blockDownloads": - result = BLOCKDOWNLOADS_CLOUDAPPSECURITYSESSIONCONTROLTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDAPPSECURITYSESSIONCONTROLTYPE - default: - return 0, errors.New("Unknown CloudAppSecuritySessionControlType value: " + v) - } - return &result, nil -} -func SerializeCloudAppSecuritySessionControlType(values []CloudAppSecuritySessionControlType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudAppSecuritySessionControlType) isMultiValue() bool { - return false -} diff --git a/models/cloud_p_c.go b/models/cloud_p_c.go index e5e86e8714b..cc997f25818 100644 --- a/models/cloud_p_c.go +++ b/models/cloud_p_c.go @@ -54,13 +54,13 @@ func (m *CloudPC) GetConnectivityResult()(CloudPcConnectivityResultable) { return nil } // GetDiskEncryptionState gets the diskEncryptionState property value. The disk encryption applied to the Cloud PC. Possible values: notAvailable, notEncrypted, encryptedUsingPlatformManagedKey, encryptedUsingCustomerManagedKey, and unknownFutureValue. -func (m *CloudPC) GetDiskEncryptionState()(*CloudPcDiskEncryptionState) { +func (m *CloudPC) GetDiskEncryptionState()(*CloudPC_diskEncryptionState) { val, err := m.GetBackingStore().Get("diskEncryptionState") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcDiskEncryptionState) + return val.(*CloudPC_diskEncryptionState) } return nil } @@ -109,12 +109,12 @@ func (m *CloudPC) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["diskEncryptionState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcDiskEncryptionState) + val, err := n.GetEnumValue(ParseCloudPC_diskEncryptionState) if err != nil { return err } if val != nil { - m.SetDiskEncryptionState(val.(*CloudPcDiskEncryptionState)) + m.SetDiskEncryptionState(val.(*CloudPC_diskEncryptionState)) } return nil } @@ -209,12 +209,12 @@ func (m *CloudPC) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["osVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcOperatingSystem) + val, err := n.GetEnumValue(ParseCloudPC_osVersion) if err != nil { return err } if val != nil { - m.SetOsVersion(val.(*CloudPcOperatingSystem)) + m.SetOsVersion(val.(*CloudPC_osVersion)) } return nil } @@ -235,12 +235,12 @@ func (m *CloudPC) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["powerState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcPowerState) + val, err := n.GetEnumValue(ParseCloudPC_powerState) if err != nil { return err } if val != nil { - m.SetPowerState(val.(*CloudPcPowerState)) + m.SetPowerState(val.(*CloudPC_powerState)) } return nil } @@ -265,12 +265,12 @@ func (m *CloudPC) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["provisioningType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcProvisioningType) + val, err := n.GetEnumValue(ParseCloudPC_provisioningType) if err != nil { return err } if val != nil { - m.SetProvisioningType(val.(*CloudPcProvisioningType)) + m.SetProvisioningType(val.(*CloudPC_provisioningType)) } return nil } @@ -311,12 +311,12 @@ func (m *CloudPC) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["servicePlanType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcServicePlanType) + val, err := n.GetEnumValue(ParseCloudPC_servicePlanType) if err != nil { return err } if val != nil { - m.SetServicePlanType(val.(*CloudPcServicePlanType)) + m.SetServicePlanType(val.(*CloudPC_servicePlanType)) } return nil } @@ -341,12 +341,12 @@ func (m *CloudPC) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["userAccountType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcUserAccountType) + val, err := n.GetEnumValue(ParseCloudPC_userAccountType) if err != nil { return err } if val != nil { - m.SetUserAccountType(val.(*CloudPcUserAccountType)) + m.SetUserAccountType(val.(*CloudPC_userAccountType)) } return nil } @@ -451,13 +451,13 @@ func (m *CloudPC) GetOnPremisesConnectionName()(*string) { return nil } // GetOsVersion gets the osVersion property value. The version of the operating system (OS) to provision on Cloud PCs. Possible values are: windows10, windows11, and unknownFutureValue. -func (m *CloudPC) GetOsVersion()(*CloudPcOperatingSystem) { +func (m *CloudPC) GetOsVersion()(*CloudPC_osVersion) { val, err := m.GetBackingStore().Get("osVersion") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcOperatingSystem) + return val.(*CloudPC_osVersion) } return nil } @@ -473,13 +473,13 @@ func (m *CloudPC) GetPartnerAgentInstallResults()([]CloudPcPartnerAgentInstallRe return nil } // GetPowerState gets the powerState property value. The power state of a Cloud PC. The possible values are: running, poweredOff and unknown. This property only supports shift work Cloud PCs. -func (m *CloudPC) GetPowerState()(*CloudPcPowerState) { +func (m *CloudPC) GetPowerState()(*CloudPC_powerState) { val, err := m.GetBackingStore().Get("powerState") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcPowerState) + return val.(*CloudPC_powerState) } return nil } @@ -506,13 +506,13 @@ func (m *CloudPC) GetProvisioningPolicyName()(*string) { return nil } // GetProvisioningType gets the provisioningType property value. The type of licenses to be used when provisioning Cloud PCs using this policy. Possible values are: dedicated, shared, unknownFutureValue. Default value is dedicated. -func (m *CloudPC) GetProvisioningType()(*CloudPcProvisioningType) { +func (m *CloudPC) GetProvisioningType()(*CloudPC_provisioningType) { val, err := m.GetBackingStore().Get("provisioningType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcProvisioningType) + return val.(*CloudPC_provisioningType) } return nil } @@ -550,13 +550,13 @@ func (m *CloudPC) GetServicePlanName()(*string) { return nil } // GetServicePlanType gets the servicePlanType property value. The service plan type of the Cloud PC. -func (m *CloudPC) GetServicePlanType()(*CloudPcServicePlanType) { +func (m *CloudPC) GetServicePlanType()(*CloudPC_servicePlanType) { val, err := m.GetBackingStore().Get("servicePlanType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcServicePlanType) + return val.(*CloudPC_servicePlanType) } return nil } @@ -583,13 +583,13 @@ func (m *CloudPC) GetStatusDetails()(CloudPcStatusDetailsable) { return nil } // GetUserAccountType gets the userAccountType property value. The account type of the user on provisioned Cloud PCs. Possible values are: standardUser, administrator, and unknownFutureValue. -func (m *CloudPC) GetUserAccountType()(*CloudPcUserAccountType) { +func (m *CloudPC) GetUserAccountType()(*CloudPC_userAccountType) { val, err := m.GetBackingStore().Get("userAccountType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcUserAccountType) + return val.(*CloudPC_userAccountType) } return nil } @@ -809,7 +809,7 @@ func (m *CloudPC) SetConnectivityResult(value CloudPcConnectivityResultable)() { } } // SetDiskEncryptionState sets the diskEncryptionState property value. The disk encryption applied to the Cloud PC. Possible values: notAvailable, notEncrypted, encryptedUsingPlatformManagedKey, encryptedUsingCustomerManagedKey, and unknownFutureValue. -func (m *CloudPC) SetDiskEncryptionState(value *CloudPcDiskEncryptionState)() { +func (m *CloudPC) SetDiskEncryptionState(value *CloudPC_diskEncryptionState)() { err := m.GetBackingStore().Set("diskEncryptionState", value) if err != nil { panic(err) @@ -879,7 +879,7 @@ func (m *CloudPC) SetOnPremisesConnectionName(value *string)() { } } // SetOsVersion sets the osVersion property value. The version of the operating system (OS) to provision on Cloud PCs. Possible values are: windows10, windows11, and unknownFutureValue. -func (m *CloudPC) SetOsVersion(value *CloudPcOperatingSystem)() { +func (m *CloudPC) SetOsVersion(value *CloudPC_osVersion)() { err := m.GetBackingStore().Set("osVersion", value) if err != nil { panic(err) @@ -893,7 +893,7 @@ func (m *CloudPC) SetPartnerAgentInstallResults(value []CloudPcPartnerAgentInsta } } // SetPowerState sets the powerState property value. The power state of a Cloud PC. The possible values are: running, poweredOff and unknown. This property only supports shift work Cloud PCs. -func (m *CloudPC) SetPowerState(value *CloudPcPowerState)() { +func (m *CloudPC) SetPowerState(value *CloudPC_powerState)() { err := m.GetBackingStore().Set("powerState", value) if err != nil { panic(err) @@ -914,7 +914,7 @@ func (m *CloudPC) SetProvisioningPolicyName(value *string)() { } } // SetProvisioningType sets the provisioningType property value. The type of licenses to be used when provisioning Cloud PCs using this policy. Possible values are: dedicated, shared, unknownFutureValue. Default value is dedicated. -func (m *CloudPC) SetProvisioningType(value *CloudPcProvisioningType)() { +func (m *CloudPC) SetProvisioningType(value *CloudPC_provisioningType)() { err := m.GetBackingStore().Set("provisioningType", value) if err != nil { panic(err) @@ -942,7 +942,7 @@ func (m *CloudPC) SetServicePlanName(value *string)() { } } // SetServicePlanType sets the servicePlanType property value. The service plan type of the Cloud PC. -func (m *CloudPC) SetServicePlanType(value *CloudPcServicePlanType)() { +func (m *CloudPC) SetServicePlanType(value *CloudPC_servicePlanType)() { err := m.GetBackingStore().Set("servicePlanType", value) if err != nil { panic(err) @@ -963,7 +963,7 @@ func (m *CloudPC) SetStatusDetails(value CloudPcStatusDetailsable)() { } } // SetUserAccountType sets the userAccountType property value. The account type of the user on provisioned Cloud PCs. Possible values are: standardUser, administrator, and unknownFutureValue. -func (m *CloudPC) SetUserAccountType(value *CloudPcUserAccountType)() { +func (m *CloudPC) SetUserAccountType(value *CloudPC_userAccountType)() { err := m.GetBackingStore().Set("userAccountType", value) if err != nil { panic(err) @@ -983,7 +983,7 @@ type CloudPCable interface { GetAadDeviceId()(*string) GetConnectionSettings()(CloudPcConnectionSettingsable) GetConnectivityResult()(CloudPcConnectivityResultable) - GetDiskEncryptionState()(*CloudPcDiskEncryptionState) + GetDiskEncryptionState()(*CloudPC_diskEncryptionState) GetDisplayName()(*string) GetGracePeriodEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetImageDisplayName()(*string) @@ -993,24 +993,24 @@ type CloudPCable interface { GetManagedDeviceId()(*string) GetManagedDeviceName()(*string) GetOnPremisesConnectionName()(*string) - GetOsVersion()(*CloudPcOperatingSystem) + GetOsVersion()(*CloudPC_osVersion) GetPartnerAgentInstallResults()([]CloudPcPartnerAgentInstallResultable) - GetPowerState()(*CloudPcPowerState) + GetPowerState()(*CloudPC_powerState) GetProvisioningPolicyId()(*string) GetProvisioningPolicyName()(*string) - GetProvisioningType()(*CloudPcProvisioningType) + GetProvisioningType()(*CloudPC_provisioningType) GetScopeIds()([]string) GetServicePlanId()(*string) GetServicePlanName()(*string) - GetServicePlanType()(*CloudPcServicePlanType) + GetServicePlanType()(*CloudPC_servicePlanType) GetStatus()(*CloudPcStatus) GetStatusDetails()(CloudPcStatusDetailsable) - GetUserAccountType()(*CloudPcUserAccountType) + GetUserAccountType()(*CloudPC_userAccountType) GetUserPrincipalName()(*string) SetAadDeviceId(value *string)() SetConnectionSettings(value CloudPcConnectionSettingsable)() SetConnectivityResult(value CloudPcConnectivityResultable)() - SetDiskEncryptionState(value *CloudPcDiskEncryptionState)() + SetDiskEncryptionState(value *CloudPC_diskEncryptionState)() SetDisplayName(value *string)() SetGracePeriodEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetImageDisplayName(value *string)() @@ -1020,18 +1020,18 @@ type CloudPCable interface { SetManagedDeviceId(value *string)() SetManagedDeviceName(value *string)() SetOnPremisesConnectionName(value *string)() - SetOsVersion(value *CloudPcOperatingSystem)() + SetOsVersion(value *CloudPC_osVersion)() SetPartnerAgentInstallResults(value []CloudPcPartnerAgentInstallResultable)() - SetPowerState(value *CloudPcPowerState)() + SetPowerState(value *CloudPC_powerState)() SetProvisioningPolicyId(value *string)() SetProvisioningPolicyName(value *string)() - SetProvisioningType(value *CloudPcProvisioningType)() + SetProvisioningType(value *CloudPC_provisioningType)() SetScopeIds(value []string)() SetServicePlanId(value *string)() SetServicePlanName(value *string)() - SetServicePlanType(value *CloudPcServicePlanType)() + SetServicePlanType(value *CloudPC_servicePlanType)() SetStatus(value *CloudPcStatus)() SetStatusDetails(value CloudPcStatusDetailsable)() - SetUserAccountType(value *CloudPcUserAccountType)() + SetUserAccountType(value *CloudPC_userAccountType)() SetUserPrincipalName(value *string)() } diff --git a/models/cloud_p_c_disk_encryption_state.go b/models/cloud_p_c_disk_encryption_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_p_c_os_version.go b/models/cloud_p_c_os_version.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_p_c_power_state.go b/models/cloud_p_c_power_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_p_c_provisioning_type.go b/models/cloud_p_c_provisioning_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_p_c_service_plan_type.go b/models/cloud_p_c_service_plan_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_p_c_user_account_type.go b/models/cloud_p_c_user_account_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_audit_activity_operation_type.go b/models/cloud_pc_audit_activity_operation_type.go index 5519e2563ea..fabddba81e7 100644 --- a/models/cloud_pc_audit_activity_operation_type.go +++ b/models/cloud_pc_audit_activity_operation_type.go @@ -9,11 +9,11 @@ const ( CREATE_CLOUDPCAUDITACTIVITYOPERATIONTYPE CloudPcAuditActivityOperationType = iota DELETE_CLOUDPCAUDITACTIVITYOPERATIONTYPE PATCH_CLOUDPCAUDITACTIVITYOPERATIONTYPE - OTHER_CLOUDPCAUDITACTIVITYOPERATIONTYPE + UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYOPERATIONTYPE ) func (i CloudPcAuditActivityOperationType) String() string { - return []string{"create", "delete", "patch", "other"}[i] + return []string{"create", "delete", "patch", "unknownFutureValue"}[i] } func ParseCloudPcAuditActivityOperationType(v string) (any, error) { result := CREATE_CLOUDPCAUDITACTIVITYOPERATIONTYPE @@ -24,8 +24,8 @@ func ParseCloudPcAuditActivityOperationType(v string) (any, error) { result = DELETE_CLOUDPCAUDITACTIVITYOPERATIONTYPE case "patch": result = PATCH_CLOUDPCAUDITACTIVITYOPERATIONTYPE - case "other": - result = OTHER_CLOUDPCAUDITACTIVITYOPERATIONTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYOPERATIONTYPE default: return 0, errors.New("Unknown CloudPcAuditActivityOperationType value: " + v) } diff --git a/models/cloud_pc_audit_activity_result.go b/models/cloud_pc_audit_activity_result.go index 767d3abb742..7f29051b027 100644 --- a/models/cloud_pc_audit_activity_result.go +++ b/models/cloud_pc_audit_activity_result.go @@ -10,11 +10,11 @@ const ( CLIENTERROR_CLOUDPCAUDITACTIVITYRESULT FAILURE_CLOUDPCAUDITACTIVITYRESULT TIMEOUT_CLOUDPCAUDITACTIVITYRESULT - OTHER_CLOUDPCAUDITACTIVITYRESULT + UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYRESULT ) func (i CloudPcAuditActivityResult) String() string { - return []string{"success", "clientError", "failure", "timeout", "other"}[i] + return []string{"success", "clientError", "failure", "timeout", "unknownFutureValue"}[i] } func ParseCloudPcAuditActivityResult(v string) (any, error) { result := SUCCESS_CLOUDPCAUDITACTIVITYRESULT @@ -27,8 +27,8 @@ func ParseCloudPcAuditActivityResult(v string) (any, error) { result = FAILURE_CLOUDPCAUDITACTIVITYRESULT case "timeout": result = TIMEOUT_CLOUDPCAUDITACTIVITYRESULT - case "other": - result = OTHER_CLOUDPCAUDITACTIVITYRESULT + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYRESULT default: return 0, errors.New("Unknown CloudPcAuditActivityResult value: " + v) } diff --git a/models/cloud_pc_audit_actor_type.go b/models/cloud_pc_audit_actor_type.go index aef922c2fb9..135b226fecc 100644 --- a/models/cloud_pc_audit_actor_type.go +++ b/models/cloud_pc_audit_actor_type.go @@ -9,11 +9,11 @@ const ( ITPRO_CLOUDPCAUDITACTORTYPE CloudPcAuditActorType = iota APPLICATION_CLOUDPCAUDITACTORTYPE PARTNER_CLOUDPCAUDITACTORTYPE - UNKNOWN_CLOUDPCAUDITACTORTYPE + UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTORTYPE ) func (i CloudPcAuditActorType) String() string { - return []string{"itPro", "application", "partner", "unknown"}[i] + return []string{"itPro", "application", "partner", "unknownFutureValue"}[i] } func ParseCloudPcAuditActorType(v string) (any, error) { result := ITPRO_CLOUDPCAUDITACTORTYPE @@ -24,8 +24,8 @@ func ParseCloudPcAuditActorType(v string) (any, error) { result = APPLICATION_CLOUDPCAUDITACTORTYPE case "partner": result = PARTNER_CLOUDPCAUDITACTORTYPE - case "unknown": - result = UNKNOWN_CLOUDPCAUDITACTORTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTORTYPE default: return 0, errors.New("Unknown CloudPcAuditActorType value: " + v) } diff --git a/models/cloud_pc_audit_category.go b/models/cloud_pc_audit_category.go index 818ca4b5898..a271c8c92ee 100644 --- a/models/cloud_pc_audit_category.go +++ b/models/cloud_pc_audit_category.go @@ -7,19 +7,19 @@ type CloudPcAuditCategory int const ( CLOUDPC_CLOUDPCAUDITCATEGORY CloudPcAuditCategory = iota - OTHER_CLOUDPCAUDITCATEGORY + UNKNOWNFUTUREVALUE_CLOUDPCAUDITCATEGORY ) func (i CloudPcAuditCategory) String() string { - return []string{"cloudPC", "other"}[i] + return []string{"cloudPC", "unknownFutureValue"}[i] } func ParseCloudPcAuditCategory(v string) (any, error) { result := CLOUDPC_CLOUDPCAUDITCATEGORY switch v { case "cloudPC": result = CLOUDPC_CLOUDPCAUDITCATEGORY - case "other": - result = OTHER_CLOUDPCAUDITCATEGORY + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITCATEGORY default: return 0, errors.New("Unknown CloudPcAuditCategory value: " + v) } diff --git a/models/cloud_pc_bulk_action.go b/models/cloud_pc_bulk_action.go index a9951a59370..9e5b942ce6a 100644 --- a/models/cloud_pc_bulk_action.go +++ b/models/cloud_pc_bulk_action.go @@ -30,6 +30,8 @@ func CreateCloudPcBulkActionFromDiscriminatorValue(parseNode i878a80d2330e89d268 } if mappingValue != nil { switch *mappingValue { + case "#microsoft.graph.cloudPcBulkModifyDiskEncryptionType": + return NewCloudPcBulkModifyDiskEncryptionType(), nil case "#microsoft.graph.cloudPcBulkPowerOff": return NewCloudPcBulkPowerOff(), nil case "#microsoft.graph.cloudPcBulkPowerOn": diff --git a/models/cloud_pc_bulk_modify_disk_encryption_type.go b/models/cloud_pc_bulk_modify_disk_encryption_type.go new file mode 100644 index 00000000000..41d0bd27afb --- /dev/null +++ b/models/cloud_pc_bulk_modify_disk_encryption_type.go @@ -0,0 +1,78 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CloudPcBulkModifyDiskEncryptionType +type CloudPcBulkModifyDiskEncryptionType struct { + CloudPcBulkAction +} +// NewCloudPcBulkModifyDiskEncryptionType instantiates a new cloudPcBulkModifyDiskEncryptionType and sets the default values. +func NewCloudPcBulkModifyDiskEncryptionType()(*CloudPcBulkModifyDiskEncryptionType) { + m := &CloudPcBulkModifyDiskEncryptionType{ + CloudPcBulkAction: *NewCloudPcBulkAction(), + } + odataTypeValue := "#microsoft.graph.cloudPcBulkModifyDiskEncryptionType" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudPcBulkModifyDiskEncryptionTypeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcBulkModifyDiskEncryptionTypeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcBulkModifyDiskEncryptionType(), nil +} +// GetDiskEncryptionType gets the diskEncryptionType property value. The diskEncryptionType property +func (m *CloudPcBulkModifyDiskEncryptionType) GetDiskEncryptionType()(*CloudPcDiskEncryptionType) { + val, err := m.GetBackingStore().Get("diskEncryptionType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcDiskEncryptionType) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcBulkModifyDiskEncryptionType) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CloudPcBulkAction.GetFieldDeserializers() + res["diskEncryptionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcDiskEncryptionType) + if err != nil { + return err + } + if val != nil { + m.SetDiskEncryptionType(val.(*CloudPcDiskEncryptionType)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CloudPcBulkModifyDiskEncryptionType) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CloudPcBulkAction.Serialize(writer) + if err != nil { + return err + } + if m.GetDiskEncryptionType() != nil { + cast := (*m.GetDiskEncryptionType()).String() + err = writer.WriteStringValue("diskEncryptionType", &cast) + if err != nil { + return err + } + } + return nil +} +// SetDiskEncryptionType sets the diskEncryptionType property value. The diskEncryptionType property +func (m *CloudPcBulkModifyDiskEncryptionType) SetDiskEncryptionType(value *CloudPcDiskEncryptionType)() { + err := m.GetBackingStore().Set("diskEncryptionType", value) + if err != nil { + panic(err) + } +} +// CloudPcBulkModifyDiskEncryptionTypeable +type CloudPcBulkModifyDiskEncryptionTypeable interface { + CloudPcBulkActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDiskEncryptionType()(*CloudPcDiskEncryptionType) + SetDiskEncryptionType(value *CloudPcDiskEncryptionType)() +} diff --git a/models/cloud_pc_device_image.go b/models/cloud_pc_device_image.go index 2b86b317d9d..ee621ef69e1 100644 --- a/models/cloud_pc_device_image.go +++ b/models/cloud_pc_device_image.go @@ -31,6 +31,17 @@ func (m *CloudPcDeviceImage) GetDisplayName()(*string) { } return nil } +// GetErrorCode gets the errorCode property value. The errorCode property +func (m *CloudPcDeviceImage) GetErrorCode()(*CloudPcDeviceImage_errorCode) { + val, err := m.GetBackingStore().Get("errorCode") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcDeviceImage_errorCode) + } + return nil +} // GetExpirationDate gets the expirationDate property value. The date the image became unavailable. func (m *CloudPcDeviceImage) GetExpirationDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("expirationDate") @@ -55,6 +66,16 @@ func (m *CloudPcDeviceImage) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcDeviceImage_errorCode) + if err != nil { + return err + } + if val != nil { + m.SetErrorCode(val.(*CloudPcDeviceImage_errorCode)) + } + return nil + } res["expirationDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetDateOnlyValue() if err != nil { @@ -96,12 +117,12 @@ func (m *CloudPcDeviceImage) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["osStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcDeviceImageOsStatus) + val, err := n.GetEnumValue(ParseCloudPcDeviceImage_osStatus) if err != nil { return err } if val != nil { - m.SetOsStatus(val.(*CloudPcDeviceImageOsStatus)) + m.SetOsStatus(val.(*CloudPcDeviceImage_osStatus)) } return nil } @@ -132,22 +153,22 @@ func (m *CloudPcDeviceImage) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcDeviceImageStatus) + val, err := n.GetEnumValue(ParseCloudPcDeviceImage_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CloudPcDeviceImageStatus)) + m.SetStatus(val.(*CloudPcDeviceImage_status)) } return nil } res["statusDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcDeviceImageStatusDetails) + val, err := n.GetEnumValue(ParseCloudPcDeviceImage_statusDetails) if err != nil { return err } if val != nil { - m.SetStatusDetails(val.(*CloudPcDeviceImageStatusDetails)) + m.SetStatusDetails(val.(*CloudPcDeviceImage_statusDetails)) } return nil } @@ -197,13 +218,13 @@ func (m *CloudPcDeviceImage) GetOsBuildNumber()(*string) { return nil } // GetOsStatus gets the osStatus property value. The OS status of this image. Possible values are: supported, supportedWithWarning, unknownFutureValue. -func (m *CloudPcDeviceImage) GetOsStatus()(*CloudPcDeviceImageOsStatus) { +func (m *CloudPcDeviceImage) GetOsStatus()(*CloudPcDeviceImage_osStatus) { val, err := m.GetBackingStore().Get("osStatus") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcDeviceImageOsStatus) + return val.(*CloudPcDeviceImage_osStatus) } return nil } @@ -230,24 +251,24 @@ func (m *CloudPcDeviceImage) GetSourceImageResourceId()(*string) { return nil } // GetStatus gets the status property value. The status of the image on Cloud PC. Possible values are: pending, ready, failed. -func (m *CloudPcDeviceImage) GetStatus()(*CloudPcDeviceImageStatus) { +func (m *CloudPcDeviceImage) GetStatus()(*CloudPcDeviceImage_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcDeviceImageStatus) + return val.(*CloudPcDeviceImage_status) } return nil } // GetStatusDetails gets the statusDetails property value. The details of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, and sourceImageNotGeneralized. -func (m *CloudPcDeviceImage) GetStatusDetails()(*CloudPcDeviceImageStatusDetails) { +func (m *CloudPcDeviceImage) GetStatusDetails()(*CloudPcDeviceImage_statusDetails) { val, err := m.GetBackingStore().Get("statusDetails") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcDeviceImageStatusDetails) + return val.(*CloudPcDeviceImage_statusDetails) } return nil } @@ -274,6 +295,13 @@ func (m *CloudPcDeviceImage) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + if m.GetErrorCode() != nil { + cast := (*m.GetErrorCode()).String() + err = writer.WriteStringValue("errorCode", &cast) + if err != nil { + return err + } + } { err = writer.WriteDateOnlyValue("expirationDate", m.GetExpirationDate()) if err != nil { @@ -346,6 +374,13 @@ func (m *CloudPcDeviceImage) SetDisplayName(value *string)() { panic(err) } } +// SetErrorCode sets the errorCode property value. The errorCode property +func (m *CloudPcDeviceImage) SetErrorCode(value *CloudPcDeviceImage_errorCode)() { + err := m.GetBackingStore().Set("errorCode", value) + if err != nil { + panic(err) + } +} // SetExpirationDate sets the expirationDate property value. The date the image became unavailable. func (m *CloudPcDeviceImage) SetExpirationDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("expirationDate", value) @@ -375,7 +410,7 @@ func (m *CloudPcDeviceImage) SetOsBuildNumber(value *string)() { } } // SetOsStatus sets the osStatus property value. The OS status of this image. Possible values are: supported, supportedWithWarning, unknownFutureValue. -func (m *CloudPcDeviceImage) SetOsStatus(value *CloudPcDeviceImageOsStatus)() { +func (m *CloudPcDeviceImage) SetOsStatus(value *CloudPcDeviceImage_osStatus)() { err := m.GetBackingStore().Set("osStatus", value) if err != nil { panic(err) @@ -396,14 +431,14 @@ func (m *CloudPcDeviceImage) SetSourceImageResourceId(value *string)() { } } // SetStatus sets the status property value. The status of the image on Cloud PC. Possible values are: pending, ready, failed. -func (m *CloudPcDeviceImage) SetStatus(value *CloudPcDeviceImageStatus)() { +func (m *CloudPcDeviceImage) SetStatus(value *CloudPcDeviceImage_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) } } // SetStatusDetails sets the statusDetails property value. The details of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, and sourceImageNotGeneralized. -func (m *CloudPcDeviceImage) SetStatusDetails(value *CloudPcDeviceImageStatusDetails)() { +func (m *CloudPcDeviceImage) SetStatusDetails(value *CloudPcDeviceImage_statusDetails)() { err := m.GetBackingStore().Set("statusDetails", value) if err != nil { panic(err) @@ -421,25 +456,27 @@ type CloudPcDeviceImageable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) + GetErrorCode()(*CloudPcDeviceImage_errorCode) GetExpirationDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOperatingSystem()(*string) GetOsBuildNumber()(*string) - GetOsStatus()(*CloudPcDeviceImageOsStatus) + GetOsStatus()(*CloudPcDeviceImage_osStatus) GetScopeIds()([]string) GetSourceImageResourceId()(*string) - GetStatus()(*CloudPcDeviceImageStatus) - GetStatusDetails()(*CloudPcDeviceImageStatusDetails) + GetStatus()(*CloudPcDeviceImage_status) + GetStatusDetails()(*CloudPcDeviceImage_statusDetails) GetVersion()(*string) SetDisplayName(value *string)() + SetErrorCode(value *CloudPcDeviceImage_errorCode)() SetExpirationDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOperatingSystem(value *string)() SetOsBuildNumber(value *string)() - SetOsStatus(value *CloudPcDeviceImageOsStatus)() + SetOsStatus(value *CloudPcDeviceImage_osStatus)() SetScopeIds(value []string)() SetSourceImageResourceId(value *string)() - SetStatus(value *CloudPcDeviceImageStatus)() - SetStatusDetails(value *CloudPcDeviceImageStatusDetails)() + SetStatus(value *CloudPcDeviceImage_status)() + SetStatusDetails(value *CloudPcDeviceImage_statusDetails)() SetVersion(value *string)() } diff --git a/models/cloud_pc_device_image_error_code.go b/models/cloud_pc_device_image_error_code.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_device_image_os_status.go b/models/cloud_pc_device_image_os_status.go index b860d79361d..e69de29bb2d 100644 --- a/models/cloud_pc_device_image_os_status.go +++ b/models/cloud_pc_device_image_os_status.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcDeviceImageOsStatus int - -const ( - SUPPORTED_CLOUDPCDEVICEIMAGEOSSTATUS CloudPcDeviceImageOsStatus = iota - SUPPORTEDWITHWARNING_CLOUDPCDEVICEIMAGEOSSTATUS - UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGEOSSTATUS -) - -func (i CloudPcDeviceImageOsStatus) String() string { - return []string{"supported", "supportedWithWarning", "unknownFutureValue"}[i] -} -func ParseCloudPcDeviceImageOsStatus(v string) (any, error) { - result := SUPPORTED_CLOUDPCDEVICEIMAGEOSSTATUS - switch v { - case "supported": - result = SUPPORTED_CLOUDPCDEVICEIMAGEOSSTATUS - case "supportedWithWarning": - result = SUPPORTEDWITHWARNING_CLOUDPCDEVICEIMAGEOSSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGEOSSTATUS - default: - return 0, errors.New("Unknown CloudPcDeviceImageOsStatus value: " + v) - } - return &result, nil -} -func SerializeCloudPcDeviceImageOsStatus(values []CloudPcDeviceImageOsStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcDeviceImageOsStatus) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_device_image_status.go b/models/cloud_pc_device_image_status.go index 29c2e9c4dc3..e69de29bb2d 100644 --- a/models/cloud_pc_device_image_status.go +++ b/models/cloud_pc_device_image_status.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcDeviceImageStatus int - -const ( - PENDING_CLOUDPCDEVICEIMAGESTATUS CloudPcDeviceImageStatus = iota - READY_CLOUDPCDEVICEIMAGESTATUS - FAILED_CLOUDPCDEVICEIMAGESTATUS -) - -func (i CloudPcDeviceImageStatus) String() string { - return []string{"pending", "ready", "failed"}[i] -} -func ParseCloudPcDeviceImageStatus(v string) (any, error) { - result := PENDING_CLOUDPCDEVICEIMAGESTATUS - switch v { - case "pending": - result = PENDING_CLOUDPCDEVICEIMAGESTATUS - case "ready": - result = READY_CLOUDPCDEVICEIMAGESTATUS - case "failed": - result = FAILED_CLOUDPCDEVICEIMAGESTATUS - default: - return 0, errors.New("Unknown CloudPcDeviceImageStatus value: " + v) - } - return &result, nil -} -func SerializeCloudPcDeviceImageStatus(values []CloudPcDeviceImageStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcDeviceImageStatus) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_device_image_status_details.go b/models/cloud_pc_device_image_status_details.go index 1acf44d5974..e69de29bb2d 100644 --- a/models/cloud_pc_device_image_status_details.go +++ b/models/cloud_pc_device_image_status_details.go @@ -1,61 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcDeviceImageStatusDetails int - -const ( - INTERNALSERVERERROR_CLOUDPCDEVICEIMAGESTATUSDETAILS CloudPcDeviceImageStatusDetails = iota - SOURCEIMAGENOTFOUND_CLOUDPCDEVICEIMAGESTATUSDETAILS - OSVERSIONNOTSUPPORTED_CLOUDPCDEVICEIMAGESTATUSDETAILS - SOURCEIMAGEINVALID_CLOUDPCDEVICEIMAGESTATUSDETAILS - SOURCEIMAGENOTGENERALIZED_CLOUDPCDEVICEIMAGESTATUSDETAILS - UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGESTATUSDETAILS - VMALREADYAZUREADJOINED_CLOUDPCDEVICEIMAGESTATUSDETAILS - PAIDSOURCEIMAGENOTSUPPORT_CLOUDPCDEVICEIMAGESTATUSDETAILS - SOURCEIMAGENOTSUPPORTCUSTOMIZEVMNAME_CLOUDPCDEVICEIMAGESTATUSDETAILS - SOURCEIMAGESIZEEXCEEDSLIMITATION_CLOUDPCDEVICEIMAGESTATUSDETAILS -) - -func (i CloudPcDeviceImageStatusDetails) String() string { - return []string{"internalServerError", "sourceImageNotFound", "osVersionNotSupported", "sourceImageInvalid", "sourceImageNotGeneralized", "unknownFutureValue", "vmAlreadyAzureAdjoined", "paidSourceImageNotSupport", "sourceImageNotSupportCustomizeVMName", "sourceImageSizeExceedsLimitation"}[i] -} -func ParseCloudPcDeviceImageStatusDetails(v string) (any, error) { - result := INTERNALSERVERERROR_CLOUDPCDEVICEIMAGESTATUSDETAILS - switch v { - case "internalServerError": - result = INTERNALSERVERERROR_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "sourceImageNotFound": - result = SOURCEIMAGENOTFOUND_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "osVersionNotSupported": - result = OSVERSIONNOTSUPPORTED_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "sourceImageInvalid": - result = SOURCEIMAGEINVALID_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "sourceImageNotGeneralized": - result = SOURCEIMAGENOTGENERALIZED_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "vmAlreadyAzureAdjoined": - result = VMALREADYAZUREADJOINED_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "paidSourceImageNotSupport": - result = PAIDSOURCEIMAGENOTSUPPORT_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "sourceImageNotSupportCustomizeVMName": - result = SOURCEIMAGENOTSUPPORTCUSTOMIZEVMNAME_CLOUDPCDEVICEIMAGESTATUSDETAILS - case "sourceImageSizeExceedsLimitation": - result = SOURCEIMAGESIZEEXCEEDSLIMITATION_CLOUDPCDEVICEIMAGESTATUSDETAILS - default: - return 0, errors.New("Unknown CloudPcDeviceImageStatusDetails value: " + v) - } - return &result, nil -} -func SerializeCloudPcDeviceImageStatusDetails(values []CloudPcDeviceImageStatusDetails) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcDeviceImageStatusDetails) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_disk_encryption_state.go b/models/cloud_pc_disk_encryption_state.go deleted file mode 100644 index ac844f5af33..00000000000 --- a/models/cloud_pc_disk_encryption_state.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcDiskEncryptionState int - -const ( - NOTAVAILABLE_CLOUDPCDISKENCRYPTIONSTATE CloudPcDiskEncryptionState = iota - NOTENCRYPTED_CLOUDPCDISKENCRYPTIONSTATE - ENCRYPTEDUSINGPLATFORMMANAGEDKEY_CLOUDPCDISKENCRYPTIONSTATE - ENCRYPTEDUSINGCUSTOMERMANAGEDKEY_CLOUDPCDISKENCRYPTIONSTATE - UNKNOWNFUTUREVALUE_CLOUDPCDISKENCRYPTIONSTATE -) - -func (i CloudPcDiskEncryptionState) String() string { - return []string{"notAvailable", "notEncrypted", "encryptedUsingPlatformManagedKey", "encryptedUsingCustomerManagedKey", "unknownFutureValue"}[i] -} -func ParseCloudPcDiskEncryptionState(v string) (any, error) { - result := NOTAVAILABLE_CLOUDPCDISKENCRYPTIONSTATE - switch v { - case "notAvailable": - result = NOTAVAILABLE_CLOUDPCDISKENCRYPTIONSTATE - case "notEncrypted": - result = NOTENCRYPTED_CLOUDPCDISKENCRYPTIONSTATE - case "encryptedUsingPlatformManagedKey": - result = ENCRYPTEDUSINGPLATFORMMANAGEDKEY_CLOUDPCDISKENCRYPTIONSTATE - case "encryptedUsingCustomerManagedKey": - result = ENCRYPTEDUSINGCUSTOMERMANAGEDKEY_CLOUDPCDISKENCRYPTIONSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCDISKENCRYPTIONSTATE - default: - return 0, errors.New("Unknown CloudPcDiskEncryptionState value: " + v) - } - return &result, nil -} -func SerializeCloudPcDiskEncryptionState(values []CloudPcDiskEncryptionState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcDiskEncryptionState) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_domain_join_configuration.go b/models/cloud_pc_domain_join_configuration.go index 17d5e32cdf1..1e17b8caebe 100644 --- a/models/cloud_pc_domain_join_configuration.go +++ b/models/cloud_pc_domain_join_configuration.go @@ -38,9 +38,30 @@ func (m *CloudPcDomainJoinConfiguration) GetAdditionalData()(map[string]any) { func (m *CloudPcDomainJoinConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetDomainJoinType gets the domainJoinType property value. The domainJoinType property +func (m *CloudPcDomainJoinConfiguration) GetDomainJoinType()(*CloudPcDomainJoinConfiguration_domainJoinType) { + val, err := m.GetBackingStore().Get("domainJoinType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcDomainJoinConfiguration_domainJoinType) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *CloudPcDomainJoinConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["domainJoinType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcDomainJoinConfiguration_domainJoinType) + if err != nil { + return err + } + if val != nil { + m.SetDomainJoinType(val.(*CloudPcDomainJoinConfiguration_domainJoinType)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -62,12 +83,12 @@ func (m *CloudPcDomainJoinConfiguration) GetFieldDeserializers()(map[string]func return nil } res["regionGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcRegionGroup) + val, err := n.GetEnumValue(ParseCloudPcDomainJoinConfiguration_regionGroup) if err != nil { return err } if val != nil { - m.SetRegionGroup(val.(*CloudPcRegionGroup)) + m.SetRegionGroup(val.(*CloudPcDomainJoinConfiguration_regionGroup)) } return nil } @@ -82,12 +103,12 @@ func (m *CloudPcDomainJoinConfiguration) GetFieldDeserializers()(map[string]func return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcDomainJoinType) + val, err := n.GetEnumValue(ParseCloudPcDomainJoinConfiguration_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*CloudPcDomainJoinType)) + m.SetTypeEscaped(val.(*CloudPcDomainJoinConfiguration_type)) } return nil } @@ -116,13 +137,13 @@ func (m *CloudPcDomainJoinConfiguration) GetOnPremisesConnectionId()(*string) { return nil } // GetRegionGroup gets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when provisioning a Cloud PC, and the Cloud PC will be put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, and southKorea. Read-only. -func (m *CloudPcDomainJoinConfiguration) GetRegionGroup()(*CloudPcRegionGroup) { +func (m *CloudPcDomainJoinConfiguration) GetRegionGroup()(*CloudPcDomainJoinConfiguration_regionGroup) { val, err := m.GetBackingStore().Get("regionGroup") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcRegionGroup) + return val.(*CloudPcDomainJoinConfiguration_regionGroup) } return nil } @@ -138,18 +159,25 @@ func (m *CloudPcDomainJoinConfiguration) GetRegionName()(*string) { return nil } // GetTypeEscaped gets the type property value. Specifies how the provisioned Cloud PC will be joined to Microsoft Entra ID. If you choose the hybridAzureADJoin type, only provide a value for the onPremisesConnectionId property and leave regionName as empty. If you choose the azureADJoin type, provide a value for either onPremisesConnectionId or regionName. The possible values are: azureADJoin, hybridAzureADJoin, unknownFutureValue. -func (m *CloudPcDomainJoinConfiguration) GetTypeEscaped()(*CloudPcDomainJoinType) { +func (m *CloudPcDomainJoinConfiguration) GetTypeEscaped()(*CloudPcDomainJoinConfiguration_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcDomainJoinType) + return val.(*CloudPcDomainJoinConfiguration_type) } return nil } // Serialize serializes information the current object func (m *CloudPcDomainJoinConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetDomainJoinType() != nil { + cast := (*m.GetDomainJoinType()).String() + err := writer.WriteStringValue("domainJoinType", &cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -201,6 +229,13 @@ func (m *CloudPcDomainJoinConfiguration) SetAdditionalData(value map[string]any) func (m *CloudPcDomainJoinConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetDomainJoinType sets the domainJoinType property value. The domainJoinType property +func (m *CloudPcDomainJoinConfiguration) SetDomainJoinType(value *CloudPcDomainJoinConfiguration_domainJoinType)() { + err := m.GetBackingStore().Set("domainJoinType", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *CloudPcDomainJoinConfiguration) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -216,7 +251,7 @@ func (m *CloudPcDomainJoinConfiguration) SetOnPremisesConnectionId(value *string } } // SetRegionGroup sets the regionGroup property value. The logical geographic group this region belongs to. Multiple regions can belong to one region group. A customer can select a regionGroup when provisioning a Cloud PC, and the Cloud PC will be put in one of the regions in the group based on resource status. For example, the Europe region group contains the Northern Europe and Western Europe regions. Possible values are: default, australia, canada, usCentral, usEast, usWest, france, germany, europeUnion, unitedKingdom, japan, asia, india, southAmerica, euap, usGovernment, usGovernmentDOD, unknownFutureValue, norway, switzerland, and southKorea. Read-only. -func (m *CloudPcDomainJoinConfiguration) SetRegionGroup(value *CloudPcRegionGroup)() { +func (m *CloudPcDomainJoinConfiguration) SetRegionGroup(value *CloudPcDomainJoinConfiguration_regionGroup)() { err := m.GetBackingStore().Set("regionGroup", value) if err != nil { panic(err) @@ -230,7 +265,7 @@ func (m *CloudPcDomainJoinConfiguration) SetRegionName(value *string)() { } } // SetTypeEscaped sets the type property value. Specifies how the provisioned Cloud PC will be joined to Microsoft Entra ID. If you choose the hybridAzureADJoin type, only provide a value for the onPremisesConnectionId property and leave regionName as empty. If you choose the azureADJoin type, provide a value for either onPremisesConnectionId or regionName. The possible values are: azureADJoin, hybridAzureADJoin, unknownFutureValue. -func (m *CloudPcDomainJoinConfiguration) SetTypeEscaped(value *CloudPcDomainJoinType)() { +func (m *CloudPcDomainJoinConfiguration) SetTypeEscaped(value *CloudPcDomainJoinConfiguration_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -242,15 +277,17 @@ type CloudPcDomainJoinConfigurationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDomainJoinType()(*CloudPcDomainJoinConfiguration_domainJoinType) GetOdataType()(*string) GetOnPremisesConnectionId()(*string) - GetRegionGroup()(*CloudPcRegionGroup) + GetRegionGroup()(*CloudPcDomainJoinConfiguration_regionGroup) GetRegionName()(*string) - GetTypeEscaped()(*CloudPcDomainJoinType) + GetTypeEscaped()(*CloudPcDomainJoinConfiguration_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDomainJoinType(value *CloudPcDomainJoinConfiguration_domainJoinType)() SetOdataType(value *string)() SetOnPremisesConnectionId(value *string)() - SetRegionGroup(value *CloudPcRegionGroup)() + SetRegionGroup(value *CloudPcDomainJoinConfiguration_regionGroup)() SetRegionName(value *string)() - SetTypeEscaped(value *CloudPcDomainJoinType)() + SetTypeEscaped(value *CloudPcDomainJoinConfiguration_type)() } diff --git a/models/cloud_pc_domain_join_configuration_domain_join_type.go b/models/cloud_pc_domain_join_configuration_domain_join_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_domain_join_configuration_region_group.go b/models/cloud_pc_domain_join_configuration_region_group.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_domain_join_configuration_type.go b/models/cloud_pc_domain_join_configuration_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_domain_join_type.go b/models/cloud_pc_domain_join_type.go deleted file mode 100644 index 5b9b1730e5a..00000000000 --- a/models/cloud_pc_domain_join_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcDomainJoinType int - -const ( - AZUREADJOIN_CLOUDPCDOMAINJOINTYPE CloudPcDomainJoinType = iota - HYBRIDAZUREADJOIN_CLOUDPCDOMAINJOINTYPE - UNKNOWNFUTUREVALUE_CLOUDPCDOMAINJOINTYPE -) - -func (i CloudPcDomainJoinType) String() string { - return []string{"azureADJoin", "hybridAzureADJoin", "unknownFutureValue"}[i] -} -func ParseCloudPcDomainJoinType(v string) (any, error) { - result := AZUREADJOIN_CLOUDPCDOMAINJOINTYPE - switch v { - case "azureADJoin": - result = AZUREADJOIN_CLOUDPCDOMAINJOINTYPE - case "hybridAzureADJoin": - result = HYBRIDAZUREADJOIN_CLOUDPCDOMAINJOINTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCDOMAINJOINTYPE - default: - return 0, errors.New("Unknown CloudPcDomainJoinType value: " + v) - } - return &result, nil -} -func SerializeCloudPcDomainJoinType(values []CloudPcDomainJoinType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcDomainJoinType) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_export_job.go b/models/cloud_pc_export_job.go index dbc40dfed9f..3b2f13159e0 100644 --- a/models/cloud_pc_export_job.go +++ b/models/cloud_pc_export_job.go @@ -32,13 +32,13 @@ func (m *CloudPcExportJob) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3a return nil } // GetExportJobStatus gets the exportJobStatus property value. The status of the export job. The possible values are: notStarted, inProgress, completed, unknownFutureValue. Read-only. -func (m *CloudPcExportJob) GetExportJobStatus()(*CloudPcExportJobStatus) { +func (m *CloudPcExportJob) GetExportJobStatus()(*CloudPcExportJob_exportJobStatus) { val, err := m.GetBackingStore().Get("exportJobStatus") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcExportJobStatus) + return val.(*CloudPcExportJob_exportJobStatus) } return nil } @@ -67,12 +67,12 @@ func (m *CloudPcExportJob) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["exportJobStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcExportJobStatus) + val, err := n.GetEnumValue(ParseCloudPcExportJob_exportJobStatus) if err != nil { return err } if val != nil { - m.SetExportJobStatus(val.(*CloudPcExportJobStatus)) + m.SetExportJobStatus(val.(*CloudPcExportJob_exportJobStatus)) } return nil } @@ -107,12 +107,12 @@ func (m *CloudPcExportJob) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["reportName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcReportName) + val, err := n.GetEnumValue(ParseCloudPcExportJob_reportName) if err != nil { return err } if val != nil { - m.SetReportName(val.(*CloudPcReportName)) + m.SetReportName(val.(*CloudPcExportJob_reportName)) } return nil } @@ -167,13 +167,13 @@ func (m *CloudPcExportJob) GetFormat()(*string) { return nil } // GetReportName gets the reportName property value. The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport, unknownFutureValue, noLicenseAvailableConnectivityFailureReport, frontlineLicenseUsageReport, frontlineLicenseUsageRealTimeReport, remoteConnectionQualityReports, inaccessibleCloudPcReports, rawRemoteConnectionReports. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: noLicenseAvailableConnectivityFailureReport, frontlineLicenseUsageReport, frontlineLicenseUsageRealTimeReport, remoteConnectionQualityReports, inaccessibleCloudPcReports, rawRemoteConnectionReports. -func (m *CloudPcExportJob) GetReportName()(*CloudPcReportName) { +func (m *CloudPcExportJob) GetReportName()(*CloudPcExportJob_reportName) { val, err := m.GetBackingStore().Get("reportName") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcReportName) + return val.(*CloudPcExportJob_reportName) } return nil } @@ -265,7 +265,7 @@ func (m *CloudPcExportJob) SetExpirationDateTime(value *i336074805fc853987abe6f7 } } // SetExportJobStatus sets the exportJobStatus property value. The status of the export job. The possible values are: notStarted, inProgress, completed, unknownFutureValue. Read-only. -func (m *CloudPcExportJob) SetExportJobStatus(value *CloudPcExportJobStatus)() { +func (m *CloudPcExportJob) SetExportJobStatus(value *CloudPcExportJob_exportJobStatus)() { err := m.GetBackingStore().Set("exportJobStatus", value) if err != nil { panic(err) @@ -293,7 +293,7 @@ func (m *CloudPcExportJob) SetFormat(value *string)() { } } // SetReportName sets the reportName property value. The report name. The possible values are: remoteConnectionHistoricalReports, dailyAggregatedRemoteConnectionReports, totalAggregatedRemoteConnectionReports, sharedUseLicenseUsageReport, sharedUseLicenseUsageRealTimeReport, unknownFutureValue, noLicenseAvailableConnectivityFailureReport, frontlineLicenseUsageReport, frontlineLicenseUsageRealTimeReport, remoteConnectionQualityReports, inaccessibleCloudPcReports, rawRemoteConnectionReports. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: noLicenseAvailableConnectivityFailureReport, frontlineLicenseUsageReport, frontlineLicenseUsageRealTimeReport, remoteConnectionQualityReports, inaccessibleCloudPcReports, rawRemoteConnectionReports. -func (m *CloudPcExportJob) SetReportName(value *CloudPcReportName)() { +func (m *CloudPcExportJob) SetReportName(value *CloudPcExportJob_reportName)() { err := m.GetBackingStore().Set("reportName", value) if err != nil { panic(err) @@ -318,19 +318,19 @@ type CloudPcExportJobable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetExportJobStatus()(*CloudPcExportJobStatus) + GetExportJobStatus()(*CloudPcExportJob_exportJobStatus) GetExportUrl()(*string) GetFilter()(*string) GetFormat()(*string) - GetReportName()(*CloudPcReportName) + GetReportName()(*CloudPcExportJob_reportName) GetRequestDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSelectEscaped()([]string) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetExportJobStatus(value *CloudPcExportJobStatus)() + SetExportJobStatus(value *CloudPcExportJob_exportJobStatus)() SetExportUrl(value *string)() SetFilter(value *string)() SetFormat(value *string)() - SetReportName(value *CloudPcReportName)() + SetReportName(value *CloudPcExportJob_reportName)() SetRequestDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSelectEscaped(value []string)() } diff --git a/models/cloud_pc_export_job_export_job_status.go b/models/cloud_pc_export_job_export_job_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_export_job_report_name.go b/models/cloud_pc_export_job_report_name.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_export_job_status.go b/models/cloud_pc_export_job_status.go deleted file mode 100644 index a7caa79834f..00000000000 --- a/models/cloud_pc_export_job_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcExportJobStatus int - -const ( - NOTSTARTED_CLOUDPCEXPORTJOBSTATUS CloudPcExportJobStatus = iota - INPROGRESS_CLOUDPCEXPORTJOBSTATUS - COMPLETED_CLOUDPCEXPORTJOBSTATUS - FAILED_CLOUDPCEXPORTJOBSTATUS - UNKNOWNFUTUREVALUE_CLOUDPCEXPORTJOBSTATUS -) - -func (i CloudPcExportJobStatus) String() string { - return []string{"notStarted", "inProgress", "completed", "failed", "unknownFutureValue"}[i] -} -func ParseCloudPcExportJobStatus(v string) (any, error) { - result := NOTSTARTED_CLOUDPCEXPORTJOBSTATUS - switch v { - case "notStarted": - result = NOTSTARTED_CLOUDPCEXPORTJOBSTATUS - case "inProgress": - result = INPROGRESS_CLOUDPCEXPORTJOBSTATUS - case "completed": - result = COMPLETED_CLOUDPCEXPORTJOBSTATUS - case "failed": - result = FAILED_CLOUDPCEXPORTJOBSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCEXPORTJOBSTATUS - default: - return 0, errors.New("Unknown CloudPcExportJobStatus value: " + v) - } - return &result, nil -} -func SerializeCloudPcExportJobStatus(values []CloudPcExportJobStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcExportJobStatus) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_gallery_image.go b/models/cloud_pc_gallery_image.go index d0e6b1564ff..bfab8071312 100644 --- a/models/cloud_pc_gallery_image.go +++ b/models/cloud_pc_gallery_image.go @@ -105,6 +105,16 @@ func (m *CloudPcGalleryImage) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["offerName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOfferName(val) + } + return nil + } res["publisher"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -115,6 +125,16 @@ func (m *CloudPcGalleryImage) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["publisherName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPublisherName(val) + } + return nil + } res["recommendedSku"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -155,6 +175,16 @@ func (m *CloudPcGalleryImage) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["skuName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSkuName(val) + } + return nil + } res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetDateOnlyValue() if err != nil { @@ -166,12 +196,12 @@ func (m *CloudPcGalleryImage) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcGalleryImageStatus) + val, err := n.GetEnumValue(ParseCloudPcGalleryImage_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CloudPcGalleryImageStatus)) + m.SetStatus(val.(*CloudPcGalleryImage_status)) } return nil } @@ -199,6 +229,17 @@ func (m *CloudPcGalleryImage) GetOfferDisplayName()(*string) { } return nil } +// GetOfferName gets the offerName property value. The offerName property +func (m *CloudPcGalleryImage) GetOfferName()(*string) { + val, err := m.GetBackingStore().Get("offerName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPublisher gets the publisher property value. The publisher name of the gallery image. This value is passed to Azure to get the image resource. Read-only. func (m *CloudPcGalleryImage) GetPublisher()(*string) { val, err := m.GetBackingStore().Get("publisher") @@ -210,6 +251,17 @@ func (m *CloudPcGalleryImage) GetPublisher()(*string) { } return nil } +// GetPublisherName gets the publisherName property value. The publisherName property +func (m *CloudPcGalleryImage) GetPublisherName()(*string) { + val, err := m.GetBackingStore().Get("publisherName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRecommendedSku gets the recommendedSku property value. Recommended Cloud PC SKU for this gallery image. Read-only. func (m *CloudPcGalleryImage) GetRecommendedSku()(*string) { val, err := m.GetBackingStore().Get("recommendedSku") @@ -254,6 +306,17 @@ func (m *CloudPcGalleryImage) GetSkuDisplayName()(*string) { } return nil } +// GetSkuName gets the skuName property value. The skuName property +func (m *CloudPcGalleryImage) GetSkuName()(*string) { + val, err := m.GetBackingStore().Get("skuName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetStartDate gets the startDate property value. The date when the image becomes available. Read-only. func (m *CloudPcGalleryImage) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("startDate") @@ -266,13 +329,13 @@ func (m *CloudPcGalleryImage) GetStartDate()(*i878a80d2330e89d26896388a3f487eef2 return nil } // GetStatus gets the status property value. The status of the gallery image on the Cloud PC. Possible values are: supported, supportedWithWarning, notSupported, unknownFutureValue. Read-only. -func (m *CloudPcGalleryImage) GetStatus()(*CloudPcGalleryImageStatus) { +func (m *CloudPcGalleryImage) GetStatus()(*CloudPcGalleryImage_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcGalleryImageStatus) + return val.(*CloudPcGalleryImage_status) } return nil } @@ -312,12 +375,24 @@ func (m *CloudPcGalleryImage) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("offerName", m.GetOfferName()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("publisher", m.GetPublisher()) if err != nil { return err } } + { + err = writer.WriteStringValue("publisherName", m.GetPublisherName()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("recommendedSku", m.GetRecommendedSku()) if err != nil { @@ -342,6 +417,12 @@ func (m *CloudPcGalleryImage) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("skuName", m.GetSkuName()) + if err != nil { + return err + } + } { err = writer.WriteDateOnlyValue("startDate", m.GetStartDate()) if err != nil { @@ -392,6 +473,13 @@ func (m *CloudPcGalleryImage) SetOfferDisplayName(value *string)() { panic(err) } } +// SetOfferName sets the offerName property value. The offerName property +func (m *CloudPcGalleryImage) SetOfferName(value *string)() { + err := m.GetBackingStore().Set("offerName", value) + if err != nil { + panic(err) + } +} // SetPublisher sets the publisher property value. The publisher name of the gallery image. This value is passed to Azure to get the image resource. Read-only. func (m *CloudPcGalleryImage) SetPublisher(value *string)() { err := m.GetBackingStore().Set("publisher", value) @@ -399,6 +487,13 @@ func (m *CloudPcGalleryImage) SetPublisher(value *string)() { panic(err) } } +// SetPublisherName sets the publisherName property value. The publisherName property +func (m *CloudPcGalleryImage) SetPublisherName(value *string)() { + err := m.GetBackingStore().Set("publisherName", value) + if err != nil { + panic(err) + } +} // SetRecommendedSku sets the recommendedSku property value. Recommended Cloud PC SKU for this gallery image. Read-only. func (m *CloudPcGalleryImage) SetRecommendedSku(value *string)() { err := m.GetBackingStore().Set("recommendedSku", value) @@ -427,6 +522,13 @@ func (m *CloudPcGalleryImage) SetSkuDisplayName(value *string)() { panic(err) } } +// SetSkuName sets the skuName property value. The skuName property +func (m *CloudPcGalleryImage) SetSkuName(value *string)() { + err := m.GetBackingStore().Set("skuName", value) + if err != nil { + panic(err) + } +} // SetStartDate sets the startDate property value. The date when the image becomes available. Read-only. func (m *CloudPcGalleryImage) SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("startDate", value) @@ -435,7 +537,7 @@ func (m *CloudPcGalleryImage) SetStartDate(value *i878a80d2330e89d26896388a3f487 } } // SetStatus sets the status property value. The status of the gallery image on the Cloud PC. Possible values are: supported, supportedWithWarning, notSupported, unknownFutureValue. Read-only. -func (m *CloudPcGalleryImage) SetStatus(value *CloudPcGalleryImageStatus)() { +func (m *CloudPcGalleryImage) SetStatus(value *CloudPcGalleryImage_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -450,23 +552,29 @@ type CloudPcGalleryImageable interface { GetExpirationDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetOffer()(*string) GetOfferDisplayName()(*string) + GetOfferName()(*string) GetPublisher()(*string) + GetPublisherName()(*string) GetRecommendedSku()(*string) GetSizeInGB()(*int32) GetSku()(*string) GetSkuDisplayName()(*string) + GetSkuName()(*string) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) - GetStatus()(*CloudPcGalleryImageStatus) + GetStatus()(*CloudPcGalleryImage_status) SetDisplayName(value *string)() SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetExpirationDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetOffer(value *string)() SetOfferDisplayName(value *string)() + SetOfferName(value *string)() SetPublisher(value *string)() + SetPublisherName(value *string)() SetRecommendedSku(value *string)() SetSizeInGB(value *int32)() SetSku(value *string)() SetSkuDisplayName(value *string)() + SetSkuName(value *string)() SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() - SetStatus(value *CloudPcGalleryImageStatus)() + SetStatus(value *CloudPcGalleryImage_status)() } diff --git a/models/cloud_pc_gallery_image_status.go b/models/cloud_pc_gallery_image_status.go index 24caafff6de..e69de29bb2d 100644 --- a/models/cloud_pc_gallery_image_status.go +++ b/models/cloud_pc_gallery_image_status.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcGalleryImageStatus int - -const ( - SUPPORTED_CLOUDPCGALLERYIMAGESTATUS CloudPcGalleryImageStatus = iota - SUPPORTEDWITHWARNING_CLOUDPCGALLERYIMAGESTATUS - NOTSUPPORTED_CLOUDPCGALLERYIMAGESTATUS - UNKNOWNFUTUREVALUE_CLOUDPCGALLERYIMAGESTATUS -) - -func (i CloudPcGalleryImageStatus) String() string { - return []string{"supported", "supportedWithWarning", "notSupported", "unknownFutureValue"}[i] -} -func ParseCloudPcGalleryImageStatus(v string) (any, error) { - result := SUPPORTED_CLOUDPCGALLERYIMAGESTATUS - switch v { - case "supported": - result = SUPPORTED_CLOUDPCGALLERYIMAGESTATUS - case "supportedWithWarning": - result = SUPPORTEDWITHWARNING_CLOUDPCGALLERYIMAGESTATUS - case "notSupported": - result = NOTSUPPORTED_CLOUDPCGALLERYIMAGESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCGALLERYIMAGESTATUS - default: - return 0, errors.New("Unknown CloudPcGalleryImageStatus value: " + v) - } - return &result, nil -} -func SerializeCloudPcGalleryImageStatus(values []CloudPcGalleryImageStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcGalleryImageStatus) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_on_premises_connection.go b/models/cloud_pc_on_premises_connection.go index 333f63afec7..273506b4076 100644 --- a/models/cloud_pc_on_premises_connection.go +++ b/models/cloud_pc_on_premises_connection.go @@ -63,6 +63,17 @@ func (m *CloudPcOnPremisesConnection) GetAlternateResourceUrl()(*string) { } return nil } +// GetConnectionType gets the connectionType property value. The connectionType property +func (m *CloudPcOnPremisesConnection) GetConnectionType()(*CloudPcOnPremisesConnection_connectionType) { + val, err := m.GetBackingStore().Get("connectionType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcOnPremisesConnection_connectionType) + } + return nil +} // GetDisplayName gets the displayName property value. The display name for the Azure network connection. func (m *CloudPcOnPremisesConnection) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -117,6 +128,16 @@ func (m *CloudPcOnPremisesConnection) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["connectionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcOnPremisesConnection_connectionType) + if err != nil { + return err + } + if val != nil { + m.SetConnectionType(val.(*CloudPcOnPremisesConnection_connectionType)) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -137,6 +158,16 @@ func (m *CloudPcOnPremisesConnection) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["healthCheckStatusDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCloudPcOnPremisesConnectionStatusDetailFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetHealthCheckStatusDetail(val.(CloudPcOnPremisesConnectionStatusDetailable)) + } + return nil + } res["healthCheckStatusDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateCloudPcOnPremisesConnectionStatusDetailsFromDiscriminatorValue) if err != nil { @@ -234,12 +265,12 @@ func (m *CloudPcOnPremisesConnection) GetFieldDeserializers()(map[string]func(i8 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcOnPremisesConnectionType) + val, err := n.GetEnumValue(ParseCloudPcOnPremisesConnection_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*CloudPcOnPremisesConnectionType)) + m.SetTypeEscaped(val.(*CloudPcOnPremisesConnection_type)) } return nil } @@ -276,6 +307,17 @@ func (m *CloudPcOnPremisesConnection) GetHealthCheckStatus()(*CloudPcOnPremisesC } return nil } +// GetHealthCheckStatusDetail gets the healthCheckStatusDetail property value. The healthCheckStatusDetail property +func (m *CloudPcOnPremisesConnection) GetHealthCheckStatusDetail()(CloudPcOnPremisesConnectionStatusDetailable) { + val, err := m.GetBackingStore().Get("healthCheckStatusDetail") + if err != nil { + panic(err) + } + if val != nil { + return val.(CloudPcOnPremisesConnectionStatusDetailable) + } + return nil +} // GetHealthCheckStatusDetails gets the healthCheckStatusDetails property value. The details of the connection's health checks and the corresponding results. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetails. Read-only. func (m *CloudPcOnPremisesConnection) GetHealthCheckStatusDetails()(CloudPcOnPremisesConnectionStatusDetailsable) { val, err := m.GetBackingStore().Get("healthCheckStatusDetails") @@ -376,13 +418,13 @@ func (m *CloudPcOnPremisesConnection) GetSubscriptionName()(*string) { return nil } // GetTypeEscaped gets the type property value. Specifies how the provisioned Cloud PC is joined to Microsoft Entra ID. Default value is hybridAzureADJoin. Possible values are: azureADJoin, hybridAzureADJoin, unknownFutureValue. -func (m *CloudPcOnPremisesConnection) GetTypeEscaped()(*CloudPcOnPremisesConnectionType) { +func (m *CloudPcOnPremisesConnection) GetTypeEscaped()(*CloudPcOnPremisesConnection_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcOnPremisesConnectionType) + return val.(*CloudPcOnPremisesConnection_type) } return nil } @@ -438,6 +480,13 @@ func (m *CloudPcOnPremisesConnection) Serialize(writer i878a80d2330e89d26896388a return err } } + if m.GetConnectionType() != nil { + cast := (*m.GetConnectionType()).String() + err = writer.WriteStringValue("connectionType", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -451,6 +500,12 @@ func (m *CloudPcOnPremisesConnection) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteObjectValue("healthCheckStatusDetail", m.GetHealthCheckStatusDetail()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("healthCheckStatusDetails", m.GetHealthCheckStatusDetails()) if err != nil { @@ -555,6 +610,13 @@ func (m *CloudPcOnPremisesConnection) SetAlternateResourceUrl(value *string)() { panic(err) } } +// SetConnectionType sets the connectionType property value. The connectionType property +func (m *CloudPcOnPremisesConnection) SetConnectionType(value *CloudPcOnPremisesConnection_connectionType)() { + err := m.GetBackingStore().Set("connectionType", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The display name for the Azure network connection. func (m *CloudPcOnPremisesConnection) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -569,6 +631,13 @@ func (m *CloudPcOnPremisesConnection) SetHealthCheckStatus(value *CloudPcOnPremi panic(err) } } +// SetHealthCheckStatusDetail sets the healthCheckStatusDetail property value. The healthCheckStatusDetail property +func (m *CloudPcOnPremisesConnection) SetHealthCheckStatusDetail(value CloudPcOnPremisesConnectionStatusDetailable)() { + err := m.GetBackingStore().Set("healthCheckStatusDetail", value) + if err != nil { + panic(err) + } +} // SetHealthCheckStatusDetails sets the healthCheckStatusDetails property value. The details of the connection's health checks and the corresponding results. Returned only on $select. For an example that shows how to get the inUse property, see Example 2: Get the selected properties of an Azure network connection, including healthCheckStatusDetails. Read-only. func (m *CloudPcOnPremisesConnection) SetHealthCheckStatusDetails(value CloudPcOnPremisesConnectionStatusDetailsable)() { err := m.GetBackingStore().Set("healthCheckStatusDetails", value) @@ -633,7 +702,7 @@ func (m *CloudPcOnPremisesConnection) SetSubscriptionName(value *string)() { } } // SetTypeEscaped sets the type property value. Specifies how the provisioned Cloud PC is joined to Microsoft Entra ID. Default value is hybridAzureADJoin. Possible values are: azureADJoin, hybridAzureADJoin, unknownFutureValue. -func (m *CloudPcOnPremisesConnection) SetTypeEscaped(value *CloudPcOnPremisesConnectionType)() { +func (m *CloudPcOnPremisesConnection) SetTypeEscaped(value *CloudPcOnPremisesConnection_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -661,8 +730,10 @@ type CloudPcOnPremisesConnectionable interface { GetAdDomainPassword()(*string) GetAdDomainUsername()(*string) GetAlternateResourceUrl()(*string) + GetConnectionType()(*CloudPcOnPremisesConnection_connectionType) GetDisplayName()(*string) GetHealthCheckStatus()(*CloudPcOnPremisesConnectionStatus) + GetHealthCheckStatusDetail()(CloudPcOnPremisesConnectionStatusDetailable) GetHealthCheckStatusDetails()(CloudPcOnPremisesConnectionStatusDetailsable) GetInUse()(*bool) GetManagedBy()(*CloudPcManagementService) @@ -672,15 +743,17 @@ type CloudPcOnPremisesConnectionable interface { GetSubnetId()(*string) GetSubscriptionId()(*string) GetSubscriptionName()(*string) - GetTypeEscaped()(*CloudPcOnPremisesConnectionType) + GetTypeEscaped()(*CloudPcOnPremisesConnection_type) GetVirtualNetworkId()(*string) GetVirtualNetworkLocation()(*string) SetAdDomainName(value *string)() SetAdDomainPassword(value *string)() SetAdDomainUsername(value *string)() SetAlternateResourceUrl(value *string)() + SetConnectionType(value *CloudPcOnPremisesConnection_connectionType)() SetDisplayName(value *string)() SetHealthCheckStatus(value *CloudPcOnPremisesConnectionStatus)() + SetHealthCheckStatusDetail(value CloudPcOnPremisesConnectionStatusDetailable)() SetHealthCheckStatusDetails(value CloudPcOnPremisesConnectionStatusDetailsable)() SetInUse(value *bool)() SetManagedBy(value *CloudPcManagementService)() @@ -690,7 +763,7 @@ type CloudPcOnPremisesConnectionable interface { SetSubnetId(value *string)() SetSubscriptionId(value *string)() SetSubscriptionName(value *string)() - SetTypeEscaped(value *CloudPcOnPremisesConnectionType)() + SetTypeEscaped(value *CloudPcOnPremisesConnection_type)() SetVirtualNetworkId(value *string)() SetVirtualNetworkLocation(value *string)() } diff --git a/models/cloud_pc_on_premises_connection_connection_type.go b/models/cloud_pc_on_premises_connection_connection_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_on_premises_connection_health_check.go b/models/cloud_pc_on_premises_connection_health_check.go index 3973eb6bee4..b894d23f233 100644 --- a/models/cloud_pc_on_premises_connection_health_check.go +++ b/models/cloud_pc_on_premises_connection_health_check.go @@ -35,6 +35,17 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalData()(map[string] } return val.(map[string]any) } +// GetAdditionalDetail gets the additionalDetail property value. The additionalDetail property +func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalDetail()(*string) { + val, err := m.GetBackingStore().Get("additionalDetail") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetAdditionalDetails gets the additionalDetails property value. More details about the health check or the recommended action. func (m *CloudPcOnPremisesConnectionHealthCheck) GetAdditionalDetails()(*string) { val, err := m.GetBackingStore().Get("additionalDetails") @@ -84,19 +95,29 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetEndDateTime()(*i336074805fc8 return nil } // GetErrorType gets the errorType property value. The type of error that occurred during this health check. -func (m *CloudPcOnPremisesConnectionHealthCheck) GetErrorType()(*CloudPcOnPremisesConnectionHealthCheckErrorType) { +func (m *CloudPcOnPremisesConnectionHealthCheck) GetErrorType()(*CloudPcOnPremisesConnectionHealthCheck_errorType) { val, err := m.GetBackingStore().Get("errorType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcOnPremisesConnectionHealthCheckErrorType) + return val.(*CloudPcOnPremisesConnectionHealthCheck_errorType) } return nil } // GetFieldDeserializers the deserialization information for the current model func (m *CloudPcOnPremisesConnectionHealthCheck) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["additionalDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAdditionalDetail(val) + } + return nil + } res["additionalDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -138,12 +159,12 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetFieldDeserializers()(map[str return nil } res["errorType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcOnPremisesConnectionHealthCheckErrorType) + val, err := n.GetEnumValue(ParseCloudPcOnPremisesConnectionHealthCheck_errorType) if err != nil { return err } if val != nil { - m.SetErrorType(val.(*CloudPcOnPremisesConnectionHealthCheckErrorType)) + m.SetErrorType(val.(*CloudPcOnPremisesConnectionHealthCheck_errorType)) } return nil } @@ -235,6 +256,12 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) GetStatus()(*CloudPcOnPremisesC } // Serialize serializes information the current object func (m *CloudPcOnPremisesConnectionHealthCheck) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("additionalDetail", m.GetAdditionalDetail()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("additionalDetails", m.GetAdditionalDetails()) if err != nil { @@ -306,6 +333,13 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) SetAdditionalData(value map[str panic(err) } } +// SetAdditionalDetail sets the additionalDetail property value. The additionalDetail property +func (m *CloudPcOnPremisesConnectionHealthCheck) SetAdditionalDetail(value *string)() { + err := m.GetBackingStore().Set("additionalDetail", value) + if err != nil { + panic(err) + } +} // SetAdditionalDetails sets the additionalDetails property value. More details about the health check or the recommended action. func (m *CloudPcOnPremisesConnectionHealthCheck) SetAdditionalDetails(value *string)() { err := m.GetBackingStore().Set("additionalDetails", value) @@ -339,7 +373,7 @@ func (m *CloudPcOnPremisesConnectionHealthCheck) SetEndDateTime(value *i33607480 } } // SetErrorType sets the errorType property value. The type of error that occurred during this health check. -func (m *CloudPcOnPremisesConnectionHealthCheck) SetErrorType(value *CloudPcOnPremisesConnectionHealthCheckErrorType)() { +func (m *CloudPcOnPremisesConnectionHealthCheck) SetErrorType(value *CloudPcOnPremisesConnectionHealthCheck_errorType)() { err := m.GetBackingStore().Set("errorType", value) if err != nil { panic(err) @@ -378,22 +412,24 @@ type CloudPcOnPremisesConnectionHealthCheckable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdditionalDetail()(*string) GetAdditionalDetails()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCorrelationId()(*string) GetDisplayName()(*string) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetErrorType()(*CloudPcOnPremisesConnectionHealthCheckErrorType) + GetErrorType()(*CloudPcOnPremisesConnectionHealthCheck_errorType) GetOdataType()(*string) GetRecommendedAction()(*string) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetStatus()(*CloudPcOnPremisesConnectionStatus) + SetAdditionalDetail(value *string)() SetAdditionalDetails(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCorrelationId(value *string)() SetDisplayName(value *string)() SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetErrorType(value *CloudPcOnPremisesConnectionHealthCheckErrorType)() + SetErrorType(value *CloudPcOnPremisesConnectionHealthCheck_errorType)() SetOdataType(value *string)() SetRecommendedAction(value *string)() SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/cloud_pc_on_premises_connection_health_check_error_type.go b/models/cloud_pc_on_premises_connection_health_check_error_type.go index bea308a0577..e69de29bb2d 100644 --- a/models/cloud_pc_on_premises_connection_health_check_error_type.go +++ b/models/cloud_pc_on_premises_connection_health_check_error_type.go @@ -1,235 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcOnPremisesConnectionHealthCheckErrorType int - -const ( - DNSCHECKFQDNNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE CloudPcOnPremisesConnectionHealthCheckErrorType = iota - DNSCHECKNAMEWITHINVALIDCHARACTER_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - DNSCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKFQDNNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKINCORRECTCREDENTIALS_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKORGANIZATIONALUNITNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKORGANIZATIONALUNITINCORRECTFORMAT_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKCOMPUTEROBJECTALREADYEXISTS_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKACCESSDENIED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKCREDENTIALSEXPIRED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKACCOUNTLOCKEDORDISABLED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKACCOUNTQUOTAEXCEEDED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKSERVERNOTOPERATIONAL_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ADJOINCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ENDPOINTCONNECTIVITYCHECKCLOUDPCURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ENDPOINTCONNECTIVITYCHECKWVDURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ENDPOINTCONNECTIVITYCHECKINTUNEURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ENDPOINTCONNECTIVITYCHECKAZUREADURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ENDPOINTCONNECTIVITYCHECKLOCALEURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - ENDPOINTCONNECTIVITYCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - AZUREADDEVICESYNCCHECKDEVICENOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - AZUREADDEVICESYNCCHECKLONGSYNCCIRCLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - AZUREADDEVICESYNCCHECKCONNECTDISABLED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - AZUREADDEVICESYNCCHECKDURATIONEXCEEDED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - AZUREADDEVICESYNCCHECKSCPNOTCONFIGURED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - AZUREADDEVICESYNCCHECKTRANSIENTSERVICEERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - AZUREADDEVICESYNCCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKNOSUBNETIP_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKSUBSCRIPTIONDISABLED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKAZUREPOLICYVIOLATION_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKSUBSCRIPTIONNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKSUBSCRIPTIONTRANSFERRED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKGENERALSUBSCRIPTIONERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKUNSUPPORTEDVNETREGION_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKRESOURCEGROUPINVALID_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKVNETINVALID_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKSUBNETINVALID_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKRESOURCEGROUPBEINGDELETED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKVNETBEINGMOVED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKSUBNETDELEGATIONFAILED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKSUBNETWITHEXTERNALRESOURCES_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKRESOURCEGROUPLOCKEDFORREADONLY_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKRESOURCEGROUPLOCKEDFORDELETE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKNOINTUNEREADERROLEERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKINTUNEDEFAULTWINDOWSRESTRICTIONVIOLATION_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKINTUNECUSTOMWINDOWSRESTRICTIONVIOLATION_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKDEPLOYMENTQUOTALIMITREACHED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKTRANSIENTSERVICEERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - RESOURCEAVAILABILITYCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - PERMISSIONCHECKNOSUBSCRIPTIONREADERROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - PERMISSIONCHECKNORESOURCEGROUPOWNERROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - PERMISSIONCHECKNOVNETCONTRIBUTORROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - PERMISSIONCHECKNORESOURCEGROUPNETWORKCONTRIBUTORROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - PERMISSIONCHECKNOWINDOWS365NETWORKUSERROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - PERMISSIONCHECKNOWINDOWS365NETWORKINTERFACECONTRIBUTORROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - PERMISSIONCHECKTRANSIENTSERVICEERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - PERMISSIONCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - UDPCONNECTIVITYCHECKSTUNURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - UDPCONNECTIVITYCHECKTURNURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - UDPCONNECTIVITYCHECKURLSNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - UDPCONNECTIVITYCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - INTERNALSERVERERRORDEPLOYMENTCANCELED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - INTERNALSERVERERRORALLOCATERESOURCEFAILED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - INTERNALSERVERERRORVMDEPLOYMENTTIMEOUT_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - INTERNALSERVERERRORUNABLETORUNDSCSCRIPT_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - SSOCHECKKERBEROSCONFIGURATIONERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - INTERNALSERVERUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - UNKNOWNFUTUREVALUE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE -) - -func (i CloudPcOnPremisesConnectionHealthCheckErrorType) String() string { - return []string{"dnsCheckFqdnNotFound", "dnsCheckNameWithInvalidCharacter", "dnsCheckUnknownError", "adJoinCheckFqdnNotFound", "adJoinCheckIncorrectCredentials", "adJoinCheckOrganizationalUnitNotFound", "adJoinCheckOrganizationalUnitIncorrectFormat", "adJoinCheckComputerObjectAlreadyExists", "adJoinCheckAccessDenied", "adJoinCheckCredentialsExpired", "adJoinCheckAccountLockedOrDisabled", "adJoinCheckAccountQuotaExceeded", "adJoinCheckServerNotOperational", "adJoinCheckUnknownError", "endpointConnectivityCheckCloudPcUrlNotAllowListed", "endpointConnectivityCheckWVDUrlNotAllowListed", "endpointConnectivityCheckIntuneUrlNotAllowListed", "endpointConnectivityCheckAzureADUrlNotAllowListed", "endpointConnectivityCheckLocaleUrlNotAllowListed", "endpointConnectivityCheckUnknownError", "azureAdDeviceSyncCheckDeviceNotFound", "azureAdDeviceSyncCheckLongSyncCircle", "azureAdDeviceSyncCheckConnectDisabled", "azureAdDeviceSyncCheckDurationExceeded", "azureAdDeviceSyncCheckScpNotConfigured", "azureAdDeviceSyncCheckTransientServiceError", "azureAdDeviceSyncCheckUnknownError", "resourceAvailabilityCheckNoSubnetIP", "resourceAvailabilityCheckSubscriptionDisabled", "resourceAvailabilityCheckAzurePolicyViolation", "resourceAvailabilityCheckSubscriptionNotFound", "resourceAvailabilityCheckSubscriptionTransferred", "resourceAvailabilityCheckGeneralSubscriptionError", "resourceAvailabilityCheckUnsupportedVNetRegion", "resourceAvailabilityCheckResourceGroupInvalid", "resourceAvailabilityCheckVNetInvalid", "resourceAvailabilityCheckSubnetInvalid", "resourceAvailabilityCheckResourceGroupBeingDeleted", "resourceAvailabilityCheckVNetBeingMoved", "resourceAvailabilityCheckSubnetDelegationFailed", "resourceAvailabilityCheckSubnetWithExternalResources", "resourceAvailabilityCheckResourceGroupLockedForReadonly", "resourceAvailabilityCheckResourceGroupLockedForDelete", "resourceAvailabilityCheckNoIntuneReaderRoleError", "resourceAvailabilityCheckIntuneDefaultWindowsRestrictionViolation", "resourceAvailabilityCheckIntuneCustomWindowsRestrictionViolation", "resourceAvailabilityCheckDeploymentQuotaLimitReached", "resourceAvailabilityCheckTransientServiceError", "resourceAvailabilityCheckUnknownError", "permissionCheckNoSubscriptionReaderRole", "permissionCheckNoResourceGroupOwnerRole", "permissionCheckNoVNetContributorRole", "permissionCheckNoResourceGroupNetworkContributorRole", "permissionCheckNoWindows365NetworkUserRole", "permissionCheckNoWindows365NetworkInterfaceContributorRole", "permissionCheckTransientServiceError", "permissionCheckUnknownError", "udpConnectivityCheckStunUrlNotAllowListed", "udpConnectivityCheckTurnUrlNotAllowListed", "udpConnectivityCheckUrlsNotAllowListed", "udpConnectivityCheckUnknownError", "internalServerErrorDeploymentCanceled", "internalServerErrorAllocateResourceFailed", "internalServerErrorVMDeploymentTimeout", "internalServerErrorUnableToRunDscScript", "ssoCheckKerberosConfigurationError", "internalServerUnknownError", "unknownFutureValue"}[i] -} -func ParseCloudPcOnPremisesConnectionHealthCheckErrorType(v string) (any, error) { - result := DNSCHECKFQDNNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - switch v { - case "dnsCheckFqdnNotFound": - result = DNSCHECKFQDNNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "dnsCheckNameWithInvalidCharacter": - result = DNSCHECKNAMEWITHINVALIDCHARACTER_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "dnsCheckUnknownError": - result = DNSCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckFqdnNotFound": - result = ADJOINCHECKFQDNNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckIncorrectCredentials": - result = ADJOINCHECKINCORRECTCREDENTIALS_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckOrganizationalUnitNotFound": - result = ADJOINCHECKORGANIZATIONALUNITNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckOrganizationalUnitIncorrectFormat": - result = ADJOINCHECKORGANIZATIONALUNITINCORRECTFORMAT_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckComputerObjectAlreadyExists": - result = ADJOINCHECKCOMPUTEROBJECTALREADYEXISTS_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckAccessDenied": - result = ADJOINCHECKACCESSDENIED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckCredentialsExpired": - result = ADJOINCHECKCREDENTIALSEXPIRED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckAccountLockedOrDisabled": - result = ADJOINCHECKACCOUNTLOCKEDORDISABLED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckAccountQuotaExceeded": - result = ADJOINCHECKACCOUNTQUOTAEXCEEDED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckServerNotOperational": - result = ADJOINCHECKSERVERNOTOPERATIONAL_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "adJoinCheckUnknownError": - result = ADJOINCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "endpointConnectivityCheckCloudPcUrlNotAllowListed": - result = ENDPOINTCONNECTIVITYCHECKCLOUDPCURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "endpointConnectivityCheckWVDUrlNotAllowListed": - result = ENDPOINTCONNECTIVITYCHECKWVDURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "endpointConnectivityCheckIntuneUrlNotAllowListed": - result = ENDPOINTCONNECTIVITYCHECKINTUNEURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "endpointConnectivityCheckAzureADUrlNotAllowListed": - result = ENDPOINTCONNECTIVITYCHECKAZUREADURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "endpointConnectivityCheckLocaleUrlNotAllowListed": - result = ENDPOINTCONNECTIVITYCHECKLOCALEURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "endpointConnectivityCheckUnknownError": - result = ENDPOINTCONNECTIVITYCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "azureAdDeviceSyncCheckDeviceNotFound": - result = AZUREADDEVICESYNCCHECKDEVICENOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "azureAdDeviceSyncCheckLongSyncCircle": - result = AZUREADDEVICESYNCCHECKLONGSYNCCIRCLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "azureAdDeviceSyncCheckConnectDisabled": - result = AZUREADDEVICESYNCCHECKCONNECTDISABLED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "azureAdDeviceSyncCheckDurationExceeded": - result = AZUREADDEVICESYNCCHECKDURATIONEXCEEDED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "azureAdDeviceSyncCheckScpNotConfigured": - result = AZUREADDEVICESYNCCHECKSCPNOTCONFIGURED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "azureAdDeviceSyncCheckTransientServiceError": - result = AZUREADDEVICESYNCCHECKTRANSIENTSERVICEERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "azureAdDeviceSyncCheckUnknownError": - result = AZUREADDEVICESYNCCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckNoSubnetIP": - result = RESOURCEAVAILABILITYCHECKNOSUBNETIP_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckSubscriptionDisabled": - result = RESOURCEAVAILABILITYCHECKSUBSCRIPTIONDISABLED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckAzurePolicyViolation": - result = RESOURCEAVAILABILITYCHECKAZUREPOLICYVIOLATION_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckSubscriptionNotFound": - result = RESOURCEAVAILABILITYCHECKSUBSCRIPTIONNOTFOUND_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckSubscriptionTransferred": - result = RESOURCEAVAILABILITYCHECKSUBSCRIPTIONTRANSFERRED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckGeneralSubscriptionError": - result = RESOURCEAVAILABILITYCHECKGENERALSUBSCRIPTIONERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckUnsupportedVNetRegion": - result = RESOURCEAVAILABILITYCHECKUNSUPPORTEDVNETREGION_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckResourceGroupInvalid": - result = RESOURCEAVAILABILITYCHECKRESOURCEGROUPINVALID_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckVNetInvalid": - result = RESOURCEAVAILABILITYCHECKVNETINVALID_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckSubnetInvalid": - result = RESOURCEAVAILABILITYCHECKSUBNETINVALID_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckResourceGroupBeingDeleted": - result = RESOURCEAVAILABILITYCHECKRESOURCEGROUPBEINGDELETED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckVNetBeingMoved": - result = RESOURCEAVAILABILITYCHECKVNETBEINGMOVED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckSubnetDelegationFailed": - result = RESOURCEAVAILABILITYCHECKSUBNETDELEGATIONFAILED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckSubnetWithExternalResources": - result = RESOURCEAVAILABILITYCHECKSUBNETWITHEXTERNALRESOURCES_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckResourceGroupLockedForReadonly": - result = RESOURCEAVAILABILITYCHECKRESOURCEGROUPLOCKEDFORREADONLY_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckResourceGroupLockedForDelete": - result = RESOURCEAVAILABILITYCHECKRESOURCEGROUPLOCKEDFORDELETE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckNoIntuneReaderRoleError": - result = RESOURCEAVAILABILITYCHECKNOINTUNEREADERROLEERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckIntuneDefaultWindowsRestrictionViolation": - result = RESOURCEAVAILABILITYCHECKINTUNEDEFAULTWINDOWSRESTRICTIONVIOLATION_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckIntuneCustomWindowsRestrictionViolation": - result = RESOURCEAVAILABILITYCHECKINTUNECUSTOMWINDOWSRESTRICTIONVIOLATION_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckDeploymentQuotaLimitReached": - result = RESOURCEAVAILABILITYCHECKDEPLOYMENTQUOTALIMITREACHED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckTransientServiceError": - result = RESOURCEAVAILABILITYCHECKTRANSIENTSERVICEERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "resourceAvailabilityCheckUnknownError": - result = RESOURCEAVAILABILITYCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "permissionCheckNoSubscriptionReaderRole": - result = PERMISSIONCHECKNOSUBSCRIPTIONREADERROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "permissionCheckNoResourceGroupOwnerRole": - result = PERMISSIONCHECKNORESOURCEGROUPOWNERROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "permissionCheckNoVNetContributorRole": - result = PERMISSIONCHECKNOVNETCONTRIBUTORROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "permissionCheckNoResourceGroupNetworkContributorRole": - result = PERMISSIONCHECKNORESOURCEGROUPNETWORKCONTRIBUTORROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "permissionCheckNoWindows365NetworkUserRole": - result = PERMISSIONCHECKNOWINDOWS365NETWORKUSERROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "permissionCheckNoWindows365NetworkInterfaceContributorRole": - result = PERMISSIONCHECKNOWINDOWS365NETWORKINTERFACECONTRIBUTORROLE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "permissionCheckTransientServiceError": - result = PERMISSIONCHECKTRANSIENTSERVICEERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "permissionCheckUnknownError": - result = PERMISSIONCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "udpConnectivityCheckStunUrlNotAllowListed": - result = UDPCONNECTIVITYCHECKSTUNURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "udpConnectivityCheckTurnUrlNotAllowListed": - result = UDPCONNECTIVITYCHECKTURNURLNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "udpConnectivityCheckUrlsNotAllowListed": - result = UDPCONNECTIVITYCHECKURLSNOTALLOWLISTED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "udpConnectivityCheckUnknownError": - result = UDPCONNECTIVITYCHECKUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "internalServerErrorDeploymentCanceled": - result = INTERNALSERVERERRORDEPLOYMENTCANCELED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "internalServerErrorAllocateResourceFailed": - result = INTERNALSERVERERRORALLOCATERESOURCEFAILED_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "internalServerErrorVMDeploymentTimeout": - result = INTERNALSERVERERRORVMDEPLOYMENTTIMEOUT_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "internalServerErrorUnableToRunDscScript": - result = INTERNALSERVERERRORUNABLETORUNDSCSCRIPT_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "ssoCheckKerberosConfigurationError": - result = SSOCHECKKERBEROSCONFIGURATIONERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "internalServerUnknownError": - result = INTERNALSERVERUNKNOWNERROR_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE - default: - return 0, errors.New("Unknown CloudPcOnPremisesConnectionHealthCheckErrorType value: " + v) - } - return &result, nil -} -func SerializeCloudPcOnPremisesConnectionHealthCheckErrorType(values []CloudPcOnPremisesConnectionHealthCheckErrorType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcOnPremisesConnectionHealthCheckErrorType) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_on_premises_connection_status_detail.go b/models/cloud_pc_on_premises_connection_status_detail.go new file mode 100644 index 00000000000..234f902e6cc --- /dev/null +++ b/models/cloud_pc_on_premises_connection_status_detail.go @@ -0,0 +1,231 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// CloudPcOnPremisesConnectionStatusDetail +type CloudPcOnPremisesConnectionStatusDetail struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCloudPcOnPremisesConnectionStatusDetail instantiates a new cloudPcOnPremisesConnectionStatusDetail and sets the default values. +func NewCloudPcOnPremisesConnectionStatusDetail()(*CloudPcOnPremisesConnectionStatusDetail) { + m := &CloudPcOnPremisesConnectionStatusDetail{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCloudPcOnPremisesConnectionStatusDetailFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcOnPremisesConnectionStatusDetailFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcOnPremisesConnectionStatusDetail(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CloudPcOnPremisesConnectionStatusDetail) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *CloudPcOnPremisesConnectionStatusDetail) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEndDateTime gets the endDateTime property value. The endDateTime property +func (m *CloudPcOnPremisesConnectionStatusDetail) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("endDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcOnPremisesConnectionStatusDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetEndDateTime(val) + } + return nil + } + res["healthChecks"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCloudPcOnPremisesConnectionHealthCheckFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]CloudPcOnPremisesConnectionHealthCheckable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(CloudPcOnPremisesConnectionHealthCheckable) + } + } + m.SetHealthChecks(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDateTime(val) + } + return nil + } + return res +} +// GetHealthChecks gets the healthChecks property value. The healthChecks property +func (m *CloudPcOnPremisesConnectionStatusDetail) GetHealthChecks()([]CloudPcOnPremisesConnectionHealthCheckable) { + val, err := m.GetBackingStore().Get("healthChecks") + if err != nil { + panic(err) + } + if val != nil { + return val.([]CloudPcOnPremisesConnectionHealthCheckable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudPcOnPremisesConnectionStatusDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStartDateTime gets the startDateTime property value. The startDateTime property +func (m *CloudPcOnPremisesConnectionStatusDetail) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudPcOnPremisesConnectionStatusDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) + if err != nil { + return err + } + } + if m.GetHealthChecks() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHealthChecks())) + for i, v := range m.GetHealthChecks() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("healthChecks", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CloudPcOnPremisesConnectionStatusDetail) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CloudPcOnPremisesConnectionStatusDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEndDateTime sets the endDateTime property value. The endDateTime property +func (m *CloudPcOnPremisesConnectionStatusDetail) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("endDateTime", value) + if err != nil { + panic(err) + } +} +// SetHealthChecks sets the healthChecks property value. The healthChecks property +func (m *CloudPcOnPremisesConnectionStatusDetail) SetHealthChecks(value []CloudPcOnPremisesConnectionHealthCheckable)() { + err := m.GetBackingStore().Set("healthChecks", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcOnPremisesConnectionStatusDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStartDateTime sets the startDateTime property value. The startDateTime property +func (m *CloudPcOnPremisesConnectionStatusDetail) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startDateTime", value) + if err != nil { + panic(err) + } +} +// CloudPcOnPremisesConnectionStatusDetailable +type CloudPcOnPremisesConnectionStatusDetailable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetHealthChecks()([]CloudPcOnPremisesConnectionHealthCheckable) + GetOdataType()(*string) + GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetHealthChecks(value []CloudPcOnPremisesConnectionHealthCheckable)() + SetOdataType(value *string)() + SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/cloud_pc_on_premises_connection_type.go b/models/cloud_pc_on_premises_connection_type.go index 836b88d7d00..e69de29bb2d 100644 --- a/models/cloud_pc_on_premises_connection_type.go +++ b/models/cloud_pc_on_premises_connection_type.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcOnPremisesConnectionType int - -const ( - HYBRIDAZUREADJOIN_CLOUDPCONPREMISESCONNECTIONTYPE CloudPcOnPremisesConnectionType = iota - AZUREADJOIN_CLOUDPCONPREMISESCONNECTIONTYPE - UNKNOWNFUTUREVALUE_CLOUDPCONPREMISESCONNECTIONTYPE -) - -func (i CloudPcOnPremisesConnectionType) String() string { - return []string{"hybridAzureADJoin", "azureADJoin", "unknownFutureValue"}[i] -} -func ParseCloudPcOnPremisesConnectionType(v string) (any, error) { - result := HYBRIDAZUREADJOIN_CLOUDPCONPREMISESCONNECTIONTYPE - switch v { - case "hybridAzureADJoin": - result = HYBRIDAZUREADJOIN_CLOUDPCONPREMISESCONNECTIONTYPE - case "azureADJoin": - result = AZUREADJOIN_CLOUDPCONPREMISESCONNECTIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCONPREMISESCONNECTIONTYPE - default: - return 0, errors.New("Unknown CloudPcOnPremisesConnectionType value: " + v) - } - return &result, nil -} -func SerializeCloudPcOnPremisesConnectionType(values []CloudPcOnPremisesConnectionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcOnPremisesConnectionType) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_operating_system.go b/models/cloud_pc_operating_system.go deleted file mode 100644 index 3e68a9d9ccb..00000000000 --- a/models/cloud_pc_operating_system.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcOperatingSystem int - -const ( - WINDOWS10_CLOUDPCOPERATINGSYSTEM CloudPcOperatingSystem = iota - WINDOWS11_CLOUDPCOPERATINGSYSTEM - UNKNOWNFUTUREVALUE_CLOUDPCOPERATINGSYSTEM -) - -func (i CloudPcOperatingSystem) String() string { - return []string{"windows10", "windows11", "unknownFutureValue"}[i] -} -func ParseCloudPcOperatingSystem(v string) (any, error) { - result := WINDOWS10_CLOUDPCOPERATINGSYSTEM - switch v { - case "windows10": - result = WINDOWS10_CLOUDPCOPERATINGSYSTEM - case "windows11": - result = WINDOWS11_CLOUDPCOPERATINGSYSTEM - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCOPERATINGSYSTEM - default: - return 0, errors.New("Unknown CloudPcOperatingSystem value: " + v) - } - return &result, nil -} -func SerializeCloudPcOperatingSystem(values []CloudPcOperatingSystem) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcOperatingSystem) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_organization_settings.go b/models/cloud_pc_organization_settings.go index d38e8934f6d..3b5c21c0706 100644 --- a/models/cloud_pc_organization_settings.go +++ b/models/cloud_pc_organization_settings.go @@ -65,22 +65,22 @@ func (m *CloudPcOrganizationSettings) GetFieldDeserializers()(map[string]func(i8 return nil } res["osVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcOperatingSystem) + val, err := n.GetEnumValue(ParseCloudPcOrganizationSettings_osVersion) if err != nil { return err } if val != nil { - m.SetOsVersion(val.(*CloudPcOperatingSystem)) + m.SetOsVersion(val.(*CloudPcOrganizationSettings_osVersion)) } return nil } res["userAccountType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcUserAccountType) + val, err := n.GetEnumValue(ParseCloudPcOrganizationSettings_userAccountType) if err != nil { return err } if val != nil { - m.SetUserAccountType(val.(*CloudPcUserAccountType)) + m.SetUserAccountType(val.(*CloudPcOrganizationSettings_userAccountType)) } return nil } @@ -97,24 +97,24 @@ func (m *CloudPcOrganizationSettings) GetFieldDeserializers()(map[string]func(i8 return res } // GetOsVersion gets the osVersion property value. The version of the operating system (OS) to provision on Cloud PCs. The possible values are: windows10, windows11, unknownFutureValue. -func (m *CloudPcOrganizationSettings) GetOsVersion()(*CloudPcOperatingSystem) { +func (m *CloudPcOrganizationSettings) GetOsVersion()(*CloudPcOrganizationSettings_osVersion) { val, err := m.GetBackingStore().Get("osVersion") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcOperatingSystem) + return val.(*CloudPcOrganizationSettings_osVersion) } return nil } // GetUserAccountType gets the userAccountType property value. The account type of the user on provisioned Cloud PCs. The possible values are: standardUser, administrator, unknownFutureValue. -func (m *CloudPcOrganizationSettings) GetUserAccountType()(*CloudPcUserAccountType) { +func (m *CloudPcOrganizationSettings) GetUserAccountType()(*CloudPcOrganizationSettings_userAccountType) { val, err := m.GetBackingStore().Get("userAccountType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcUserAccountType) + return val.(*CloudPcOrganizationSettings_userAccountType) } return nil } @@ -184,14 +184,14 @@ func (m *CloudPcOrganizationSettings) SetEnableSingleSignOn(value *bool)() { } } // SetOsVersion sets the osVersion property value. The version of the operating system (OS) to provision on Cloud PCs. The possible values are: windows10, windows11, unknownFutureValue. -func (m *CloudPcOrganizationSettings) SetOsVersion(value *CloudPcOperatingSystem)() { +func (m *CloudPcOrganizationSettings) SetOsVersion(value *CloudPcOrganizationSettings_osVersion)() { err := m.GetBackingStore().Set("osVersion", value) if err != nil { panic(err) } } // SetUserAccountType sets the userAccountType property value. The account type of the user on provisioned Cloud PCs. The possible values are: standardUser, administrator, unknownFutureValue. -func (m *CloudPcOrganizationSettings) SetUserAccountType(value *CloudPcUserAccountType)() { +func (m *CloudPcOrganizationSettings) SetUserAccountType(value *CloudPcOrganizationSettings_userAccountType)() { err := m.GetBackingStore().Set("userAccountType", value) if err != nil { panic(err) @@ -210,12 +210,12 @@ type CloudPcOrganizationSettingsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEnableMEMAutoEnroll()(*bool) GetEnableSingleSignOn()(*bool) - GetOsVersion()(*CloudPcOperatingSystem) - GetUserAccountType()(*CloudPcUserAccountType) + GetOsVersion()(*CloudPcOrganizationSettings_osVersion) + GetUserAccountType()(*CloudPcOrganizationSettings_userAccountType) GetWindowsSettings()(CloudPcWindowsSettingsable) SetEnableMEMAutoEnroll(value *bool)() SetEnableSingleSignOn(value *bool)() - SetOsVersion(value *CloudPcOperatingSystem)() - SetUserAccountType(value *CloudPcUserAccountType)() + SetOsVersion(value *CloudPcOrganizationSettings_osVersion)() + SetUserAccountType(value *CloudPcOrganizationSettings_userAccountType)() SetWindowsSettings(value CloudPcWindowsSettingsable)() } diff --git a/models/cloud_pc_organization_settings_os_version.go b/models/cloud_pc_organization_settings_os_version.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_organization_settings_user_account_type.go b/models/cloud_pc_organization_settings_user_account_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_partner_agent_install_result.go b/models/cloud_pc_partner_agent_install_result.go index 274d9889122..e4c11256caa 100644 --- a/models/cloud_pc_partner_agent_install_result.go +++ b/models/cloud_pc_partner_agent_install_result.go @@ -63,12 +63,12 @@ func (m *CloudPcPartnerAgentInstallResult) GetFieldDeserializers()(map[string]fu return nil } res["installStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcPartnerAgentInstallStatus) + val, err := n.GetEnumValue(ParseCloudPcPartnerAgentInstallResult_installStatus) if err != nil { return err } if val != nil { - m.SetInstallStatus(val.(*CloudPcPartnerAgentInstallStatus)) + m.SetInstallStatus(val.(*CloudPcPartnerAgentInstallResult_installStatus)) } return nil } @@ -93,12 +93,12 @@ func (m *CloudPcPartnerAgentInstallResult) GetFieldDeserializers()(map[string]fu return nil } res["partnerAgentName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcPartnerAgentName) + val, err := n.GetEnumValue(ParseCloudPcPartnerAgentInstallResult_partnerAgentName) if err != nil { return err } if val != nil { - m.SetPartnerAgentName(val.(*CloudPcPartnerAgentName)) + m.SetPartnerAgentName(val.(*CloudPcPartnerAgentInstallResult_partnerAgentName)) } return nil } @@ -115,13 +115,13 @@ func (m *CloudPcPartnerAgentInstallResult) GetFieldDeserializers()(map[string]fu return res } // GetInstallStatus gets the installStatus property value. The status of a partner agent installation. Possible values are: installed, installFailed, installing, uninstalling, uninstallFailed and licensed. Read-Only. -func (m *CloudPcPartnerAgentInstallResult) GetInstallStatus()(*CloudPcPartnerAgentInstallStatus) { +func (m *CloudPcPartnerAgentInstallResult) GetInstallStatus()(*CloudPcPartnerAgentInstallResult_installStatus) { val, err := m.GetBackingStore().Get("installStatus") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcPartnerAgentInstallStatus) + return val.(*CloudPcPartnerAgentInstallResult_installStatus) } return nil } @@ -148,13 +148,13 @@ func (m *CloudPcPartnerAgentInstallResult) GetOdataType()(*string) { return nil } // GetPartnerAgentName gets the partnerAgentName property value. The name of the first-party or third-party partner agent. Possible values for third-party partners are Citrix, VMware and HP. Read-Only. -func (m *CloudPcPartnerAgentInstallResult) GetPartnerAgentName()(*CloudPcPartnerAgentName) { +func (m *CloudPcPartnerAgentInstallResult) GetPartnerAgentName()(*CloudPcPartnerAgentInstallResult_partnerAgentName) { val, err := m.GetBackingStore().Get("partnerAgentName") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcPartnerAgentName) + return val.(*CloudPcPartnerAgentInstallResult_partnerAgentName) } return nil } @@ -236,7 +236,7 @@ func (m *CloudPcPartnerAgentInstallResult) SetErrorMessage(value *string)() { } } // SetInstallStatus sets the installStatus property value. The status of a partner agent installation. Possible values are: installed, installFailed, installing, uninstalling, uninstallFailed and licensed. Read-Only. -func (m *CloudPcPartnerAgentInstallResult) SetInstallStatus(value *CloudPcPartnerAgentInstallStatus)() { +func (m *CloudPcPartnerAgentInstallResult) SetInstallStatus(value *CloudPcPartnerAgentInstallResult_installStatus)() { err := m.GetBackingStore().Set("installStatus", value) if err != nil { panic(err) @@ -257,7 +257,7 @@ func (m *CloudPcPartnerAgentInstallResult) SetOdataType(value *string)() { } } // SetPartnerAgentName sets the partnerAgentName property value. The name of the first-party or third-party partner agent. Possible values for third-party partners are Citrix, VMware and HP. Read-Only. -func (m *CloudPcPartnerAgentInstallResult) SetPartnerAgentName(value *CloudPcPartnerAgentName)() { +func (m *CloudPcPartnerAgentInstallResult) SetPartnerAgentName(value *CloudPcPartnerAgentInstallResult_partnerAgentName)() { err := m.GetBackingStore().Set("partnerAgentName", value) if err != nil { panic(err) @@ -277,16 +277,16 @@ type CloudPcPartnerAgentInstallResultable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetErrorMessage()(*string) - GetInstallStatus()(*CloudPcPartnerAgentInstallStatus) + GetInstallStatus()(*CloudPcPartnerAgentInstallResult_installStatus) GetIsThirdPartyPartner()(*bool) GetOdataType()(*string) - GetPartnerAgentName()(*CloudPcPartnerAgentName) + GetPartnerAgentName()(*CloudPcPartnerAgentInstallResult_partnerAgentName) GetRetriable()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetErrorMessage(value *string)() - SetInstallStatus(value *CloudPcPartnerAgentInstallStatus)() + SetInstallStatus(value *CloudPcPartnerAgentInstallResult_installStatus)() SetIsThirdPartyPartner(value *bool)() SetOdataType(value *string)() - SetPartnerAgentName(value *CloudPcPartnerAgentName)() + SetPartnerAgentName(value *CloudPcPartnerAgentInstallResult_partnerAgentName)() SetRetriable(value *bool)() } diff --git a/models/cloud_pc_partner_agent_install_result_install_status.go b/models/cloud_pc_partner_agent_install_result_install_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_partner_agent_install_result_partner_agent_name.go b/models/cloud_pc_partner_agent_install_result_partner_agent_name.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_partner_agent_install_status.go b/models/cloud_pc_partner_agent_install_status.go deleted file mode 100644 index d3735bf5f5d..00000000000 --- a/models/cloud_pc_partner_agent_install_status.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcPartnerAgentInstallStatus int - -const ( - INSTALLED_CLOUDPCPARTNERAGENTINSTALLSTATUS CloudPcPartnerAgentInstallStatus = iota - INSTALLFAILED_CLOUDPCPARTNERAGENTINSTALLSTATUS - INSTALLING_CLOUDPCPARTNERAGENTINSTALLSTATUS - UNINSTALLING_CLOUDPCPARTNERAGENTINSTALLSTATUS - UNINSTALLFAILED_CLOUDPCPARTNERAGENTINSTALLSTATUS - LICENSED_CLOUDPCPARTNERAGENTINSTALLSTATUS - UNKNOWNFUTUREVALUE_CLOUDPCPARTNERAGENTINSTALLSTATUS -) - -func (i CloudPcPartnerAgentInstallStatus) String() string { - return []string{"installed", "installFailed", "installing", "uninstalling", "uninstallFailed", "licensed", "unknownFutureValue"}[i] -} -func ParseCloudPcPartnerAgentInstallStatus(v string) (any, error) { - result := INSTALLED_CLOUDPCPARTNERAGENTINSTALLSTATUS - switch v { - case "installed": - result = INSTALLED_CLOUDPCPARTNERAGENTINSTALLSTATUS - case "installFailed": - result = INSTALLFAILED_CLOUDPCPARTNERAGENTINSTALLSTATUS - case "installing": - result = INSTALLING_CLOUDPCPARTNERAGENTINSTALLSTATUS - case "uninstalling": - result = UNINSTALLING_CLOUDPCPARTNERAGENTINSTALLSTATUS - case "uninstallFailed": - result = UNINSTALLFAILED_CLOUDPCPARTNERAGENTINSTALLSTATUS - case "licensed": - result = LICENSED_CLOUDPCPARTNERAGENTINSTALLSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCPARTNERAGENTINSTALLSTATUS - default: - return 0, errors.New("Unknown CloudPcPartnerAgentInstallStatus value: " + v) - } - return &result, nil -} -func SerializeCloudPcPartnerAgentInstallStatus(values []CloudPcPartnerAgentInstallStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcPartnerAgentInstallStatus) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_partner_agent_name.go b/models/cloud_pc_partner_agent_name.go deleted file mode 100644 index e5989a99db4..00000000000 --- a/models/cloud_pc_partner_agent_name.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcPartnerAgentName int - -const ( - CITRIX_CLOUDPCPARTNERAGENTNAME CloudPcPartnerAgentName = iota - UNKNOWNFUTUREVALUE_CLOUDPCPARTNERAGENTNAME - VMWARE_CLOUDPCPARTNERAGENTNAME - HP_CLOUDPCPARTNERAGENTNAME -) - -func (i CloudPcPartnerAgentName) String() string { - return []string{"citrix", "unknownFutureValue", "vMware", "hp"}[i] -} -func ParseCloudPcPartnerAgentName(v string) (any, error) { - result := CITRIX_CLOUDPCPARTNERAGENTNAME - switch v { - case "citrix": - result = CITRIX_CLOUDPCPARTNERAGENTNAME - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCPARTNERAGENTNAME - case "vMware": - result = VMWARE_CLOUDPCPARTNERAGENTNAME - case "hp": - result = HP_CLOUDPCPARTNERAGENTNAME - default: - return 0, errors.New("Unknown CloudPcPartnerAgentName value: " + v) - } - return &result, nil -} -func SerializeCloudPcPartnerAgentName(values []CloudPcPartnerAgentName) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcPartnerAgentName) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_policy_setting_type.go b/models/cloud_pc_policy_setting_type.go deleted file mode 100644 index 717f4f7fff2..00000000000 --- a/models/cloud_pc_policy_setting_type.go +++ /dev/null @@ -1,50 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type CloudPcPolicySettingType int - -const ( - REGION_CLOUDPCPOLICYSETTINGTYPE CloudPcPolicySettingType = iota - SINGLESIGNON_CLOUDPCPOLICYSETTINGTYPE - UNKNOWNFUTUREVALUE_CLOUDPCPOLICYSETTINGTYPE -) - -func (i CloudPcPolicySettingType) String() string { - var values []string - for p := CloudPcPolicySettingType(1); p <= UNKNOWNFUTUREVALUE_CLOUDPCPOLICYSETTINGTYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"region", "singleSignOn", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseCloudPcPolicySettingType(v string) (any, error) { - var result CloudPcPolicySettingType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "region": - result |= REGION_CLOUDPCPOLICYSETTINGTYPE - case "singleSignOn": - result |= SINGLESIGNON_CLOUDPCPOLICYSETTINGTYPE - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_CLOUDPCPOLICYSETTINGTYPE - default: - return 0, errors.New("Unknown CloudPcPolicySettingType value: " + v) - } - } - return &result, nil -} -func SerializeCloudPcPolicySettingType(values []CloudPcPolicySettingType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcPolicySettingType) isMultiValue() bool { - return true -} diff --git a/models/cloud_pc_power_state.go b/models/cloud_pc_power_state.go deleted file mode 100644 index 86f4d50cb42..00000000000 --- a/models/cloud_pc_power_state.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcPowerState int - -const ( - RUNNING_CLOUDPCPOWERSTATE CloudPcPowerState = iota - POWEREDOFF_CLOUDPCPOWERSTATE - UNKNOWNFUTUREVALUE_CLOUDPCPOWERSTATE -) - -func (i CloudPcPowerState) String() string { - return []string{"running", "poweredOff", "unknownFutureValue"}[i] -} -func ParseCloudPcPowerState(v string) (any, error) { - result := RUNNING_CLOUDPCPOWERSTATE - switch v { - case "running": - result = RUNNING_CLOUDPCPOWERSTATE - case "poweredOff": - result = POWEREDOFF_CLOUDPCPOWERSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCPOWERSTATE - default: - return 0, errors.New("Unknown CloudPcPowerState value: " + v) - } - return &result, nil -} -func SerializeCloudPcPowerState(values []CloudPcPowerState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcPowerState) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_provisioning_policy.go b/models/cloud_pc_provisioning_policy.go index 0188cb8f04f..71a1845bc67 100644 --- a/models/cloud_pc_provisioning_policy.go +++ b/models/cloud_pc_provisioning_policy.go @@ -304,12 +304,12 @@ func (m *CloudPcProvisioningPolicy) GetFieldDeserializers()(map[string]func(i878 return nil } res["provisioningType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcProvisioningType) + val, err := n.GetEnumValue(ParseCloudPcProvisioningPolicy_provisioningType) if err != nil { return err } if val != nil { - m.SetProvisioningType(val.(*CloudPcProvisioningType)) + m.SetProvisioningType(val.(*CloudPcProvisioningPolicy_provisioningType)) } return nil } @@ -329,6 +329,16 @@ func (m *CloudPcProvisioningPolicy) GetFieldDeserializers()(map[string]func(i878 } return nil } + res["windowsSetting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCloudPcWindowsSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetWindowsSetting(val.(CloudPcWindowsSettingable)) + } + return nil + } res["windowsSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateCloudPcWindowsSettingsFromDiscriminatorValue) if err != nil { @@ -430,13 +440,13 @@ func (m *CloudPcProvisioningPolicy) GetOnPremisesConnectionId()(*string) { return nil } // GetProvisioningType gets the provisioningType property value. Specifies the type of license used when provisioning Cloud PCs using this policy. By default, the license type is dedicated if the provisioningType isn't specified when you create the cloudPcProvisioningPolicy. You can't change this property after the cloudPcProvisioningPolicy was created. Possible values are: dedicated, shared, unknownFutureValue. -func (m *CloudPcProvisioningPolicy) GetProvisioningType()(*CloudPcProvisioningType) { +func (m *CloudPcProvisioningPolicy) GetProvisioningType()(*CloudPcProvisioningPolicy_provisioningType) { val, err := m.GetBackingStore().Get("provisioningType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcProvisioningType) + return val.(*CloudPcProvisioningPolicy_provisioningType) } return nil } @@ -451,6 +461,17 @@ func (m *CloudPcProvisioningPolicy) GetScopeIds()([]string) { } return nil } +// GetWindowsSetting gets the windowsSetting property value. The windowsSetting property +func (m *CloudPcProvisioningPolicy) GetWindowsSetting()(CloudPcWindowsSettingable) { + val, err := m.GetBackingStore().Get("windowsSetting") + if err != nil { + panic(err) + } + if val != nil { + return val.(CloudPcWindowsSettingable) + } + return nil +} // GetWindowsSettings gets the windowsSettings property value. Specific Windows settings to configure while creating Cloud PCs for this provisioning policy. func (m *CloudPcProvisioningPolicy) GetWindowsSettings()(CloudPcWindowsSettingsable) { val, err := m.GetBackingStore().Get("windowsSettings") @@ -597,6 +618,12 @@ func (m *CloudPcProvisioningPolicy) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteObjectValue("windowsSetting", m.GetWindowsSetting()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("windowsSettings", m.GetWindowsSettings()) if err != nil { @@ -725,7 +752,7 @@ func (m *CloudPcProvisioningPolicy) SetOnPremisesConnectionId(value *string)() { } } // SetProvisioningType sets the provisioningType property value. Specifies the type of license used when provisioning Cloud PCs using this policy. By default, the license type is dedicated if the provisioningType isn't specified when you create the cloudPcProvisioningPolicy. You can't change this property after the cloudPcProvisioningPolicy was created. Possible values are: dedicated, shared, unknownFutureValue. -func (m *CloudPcProvisioningPolicy) SetProvisioningType(value *CloudPcProvisioningType)() { +func (m *CloudPcProvisioningPolicy) SetProvisioningType(value *CloudPcProvisioningPolicy_provisioningType)() { err := m.GetBackingStore().Set("provisioningType", value) if err != nil { panic(err) @@ -738,6 +765,13 @@ func (m *CloudPcProvisioningPolicy) SetScopeIds(value []string)() { panic(err) } } +// SetWindowsSetting sets the windowsSetting property value. The windowsSetting property +func (m *CloudPcProvisioningPolicy) SetWindowsSetting(value CloudPcWindowsSettingable)() { + err := m.GetBackingStore().Set("windowsSetting", value) + if err != nil { + panic(err) + } +} // SetWindowsSettings sets the windowsSettings property value. Specific Windows settings to configure while creating Cloud PCs for this provisioning policy. func (m *CloudPcProvisioningPolicy) SetWindowsSettings(value CloudPcWindowsSettingsable)() { err := m.GetBackingStore().Set("windowsSettings", value) @@ -766,8 +800,9 @@ type CloudPcProvisioningPolicyable interface { GetManagedBy()(*CloudPcManagementService) GetMicrosoftManagedDesktop()(MicrosoftManagedDesktopable) GetOnPremisesConnectionId()(*string) - GetProvisioningType()(*CloudPcProvisioningType) + GetProvisioningType()(*CloudPcProvisioningPolicy_provisioningType) GetScopeIds()([]string) + GetWindowsSetting()(CloudPcWindowsSettingable) GetWindowsSettings()(CloudPcWindowsSettingsable) SetAlternateResourceUrl(value *string)() SetAssignments(value []CloudPcProvisioningPolicyAssignmentable)() @@ -786,7 +821,8 @@ type CloudPcProvisioningPolicyable interface { SetManagedBy(value *CloudPcManagementService)() SetMicrosoftManagedDesktop(value MicrosoftManagedDesktopable)() SetOnPremisesConnectionId(value *string)() - SetProvisioningType(value *CloudPcProvisioningType)() + SetProvisioningType(value *CloudPcProvisioningPolicy_provisioningType)() SetScopeIds(value []string)() + SetWindowsSetting(value CloudPcWindowsSettingable)() SetWindowsSettings(value CloudPcWindowsSettingsable)() } diff --git a/models/cloud_pc_provisioning_policy_image_type.go b/models/cloud_pc_provisioning_policy_image_type.go index 3fb3438e259..011c5f0c652 100644 --- a/models/cloud_pc_provisioning_policy_image_type.go +++ b/models/cloud_pc_provisioning_policy_image_type.go @@ -8,10 +8,11 @@ type CloudPcProvisioningPolicyImageType int const ( GALLERY_CLOUDPCPROVISIONINGPOLICYIMAGETYPE CloudPcProvisioningPolicyImageType = iota CUSTOM_CLOUDPCPROVISIONINGPOLICYIMAGETYPE + UNKNOWNFUTUREVALUE_CLOUDPCPROVISIONINGPOLICYIMAGETYPE ) func (i CloudPcProvisioningPolicyImageType) String() string { - return []string{"gallery", "custom"}[i] + return []string{"gallery", "custom", "unknownFutureValue"}[i] } func ParseCloudPcProvisioningPolicyImageType(v string) (any, error) { result := GALLERY_CLOUDPCPROVISIONINGPOLICYIMAGETYPE @@ -20,6 +21,8 @@ func ParseCloudPcProvisioningPolicyImageType(v string) (any, error) { result = GALLERY_CLOUDPCPROVISIONINGPOLICYIMAGETYPE case "custom": result = CUSTOM_CLOUDPCPROVISIONINGPOLICYIMAGETYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCPROVISIONINGPOLICYIMAGETYPE default: return 0, errors.New("Unknown CloudPcProvisioningPolicyImageType value: " + v) } diff --git a/models/cloud_pc_provisioning_policy_provisioning_type.go b/models/cloud_pc_provisioning_policy_provisioning_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_provisioning_type.go b/models/cloud_pc_provisioning_type.go deleted file mode 100644 index c8f43c4e90d..00000000000 --- a/models/cloud_pc_provisioning_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcProvisioningType int - -const ( - DEDICATED_CLOUDPCPROVISIONINGTYPE CloudPcProvisioningType = iota - SHARED_CLOUDPCPROVISIONINGTYPE - UNKNOWNFUTUREVALUE_CLOUDPCPROVISIONINGTYPE -) - -func (i CloudPcProvisioningType) String() string { - return []string{"dedicated", "shared", "unknownFutureValue"}[i] -} -func ParseCloudPcProvisioningType(v string) (any, error) { - result := DEDICATED_CLOUDPCPROVISIONINGTYPE - switch v { - case "dedicated": - result = DEDICATED_CLOUDPCPROVISIONINGTYPE - case "shared": - result = SHARED_CLOUDPCPROVISIONINGTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCPROVISIONINGTYPE - default: - return 0, errors.New("Unknown CloudPcProvisioningType value: " + v) - } - return &result, nil -} -func SerializeCloudPcProvisioningType(values []CloudPcProvisioningType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcProvisioningType) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_remote_action_capability.go b/models/cloud_pc_remote_action_capability.go index 3399a925a3f..b82e5b45efc 100644 --- a/models/cloud_pc_remote_action_capability.go +++ b/models/cloud_pc_remote_action_capability.go @@ -23,24 +23,24 @@ func CreateCloudPcRemoteActionCapabilityFromDiscriminatorValue(parseNode i878a80 return NewCloudPcRemoteActionCapability(), nil } // GetActionCapability gets the actionCapability property value. Indicates the state of the supported action capability to perform a Cloud PC remote action. Possible values are: enabled, disabled. Default value is enabled. -func (m *CloudPcRemoteActionCapability) GetActionCapability()(*ActionCapability) { +func (m *CloudPcRemoteActionCapability) GetActionCapability()(*CloudPcRemoteActionCapability_actionCapability) { val, err := m.GetBackingStore().Get("actionCapability") if err != nil { panic(err) } if val != nil { - return val.(*ActionCapability) + return val.(*CloudPcRemoteActionCapability_actionCapability) } return nil } // GetActionName gets the actionName property value. The name of the supported Cloud PC remote action. Possible values are: unknown, restart, rename, restore, resize, reprovision, troubleShoot, changeUserAccountType, placeUnderReview. Default value is unknown. -func (m *CloudPcRemoteActionCapability) GetActionName()(*CloudPcRemoteActionName) { +func (m *CloudPcRemoteActionCapability) GetActionName()(*CloudPcRemoteActionCapability_actionName) { val, err := m.GetBackingStore().Get("actionName") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcRemoteActionName) + return val.(*CloudPcRemoteActionCapability_actionName) } return nil } @@ -64,22 +64,22 @@ func (m *CloudPcRemoteActionCapability) GetBackingStore()(ie8677ce2c7e1b4c22e9c3 func (m *CloudPcRemoteActionCapability) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["actionCapability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseActionCapability) + val, err := n.GetEnumValue(ParseCloudPcRemoteActionCapability_actionCapability) if err != nil { return err } if val != nil { - m.SetActionCapability(val.(*ActionCapability)) + m.SetActionCapability(val.(*CloudPcRemoteActionCapability_actionCapability)) } return nil } res["actionName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcRemoteActionName) + val, err := n.GetEnumValue(ParseCloudPcRemoteActionCapability_actionName) if err != nil { return err } if val != nil { - m.SetActionName(val.(*CloudPcRemoteActionName)) + m.SetActionName(val.(*CloudPcRemoteActionCapability_actionName)) } return nil } @@ -137,14 +137,14 @@ func (m *CloudPcRemoteActionCapability) Serialize(writer i878a80d2330e89d2689638 return nil } // SetActionCapability sets the actionCapability property value. Indicates the state of the supported action capability to perform a Cloud PC remote action. Possible values are: enabled, disabled. Default value is enabled. -func (m *CloudPcRemoteActionCapability) SetActionCapability(value *ActionCapability)() { +func (m *CloudPcRemoteActionCapability) SetActionCapability(value *CloudPcRemoteActionCapability_actionCapability)() { err := m.GetBackingStore().Set("actionCapability", value) if err != nil { panic(err) } } // SetActionName sets the actionName property value. The name of the supported Cloud PC remote action. Possible values are: unknown, restart, rename, restore, resize, reprovision, troubleShoot, changeUserAccountType, placeUnderReview. Default value is unknown. -func (m *CloudPcRemoteActionCapability) SetActionName(value *CloudPcRemoteActionName)() { +func (m *CloudPcRemoteActionCapability) SetActionName(value *CloudPcRemoteActionCapability_actionName)() { err := m.GetBackingStore().Set("actionName", value) if err != nil { panic(err) @@ -173,12 +173,12 @@ type CloudPcRemoteActionCapabilityable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActionCapability()(*ActionCapability) - GetActionName()(*CloudPcRemoteActionName) + GetActionCapability()(*CloudPcRemoteActionCapability_actionCapability) + GetActionName()(*CloudPcRemoteActionCapability_actionName) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - SetActionCapability(value *ActionCapability)() - SetActionName(value *CloudPcRemoteActionName)() + SetActionCapability(value *CloudPcRemoteActionCapability_actionCapability)() + SetActionName(value *CloudPcRemoteActionCapability_actionName)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() } diff --git a/models/cloud_pc_remote_action_capability_action_capability.go b/models/cloud_pc_remote_action_capability_action_capability.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_remote_action_capability_action_name.go b/models/cloud_pc_remote_action_capability_action_name.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_remote_action_name.go b/models/cloud_pc_remote_action_name.go deleted file mode 100644 index ce446eb02f3..00000000000 --- a/models/cloud_pc_remote_action_name.go +++ /dev/null @@ -1,73 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcRemoteActionName int - -const ( - UNKNOWN_CLOUDPCREMOTEACTIONNAME CloudPcRemoteActionName = iota - RESTART_CLOUDPCREMOTEACTIONNAME - RENAME_CLOUDPCREMOTEACTIONNAME - RESIZE_CLOUDPCREMOTEACTIONNAME - RESTORE_CLOUDPCREMOTEACTIONNAME - REPROVISION_CLOUDPCREMOTEACTIONNAME - CHANGEUSERACCOUNTTYPE_CLOUDPCREMOTEACTIONNAME - TROUBLESHOOT_CLOUDPCREMOTEACTIONNAME - PLACEUNDERREVIEW_CLOUDPCREMOTEACTIONNAME - UNKNOWNFUTUREVALUE_CLOUDPCREMOTEACTIONNAME - CREATESNAPSHOT_CLOUDPCREMOTEACTIONNAME - POWERON_CLOUDPCREMOTEACTIONNAME - POWEROFF_CLOUDPCREMOTEACTIONNAME - MOVEREGION_CLOUDPCREMOTEACTIONNAME -) - -func (i CloudPcRemoteActionName) String() string { - return []string{"unknown", "restart", "rename", "resize", "restore", "reprovision", "changeUserAccountType", "troubleshoot", "placeUnderReview", "unknownFutureValue", "createSnapshot", "powerOn", "powerOff", "moveRegion"}[i] -} -func ParseCloudPcRemoteActionName(v string) (any, error) { - result := UNKNOWN_CLOUDPCREMOTEACTIONNAME - switch v { - case "unknown": - result = UNKNOWN_CLOUDPCREMOTEACTIONNAME - case "restart": - result = RESTART_CLOUDPCREMOTEACTIONNAME - case "rename": - result = RENAME_CLOUDPCREMOTEACTIONNAME - case "resize": - result = RESIZE_CLOUDPCREMOTEACTIONNAME - case "restore": - result = RESTORE_CLOUDPCREMOTEACTIONNAME - case "reprovision": - result = REPROVISION_CLOUDPCREMOTEACTIONNAME - case "changeUserAccountType": - result = CHANGEUSERACCOUNTTYPE_CLOUDPCREMOTEACTIONNAME - case "troubleshoot": - result = TROUBLESHOOT_CLOUDPCREMOTEACTIONNAME - case "placeUnderReview": - result = PLACEUNDERREVIEW_CLOUDPCREMOTEACTIONNAME - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCREMOTEACTIONNAME - case "createSnapshot": - result = CREATESNAPSHOT_CLOUDPCREMOTEACTIONNAME - case "powerOn": - result = POWERON_CLOUDPCREMOTEACTIONNAME - case "powerOff": - result = POWEROFF_CLOUDPCREMOTEACTIONNAME - case "moveRegion": - result = MOVEREGION_CLOUDPCREMOTEACTIONNAME - default: - return 0, errors.New("Unknown CloudPcRemoteActionName value: " + v) - } - return &result, nil -} -func SerializeCloudPcRemoteActionName(values []CloudPcRemoteActionName) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcRemoteActionName) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_remote_action_result.go b/models/cloud_pc_remote_action_result.go index 75df521a3ca..8e91b90f628 100644 --- a/models/cloud_pc_remote_action_result.go +++ b/models/cloud_pc_remote_action_result.go @@ -35,13 +35,13 @@ func (m *CloudPcRemoteActionResult) GetActionName()(*string) { return nil } // GetActionState gets the actionState property value. State of the action. Possible values are: None, pending, canceled, active, done, failed, notSupported. Read-only. -func (m *CloudPcRemoteActionResult) GetActionState()(*ActionState) { +func (m *CloudPcRemoteActionResult) GetActionState()(*CloudPcRemoteActionResult_actionState) { val, err := m.GetBackingStore().Get("actionState") if err != nil { panic(err) } if val != nil { - return val.(*ActionState) + return val.(*CloudPcRemoteActionResult_actionState) } return nil } @@ -86,12 +86,12 @@ func (m *CloudPcRemoteActionResult) GetFieldDeserializers()(map[string]func(i878 return nil } res["actionState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseActionState) + val, err := n.GetEnumValue(ParseCloudPcRemoteActionResult_actionState) if err != nil { return err } if val != nil { - m.SetActionState(val.(*ActionState)) + m.SetActionState(val.(*CloudPcRemoteActionResult_actionState)) } return nil } @@ -279,7 +279,7 @@ func (m *CloudPcRemoteActionResult) SetActionName(value *string)() { } } // SetActionState sets the actionState property value. State of the action. Possible values are: None, pending, canceled, active, done, failed, notSupported. Read-only. -func (m *CloudPcRemoteActionResult) SetActionState(value *ActionState)() { +func (m *CloudPcRemoteActionResult) SetActionState(value *CloudPcRemoteActionResult_actionState)() { err := m.GetBackingStore().Set("actionState", value) if err != nil { panic(err) @@ -344,7 +344,7 @@ type CloudPcRemoteActionResultable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActionName()(*string) - GetActionState()(*ActionState) + GetActionState()(*CloudPcRemoteActionResult_actionState) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCloudPcId()(*string) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -353,7 +353,7 @@ type CloudPcRemoteActionResultable interface { GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetStatusDetails()(CloudPcStatusDetailsable) SetActionName(value *string)() - SetActionState(value *ActionState)() + SetActionState(value *CloudPcRemoteActionResult_actionState)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCloudPcId(value *string)() SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/cloud_pc_remote_action_result_action_state.go b/models/cloud_pc_remote_action_result_action_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_report_name.go b/models/cloud_pc_report_name.go deleted file mode 100644 index d5880c0b10e..00000000000 --- a/models/cloud_pc_report_name.go +++ /dev/null @@ -1,70 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcReportName int - -const ( - REMOTECONNECTIONHISTORICALREPORTS_CLOUDPCREPORTNAME CloudPcReportName = iota - DAILYAGGREGATEDREMOTECONNECTIONREPORTS_CLOUDPCREPORTNAME - TOTALAGGREGATEDREMOTECONNECTIONREPORTS_CLOUDPCREPORTNAME - SHAREDUSELICENSEUSAGEREPORT_CLOUDPCREPORTNAME - SHAREDUSELICENSEUSAGEREALTIMEREPORT_CLOUDPCREPORTNAME - UNKNOWNFUTUREVALUE_CLOUDPCREPORTNAME - NOLICENSEAVAILABLECONNECTIVITYFAILUREREPORT_CLOUDPCREPORTNAME - FRONTLINELICENSEUSAGEREPORT_CLOUDPCREPORTNAME - FRONTLINELICENSEUSAGEREALTIMEREPORT_CLOUDPCREPORTNAME - REMOTECONNECTIONQUALITYREPORTS_CLOUDPCREPORTNAME - INACCESSIBLECLOUDPCREPORTS_CLOUDPCREPORTNAME - RAWREMOTECONNECTIONREPORTS_CLOUDPCREPORTNAME - CLOUDPCUSAGECATEGORYREPORTS_CLOUDPCREPORTNAME -) - -func (i CloudPcReportName) String() string { - return []string{"remoteConnectionHistoricalReports", "dailyAggregatedRemoteConnectionReports", "totalAggregatedRemoteConnectionReports", "sharedUseLicenseUsageReport", "sharedUseLicenseUsageRealTimeReport", "unknownFutureValue", "noLicenseAvailableConnectivityFailureReport", "frontlineLicenseUsageReport", "frontlineLicenseUsageRealTimeReport", "remoteConnectionQualityReports", "inaccessibleCloudPcReports", "rawRemoteConnectionReports", "cloudPcUsageCategoryReports"}[i] -} -func ParseCloudPcReportName(v string) (any, error) { - result := REMOTECONNECTIONHISTORICALREPORTS_CLOUDPCREPORTNAME - switch v { - case "remoteConnectionHistoricalReports": - result = REMOTECONNECTIONHISTORICALREPORTS_CLOUDPCREPORTNAME - case "dailyAggregatedRemoteConnectionReports": - result = DAILYAGGREGATEDREMOTECONNECTIONREPORTS_CLOUDPCREPORTNAME - case "totalAggregatedRemoteConnectionReports": - result = TOTALAGGREGATEDREMOTECONNECTIONREPORTS_CLOUDPCREPORTNAME - case "sharedUseLicenseUsageReport": - result = SHAREDUSELICENSEUSAGEREPORT_CLOUDPCREPORTNAME - case "sharedUseLicenseUsageRealTimeReport": - result = SHAREDUSELICENSEUSAGEREALTIMEREPORT_CLOUDPCREPORTNAME - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCREPORTNAME - case "noLicenseAvailableConnectivityFailureReport": - result = NOLICENSEAVAILABLECONNECTIVITYFAILUREREPORT_CLOUDPCREPORTNAME - case "frontlineLicenseUsageReport": - result = FRONTLINELICENSEUSAGEREPORT_CLOUDPCREPORTNAME - case "frontlineLicenseUsageRealTimeReport": - result = FRONTLINELICENSEUSAGEREALTIMEREPORT_CLOUDPCREPORTNAME - case "remoteConnectionQualityReports": - result = REMOTECONNECTIONQUALITYREPORTS_CLOUDPCREPORTNAME - case "inaccessibleCloudPcReports": - result = INACCESSIBLECLOUDPCREPORTS_CLOUDPCREPORTNAME - case "rawRemoteConnectionReports": - result = RAWREMOTECONNECTIONREPORTS_CLOUDPCREPORTNAME - case "cloudPcUsageCategoryReports": - result = CLOUDPCUSAGECATEGORYREPORTS_CLOUDPCREPORTNAME - default: - return 0, errors.New("Unknown CloudPcReportName value: " + v) - } - return &result, nil -} -func SerializeCloudPcReportName(values []CloudPcReportName) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcReportName) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_resize_validation_code.go b/models/cloud_pc_resize_validation_code.go deleted file mode 100644 index f2a3d516aa9..00000000000 --- a/models/cloud_pc_resize_validation_code.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcResizeValidationCode int - -const ( - SUCCESS_CLOUDPCRESIZEVALIDATIONCODE CloudPcResizeValidationCode = iota - CLOUDPCNOTFOUND_CLOUDPCRESIZEVALIDATIONCODE - OPERATIONCONFLICT_CLOUDPCRESIZEVALIDATIONCODE - OPERATIONNOTSUPPORTED_CLOUDPCRESIZEVALIDATIONCODE - TARGETLICENSEHASASSIGNED_CLOUDPCRESIZEVALIDATIONCODE - INTERNALSERVERERROR_CLOUDPCRESIZEVALIDATIONCODE - UNKNOWNFUTUREVALUE_CLOUDPCRESIZEVALIDATIONCODE -) - -func (i CloudPcResizeValidationCode) String() string { - return []string{"success", "cloudPcNotFound", "operationConflict", "operationNotSupported", "targetLicenseHasAssigned", "internalServerError", "unknownFutureValue"}[i] -} -func ParseCloudPcResizeValidationCode(v string) (any, error) { - result := SUCCESS_CLOUDPCRESIZEVALIDATIONCODE - switch v { - case "success": - result = SUCCESS_CLOUDPCRESIZEVALIDATIONCODE - case "cloudPcNotFound": - result = CLOUDPCNOTFOUND_CLOUDPCRESIZEVALIDATIONCODE - case "operationConflict": - result = OPERATIONCONFLICT_CLOUDPCRESIZEVALIDATIONCODE - case "operationNotSupported": - result = OPERATIONNOTSUPPORTED_CLOUDPCRESIZEVALIDATIONCODE - case "targetLicenseHasAssigned": - result = TARGETLICENSEHASASSIGNED_CLOUDPCRESIZEVALIDATIONCODE - case "internalServerError": - result = INTERNALSERVERERROR_CLOUDPCRESIZEVALIDATIONCODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCRESIZEVALIDATIONCODE - default: - return 0, errors.New("Unknown CloudPcResizeValidationCode value: " + v) - } - return &result, nil -} -func SerializeCloudPcResizeValidationCode(values []CloudPcResizeValidationCode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcResizeValidationCode) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_resize_validation_result.go b/models/cloud_pc_resize_validation_result.go index dcf20a29c6e..b4a390bb05b 100644 --- a/models/cloud_pc_resize_validation_result.go +++ b/models/cloud_pc_resize_validation_result.go @@ -73,12 +73,12 @@ func (m *CloudPcResizeValidationResult) GetFieldDeserializers()(map[string]func( return nil } res["validationResult"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcResizeValidationCode) + val, err := n.GetEnumValue(ParseCloudPcResizeValidationResult_validationResult) if err != nil { return err } if val != nil { - m.SetValidationResult(val.(*CloudPcResizeValidationCode)) + m.SetValidationResult(val.(*CloudPcResizeValidationResult_validationResult)) } return nil } @@ -96,13 +96,13 @@ func (m *CloudPcResizeValidationResult) GetOdataType()(*string) { return nil } // GetValidationResult gets the validationResult property value. Describes a list of the validation result for the Cloud PC resize action. The possible values are: success, cloudPcNotFound, operationCnflict, operationNotSupported, targetLicenseHasAssigned, internalServerError, and unknownFutureValue. -func (m *CloudPcResizeValidationResult) GetValidationResult()(*CloudPcResizeValidationCode) { +func (m *CloudPcResizeValidationResult) GetValidationResult()(*CloudPcResizeValidationResult_validationResult) { val, err := m.GetBackingStore().Get("validationResult") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcResizeValidationCode) + return val.(*CloudPcResizeValidationResult_validationResult) } return nil } @@ -161,7 +161,7 @@ func (m *CloudPcResizeValidationResult) SetOdataType(value *string)() { } } // SetValidationResult sets the validationResult property value. Describes a list of the validation result for the Cloud PC resize action. The possible values are: success, cloudPcNotFound, operationCnflict, operationNotSupported, targetLicenseHasAssigned, internalServerError, and unknownFutureValue. -func (m *CloudPcResizeValidationResult) SetValidationResult(value *CloudPcResizeValidationCode)() { +func (m *CloudPcResizeValidationResult) SetValidationResult(value *CloudPcResizeValidationResult_validationResult)() { err := m.GetBackingStore().Set("validationResult", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type CloudPcResizeValidationResultable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCloudPcId()(*string) GetOdataType()(*string) - GetValidationResult()(*CloudPcResizeValidationCode) + GetValidationResult()(*CloudPcResizeValidationResult_validationResult) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCloudPcId(value *string)() SetOdataType(value *string)() - SetValidationResult(value *CloudPcResizeValidationCode)() + SetValidationResult(value *CloudPcResizeValidationResult_validationResult)() } diff --git a/models/cloud_pc_resize_validation_result_validation_result.go b/models/cloud_pc_resize_validation_result_validation_result.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_restore_point_setting.go b/models/cloud_pc_restore_point_setting.go index 0becbd66710..dc89faccdc3 100644 --- a/models/cloud_pc_restore_point_setting.go +++ b/models/cloud_pc_restore_point_setting.go @@ -51,6 +51,16 @@ func (m *CloudPcRestorePointSetting) GetFieldDeserializers()(map[string]func(i87 } return nil } + res["frequencyType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcRestorePointSetting_frequencyType) + if err != nil { + return err + } + if val != nil { + m.SetFrequencyType(val.(*CloudPcRestorePointSetting_frequencyType)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -84,6 +94,17 @@ func (m *CloudPcRestorePointSetting) GetFrequencyInHours()(*int32) { } return nil } +// GetFrequencyType gets the frequencyType property value. The frequencyType property +func (m *CloudPcRestorePointSetting) GetFrequencyType()(*CloudPcRestorePointSetting_frequencyType) { + val, err := m.GetBackingStore().Get("frequencyType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcRestorePointSetting_frequencyType) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *CloudPcRestorePointSetting) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -114,6 +135,13 @@ func (m *CloudPcRestorePointSetting) Serialize(writer i878a80d2330e89d26896388a3 return err } } + if m.GetFrequencyType() != nil { + cast := (*m.GetFrequencyType()).String() + err := writer.WriteStringValue("frequencyType", &cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -152,6 +180,13 @@ func (m *CloudPcRestorePointSetting) SetFrequencyInHours(value *int32)() { panic(err) } } +// SetFrequencyType sets the frequencyType property value. The frequencyType property +func (m *CloudPcRestorePointSetting) SetFrequencyType(value *CloudPcRestorePointSetting_frequencyType)() { + err := m.GetBackingStore().Set("frequencyType", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *CloudPcRestorePointSetting) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -173,10 +208,12 @@ type CloudPcRestorePointSettingable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetFrequencyInHours()(*int32) + GetFrequencyType()(*CloudPcRestorePointSetting_frequencyType) GetOdataType()(*string) GetUserRestoreEnabled()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetFrequencyInHours(value *int32)() + SetFrequencyType(value *CloudPcRestorePointSetting_frequencyType)() SetOdataType(value *string)() SetUserRestoreEnabled(value *bool)() } diff --git a/models/cloud_pc_restore_point_setting_frequency_type.go b/models/cloud_pc_restore_point_setting_frequency_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_service_plan.go b/models/cloud_pc_service_plan.go index 538a7421dde..ccc3e45ffa8 100644 --- a/models/cloud_pc_service_plan.go +++ b/models/cloud_pc_service_plan.go @@ -44,12 +44,12 @@ func (m *CloudPcServicePlan) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["provisioningType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcProvisioningType) + val, err := n.GetEnumValue(ParseCloudPcServicePlan_provisioningType) if err != nil { return err } if val != nil { - m.SetProvisioningType(val.(*CloudPcProvisioningType)) + m.SetProvisioningType(val.(*CloudPcServicePlan_provisioningType)) } return nil } @@ -84,12 +84,12 @@ func (m *CloudPcServicePlan) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcServicePlanType) + val, err := n.GetEnumValue(ParseCloudPcServicePlan_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*CloudPcServicePlanType)) + m.SetTypeEscaped(val.(*CloudPcServicePlan_type)) } return nil } @@ -116,13 +116,13 @@ func (m *CloudPcServicePlan) GetFieldDeserializers()(map[string]func(i878a80d233 return res } // GetProvisioningType gets the provisioningType property value. Specifies the type of license used when provisioning Cloud PCs. By default, the license type is dedicated. Possible values are: dedicated, shared, unknownFutureValue. -func (m *CloudPcServicePlan) GetProvisioningType()(*CloudPcProvisioningType) { +func (m *CloudPcServicePlan) GetProvisioningType()(*CloudPcServicePlan_provisioningType) { val, err := m.GetBackingStore().Get("provisioningType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcProvisioningType) + return val.(*CloudPcServicePlan_provisioningType) } return nil } @@ -160,13 +160,13 @@ func (m *CloudPcServicePlan) GetSupportedSolution()(*CloudPcManagementService) { return nil } // GetTypeEscaped gets the type property value. The type of the service plan. Possible values are: enterprise, business, unknownFutureValue. Read-only. -func (m *CloudPcServicePlan) GetTypeEscaped()(*CloudPcServicePlanType) { +func (m *CloudPcServicePlan) GetTypeEscaped()(*CloudPcServicePlan_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcServicePlanType) + return val.(*CloudPcServicePlan_type) } return nil } @@ -259,7 +259,7 @@ func (m *CloudPcServicePlan) SetDisplayName(value *string)() { } } // SetProvisioningType sets the provisioningType property value. Specifies the type of license used when provisioning Cloud PCs. By default, the license type is dedicated. Possible values are: dedicated, shared, unknownFutureValue. -func (m *CloudPcServicePlan) SetProvisioningType(value *CloudPcProvisioningType)() { +func (m *CloudPcServicePlan) SetProvisioningType(value *CloudPcServicePlan_provisioningType)() { err := m.GetBackingStore().Set("provisioningType", value) if err != nil { panic(err) @@ -287,7 +287,7 @@ func (m *CloudPcServicePlan) SetSupportedSolution(value *CloudPcManagementServic } } // SetTypeEscaped sets the type property value. The type of the service plan. Possible values are: enterprise, business, unknownFutureValue. Read-only. -func (m *CloudPcServicePlan) SetTypeEscaped(value *CloudPcServicePlanType)() { +func (m *CloudPcServicePlan) SetTypeEscaped(value *CloudPcServicePlan_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -312,19 +312,19 @@ type CloudPcServicePlanable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) - GetProvisioningType()(*CloudPcProvisioningType) + GetProvisioningType()(*CloudPcServicePlan_provisioningType) GetRamInGB()(*int32) GetStorageInGB()(*int32) GetSupportedSolution()(*CloudPcManagementService) - GetTypeEscaped()(*CloudPcServicePlanType) + GetTypeEscaped()(*CloudPcServicePlan_type) GetUserProfileInGB()(*int32) GetVCpuCount()(*int32) SetDisplayName(value *string)() - SetProvisioningType(value *CloudPcProvisioningType)() + SetProvisioningType(value *CloudPcServicePlan_provisioningType)() SetRamInGB(value *int32)() SetStorageInGB(value *int32)() SetSupportedSolution(value *CloudPcManagementService)() - SetTypeEscaped(value *CloudPcServicePlanType)() + SetTypeEscaped(value *CloudPcServicePlan_type)() SetUserProfileInGB(value *int32)() SetVCpuCount(value *int32)() } diff --git a/models/cloud_pc_service_plan_provisioning_type.go b/models/cloud_pc_service_plan_provisioning_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_service_plan_type.go b/models/cloud_pc_service_plan_type.go index 3220345b2b6..e69de29bb2d 100644 --- a/models/cloud_pc_service_plan_type.go +++ b/models/cloud_pc_service_plan_type.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcServicePlanType int - -const ( - ENTERPRISE_CLOUDPCSERVICEPLANTYPE CloudPcServicePlanType = iota - BUSINESS_CLOUDPCSERVICEPLANTYPE - UNKNOWNFUTUREVALUE_CLOUDPCSERVICEPLANTYPE -) - -func (i CloudPcServicePlanType) String() string { - return []string{"enterprise", "business", "unknownFutureValue"}[i] -} -func ParseCloudPcServicePlanType(v string) (any, error) { - result := ENTERPRISE_CLOUDPCSERVICEPLANTYPE - switch v { - case "enterprise": - result = ENTERPRISE_CLOUDPCSERVICEPLANTYPE - case "business": - result = BUSINESS_CLOUDPCSERVICEPLANTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCSERVICEPLANTYPE - default: - return 0, errors.New("Unknown CloudPcServicePlanType value: " + v) - } - return &result, nil -} -func SerializeCloudPcServicePlanType(values []CloudPcServicePlanType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcServicePlanType) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_snapshot.go b/models/cloud_pc_snapshot.go index e26835931d7..14bc3047ed6 100644 --- a/models/cloud_pc_snapshot.go +++ b/models/cloud_pc_snapshot.go @@ -97,22 +97,22 @@ func (m *CloudPcSnapshot) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["snapshotType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcSnapshotType) + val, err := n.GetEnumValue(ParseCloudPcSnapshot_snapshotType) if err != nil { return err } if val != nil { - m.SetSnapshotType(val.(*CloudPcSnapshotType)) + m.SetSnapshotType(val.(*CloudPcSnapshot_snapshotType)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcSnapshotStatus) + val, err := n.GetEnumValue(ParseCloudPcSnapshot_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CloudPcSnapshotStatus)) + m.SetStatus(val.(*CloudPcSnapshot_status)) } return nil } @@ -130,24 +130,24 @@ func (m *CloudPcSnapshot) GetLastRestoredDateTime()(*i336074805fc853987abe6f7fe3 return nil } // GetSnapshotType gets the snapshotType property value. The type of snapshot that indicates how to create the snapshot. Possible values are automatic, manual. Default value is automatic. -func (m *CloudPcSnapshot) GetSnapshotType()(*CloudPcSnapshotType) { +func (m *CloudPcSnapshot) GetSnapshotType()(*CloudPcSnapshot_snapshotType) { val, err := m.GetBackingStore().Get("snapshotType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcSnapshotType) + return val.(*CloudPcSnapshot_snapshotType) } return nil } // GetStatus gets the status property value. The status of the Cloud PC snapshot. The possible values are: ready, unknownFutureValue. -func (m *CloudPcSnapshot) GetStatus()(*CloudPcSnapshotStatus) { +func (m *CloudPcSnapshot) GetStatus()(*CloudPcSnapshot_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcSnapshotStatus) + return val.(*CloudPcSnapshot_status) } return nil } @@ -226,14 +226,14 @@ func (m *CloudPcSnapshot) SetLastRestoredDateTime(value *i336074805fc853987abe6f } } // SetSnapshotType sets the snapshotType property value. The type of snapshot that indicates how to create the snapshot. Possible values are automatic, manual. Default value is automatic. -func (m *CloudPcSnapshot) SetSnapshotType(value *CloudPcSnapshotType)() { +func (m *CloudPcSnapshot) SetSnapshotType(value *CloudPcSnapshot_snapshotType)() { err := m.GetBackingStore().Set("snapshotType", value) if err != nil { panic(err) } } // SetStatus sets the status property value. The status of the Cloud PC snapshot. The possible values are: ready, unknownFutureValue. -func (m *CloudPcSnapshot) SetStatus(value *CloudPcSnapshotStatus)() { +func (m *CloudPcSnapshot) SetStatus(value *CloudPcSnapshot_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -247,12 +247,12 @@ type CloudPcSnapshotable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastRestoredDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetSnapshotType()(*CloudPcSnapshotType) - GetStatus()(*CloudPcSnapshotStatus) + GetSnapshotType()(*CloudPcSnapshot_snapshotType) + GetStatus()(*CloudPcSnapshot_status) SetCloudPcId(value *string)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastRestoredDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetSnapshotType(value *CloudPcSnapshotType)() - SetStatus(value *CloudPcSnapshotStatus)() + SetSnapshotType(value *CloudPcSnapshot_snapshotType)() + SetStatus(value *CloudPcSnapshot_status)() } diff --git a/models/cloud_pc_snapshot_snapshot_type.go b/models/cloud_pc_snapshot_snapshot_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_snapshot_status.go b/models/cloud_pc_snapshot_status.go index 8fbfd6eff52..e69de29bb2d 100644 --- a/models/cloud_pc_snapshot_status.go +++ b/models/cloud_pc_snapshot_status.go @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcSnapshotStatus int - -const ( - READY_CLOUDPCSNAPSHOTSTATUS CloudPcSnapshotStatus = iota - UNKNOWNFUTUREVALUE_CLOUDPCSNAPSHOTSTATUS -) - -func (i CloudPcSnapshotStatus) String() string { - return []string{"ready", "unknownFutureValue"}[i] -} -func ParseCloudPcSnapshotStatus(v string) (any, error) { - result := READY_CLOUDPCSNAPSHOTSTATUS - switch v { - case "ready": - result = READY_CLOUDPCSNAPSHOTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCSNAPSHOTSTATUS - default: - return 0, errors.New("Unknown CloudPcSnapshotStatus value: " + v) - } - return &result, nil -} -func SerializeCloudPcSnapshotStatus(values []CloudPcSnapshotStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcSnapshotStatus) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_snapshot_type.go b/models/cloud_pc_snapshot_type.go deleted file mode 100644 index c4cf5a593ff..00000000000 --- a/models/cloud_pc_snapshot_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcSnapshotType int - -const ( - AUTOMATIC_CLOUDPCSNAPSHOTTYPE CloudPcSnapshotType = iota - MANUAL_CLOUDPCSNAPSHOTTYPE - UNKNOWNFUTUREVALUE_CLOUDPCSNAPSHOTTYPE -) - -func (i CloudPcSnapshotType) String() string { - return []string{"automatic", "manual", "unknownFutureValue"}[i] -} -func ParseCloudPcSnapshotType(v string) (any, error) { - result := AUTOMATIC_CLOUDPCSNAPSHOTTYPE - switch v { - case "automatic": - result = AUTOMATIC_CLOUDPCSNAPSHOTTYPE - case "manual": - result = MANUAL_CLOUDPCSNAPSHOTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCSNAPSHOTTYPE - default: - return 0, errors.New("Unknown CloudPcSnapshotType value: " + v) - } - return &result, nil -} -func SerializeCloudPcSnapshotType(values []CloudPcSnapshotType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcSnapshotType) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_source_device_image.go b/models/cloud_pc_source_device_image.go index 5cf645470b1..81b10f48f67 100644 --- a/models/cloud_pc_source_device_image.go +++ b/models/cloud_pc_source_device_image.go @@ -82,6 +82,16 @@ func (m *CloudPcSourceDeviceImage) GetFieldDeserializers()(map[string]func(i878a } return nil } + res["resourceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceId(val) + } + return nil + } res["subscriptionDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -126,6 +136,17 @@ func (m *CloudPcSourceDeviceImage) GetOdataType()(*string) { } return nil } +// GetResourceId gets the resourceId property value. The resourceId property +func (m *CloudPcSourceDeviceImage) GetResourceId()(*string) { + val, err := m.GetBackingStore().Get("resourceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSubscriptionDisplayName gets the subscriptionDisplayName property value. The display name of subscription that hosts the source image. func (m *CloudPcSourceDeviceImage) GetSubscriptionDisplayName()(*string) { val, err := m.GetBackingStore().Get("subscriptionDisplayName") @@ -168,6 +189,12 @@ func (m *CloudPcSourceDeviceImage) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err := writer.WriteStringValue("resourceId", m.GetResourceId()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("subscriptionDisplayName", m.GetSubscriptionDisplayName()) if err != nil { @@ -220,6 +247,13 @@ func (m *CloudPcSourceDeviceImage) SetOdataType(value *string)() { panic(err) } } +// SetResourceId sets the resourceId property value. The resourceId property +func (m *CloudPcSourceDeviceImage) SetResourceId(value *string)() { + err := m.GetBackingStore().Set("resourceId", value) + if err != nil { + panic(err) + } +} // SetSubscriptionDisplayName sets the subscriptionDisplayName property value. The display name of subscription that hosts the source image. func (m *CloudPcSourceDeviceImage) SetSubscriptionDisplayName(value *string)() { err := m.GetBackingStore().Set("subscriptionDisplayName", value) @@ -243,12 +277,14 @@ type CloudPcSourceDeviceImageable interface { GetDisplayName()(*string) GetId()(*string) GetOdataType()(*string) + GetResourceId()(*string) GetSubscriptionDisplayName()(*string) GetSubscriptionId()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetId(value *string)() SetOdataType(value *string)() + SetResourceId(value *string)() SetSubscriptionDisplayName(value *string)() SetSubscriptionId(value *string)() } diff --git a/models/cloud_pc_supported_region.go b/models/cloud_pc_supported_region.go index 7db4c5a5888..d1304711366 100644 --- a/models/cloud_pc_supported_region.go +++ b/models/cloud_pc_supported_region.go @@ -54,12 +54,12 @@ func (m *CloudPcSupportedRegion) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["regionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcSupportedRegionStatus) + val, err := n.GetEnumValue(ParseCloudPcSupportedRegion_regionStatus) if err != nil { return err } if val != nil { - m.SetRegionStatus(val.(*CloudPcSupportedRegionStatus)) + m.SetRegionStatus(val.(*CloudPcSupportedRegion_regionStatus)) } return nil } @@ -87,13 +87,13 @@ func (m *CloudPcSupportedRegion) GetRegionGroup()(*CloudPcRegionGroup) { return nil } // GetRegionStatus gets the regionStatus property value. The status of the supported region. Possible values are: available, restricted, unavailable, unknownFutureValue. Read-only. -func (m *CloudPcSupportedRegion) GetRegionStatus()(*CloudPcSupportedRegionStatus) { +func (m *CloudPcSupportedRegion) GetRegionStatus()(*CloudPcSupportedRegion_regionStatus) { val, err := m.GetBackingStore().Get("regionStatus") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcSupportedRegionStatus) + return val.(*CloudPcSupportedRegion_regionStatus) } return nil } @@ -158,7 +158,7 @@ func (m *CloudPcSupportedRegion) SetRegionGroup(value *CloudPcRegionGroup)() { } } // SetRegionStatus sets the regionStatus property value. The status of the supported region. Possible values are: available, restricted, unavailable, unknownFutureValue. Read-only. -func (m *CloudPcSupportedRegion) SetRegionStatus(value *CloudPcSupportedRegionStatus)() { +func (m *CloudPcSupportedRegion) SetRegionStatus(value *CloudPcSupportedRegion_regionStatus)() { err := m.GetBackingStore().Set("regionStatus", value) if err != nil { panic(err) @@ -177,10 +177,10 @@ type CloudPcSupportedRegionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) GetRegionGroup()(*CloudPcRegionGroup) - GetRegionStatus()(*CloudPcSupportedRegionStatus) + GetRegionStatus()(*CloudPcSupportedRegion_regionStatus) GetSupportedSolution()(*CloudPcManagementService) SetDisplayName(value *string)() SetRegionGroup(value *CloudPcRegionGroup)() - SetRegionStatus(value *CloudPcSupportedRegionStatus)() + SetRegionStatus(value *CloudPcSupportedRegion_regionStatus)() SetSupportedSolution(value *CloudPcManagementService)() } diff --git a/models/cloud_pc_supported_region_region_status.go b/models/cloud_pc_supported_region_region_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_supported_region_status.go b/models/cloud_pc_supported_region_status.go deleted file mode 100644 index 8116acd0306..00000000000 --- a/models/cloud_pc_supported_region_status.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcSupportedRegionStatus int - -const ( - AVAILABLE_CLOUDPCSUPPORTEDREGIONSTATUS CloudPcSupportedRegionStatus = iota - RESTRICTED_CLOUDPCSUPPORTEDREGIONSTATUS - UNAVAILABLE_CLOUDPCSUPPORTEDREGIONSTATUS - UNKNOWNFUTUREVALUE_CLOUDPCSUPPORTEDREGIONSTATUS -) - -func (i CloudPcSupportedRegionStatus) String() string { - return []string{"available", "restricted", "unavailable", "unknownFutureValue"}[i] -} -func ParseCloudPcSupportedRegionStatus(v string) (any, error) { - result := AVAILABLE_CLOUDPCSUPPORTEDREGIONSTATUS - switch v { - case "available": - result = AVAILABLE_CLOUDPCSUPPORTEDREGIONSTATUS - case "restricted": - result = RESTRICTED_CLOUDPCSUPPORTEDREGIONSTATUS - case "unavailable": - result = UNAVAILABLE_CLOUDPCSUPPORTEDREGIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCSUPPORTEDREGIONSTATUS - default: - return 0, errors.New("Unknown CloudPcSupportedRegionStatus value: " + v) - } - return &result, nil -} -func SerializeCloudPcSupportedRegionStatus(values []CloudPcSupportedRegionStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcSupportedRegionStatus) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_tenant_encryption_setting.go b/models/cloud_pc_tenant_encryption_setting.go index 828c75cf7a3..a4191fe82de 100644 --- a/models/cloud_pc_tenant_encryption_setting.go +++ b/models/cloud_pc_tenant_encryption_setting.go @@ -63,12 +63,12 @@ func (m *CloudPcTenantEncryptionSetting) GetFieldDeserializers()(map[string]func return nil } res["tenantDiskEncryptionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCloudPcDiskEncryptionType) + val, err := n.GetEnumValue(ParseCloudPcTenantEncryptionSetting_tenantDiskEncryptionType) if err != nil { return err } if val != nil { - m.SetTenantDiskEncryptionType(val.(*CloudPcDiskEncryptionType)) + m.SetTenantDiskEncryptionType(val.(*CloudPcTenantEncryptionSetting_tenantDiskEncryptionType)) } return nil } @@ -97,13 +97,13 @@ func (m *CloudPcTenantEncryptionSetting) GetOdataType()(*string) { return nil } // GetTenantDiskEncryptionType gets the tenantDiskEncryptionType property value. The tenantDiskEncryptionType property -func (m *CloudPcTenantEncryptionSetting) GetTenantDiskEncryptionType()(*CloudPcDiskEncryptionType) { +func (m *CloudPcTenantEncryptionSetting) GetTenantDiskEncryptionType()(*CloudPcTenantEncryptionSetting_tenantDiskEncryptionType) { val, err := m.GetBackingStore().Get("tenantDiskEncryptionType") if err != nil { panic(err) } if val != nil { - return val.(*CloudPcDiskEncryptionType) + return val.(*CloudPcTenantEncryptionSetting_tenantDiskEncryptionType) } return nil } @@ -162,7 +162,7 @@ func (m *CloudPcTenantEncryptionSetting) SetOdataType(value *string)() { } } // SetTenantDiskEncryptionType sets the tenantDiskEncryptionType property value. The tenantDiskEncryptionType property -func (m *CloudPcTenantEncryptionSetting) SetTenantDiskEncryptionType(value *CloudPcDiskEncryptionType)() { +func (m *CloudPcTenantEncryptionSetting) SetTenantDiskEncryptionType(value *CloudPcTenantEncryptionSetting_tenantDiskEncryptionType)() { err := m.GetBackingStore().Set("tenantDiskEncryptionType", value) if err != nil { panic(err) @@ -176,9 +176,9 @@ type CloudPcTenantEncryptionSettingable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetLastSyncDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOdataType()(*string) - GetTenantDiskEncryptionType()(*CloudPcDiskEncryptionType) + GetTenantDiskEncryptionType()(*CloudPcTenantEncryptionSetting_tenantDiskEncryptionType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetLastSyncDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOdataType(value *string)() - SetTenantDiskEncryptionType(value *CloudPcDiskEncryptionType)() + SetTenantDiskEncryptionType(value *CloudPcTenantEncryptionSetting_tenantDiskEncryptionType)() } diff --git a/models/cloud_pc_tenant_encryption_setting_tenant_disk_encryption_type.go b/models/cloud_pc_tenant_encryption_setting_tenant_disk_encryption_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cloud_pc_user_account_type.go b/models/cloud_pc_user_account_type.go deleted file mode 100644 index 35c237f4170..00000000000 --- a/models/cloud_pc_user_account_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CloudPcUserAccountType int - -const ( - STANDARDUSER_CLOUDPCUSERACCOUNTTYPE CloudPcUserAccountType = iota - ADMINISTRATOR_CLOUDPCUSERACCOUNTTYPE - UNKNOWNFUTUREVALUE_CLOUDPCUSERACCOUNTTYPE -) - -func (i CloudPcUserAccountType) String() string { - return []string{"standardUser", "administrator", "unknownFutureValue"}[i] -} -func ParseCloudPcUserAccountType(v string) (any, error) { - result := STANDARDUSER_CLOUDPCUSERACCOUNTTYPE - switch v { - case "standardUser": - result = STANDARDUSER_CLOUDPCUSERACCOUNTTYPE - case "administrator": - result = ADMINISTRATOR_CLOUDPCUSERACCOUNTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CLOUDPCUSERACCOUNTTYPE - default: - return 0, errors.New("Unknown CloudPcUserAccountType value: " + v) - } - return &result, nil -} -func SerializeCloudPcUserAccountType(values []CloudPcUserAccountType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CloudPcUserAccountType) isMultiValue() bool { - return false -} diff --git a/models/cloud_pc_windows_setting.go b/models/cloud_pc_windows_setting.go new file mode 100644 index 00000000000..834d9466035 --- /dev/null +++ b/models/cloud_pc_windows_setting.go @@ -0,0 +1,146 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// CloudPcWindowsSetting +type CloudPcWindowsSetting struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCloudPcWindowsSetting instantiates a new cloudPcWindowsSetting and sets the default values. +func NewCloudPcWindowsSetting()(*CloudPcWindowsSetting) { + m := &CloudPcWindowsSetting{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCloudPcWindowsSettingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCloudPcWindowsSettingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcWindowsSetting(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CloudPcWindowsSetting) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *CloudPcWindowsSetting) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CloudPcWindowsSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["locale"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLocale(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetLocale gets the locale property value. The locale property +func (m *CloudPcWindowsSetting) GetLocale()(*string) { + val, err := m.GetBackingStore().Get("locale") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudPcWindowsSetting) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudPcWindowsSetting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("locale", m.GetLocale()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CloudPcWindowsSetting) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CloudPcWindowsSetting) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetLocale sets the locale property value. The locale property +func (m *CloudPcWindowsSetting) SetLocale(value *string)() { + err := m.GetBackingStore().Set("locale", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcWindowsSetting) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// CloudPcWindowsSettingable +type CloudPcWindowsSettingable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetLocale()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetLocale(value *string)() + SetOdataType(value *string)() +} diff --git a/models/coachmark_location.go b/models/coachmark_location.go index 2d41f39bdc3..d128b088080 100644 --- a/models/coachmark_location.go +++ b/models/coachmark_location.go @@ -72,12 +72,12 @@ func (m *CoachmarkLocation) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCoachmarkLocationType) + val, err := n.GetEnumValue(ParseCoachmarkLocation_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*CoachmarkLocationType)) + m.SetTypeEscaped(val.(*CoachmarkLocation_type)) } return nil } @@ -117,13 +117,13 @@ func (m *CoachmarkLocation) GetOffset()(*int32) { return nil } // GetTypeEscaped gets the type property value. Type of coachmark location. The possible values are: unknown, fromEmail, subject, externalTag, displayName, messageBody, unknownFutureValue. -func (m *CoachmarkLocation) GetTypeEscaped()(*CoachmarkLocationType) { +func (m *CoachmarkLocation) GetTypeEscaped()(*CoachmarkLocation_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*CoachmarkLocationType) + return val.(*CoachmarkLocation_type) } return nil } @@ -195,7 +195,7 @@ func (m *CoachmarkLocation) SetOffset(value *int32)() { } } // SetTypeEscaped sets the type property value. Type of coachmark location. The possible values are: unknown, fromEmail, subject, externalTag, displayName, messageBody, unknownFutureValue. -func (m *CoachmarkLocation) SetTypeEscaped(value *CoachmarkLocationType)() { +func (m *CoachmarkLocation) SetTypeEscaped(value *CoachmarkLocation_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -210,10 +210,10 @@ type CoachmarkLocationable interface { GetLength()(*int32) GetOdataType()(*string) GetOffset()(*int32) - GetTypeEscaped()(*CoachmarkLocationType) + GetTypeEscaped()(*CoachmarkLocation_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetLength(value *int32)() SetOdataType(value *string)() SetOffset(value *int32)() - SetTypeEscaped(value *CoachmarkLocationType)() + SetTypeEscaped(value *CoachmarkLocation_type)() } diff --git a/models/coachmark_location_type.go b/models/coachmark_location_type.go index 72e8fa1bb7e..e69de29bb2d 100644 --- a/models/coachmark_location_type.go +++ b/models/coachmark_location_type.go @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type CoachmarkLocationType int - -const ( - UNKNOWN_COACHMARKLOCATIONTYPE CoachmarkLocationType = iota - FROMEMAIL_COACHMARKLOCATIONTYPE - SUBJECT_COACHMARKLOCATIONTYPE - EXTERNALTAG_COACHMARKLOCATIONTYPE - DISPLAYNAME_COACHMARKLOCATIONTYPE - MESSAGEBODY_COACHMARKLOCATIONTYPE - UNKNOWNFUTUREVALUE_COACHMARKLOCATIONTYPE -) - -func (i CoachmarkLocationType) String() string { - return []string{"unknown", "fromEmail", "subject", "externalTag", "displayName", "messageBody", "unknownFutureValue"}[i] -} -func ParseCoachmarkLocationType(v string) (any, error) { - result := UNKNOWN_COACHMARKLOCATIONTYPE - switch v { - case "unknown": - result = UNKNOWN_COACHMARKLOCATIONTYPE - case "fromEmail": - result = FROMEMAIL_COACHMARKLOCATIONTYPE - case "subject": - result = SUBJECT_COACHMARKLOCATIONTYPE - case "externalTag": - result = EXTERNALTAG_COACHMARKLOCATIONTYPE - case "displayName": - result = DISPLAYNAME_COACHMARKLOCATIONTYPE - case "messageBody": - result = MESSAGEBODY_COACHMARKLOCATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_COACHMARKLOCATIONTYPE - default: - return 0, errors.New("Unknown CoachmarkLocationType value: " + v) - } - return &result, nil -} -func SerializeCoachmarkLocationType(values []CoachmarkLocationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CoachmarkLocationType) isMultiValue() bool { - return false -} diff --git a/models/column_definition.go b/models/column_definition.go index 2e7de6a219f..0424fe7fb3e 100644 --- a/models/column_definition.go +++ b/models/column_definition.go @@ -444,12 +444,12 @@ func (m *ColumnDefinition) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseColumnTypes) + val, err := n.GetEnumValue(ParseColumnDefinition_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*ColumnTypes)) + m.SetTypeEscaped(val.(*ColumnDefinition_type)) } return nil } @@ -675,13 +675,13 @@ func (m *ColumnDefinition) GetThumbnail()(ThumbnailColumnable) { return nil } // GetTypeEscaped gets the type property value. For site columns, the type of column. Read-only. -func (m *ColumnDefinition) GetTypeEscaped()(*ColumnTypes) { +func (m *ColumnDefinition) GetTypeEscaped()(*ColumnDefinition_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*ColumnTypes) + return val.(*ColumnDefinition_type) } return nil } @@ -1108,7 +1108,7 @@ func (m *ColumnDefinition) SetThumbnail(value ThumbnailColumnable)() { } } // SetTypeEscaped sets the type property value. For site columns, the type of column. Read-only. -func (m *ColumnDefinition) SetTypeEscaped(value *ColumnTypes)() { +func (m *ColumnDefinition) SetTypeEscaped(value *ColumnDefinition_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -1155,7 +1155,7 @@ type ColumnDefinitionable interface { GetTerm()(TermColumnable) GetText()(TextColumnable) GetThumbnail()(ThumbnailColumnable) - GetTypeEscaped()(*ColumnTypes) + GetTypeEscaped()(*ColumnDefinition_type) GetValidation()(ColumnValidationable) SetBoolean(value BooleanColumnable)() SetCalculated(value CalculatedColumnable)() @@ -1187,6 +1187,6 @@ type ColumnDefinitionable interface { SetTerm(value TermColumnable)() SetText(value TextColumnable)() SetThumbnail(value ThumbnailColumnable)() - SetTypeEscaped(value *ColumnTypes)() + SetTypeEscaped(value *ColumnDefinition_type)() SetValidation(value ColumnValidationable)() } diff --git a/models/column_definition_type.go b/models/column_definition_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/column_types.go b/models/column_types.go deleted file mode 100644 index a0b93a8e5b0..00000000000 --- a/models/column_types.go +++ /dev/null @@ -1,88 +0,0 @@ -package models -import ( - "errors" -) -// -type ColumnTypes int - -const ( - NOTE_COLUMNTYPES ColumnTypes = iota - TEXT_COLUMNTYPES - CHOICE_COLUMNTYPES - MULTICHOICE_COLUMNTYPES - NUMBER_COLUMNTYPES - CURRENCY_COLUMNTYPES - DATETIME_COLUMNTYPES - LOOKUP_COLUMNTYPES - BOOLEAN_COLUMNTYPES - USER_COLUMNTYPES - URL_COLUMNTYPES - CALCULATED_COLUMNTYPES - LOCATION_COLUMNTYPES - GEOLOCATION_COLUMNTYPES - TERM_COLUMNTYPES - MULTITERM_COLUMNTYPES - THUMBNAIL_COLUMNTYPES - APPROVALSTATUS_COLUMNTYPES - UNKNOWNFUTUREVALUE_COLUMNTYPES -) - -func (i ColumnTypes) String() string { - return []string{"note", "text", "choice", "multichoice", "number", "currency", "dateTime", "lookup", "boolean", "user", "url", "calculated", "location", "geolocation", "term", "multiterm", "thumbnail", "approvalStatus", "unknownFutureValue"}[i] -} -func ParseColumnTypes(v string) (any, error) { - result := NOTE_COLUMNTYPES - switch v { - case "note": - result = NOTE_COLUMNTYPES - case "text": - result = TEXT_COLUMNTYPES - case "choice": - result = CHOICE_COLUMNTYPES - case "multichoice": - result = MULTICHOICE_COLUMNTYPES - case "number": - result = NUMBER_COLUMNTYPES - case "currency": - result = CURRENCY_COLUMNTYPES - case "dateTime": - result = DATETIME_COLUMNTYPES - case "lookup": - result = LOOKUP_COLUMNTYPES - case "boolean": - result = BOOLEAN_COLUMNTYPES - case "user": - result = USER_COLUMNTYPES - case "url": - result = URL_COLUMNTYPES - case "calculated": - result = CALCULATED_COLUMNTYPES - case "location": - result = LOCATION_COLUMNTYPES - case "geolocation": - result = GEOLOCATION_COLUMNTYPES - case "term": - result = TERM_COLUMNTYPES - case "multiterm": - result = MULTITERM_COLUMNTYPES - case "thumbnail": - result = THUMBNAIL_COLUMNTYPES - case "approvalStatus": - result = APPROVALSTATUS_COLUMNTYPES - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_COLUMNTYPES - default: - return 0, errors.New("Unknown ColumnTypes value: " + v) - } - return &result, nil -} -func SerializeColumnTypes(values []ColumnTypes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ColumnTypes) isMultiValue() bool { - return false -} diff --git a/models/communications_identity_set.go b/models/communications_identity_set.go index 8f50e232c84..f22404e23f8 100644 --- a/models/communications_identity_set.go +++ b/models/communications_identity_set.go @@ -66,13 +66,13 @@ func (m *CommunicationsIdentitySet) GetEncrypted()(Identityable) { return nil } // GetEndpointType gets the endpointType property value. Type of endpoint the participant uses. Possible values are: default, voicemail, skypeForBusiness, skypeForBusinessVoipPhone and unknownFutureValue. -func (m *CommunicationsIdentitySet) GetEndpointType()(*EndpointType) { +func (m *CommunicationsIdentitySet) GetEndpointType()(*CommunicationsIdentitySet_endpointType) { val, err := m.GetBackingStore().Get("endpointType") if err != nil { panic(err) } if val != nil { - return val.(*EndpointType) + return val.(*CommunicationsIdentitySet_endpointType) } return nil } @@ -120,12 +120,12 @@ func (m *CommunicationsIdentitySet) GetFieldDeserializers()(map[string]func(i878 return nil } res["endpointType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEndpointType) + val, err := n.GetEnumValue(ParseCommunicationsIdentitySet_endpointType) if err != nil { return err } if val != nil { - m.SetEndpointType(val.(*EndpointType)) + m.SetEndpointType(val.(*CommunicationsIdentitySet_endpointType)) } return nil } @@ -280,7 +280,7 @@ func (m *CommunicationsIdentitySet) SetEncrypted(value Identityable)() { } } // SetEndpointType sets the endpointType property value. Type of endpoint the participant uses. Possible values are: default, voicemail, skypeForBusiness, skypeForBusinessVoipPhone and unknownFutureValue. -func (m *CommunicationsIdentitySet) SetEndpointType(value *EndpointType)() { +func (m *CommunicationsIdentitySet) SetEndpointType(value *CommunicationsIdentitySet_endpointType)() { err := m.GetBackingStore().Set("endpointType", value) if err != nil { panic(err) @@ -315,7 +315,7 @@ type CommunicationsIdentitySetable interface { GetAssertedIdentity()(Identityable) GetAzureCommunicationServicesUser()(Identityable) GetEncrypted()(Identityable) - GetEndpointType()(*EndpointType) + GetEndpointType()(*CommunicationsIdentitySet_endpointType) GetGuest()(Identityable) GetOnPremises()(Identityable) GetPhone()(Identityable) @@ -323,7 +323,7 @@ type CommunicationsIdentitySetable interface { SetAssertedIdentity(value Identityable)() SetAzureCommunicationServicesUser(value Identityable)() SetEncrypted(value Identityable)() - SetEndpointType(value *EndpointType)() + SetEndpointType(value *CommunicationsIdentitySet_endpointType)() SetGuest(value Identityable)() SetOnPremises(value Identityable)() SetPhone(value Identityable)() diff --git a/models/communications_identity_set_endpoint_type.go b/models/communications_identity_set_endpoint_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/community.go b/models/community.go new file mode 100644 index 00000000000..d3475e34c28 --- /dev/null +++ b/models/community.go @@ -0,0 +1,268 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Community +type Community struct { + Entity +} +// NewCommunity instantiates a new community and sets the default values. +func NewCommunity()(*Community) { + m := &Community{ + Entity: *NewEntity(), + } + return m +} +// CreateCommunityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCommunityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCommunity(), nil +} +// GetDescription gets the description property value. The description of the community. The maximum length is 1024 characters. +func (m *Community) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The name of the community. The maximum length is 255 characters. +func (m *Community) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *Community) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["group"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateGroupFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetGroup(val.(Groupable)) + } + return nil + } + res["groupId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGroupId(val) + } + return nil + } + res["owners"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateUserFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Userable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Userable) + } + } + m.SetOwners(res) + } + return nil + } + res["privacy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCommunityPrivacy) + if err != nil { + return err + } + if val != nil { + m.SetPrivacy(val.(*CommunityPrivacy)) + } + return nil + } + return res +} +// GetGroup gets the group property value. The Microsoft 365 group that manages the membership of this community. +func (m *Community) GetGroup()(Groupable) { + val, err := m.GetBackingStore().Get("group") + if err != nil { + panic(err) + } + if val != nil { + return val.(Groupable) + } + return nil +} +// GetGroupId gets the groupId property value. The ID of the Microsoft 365 group that manages the membership of this community. +func (m *Community) GetGroupId()(*string) { + val, err := m.GetBackingStore().Get("groupId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOwners gets the owners property value. The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *Community) GetOwners()([]Userable) { + val, err := m.GetBackingStore().Get("owners") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Userable) + } + return nil +} +// GetPrivacy gets the privacy property value. The privacy property +func (m *Community) GetPrivacy()(*CommunityPrivacy) { + val, err := m.GetBackingStore().Get("privacy") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CommunityPrivacy) + } + return nil +} +// Serialize serializes information the current object +func (m *Community) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("group", m.GetGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("groupId", m.GetGroupId()) + if err != nil { + return err + } + } + if m.GetOwners() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOwners())) + for i, v := range m.GetOwners() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("owners", cast) + if err != nil { + return err + } + } + if m.GetPrivacy() != nil { + cast := (*m.GetPrivacy()).String() + err = writer.WriteStringValue("privacy", &cast) + if err != nil { + return err + } + } + return nil +} +// SetDescription sets the description property value. The description of the community. The maximum length is 1024 characters. +func (m *Community) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The name of the community. The maximum length is 255 characters. +func (m *Community) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetGroup sets the group property value. The Microsoft 365 group that manages the membership of this community. +func (m *Community) SetGroup(value Groupable)() { + err := m.GetBackingStore().Set("group", value) + if err != nil { + panic(err) + } +} +// SetGroupId sets the groupId property value. The ID of the Microsoft 365 group that manages the membership of this community. +func (m *Community) SetGroupId(value *string)() { + err := m.GetBackingStore().Set("groupId", value) + if err != nil { + panic(err) + } +} +// SetOwners sets the owners property value. The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +func (m *Community) SetOwners(value []Userable)() { + err := m.GetBackingStore().Set("owners", value) + if err != nil { + panic(err) + } +} +// SetPrivacy sets the privacy property value. The privacy property +func (m *Community) SetPrivacy(value *CommunityPrivacy)() { + err := m.GetBackingStore().Set("privacy", value) + if err != nil { + panic(err) + } +} +// Communityable +type Communityable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetDisplayName()(*string) + GetGroup()(Groupable) + GetGroupId()(*string) + GetOwners()([]Userable) + GetPrivacy()(*CommunityPrivacy) + SetDescription(value *string)() + SetDisplayName(value *string)() + SetGroup(value Groupable)() + SetGroupId(value *string)() + SetOwners(value []Userable)() + SetPrivacy(value *CommunityPrivacy)() +} diff --git a/models/community_collection_response.go b/models/community_collection_response.go new file mode 100644 index 00000000000..4b545c9dec6 --- /dev/null +++ b/models/community_collection_response.go @@ -0,0 +1,87 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CommunityCollectionResponse +type CommunityCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewCommunityCollectionResponse instantiates a new communityCollectionResponse and sets the default values. +func NewCommunityCollectionResponse()(*CommunityCollectionResponse) { + m := &CommunityCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateCommunityCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCommunityCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCommunityCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CommunityCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCommunityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Communityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Communityable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *CommunityCollectionResponse) GetValue()([]Communityable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Communityable) + } + return nil +} +// Serialize serializes information the current object +func (m *CommunityCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *CommunityCollectionResponse) SetValue(value []Communityable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// CommunityCollectionResponseable +type CommunityCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]Communityable) + SetValue(value []Communityable)() +} diff --git a/models/community_privacy.go b/models/community_privacy.go new file mode 100644 index 00000000000..f01fc640e14 --- /dev/null +++ b/models/community_privacy.go @@ -0,0 +1,40 @@ +package models +import ( + "errors" +) +// +type CommunityPrivacy int + +const ( + PUBLIC_COMMUNITYPRIVACY CommunityPrivacy = iota + PRIVATE_COMMUNITYPRIVACY + UNKNOWNFUTUREVALUE_COMMUNITYPRIVACY +) + +func (i CommunityPrivacy) String() string { + return []string{"public", "private", "unknownFutureValue"}[i] +} +func ParseCommunityPrivacy(v string) (any, error) { + result := PUBLIC_COMMUNITYPRIVACY + switch v { + case "public": + result = PUBLIC_COMMUNITYPRIVACY + case "private": + result = PRIVATE_COMMUNITYPRIVACY + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_COMMUNITYPRIVACY + default: + return 0, errors.New("Unknown CommunityPrivacy value: " + v) + } + return &result, nil +} +func SerializeCommunityPrivacy(values []CommunityPrivacy) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CommunityPrivacy) isMultiValue() bool { + return false +} diff --git a/models/conditional_access_conditions.go b/models/conditional_access_conditions.go deleted file mode 100644 index 5157ec68477..00000000000 --- a/models/conditional_access_conditions.go +++ /dev/null @@ -1,95 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type ConditionalAccessConditions int - -const ( - NONE_CONDITIONALACCESSCONDITIONS ConditionalAccessConditions = iota - APPLICATION_CONDITIONALACCESSCONDITIONS - USERS_CONDITIONALACCESSCONDITIONS - DEVICEPLATFORM_CONDITIONALACCESSCONDITIONS - LOCATION_CONDITIONALACCESSCONDITIONS - CLIENTTYPE_CONDITIONALACCESSCONDITIONS - SIGNINRISK_CONDITIONALACCESSCONDITIONS - USERRISK_CONDITIONALACCESSCONDITIONS - TIME_CONDITIONALACCESSCONDITIONS - DEVICESTATE_CONDITIONALACCESSCONDITIONS - CLIENT_CONDITIONALACCESSCONDITIONS - IPADDRESSSEENBYAZUREAD_CONDITIONALACCESSCONDITIONS - IPADDRESSSEENBYRESOURCEPROVIDER_CONDITIONALACCESSCONDITIONS - UNKNOWNFUTUREVALUE_CONDITIONALACCESSCONDITIONS - SERVICEPRINCIPALS_CONDITIONALACCESSCONDITIONS - SERVICEPRINCIPALRISK_CONDITIONALACCESSCONDITIONS - AUTHENTICATIONFLOWS_CONDITIONALACCESSCONDITIONS - INSIDERRISK_CONDITIONALACCESSCONDITIONS -) - -func (i ConditionalAccessConditions) String() string { - var values []string - for p := ConditionalAccessConditions(1); p <= INSIDERRISK_CONDITIONALACCESSCONDITIONS; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "application", "users", "devicePlatform", "location", "clientType", "signInRisk", "userRisk", "time", "deviceState", "client", "ipAddressSeenByAzureAD", "ipAddressSeenByResourceProvider", "unknownFutureValue", "servicePrincipals", "servicePrincipalRisk", "authenticationFlows", "insiderRisk"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseConditionalAccessConditions(v string) (any, error) { - var result ConditionalAccessConditions - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_CONDITIONALACCESSCONDITIONS - case "application": - result |= APPLICATION_CONDITIONALACCESSCONDITIONS - case "users": - result |= USERS_CONDITIONALACCESSCONDITIONS - case "devicePlatform": - result |= DEVICEPLATFORM_CONDITIONALACCESSCONDITIONS - case "location": - result |= LOCATION_CONDITIONALACCESSCONDITIONS - case "clientType": - result |= CLIENTTYPE_CONDITIONALACCESSCONDITIONS - case "signInRisk": - result |= SIGNINRISK_CONDITIONALACCESSCONDITIONS - case "userRisk": - result |= USERRISK_CONDITIONALACCESSCONDITIONS - case "time": - result |= TIME_CONDITIONALACCESSCONDITIONS - case "deviceState": - result |= DEVICESTATE_CONDITIONALACCESSCONDITIONS - case "client": - result |= CLIENT_CONDITIONALACCESSCONDITIONS - case "ipAddressSeenByAzureAD": - result |= IPADDRESSSEENBYAZUREAD_CONDITIONALACCESSCONDITIONS - case "ipAddressSeenByResourceProvider": - result |= IPADDRESSSEENBYRESOURCEPROVIDER_CONDITIONALACCESSCONDITIONS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_CONDITIONALACCESSCONDITIONS - case "servicePrincipals": - result |= SERVICEPRINCIPALS_CONDITIONALACCESSCONDITIONS - case "servicePrincipalRisk": - result |= SERVICEPRINCIPALRISK_CONDITIONALACCESSCONDITIONS - case "authenticationFlows": - result |= AUTHENTICATIONFLOWS_CONDITIONALACCESSCONDITIONS - case "insiderRisk": - result |= INSIDERRISK_CONDITIONALACCESSCONDITIONS - default: - return 0, errors.New("Unknown ConditionalAccessConditions value: " + v) - } - } - return &result, nil -} -func SerializeConditionalAccessConditions(values []ConditionalAccessConditions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConditionalAccessConditions) isMultiValue() bool { - return true -} diff --git a/models/conditional_access_external_tenants.go b/models/conditional_access_external_tenants.go index 49b25337ff0..75ce08fd918 100644 --- a/models/conditional_access_external_tenants.go +++ b/models/conditional_access_external_tenants.go @@ -62,12 +62,12 @@ func (m *ConditionalAccessExternalTenants) GetBackingStore()(ie8677ce2c7e1b4c22e func (m *ConditionalAccessExternalTenants) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["membershipKind"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConditionalAccessExternalTenantsMembershipKind) + val, err := n.GetEnumValue(ParseConditionalAccessExternalTenants_membershipKind) if err != nil { return err } if val != nil { - m.SetMembershipKind(val.(*ConditionalAccessExternalTenantsMembershipKind)) + m.SetMembershipKind(val.(*ConditionalAccessExternalTenants_membershipKind)) } return nil } @@ -84,13 +84,13 @@ func (m *ConditionalAccessExternalTenants) GetFieldDeserializers()(map[string]fu return res } // GetMembershipKind gets the membershipKind property value. The membership kind. Possible values are: all, enumerated, unknownFutureValue. The enumerated member references an conditionalAccessEnumeratedExternalTenants object. -func (m *ConditionalAccessExternalTenants) GetMembershipKind()(*ConditionalAccessExternalTenantsMembershipKind) { +func (m *ConditionalAccessExternalTenants) GetMembershipKind()(*ConditionalAccessExternalTenants_membershipKind) { val, err := m.GetBackingStore().Get("membershipKind") if err != nil { panic(err) } if val != nil { - return val.(*ConditionalAccessExternalTenantsMembershipKind) + return val.(*ConditionalAccessExternalTenants_membershipKind) } return nil } @@ -140,7 +140,7 @@ func (m *ConditionalAccessExternalTenants) SetBackingStore(value ie8677ce2c7e1b4 m.backingStore = value } // SetMembershipKind sets the membershipKind property value. The membership kind. Possible values are: all, enumerated, unknownFutureValue. The enumerated member references an conditionalAccessEnumeratedExternalTenants object. -func (m *ConditionalAccessExternalTenants) SetMembershipKind(value *ConditionalAccessExternalTenantsMembershipKind)() { +func (m *ConditionalAccessExternalTenants) SetMembershipKind(value *ConditionalAccessExternalTenants_membershipKind)() { err := m.GetBackingStore().Set("membershipKind", value) if err != nil { panic(err) @@ -159,9 +159,9 @@ type ConditionalAccessExternalTenantsable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMembershipKind()(*ConditionalAccessExternalTenantsMembershipKind) + GetMembershipKind()(*ConditionalAccessExternalTenants_membershipKind) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMembershipKind(value *ConditionalAccessExternalTenantsMembershipKind)() + SetMembershipKind(value *ConditionalAccessExternalTenants_membershipKind)() SetOdataType(value *string)() } diff --git a/models/conditional_access_external_tenants_membership_kind.go b/models/conditional_access_external_tenants_membership_kind.go index 14972109ec2..e69de29bb2d 100644 --- a/models/conditional_access_external_tenants_membership_kind.go +++ b/models/conditional_access_external_tenants_membership_kind.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ConditionalAccessExternalTenantsMembershipKind int - -const ( - ALL_CONDITIONALACCESSEXTERNALTENANTSMEMBERSHIPKIND ConditionalAccessExternalTenantsMembershipKind = iota - ENUMERATED_CONDITIONALACCESSEXTERNALTENANTSMEMBERSHIPKIND - UNKNOWNFUTUREVALUE_CONDITIONALACCESSEXTERNALTENANTSMEMBERSHIPKIND -) - -func (i ConditionalAccessExternalTenantsMembershipKind) String() string { - return []string{"all", "enumerated", "unknownFutureValue"}[i] -} -func ParseConditionalAccessExternalTenantsMembershipKind(v string) (any, error) { - result := ALL_CONDITIONALACCESSEXTERNALTENANTSMEMBERSHIPKIND - switch v { - case "all": - result = ALL_CONDITIONALACCESSEXTERNALTENANTSMEMBERSHIPKIND - case "enumerated": - result = ENUMERATED_CONDITIONALACCESSEXTERNALTENANTSMEMBERSHIPKIND - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONDITIONALACCESSEXTERNALTENANTSMEMBERSHIPKIND - default: - return 0, errors.New("Unknown ConditionalAccessExternalTenantsMembershipKind value: " + v) - } - return &result, nil -} -func SerializeConditionalAccessExternalTenantsMembershipKind(values []ConditionalAccessExternalTenantsMembershipKind) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConditionalAccessExternalTenantsMembershipKind) isMultiValue() bool { - return false -} diff --git a/models/conditional_access_rule.go b/models/conditional_access_rule.go deleted file mode 100644 index b31804ecaa5..00000000000 --- a/models/conditional_access_rule.go +++ /dev/null @@ -1,142 +0,0 @@ -package models -import ( - "errors" -) -// -type ConditionalAccessRule int - -const ( - ALLAPPS_CONDITIONALACCESSRULE ConditionalAccessRule = iota - FIRSTPARTYAPPS_CONDITIONALACCESSRULE - OFFICE365_CONDITIONALACCESSRULE - APPID_CONDITIONALACCESSRULE - ACR_CONDITIONALACCESSRULE - APPFILTER_CONDITIONALACCESSRULE - ALLUSERS_CONDITIONALACCESSRULE - GUEST_CONDITIONALACCESSRULE - GROUPID_CONDITIONALACCESSRULE - ROLEID_CONDITIONALACCESSRULE - USERID_CONDITIONALACCESSRULE - ALLDEVICEPLATFORMS_CONDITIONALACCESSRULE - DEVICEPLATFORM_CONDITIONALACCESSRULE - ALLLOCATIONS_CONDITIONALACCESSRULE - INSIDECORPNET_CONDITIONALACCESSRULE - ALLTRUSTEDLOCATIONS_CONDITIONALACCESSRULE - LOCATIONID_CONDITIONALACCESSRULE - ALLDEVICES_CONDITIONALACCESSRULE - DEVICEFILTER_CONDITIONALACCESSRULE - DEVICESTATE_CONDITIONALACCESSRULE - UNKNOWNFUTUREVALUE_CONDITIONALACCESSRULE - DEVICEFILTERINCLUDERULENOTMATCHED_CONDITIONALACCESSRULE - ALLDEVICESTATES_CONDITIONALACCESSRULE - ANONYMIZEDIPADDRESS_CONDITIONALACCESSRULE - UNFAMILIARFEATURES_CONDITIONALACCESSRULE - NATIONSTATEIPADDRESS_CONDITIONALACCESSRULE - REALTIMETHREATINTELLIGENCE_CONDITIONALACCESSRULE - INTERNALGUEST_CONDITIONALACCESSRULE - B2BCOLLABORATIONGUEST_CONDITIONALACCESSRULE - B2BCOLLABORATIONMEMBER_CONDITIONALACCESSRULE - B2BDIRECTCONNECTUSER_CONDITIONALACCESSRULE - OTHEREXTERNALUSER_CONDITIONALACCESSRULE - SERVICEPROVIDER_CONDITIONALACCESSRULE - MICROSOFTADMINPORTALS_CONDITIONALACCESSRULE - DEVICECODEFLOW_CONDITIONALACCESSRULE - AUTHENTICATIONTRANSFER_CONDITIONALACCESSRULE - INSIDERRISK_CONDITIONALACCESSRULE -) - -func (i ConditionalAccessRule) String() string { - return []string{"allApps", "firstPartyApps", "office365", "appId", "acr", "appFilter", "allUsers", "guest", "groupId", "roleId", "userId", "allDevicePlatforms", "devicePlatform", "allLocations", "insideCorpnet", "allTrustedLocations", "locationId", "allDevices", "deviceFilter", "deviceState", "unknownFutureValue", "deviceFilterIncludeRuleNotMatched", "allDeviceStates", "anonymizedIPAddress", "unfamiliarFeatures", "nationStateIPAddress", "realTimeThreatIntelligence", "internalGuest", "b2bCollaborationGuest", "b2bCollaborationMember", "b2bDirectConnectUser", "otherExternalUser", "serviceProvider", "microsoftAdminPortals", "deviceCodeFlow", "authenticationTransfer", "insiderRisk"}[i] -} -func ParseConditionalAccessRule(v string) (any, error) { - result := ALLAPPS_CONDITIONALACCESSRULE - switch v { - case "allApps": - result = ALLAPPS_CONDITIONALACCESSRULE - case "firstPartyApps": - result = FIRSTPARTYAPPS_CONDITIONALACCESSRULE - case "office365": - result = OFFICE365_CONDITIONALACCESSRULE - case "appId": - result = APPID_CONDITIONALACCESSRULE - case "acr": - result = ACR_CONDITIONALACCESSRULE - case "appFilter": - result = APPFILTER_CONDITIONALACCESSRULE - case "allUsers": - result = ALLUSERS_CONDITIONALACCESSRULE - case "guest": - result = GUEST_CONDITIONALACCESSRULE - case "groupId": - result = GROUPID_CONDITIONALACCESSRULE - case "roleId": - result = ROLEID_CONDITIONALACCESSRULE - case "userId": - result = USERID_CONDITIONALACCESSRULE - case "allDevicePlatforms": - result = ALLDEVICEPLATFORMS_CONDITIONALACCESSRULE - case "devicePlatform": - result = DEVICEPLATFORM_CONDITIONALACCESSRULE - case "allLocations": - result = ALLLOCATIONS_CONDITIONALACCESSRULE - case "insideCorpnet": - result = INSIDECORPNET_CONDITIONALACCESSRULE - case "allTrustedLocations": - result = ALLTRUSTEDLOCATIONS_CONDITIONALACCESSRULE - case "locationId": - result = LOCATIONID_CONDITIONALACCESSRULE - case "allDevices": - result = ALLDEVICES_CONDITIONALACCESSRULE - case "deviceFilter": - result = DEVICEFILTER_CONDITIONALACCESSRULE - case "deviceState": - result = DEVICESTATE_CONDITIONALACCESSRULE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONDITIONALACCESSRULE - case "deviceFilterIncludeRuleNotMatched": - result = DEVICEFILTERINCLUDERULENOTMATCHED_CONDITIONALACCESSRULE - case "allDeviceStates": - result = ALLDEVICESTATES_CONDITIONALACCESSRULE - case "anonymizedIPAddress": - result = ANONYMIZEDIPADDRESS_CONDITIONALACCESSRULE - case "unfamiliarFeatures": - result = UNFAMILIARFEATURES_CONDITIONALACCESSRULE - case "nationStateIPAddress": - result = NATIONSTATEIPADDRESS_CONDITIONALACCESSRULE - case "realTimeThreatIntelligence": - result = REALTIMETHREATINTELLIGENCE_CONDITIONALACCESSRULE - case "internalGuest": - result = INTERNALGUEST_CONDITIONALACCESSRULE - case "b2bCollaborationGuest": - result = B2BCOLLABORATIONGUEST_CONDITIONALACCESSRULE - case "b2bCollaborationMember": - result = B2BCOLLABORATIONMEMBER_CONDITIONALACCESSRULE - case "b2bDirectConnectUser": - result = B2BDIRECTCONNECTUSER_CONDITIONALACCESSRULE - case "otherExternalUser": - result = OTHEREXTERNALUSER_CONDITIONALACCESSRULE - case "serviceProvider": - result = SERVICEPROVIDER_CONDITIONALACCESSRULE - case "microsoftAdminPortals": - result = MICROSOFTADMINPORTALS_CONDITIONALACCESSRULE - case "deviceCodeFlow": - result = DEVICECODEFLOW_CONDITIONALACCESSRULE - case "authenticationTransfer": - result = AUTHENTICATIONTRANSFER_CONDITIONALACCESSRULE - case "insiderRisk": - result = INSIDERRISK_CONDITIONALACCESSRULE - default: - return 0, errors.New("Unknown ConditionalAccessRule value: " + v) - } - return &result, nil -} -func SerializeConditionalAccessRule(values []ConditionalAccessRule) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConditionalAccessRule) isMultiValue() bool { - return false -} diff --git a/models/conditional_access_rule_satisfied.go b/models/conditional_access_rule_satisfied.go index 6049c06f995..f394ace0dfd 100644 --- a/models/conditional_access_rule_satisfied.go +++ b/models/conditional_access_rule_satisfied.go @@ -39,13 +39,13 @@ func (m *ConditionalAccessRuleSatisfied) GetBackingStore()(ie8677ce2c7e1b4c22e9c return m.backingStore } // GetConditionalAccessCondition gets the conditionalAccessCondition property value. Refers to the conditional access policy conditions that are satisfied. The possible values are: none, application, users, devicePlatform, location, clientType, signInRisk, userRisk, time, deviceState, client, ipAddressSeenByAzureAD, ipAddressSeenByResourceProvider, unknownFutureValue, servicePrincipals, servicePrincipalRisk, authenticationFlows, insiderRisk. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: servicePrincipals, servicePrincipalRisk, authenticationFlows, insiderRisk. conditionalAccessConditions is a multi-valued enumeration and the property can contain multiple values in a comma-separated list. -func (m *ConditionalAccessRuleSatisfied) GetConditionalAccessCondition()(*ConditionalAccessConditions) { +func (m *ConditionalAccessRuleSatisfied) GetConditionalAccessCondition()(*ConditionalAccessRuleSatisfied_conditionalAccessCondition) { val, err := m.GetBackingStore().Get("conditionalAccessCondition") if err != nil { panic(err) } if val != nil { - return val.(*ConditionalAccessConditions) + return val.(*ConditionalAccessRuleSatisfied_conditionalAccessCondition) } return nil } @@ -53,12 +53,12 @@ func (m *ConditionalAccessRuleSatisfied) GetConditionalAccessCondition()(*Condit func (m *ConditionalAccessRuleSatisfied) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["conditionalAccessCondition"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConditionalAccessConditions) + val, err := n.GetEnumValue(ParseConditionalAccessRuleSatisfied_conditionalAccessCondition) if err != nil { return err } if val != nil { - m.SetConditionalAccessCondition(val.(*ConditionalAccessConditions)) + m.SetConditionalAccessCondition(val.(*ConditionalAccessRuleSatisfied_conditionalAccessCondition)) } return nil } @@ -73,12 +73,12 @@ func (m *ConditionalAccessRuleSatisfied) GetFieldDeserializers()(map[string]func return nil } res["ruleSatisfied"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConditionalAccessRule) + val, err := n.GetEnumValue(ParseConditionalAccessRuleSatisfied_ruleSatisfied) if err != nil { return err } if val != nil { - m.SetRuleSatisfied(val.(*ConditionalAccessRule)) + m.SetRuleSatisfied(val.(*ConditionalAccessRuleSatisfied_ruleSatisfied)) } return nil } @@ -96,13 +96,13 @@ func (m *ConditionalAccessRuleSatisfied) GetOdataType()(*string) { return nil } // GetRuleSatisfied gets the ruleSatisfied property value. Refers to the conditional access policy conditions that were satisfied. The possible values are: allApps, firstPartyApps, office365, appId, acr, appFilter, allUsers, guest, groupId, roleId, userId, allDevicePlatforms, devicePlatform, allLocations, insideCorpnet, allTrustedLocations, locationId, allDevices, deviceFilter, deviceState, unknownFutureValue, deviceFilterIncludeRuleNotMatched, allDeviceStates, anonymizedIPAddress, unfamiliarFeatures, nationStateIPAddress, realTimeThreatIntelligence, internalGuest, b2bCollaborationGuest, b2bCollaborationMember, b2bDirectConnectUser, otherExternalUser, serviceProvider, microsoftAdminPortals, deviceCodeFlow, accountTransfer, insiderRisk. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: deviceFilterIncludeRuleNotMatched, allDeviceStates, anonymizedIPAddress, unfamiliarFeatures, nationStateIPAddress, realTimeThreatIntelligence, internalGuest, b2bCollaborationGuest, b2bCollaborationMember, b2bDirectConnectUser, otherExternalUser, serviceProvider, microsoftAdminPortals, deviceCodeFlow, accountTransfer, insiderRisk. -func (m *ConditionalAccessRuleSatisfied) GetRuleSatisfied()(*ConditionalAccessRule) { +func (m *ConditionalAccessRuleSatisfied) GetRuleSatisfied()(*ConditionalAccessRuleSatisfied_ruleSatisfied) { val, err := m.GetBackingStore().Get("ruleSatisfied") if err != nil { panic(err) } if val != nil { - return val.(*ConditionalAccessRule) + return val.(*ConditionalAccessRuleSatisfied_ruleSatisfied) } return nil } @@ -148,7 +148,7 @@ func (m *ConditionalAccessRuleSatisfied) SetBackingStore(value ie8677ce2c7e1b4c2 m.backingStore = value } // SetConditionalAccessCondition sets the conditionalAccessCondition property value. Refers to the conditional access policy conditions that are satisfied. The possible values are: none, application, users, devicePlatform, location, clientType, signInRisk, userRisk, time, deviceState, client, ipAddressSeenByAzureAD, ipAddressSeenByResourceProvider, unknownFutureValue, servicePrincipals, servicePrincipalRisk, authenticationFlows, insiderRisk. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: servicePrincipals, servicePrincipalRisk, authenticationFlows, insiderRisk. conditionalAccessConditions is a multi-valued enumeration and the property can contain multiple values in a comma-separated list. -func (m *ConditionalAccessRuleSatisfied) SetConditionalAccessCondition(value *ConditionalAccessConditions)() { +func (m *ConditionalAccessRuleSatisfied) SetConditionalAccessCondition(value *ConditionalAccessRuleSatisfied_conditionalAccessCondition)() { err := m.GetBackingStore().Set("conditionalAccessCondition", value) if err != nil { panic(err) @@ -162,7 +162,7 @@ func (m *ConditionalAccessRuleSatisfied) SetOdataType(value *string)() { } } // SetRuleSatisfied sets the ruleSatisfied property value. Refers to the conditional access policy conditions that were satisfied. The possible values are: allApps, firstPartyApps, office365, appId, acr, appFilter, allUsers, guest, groupId, roleId, userId, allDevicePlatforms, devicePlatform, allLocations, insideCorpnet, allTrustedLocations, locationId, allDevices, deviceFilter, deviceState, unknownFutureValue, deviceFilterIncludeRuleNotMatched, allDeviceStates, anonymizedIPAddress, unfamiliarFeatures, nationStateIPAddress, realTimeThreatIntelligence, internalGuest, b2bCollaborationGuest, b2bCollaborationMember, b2bDirectConnectUser, otherExternalUser, serviceProvider, microsoftAdminPortals, deviceCodeFlow, accountTransfer, insiderRisk. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: deviceFilterIncludeRuleNotMatched, allDeviceStates, anonymizedIPAddress, unfamiliarFeatures, nationStateIPAddress, realTimeThreatIntelligence, internalGuest, b2bCollaborationGuest, b2bCollaborationMember, b2bDirectConnectUser, otherExternalUser, serviceProvider, microsoftAdminPortals, deviceCodeFlow, accountTransfer, insiderRisk. -func (m *ConditionalAccessRuleSatisfied) SetRuleSatisfied(value *ConditionalAccessRule)() { +func (m *ConditionalAccessRuleSatisfied) SetRuleSatisfied(value *ConditionalAccessRuleSatisfied_ruleSatisfied)() { err := m.GetBackingStore().Set("ruleSatisfied", value) if err != nil { panic(err) @@ -174,11 +174,11 @@ type ConditionalAccessRuleSatisfiedable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetConditionalAccessCondition()(*ConditionalAccessConditions) + GetConditionalAccessCondition()(*ConditionalAccessRuleSatisfied_conditionalAccessCondition) GetOdataType()(*string) - GetRuleSatisfied()(*ConditionalAccessRule) + GetRuleSatisfied()(*ConditionalAccessRuleSatisfied_ruleSatisfied) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetConditionalAccessCondition(value *ConditionalAccessConditions)() + SetConditionalAccessCondition(value *ConditionalAccessRuleSatisfied_conditionalAccessCondition)() SetOdataType(value *string)() - SetRuleSatisfied(value *ConditionalAccessRule)() + SetRuleSatisfied(value *ConditionalAccessRuleSatisfied_ruleSatisfied)() } diff --git a/models/conditional_access_rule_satisfied_conditional_access_condition.go b/models/conditional_access_rule_satisfied_conditional_access_condition.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/conditional_access_rule_satisfied_rule_satisfied.go b/models/conditional_access_rule_satisfied_rule_satisfied.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/conditional_access_status.go b/models/conditional_access_status.go deleted file mode 100644 index d228f67143d..00000000000 --- a/models/conditional_access_status.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ConditionalAccessStatus int - -const ( - SUCCESS_CONDITIONALACCESSSTATUS ConditionalAccessStatus = iota - FAILURE_CONDITIONALACCESSSTATUS - NOTAPPLIED_CONDITIONALACCESSSTATUS - UNKNOWNFUTUREVALUE_CONDITIONALACCESSSTATUS -) - -func (i ConditionalAccessStatus) String() string { - return []string{"success", "failure", "notApplied", "unknownFutureValue"}[i] -} -func ParseConditionalAccessStatus(v string) (any, error) { - result := SUCCESS_CONDITIONALACCESSSTATUS - switch v { - case "success": - result = SUCCESS_CONDITIONALACCESSSTATUS - case "failure": - result = FAILURE_CONDITIONALACCESSSTATUS - case "notApplied": - result = NOTAPPLIED_CONDITIONALACCESSSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONDITIONALACCESSSTATUS - default: - return 0, errors.New("Unknown ConditionalAccessStatus value: " + v) - } - return &result, nil -} -func SerializeConditionalAccessStatus(values []ConditionalAccessStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConditionalAccessStatus) isMultiValue() bool { - return false -} diff --git a/models/confirmed_by.go b/models/confirmed_by.go deleted file mode 100644 index 2c4ea6e9776..00000000000 --- a/models/confirmed_by.go +++ /dev/null @@ -1,53 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type ConfirmedBy int - -const ( - NONE_CONFIRMEDBY ConfirmedBy = iota - USER_CONFIRMEDBY - MANAGER_CONFIRMEDBY - UNKNOWNFUTUREVALUE_CONFIRMEDBY -) - -func (i ConfirmedBy) String() string { - var values []string - for p := ConfirmedBy(1); p <= UNKNOWNFUTUREVALUE_CONFIRMEDBY; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "user", "manager", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseConfirmedBy(v string) (any, error) { - var result ConfirmedBy - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_CONFIRMEDBY - case "user": - result |= USER_CONFIRMEDBY - case "manager": - result |= MANAGER_CONFIRMEDBY - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_CONFIRMEDBY - default: - return 0, errors.New("Unknown ConfirmedBy value: " + v) - } - } - return &result, nil -} -func SerializeConfirmedBy(values []ConfirmedBy) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConfirmedBy) isMultiValue() bool { - return true -} diff --git a/models/connected_organization.go b/models/connected_organization.go index d61f74d1cdb..283fdb74dcc 100644 --- a/models/connected_organization.go +++ b/models/connected_organization.go @@ -187,12 +187,12 @@ func (m *ConnectedOrganization) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectedOrganizationState) + val, err := n.GetEnumValue(ParseConnectedOrganization_state) if err != nil { return err } if val != nil { - m.SetState(val.(*ConnectedOrganizationState)) + m.SetState(val.(*ConnectedOrganization_state)) } return nil } @@ -243,13 +243,13 @@ func (m *ConnectedOrganization) GetModifiedDateTime()(*i336074805fc853987abe6f7f return nil } // GetState gets the state property value. The state of a connected organization defines whether assignment policies with requestor scope type AllConfiguredConnectedOrganizationSubjects are applicable or not. Possible values are: configured, proposed. -func (m *ConnectedOrganization) GetState()(*ConnectedOrganizationState) { +func (m *ConnectedOrganization) GetState()(*ConnectedOrganization_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*ConnectedOrganizationState) + return val.(*ConnectedOrganization_state) } return nil } @@ -404,7 +404,7 @@ func (m *ConnectedOrganization) SetModifiedDateTime(value *i336074805fc853987abe } } // SetState sets the state property value. The state of a connected organization defines whether assignment policies with requestor scope type AllConfiguredConnectedOrganizationSubjects are applicable or not. Possible values are: configured, proposed. -func (m *ConnectedOrganization) SetState(value *ConnectedOrganizationState)() { +func (m *ConnectedOrganization) SetState(value *ConnectedOrganization_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -423,7 +423,7 @@ type ConnectedOrganizationable interface { GetInternalSponsors()([]DirectoryObjectable) GetModifiedBy()(*string) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetState()(*ConnectedOrganizationState) + GetState()(*ConnectedOrganization_state) SetCreatedBy(value *string)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() @@ -433,5 +433,5 @@ type ConnectedOrganizationable interface { SetInternalSponsors(value []DirectoryObjectable)() SetModifiedBy(value *string)() SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetState(value *ConnectedOrganizationState)() + SetState(value *ConnectedOrganization_state)() } diff --git a/models/connected_organization_state.go b/models/connected_organization_state.go index 7f3316fa39f..e69de29bb2d 100644 --- a/models/connected_organization_state.go +++ b/models/connected_organization_state.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ConnectedOrganizationState int - -const ( - CONFIGURED_CONNECTEDORGANIZATIONSTATE ConnectedOrganizationState = iota - PROPOSED_CONNECTEDORGANIZATIONSTATE - UNKNOWNFUTUREVALUE_CONNECTEDORGANIZATIONSTATE -) - -func (i ConnectedOrganizationState) String() string { - return []string{"configured", "proposed", "unknownFutureValue"}[i] -} -func ParseConnectedOrganizationState(v string) (any, error) { - result := CONFIGURED_CONNECTEDORGANIZATIONSTATE - switch v { - case "configured": - result = CONFIGURED_CONNECTEDORGANIZATIONSTATE - case "proposed": - result = PROPOSED_CONNECTEDORGANIZATIONSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONNECTEDORGANIZATIONSTATE - default: - return 0, errors.New("Unknown ConnectedOrganizationState value: " + v) - } - return &result, nil -} -func SerializeConnectedOrganizationState(values []ConnectedOrganizationState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectedOrganizationState) isMultiValue() bool { - return false -} diff --git a/models/connection_direction.go b/models/connection_direction.go deleted file mode 100644 index 300b87a2abb..00000000000 --- a/models/connection_direction.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ConnectionDirection int - -const ( - UNKNOWN_CONNECTIONDIRECTION ConnectionDirection = iota - INBOUND_CONNECTIONDIRECTION - OUTBOUND_CONNECTIONDIRECTION - UNKNOWNFUTUREVALUE_CONNECTIONDIRECTION -) - -func (i ConnectionDirection) String() string { - return []string{"unknown", "inbound", "outbound", "unknownFutureValue"}[i] -} -func ParseConnectionDirection(v string) (any, error) { - result := UNKNOWN_CONNECTIONDIRECTION - switch v { - case "unknown": - result = UNKNOWN_CONNECTIONDIRECTION - case "inbound": - result = INBOUND_CONNECTIONDIRECTION - case "outbound": - result = OUTBOUND_CONNECTIONDIRECTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONNECTIONDIRECTION - default: - return 0, errors.New("Unknown ConnectionDirection value: " + v) - } - return &result, nil -} -func SerializeConnectionDirection(values []ConnectionDirection) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectionDirection) isMultiValue() bool { - return false -} diff --git a/models/connection_operation.go b/models/connection_operation.go index 838df178361..e02d3f020f9 100644 --- a/models/connection_operation.go +++ b/models/connection_operation.go @@ -44,25 +44,25 @@ func (m *ConnectionOperation) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectionOperationStatus) + val, err := n.GetEnumValue(ParseConnectionOperation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*ConnectionOperationStatus)) + m.SetStatus(val.(*ConnectionOperation_status)) } return nil } return res } // GetStatus gets the status property value. The status property -func (m *ConnectionOperation) GetStatus()(*ConnectionOperationStatus) { +func (m *ConnectionOperation) GetStatus()(*ConnectionOperation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*ConnectionOperationStatus) + return val.(*ConnectionOperation_status) } return nil } @@ -95,7 +95,7 @@ func (m *ConnectionOperation) SetError(value PublicErrorable)() { } } // SetStatus sets the status property value. The status property -func (m *ConnectionOperation) SetStatus(value *ConnectionOperationStatus)() { +func (m *ConnectionOperation) SetStatus(value *ConnectionOperation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -106,7 +106,7 @@ type ConnectionOperationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetError()(PublicErrorable) - GetStatus()(*ConnectionOperationStatus) + GetStatus()(*ConnectionOperation_status) SetError(value PublicErrorable)() - SetStatus(value *ConnectionOperationStatus)() + SetStatus(value *ConnectionOperation_status)() } diff --git a/models/connection_operation_status.go b/models/connection_operation_status.go index b32cb2dcf15..e69de29bb2d 100644 --- a/models/connection_operation_status.go +++ b/models/connection_operation_status.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ConnectionOperationStatus int - -const ( - UNSPECIFIED_CONNECTIONOPERATIONSTATUS ConnectionOperationStatus = iota - INPROGRESS_CONNECTIONOPERATIONSTATUS - COMPLETED_CONNECTIONOPERATIONSTATUS - FAILED_CONNECTIONOPERATIONSTATUS -) - -func (i ConnectionOperationStatus) String() string { - return []string{"unspecified", "inprogress", "completed", "failed"}[i] -} -func ParseConnectionOperationStatus(v string) (any, error) { - result := UNSPECIFIED_CONNECTIONOPERATIONSTATUS - switch v { - case "unspecified": - result = UNSPECIFIED_CONNECTIONOPERATIONSTATUS - case "inprogress": - result = INPROGRESS_CONNECTIONOPERATIONSTATUS - case "completed": - result = COMPLETED_CONNECTIONOPERATIONSTATUS - case "failed": - result = FAILED_CONNECTIONOPERATIONSTATUS - default: - return 0, errors.New("Unknown ConnectionOperationStatus value: " + v) - } - return &result, nil -} -func SerializeConnectionOperationStatus(values []ConnectionOperationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectionOperationStatus) isMultiValue() bool { - return false -} diff --git a/models/connection_state.go b/models/connection_state.go deleted file mode 100644 index 900cd143413..00000000000 --- a/models/connection_state.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type ConnectionState int - -const ( - DRAFT_CONNECTIONSTATE ConnectionState = iota - READY_CONNECTIONSTATE - OBSOLETE_CONNECTIONSTATE - LIMITEXCEEDED_CONNECTIONSTATE - UNKNOWNFUTUREVALUE_CONNECTIONSTATE -) - -func (i ConnectionState) String() string { - return []string{"draft", "ready", "obsolete", "limitExceeded", "unknownFutureValue"}[i] -} -func ParseConnectionState(v string) (any, error) { - result := DRAFT_CONNECTIONSTATE - switch v { - case "draft": - result = DRAFT_CONNECTIONSTATE - case "ready": - result = READY_CONNECTIONSTATE - case "obsolete": - result = OBSOLETE_CONNECTIONSTATE - case "limitExceeded": - result = LIMITEXCEEDED_CONNECTIONSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONNECTIONSTATE - default: - return 0, errors.New("Unknown ConnectionState value: " + v) - } - return &result, nil -} -func SerializeConnectionState(values []ConnectionState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectionState) isMultiValue() bool { - return false -} diff --git a/models/connection_status.go b/models/connection_status.go deleted file mode 100644 index be0f22ce92e..00000000000 --- a/models/connection_status.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type ConnectionStatus int - -const ( - UNKNOWN_CONNECTIONSTATUS ConnectionStatus = iota - ATTEMPTED_CONNECTIONSTATUS - SUCCEEDED_CONNECTIONSTATUS - BLOCKED_CONNECTIONSTATUS - FAILED_CONNECTIONSTATUS - UNKNOWNFUTUREVALUE_CONNECTIONSTATUS -) - -func (i ConnectionStatus) String() string { - return []string{"unknown", "attempted", "succeeded", "blocked", "failed", "unknownFutureValue"}[i] -} -func ParseConnectionStatus(v string) (any, error) { - result := UNKNOWN_CONNECTIONSTATUS - switch v { - case "unknown": - result = UNKNOWN_CONNECTIONSTATUS - case "attempted": - result = ATTEMPTED_CONNECTIONSTATUS - case "succeeded": - result = SUCCEEDED_CONNECTIONSTATUS - case "blocked": - result = BLOCKED_CONNECTIONSTATUS - case "failed": - result = FAILED_CONNECTIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONNECTIONSTATUS - default: - return 0, errors.New("Unknown ConnectionStatus value: " + v) - } - return &result, nil -} -func SerializeConnectionStatus(values []ConnectionStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectionStatus) isMultiValue() bool { - return false -} diff --git a/models/connector_group.go b/models/connector_group.go index feb5ea04245..e4f65359c2c 100644 --- a/models/connector_group.go +++ b/models/connector_group.go @@ -107,12 +107,12 @@ func (m *ConnectorGroup) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectorGroupRegion) + val, err := n.GetEnumValue(ParseConnectorGroup_region) if err != nil { return err } if val != nil { - m.SetRegion(val.(*ConnectorGroupRegion)) + m.SetRegion(val.(*ConnectorGroup_region)) } return nil } @@ -152,13 +152,13 @@ func (m *ConnectorGroup) GetName()(*string) { return nil } // GetRegion gets the region property value. The region the connectorGroup is assigned to and will optimize traffic for. This region can only be set if no connectors or applications are assigned to the connectorGroup. The possible values are: nam (for North America), eur (for Europe), aus (for Australia), asia (for Asia), ind (for India), and unknownFutureValue. -func (m *ConnectorGroup) GetRegion()(*ConnectorGroupRegion) { +func (m *ConnectorGroup) GetRegion()(*ConnectorGroup_region) { val, err := m.GetBackingStore().Get("region") if err != nil { panic(err) } if val != nil { - return val.(*ConnectorGroupRegion) + return val.(*ConnectorGroup_region) } return nil } @@ -256,7 +256,7 @@ func (m *ConnectorGroup) SetName(value *string)() { } } // SetRegion sets the region property value. The region the connectorGroup is assigned to and will optimize traffic for. This region can only be set if no connectors or applications are assigned to the connectorGroup. The possible values are: nam (for North America), eur (for Europe), aus (for Australia), asia (for Asia), ind (for India), and unknownFutureValue. -func (m *ConnectorGroup) SetRegion(value *ConnectorGroupRegion)() { +func (m *ConnectorGroup) SetRegion(value *ConnectorGroup_region)() { err := m.GetBackingStore().Set("region", value) if err != nil { panic(err) @@ -271,11 +271,11 @@ type ConnectorGroupable interface { GetIsDefault()(*bool) GetMembers()([]Connectorable) GetName()(*string) - GetRegion()(*ConnectorGroupRegion) + GetRegion()(*ConnectorGroup_region) SetApplications(value []Applicationable)() SetConnectorGroupType(value *ConnectorGroupType)() SetIsDefault(value *bool)() SetMembers(value []Connectorable)() SetName(value *string)() - SetRegion(value *ConnectorGroupRegion)() + SetRegion(value *ConnectorGroup_region)() } diff --git a/models/connector_group_region.go b/models/connector_group_region.go index 1d4e99b2961..e69de29bb2d 100644 --- a/models/connector_group_region.go +++ b/models/connector_group_region.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type ConnectorGroupRegion int - -const ( - NAM_CONNECTORGROUPREGION ConnectorGroupRegion = iota - EUR_CONNECTORGROUPREGION - AUS_CONNECTORGROUPREGION - ASIA_CONNECTORGROUPREGION - IND_CONNECTORGROUPREGION - UNKNOWNFUTUREVALUE_CONNECTORGROUPREGION -) - -func (i ConnectorGroupRegion) String() string { - return []string{"nam", "eur", "aus", "asia", "ind", "unknownFutureValue"}[i] -} -func ParseConnectorGroupRegion(v string) (any, error) { - result := NAM_CONNECTORGROUPREGION - switch v { - case "nam": - result = NAM_CONNECTORGROUPREGION - case "eur": - result = EUR_CONNECTORGROUPREGION - case "aus": - result = AUS_CONNECTORGROUPREGION - case "asia": - result = ASIA_CONNECTORGROUPREGION - case "ind": - result = IND_CONNECTORGROUPREGION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONNECTORGROUPREGION - default: - return 0, errors.New("Unknown ConnectorGroupRegion value: " + v) - } - return &result, nil -} -func SerializeConnectorGroupRegion(values []ConnectorGroupRegion) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectorGroupRegion) isMultiValue() bool { - return false -} diff --git a/models/continuous_access_evaluation_mode.go b/models/continuous_access_evaluation_mode.go deleted file mode 100644 index 242401388c4..00000000000 --- a/models/continuous_access_evaluation_mode.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ContinuousAccessEvaluationMode int - -const ( - STRICTENFORCEMENT_CONTINUOUSACCESSEVALUATIONMODE ContinuousAccessEvaluationMode = iota - DISABLED_CONTINUOUSACCESSEVALUATIONMODE - UNKNOWNFUTUREVALUE_CONTINUOUSACCESSEVALUATIONMODE - STRICTLOCATION_CONTINUOUSACCESSEVALUATIONMODE -) - -func (i ContinuousAccessEvaluationMode) String() string { - return []string{"strictEnforcement", "disabled", "unknownFutureValue", "strictLocation"}[i] -} -func ParseContinuousAccessEvaluationMode(v string) (any, error) { - result := STRICTENFORCEMENT_CONTINUOUSACCESSEVALUATIONMODE - switch v { - case "strictEnforcement": - result = STRICTENFORCEMENT_CONTINUOUSACCESSEVALUATIONMODE - case "disabled": - result = DISABLED_CONTINUOUSACCESSEVALUATIONMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONTINUOUSACCESSEVALUATIONMODE - case "strictLocation": - result = STRICTLOCATION_CONTINUOUSACCESSEVALUATIONMODE - default: - return 0, errors.New("Unknown ContinuousAccessEvaluationMode value: " + v) - } - return &result, nil -} -func SerializeContinuousAccessEvaluationMode(values []ContinuousAccessEvaluationMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ContinuousAccessEvaluationMode) isMultiValue() bool { - return false -} diff --git a/models/continuous_access_evaluation_session_control.go b/models/continuous_access_evaluation_session_control.go index 8f60f8ae594..b5e58bf275e 100644 --- a/models/continuous_access_evaluation_session_control.go +++ b/models/continuous_access_evaluation_session_control.go @@ -42,12 +42,12 @@ func (m *ContinuousAccessEvaluationSessionControl) GetBackingStore()(ie8677ce2c7 func (m *ContinuousAccessEvaluationSessionControl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["mode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseContinuousAccessEvaluationMode) + val, err := n.GetEnumValue(ParseContinuousAccessEvaluationSessionControl_mode) if err != nil { return err } if val != nil { - m.SetMode(val.(*ContinuousAccessEvaluationMode)) + m.SetMode(val.(*ContinuousAccessEvaluationSessionControl_mode)) } return nil } @@ -64,13 +64,13 @@ func (m *ContinuousAccessEvaluationSessionControl) GetFieldDeserializers()(map[s return res } // GetMode gets the mode property value. Specifies continuous access evaluation settings. The possible values are: strictEnforcement, disabled, unknownFutureValue, strictLocation. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: strictLocation. -func (m *ContinuousAccessEvaluationSessionControl) GetMode()(*ContinuousAccessEvaluationMode) { +func (m *ContinuousAccessEvaluationSessionControl) GetMode()(*ContinuousAccessEvaluationSessionControl_mode) { val, err := m.GetBackingStore().Get("mode") if err != nil { panic(err) } if val != nil { - return val.(*ContinuousAccessEvaluationMode) + return val.(*ContinuousAccessEvaluationSessionControl_mode) } return nil } @@ -120,7 +120,7 @@ func (m *ContinuousAccessEvaluationSessionControl) SetBackingStore(value ie8677c m.backingStore = value } // SetMode sets the mode property value. Specifies continuous access evaluation settings. The possible values are: strictEnforcement, disabled, unknownFutureValue, strictLocation. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: strictLocation. -func (m *ContinuousAccessEvaluationSessionControl) SetMode(value *ContinuousAccessEvaluationMode)() { +func (m *ContinuousAccessEvaluationSessionControl) SetMode(value *ContinuousAccessEvaluationSessionControl_mode)() { err := m.GetBackingStore().Set("mode", value) if err != nil { panic(err) @@ -139,9 +139,9 @@ type ContinuousAccessEvaluationSessionControlable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMode()(*ContinuousAccessEvaluationMode) + GetMode()(*ContinuousAccessEvaluationSessionControl_mode) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMode(value *ContinuousAccessEvaluationMode)() + SetMode(value *ContinuousAccessEvaluationSessionControl_mode)() SetOdataType(value *string)() } diff --git a/models/continuous_access_evaluation_session_control_mode.go b/models/continuous_access_evaluation_session_control_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/copy_notebook_model.go b/models/copy_notebook_model.go index b1369980e7c..5b41c5a59ae 100644 --- a/models/copy_notebook_model.go +++ b/models/copy_notebook_model.go @@ -226,12 +226,12 @@ func (m *CopyNotebookModel) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["userRole"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnenoteUserRole) + val, err := n.GetEnumValue(ParseCopyNotebookModel_userRole) if err != nil { return err } if val != nil { - m.SetUserRole(val.(*OnenoteUserRole)) + m.SetUserRole(val.(*CopyNotebookModel_userRole)) } return nil } @@ -370,13 +370,13 @@ func (m *CopyNotebookModel) GetSelf()(*string) { return nil } // GetUserRole gets the userRole property value. The userRole property -func (m *CopyNotebookModel) GetUserRole()(*OnenoteUserRole) { +func (m *CopyNotebookModel) GetUserRole()(*CopyNotebookModel_userRole) { val, err := m.GetBackingStore().Get("userRole") if err != nil { panic(err) } if val != nil { - return val.(*OnenoteUserRole) + return val.(*CopyNotebookModel_userRole) } return nil } @@ -604,7 +604,7 @@ func (m *CopyNotebookModel) SetSelf(value *string)() { } } // SetUserRole sets the userRole property value. The userRole property -func (m *CopyNotebookModel) SetUserRole(value *OnenoteUserRole)() { +func (m *CopyNotebookModel) SetUserRole(value *CopyNotebookModel_userRole)() { err := m.GetBackingStore().Set("userRole", value) if err != nil { panic(err) @@ -631,7 +631,7 @@ type CopyNotebookModelable interface { GetSectionGroupsUrl()(*string) GetSectionsUrl()(*string) GetSelf()(*string) - GetUserRole()(*OnenoteUserRole) + GetUserRole()(*CopyNotebookModel_userRole) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCreatedBy(value *string)() SetCreatedByIdentity(value IdentitySetable)() @@ -648,5 +648,5 @@ type CopyNotebookModelable interface { SetSectionGroupsUrl(value *string)() SetSectionsUrl(value *string)() SetSelf(value *string)() - SetUserRole(value *OnenoteUserRole)() + SetUserRole(value *CopyNotebookModel_userRole)() } diff --git a/models/copy_notebook_model_user_role.go b/models/copy_notebook_model_user_role.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/country_lookup_method_type.go b/models/country_lookup_method_type.go deleted file mode 100644 index b16aabe8405..00000000000 --- a/models/country_lookup_method_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CountryLookupMethodType int - -const ( - CLIENTIPADDRESS_COUNTRYLOOKUPMETHODTYPE CountryLookupMethodType = iota - AUTHENTICATORAPPGPS_COUNTRYLOOKUPMETHODTYPE - UNKNOWNFUTUREVALUE_COUNTRYLOOKUPMETHODTYPE -) - -func (i CountryLookupMethodType) String() string { - return []string{"clientIpAddress", "authenticatorAppGps", "unknownFutureValue"}[i] -} -func ParseCountryLookupMethodType(v string) (any, error) { - result := CLIENTIPADDRESS_COUNTRYLOOKUPMETHODTYPE - switch v { - case "clientIpAddress": - result = CLIENTIPADDRESS_COUNTRYLOOKUPMETHODTYPE - case "authenticatorAppGps": - result = AUTHENTICATORAPPGPS_COUNTRYLOOKUPMETHODTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_COUNTRYLOOKUPMETHODTYPE - default: - return 0, errors.New("Unknown CountryLookupMethodType value: " + v) - } - return &result, nil -} -func SerializeCountryLookupMethodType(values []CountryLookupMethodType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CountryLookupMethodType) isMultiValue() bool { - return false -} diff --git a/models/country_named_location.go b/models/country_named_location.go index 5a4a929b6f6..94dd6557843 100644 --- a/models/country_named_location.go +++ b/models/country_named_location.go @@ -31,13 +31,13 @@ func (m *CountryNamedLocation) GetCountriesAndRegions()([]string) { return nil } // GetCountryLookupMethod gets the countryLookupMethod property value. Determines what method is used to decide which country the user is located in. Possible values are clientIpAddress (default) and authenticatorAppGps. -func (m *CountryNamedLocation) GetCountryLookupMethod()(*CountryLookupMethodType) { +func (m *CountryNamedLocation) GetCountryLookupMethod()(*CountryNamedLocation_countryLookupMethod) { val, err := m.GetBackingStore().Get("countryLookupMethod") if err != nil { panic(err) } if val != nil { - return val.(*CountryLookupMethodType) + return val.(*CountryNamedLocation_countryLookupMethod) } return nil } @@ -61,12 +61,12 @@ func (m *CountryNamedLocation) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["countryLookupMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCountryLookupMethodType) + val, err := n.GetEnumValue(ParseCountryNamedLocation_countryLookupMethod) if err != nil { return err } if val != nil { - m.SetCountryLookupMethod(val.(*CountryLookupMethodType)) + m.SetCountryLookupMethod(val.(*CountryNamedLocation_countryLookupMethod)) } return nil } @@ -128,7 +128,7 @@ func (m *CountryNamedLocation) SetCountriesAndRegions(value []string)() { } } // SetCountryLookupMethod sets the countryLookupMethod property value. Determines what method is used to decide which country the user is located in. Possible values are clientIpAddress (default) and authenticatorAppGps. -func (m *CountryNamedLocation) SetCountryLookupMethod(value *CountryLookupMethodType)() { +func (m *CountryNamedLocation) SetCountryLookupMethod(value *CountryNamedLocation_countryLookupMethod)() { err := m.GetBackingStore().Set("countryLookupMethod", value) if err != nil { panic(err) @@ -146,9 +146,9 @@ type CountryNamedLocationable interface { NamedLocationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCountriesAndRegions()([]string) - GetCountryLookupMethod()(*CountryLookupMethodType) + GetCountryLookupMethod()(*CountryNamedLocation_countryLookupMethod) GetIncludeUnknownCountriesAndRegions()(*bool) SetCountriesAndRegions(value []string)() - SetCountryLookupMethod(value *CountryLookupMethodType)() + SetCountryLookupMethod(value *CountryNamedLocation_countryLookupMethod)() SetIncludeUnknownCountriesAndRegions(value *bool)() } diff --git a/models/country_named_location_country_lookup_method.go b/models/country_named_location_country_lookup_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/course_status.go b/models/course_status.go deleted file mode 100644 index 7874b4276ae..00000000000 --- a/models/course_status.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type CourseStatus int - -const ( - NOTSTARTED_COURSESTATUS CourseStatus = iota - INPROGRESS_COURSESTATUS - COMPLETED_COURSESTATUS - UNKNOWNFUTUREVALUE_COURSESTATUS -) - -func (i CourseStatus) String() string { - return []string{"notStarted", "inProgress", "completed", "unknownFutureValue"}[i] -} -func ParseCourseStatus(v string) (any, error) { - result := NOTSTARTED_COURSESTATUS - switch v { - case "notStarted": - result = NOTSTARTED_COURSESTATUS - case "inProgress": - result = INPROGRESS_COURSESTATUS - case "completed": - result = COMPLETED_COURSESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_COURSESTATUS - default: - return 0, errors.New("Unknown CourseStatus value: " + v) - } - return &result, nil -} -func SerializeCourseStatus(values []CourseStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CourseStatus) isMultiValue() bool { - return false -} diff --git a/models/cross_tenant_access_policy_target.go b/models/cross_tenant_access_policy_target.go index 9d0fd8f9a7a..8ee87cad135 100644 --- a/models/cross_tenant_access_policy_target.go +++ b/models/cross_tenant_access_policy_target.go @@ -62,12 +62,12 @@ func (m *CrossTenantAccessPolicyTarget) GetFieldDeserializers()(map[string]func( return nil } res["targetType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCrossTenantAccessPolicyTargetType) + val, err := n.GetEnumValue(ParseCrossTenantAccessPolicyTarget_targetType) if err != nil { return err } if val != nil { - m.SetTargetType(val.(*CrossTenantAccessPolicyTargetType)) + m.SetTargetType(val.(*CrossTenantAccessPolicyTarget_targetType)) } return nil } @@ -96,13 +96,13 @@ func (m *CrossTenantAccessPolicyTarget) GetTarget()(*string) { return nil } // GetTargetType gets the targetType property value. The type of resource that you want to target. The possible values are: user, group, application, unknownFutureValue. -func (m *CrossTenantAccessPolicyTarget) GetTargetType()(*CrossTenantAccessPolicyTargetType) { +func (m *CrossTenantAccessPolicyTarget) GetTargetType()(*CrossTenantAccessPolicyTarget_targetType) { val, err := m.GetBackingStore().Get("targetType") if err != nil { panic(err) } if val != nil { - return val.(*CrossTenantAccessPolicyTargetType) + return val.(*CrossTenantAccessPolicyTarget_targetType) } return nil } @@ -161,7 +161,7 @@ func (m *CrossTenantAccessPolicyTarget) SetTarget(value *string)() { } } // SetTargetType sets the targetType property value. The type of resource that you want to target. The possible values are: user, group, application, unknownFutureValue. -func (m *CrossTenantAccessPolicyTarget) SetTargetType(value *CrossTenantAccessPolicyTargetType)() { +func (m *CrossTenantAccessPolicyTarget) SetTargetType(value *CrossTenantAccessPolicyTarget_targetType)() { err := m.GetBackingStore().Set("targetType", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type CrossTenantAccessPolicyTargetable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetTarget()(*string) - GetTargetType()(*CrossTenantAccessPolicyTargetType) + GetTargetType()(*CrossTenantAccessPolicyTarget_targetType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetTarget(value *string)() - SetTargetType(value *CrossTenantAccessPolicyTargetType)() + SetTargetType(value *CrossTenantAccessPolicyTarget_targetType)() } diff --git a/models/cross_tenant_access_policy_target_configuration.go b/models/cross_tenant_access_policy_target_configuration.go index 4ac6805f9a0..0ca0a0904aa 100644 --- a/models/cross_tenant_access_policy_target_configuration.go +++ b/models/cross_tenant_access_policy_target_configuration.go @@ -23,13 +23,13 @@ func CreateCrossTenantAccessPolicyTargetConfigurationFromDiscriminatorValue(pars return NewCrossTenantAccessPolicyTargetConfiguration(), nil } // GetAccessType gets the accessType property value. Defines whether access is allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. -func (m *CrossTenantAccessPolicyTargetConfiguration) GetAccessType()(*CrossTenantAccessPolicyTargetConfigurationAccessType) { +func (m *CrossTenantAccessPolicyTargetConfiguration) GetAccessType()(*CrossTenantAccessPolicyTargetConfiguration_accessType) { val, err := m.GetBackingStore().Get("accessType") if err != nil { panic(err) } if val != nil { - return val.(*CrossTenantAccessPolicyTargetConfigurationAccessType) + return val.(*CrossTenantAccessPolicyTargetConfiguration_accessType) } return nil } @@ -53,12 +53,12 @@ func (m *CrossTenantAccessPolicyTargetConfiguration) GetBackingStore()(ie8677ce2 func (m *CrossTenantAccessPolicyTargetConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["accessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCrossTenantAccessPolicyTargetConfigurationAccessType) + val, err := n.GetEnumValue(ParseCrossTenantAccessPolicyTargetConfiguration_accessType) if err != nil { return err } if val != nil { - m.SetAccessType(val.(*CrossTenantAccessPolicyTargetConfigurationAccessType)) + m.SetAccessType(val.(*CrossTenantAccessPolicyTargetConfiguration_accessType)) } return nil } @@ -148,7 +148,7 @@ func (m *CrossTenantAccessPolicyTargetConfiguration) Serialize(writer i878a80d23 return nil } // SetAccessType sets the accessType property value. Defines whether access is allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. -func (m *CrossTenantAccessPolicyTargetConfiguration) SetAccessType(value *CrossTenantAccessPolicyTargetConfigurationAccessType)() { +func (m *CrossTenantAccessPolicyTargetConfiguration) SetAccessType(value *CrossTenantAccessPolicyTargetConfiguration_accessType)() { err := m.GetBackingStore().Set("accessType", value) if err != nil { panic(err) @@ -184,11 +184,11 @@ type CrossTenantAccessPolicyTargetConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAccessType()(*CrossTenantAccessPolicyTargetConfigurationAccessType) + GetAccessType()(*CrossTenantAccessPolicyTargetConfiguration_accessType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetTargets()([]CrossTenantAccessPolicyTargetable) - SetAccessType(value *CrossTenantAccessPolicyTargetConfigurationAccessType)() + SetAccessType(value *CrossTenantAccessPolicyTargetConfiguration_accessType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetTargets(value []CrossTenantAccessPolicyTargetable)() diff --git a/models/cross_tenant_access_policy_target_configuration_access_type.go b/models/cross_tenant_access_policy_target_configuration_access_type.go index 7bac6df1705..e69de29bb2d 100644 --- a/models/cross_tenant_access_policy_target_configuration_access_type.go +++ b/models/cross_tenant_access_policy_target_configuration_access_type.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type CrossTenantAccessPolicyTargetConfigurationAccessType int - -const ( - ALLOWED_CROSSTENANTACCESSPOLICYTARGETCONFIGURATIONACCESSTYPE CrossTenantAccessPolicyTargetConfigurationAccessType = iota - BLOCKED_CROSSTENANTACCESSPOLICYTARGETCONFIGURATIONACCESSTYPE - UNKNOWNFUTUREVALUE_CROSSTENANTACCESSPOLICYTARGETCONFIGURATIONACCESSTYPE -) - -func (i CrossTenantAccessPolicyTargetConfigurationAccessType) String() string { - return []string{"allowed", "blocked", "unknownFutureValue"}[i] -} -func ParseCrossTenantAccessPolicyTargetConfigurationAccessType(v string) (any, error) { - result := ALLOWED_CROSSTENANTACCESSPOLICYTARGETCONFIGURATIONACCESSTYPE - switch v { - case "allowed": - result = ALLOWED_CROSSTENANTACCESSPOLICYTARGETCONFIGURATIONACCESSTYPE - case "blocked": - result = BLOCKED_CROSSTENANTACCESSPOLICYTARGETCONFIGURATIONACCESSTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CROSSTENANTACCESSPOLICYTARGETCONFIGURATIONACCESSTYPE - default: - return 0, errors.New("Unknown CrossTenantAccessPolicyTargetConfigurationAccessType value: " + v) - } - return &result, nil -} -func SerializeCrossTenantAccessPolicyTargetConfigurationAccessType(values []CrossTenantAccessPolicyTargetConfigurationAccessType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CrossTenantAccessPolicyTargetConfigurationAccessType) isMultiValue() bool { - return false -} diff --git a/models/cross_tenant_access_policy_target_target_type.go b/models/cross_tenant_access_policy_target_target_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cross_tenant_access_policy_target_type.go b/models/cross_tenant_access_policy_target_type.go deleted file mode 100644 index 970142b9703..00000000000 --- a/models/cross_tenant_access_policy_target_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type CrossTenantAccessPolicyTargetType int - -const ( - USER_CROSSTENANTACCESSPOLICYTARGETTYPE CrossTenantAccessPolicyTargetType = iota - GROUP_CROSSTENANTACCESSPOLICYTARGETTYPE - APPLICATION_CROSSTENANTACCESSPOLICYTARGETTYPE - UNKNOWNFUTUREVALUE_CROSSTENANTACCESSPOLICYTARGETTYPE -) - -func (i CrossTenantAccessPolicyTargetType) String() string { - return []string{"user", "group", "application", "unknownFutureValue"}[i] -} -func ParseCrossTenantAccessPolicyTargetType(v string) (any, error) { - result := USER_CROSSTENANTACCESSPOLICYTARGETTYPE - switch v { - case "user": - result = USER_CROSSTENANTACCESSPOLICYTARGETTYPE - case "group": - result = GROUP_CROSSTENANTACCESSPOLICYTARGETTYPE - case "application": - result = APPLICATION_CROSSTENANTACCESSPOLICYTARGETTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CROSSTENANTACCESSPOLICYTARGETTYPE - default: - return 0, errors.New("Unknown CrossTenantAccessPolicyTargetType value: " + v) - } - return &result, nil -} -func SerializeCrossTenantAccessPolicyTargetType(values []CrossTenantAccessPolicyTargetType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CrossTenantAccessPolicyTargetType) isMultiValue() bool { - return false -} diff --git a/models/cryptography_suite.go b/models/cryptography_suite.go index 9de4897659a..e12e3e57e1a 100644 --- a/models/cryptography_suite.go +++ b/models/cryptography_suite.go @@ -35,13 +35,13 @@ func (m *CryptographySuite) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAuthenticationTransformConstants gets the authenticationTransformConstants property value. Authentication Transform Constants. Possible values are: md596, sha196, sha256128, aes128Gcm, aes192Gcm, aes256Gcm. -func (m *CryptographySuite) GetAuthenticationTransformConstants()(*AuthenticationTransformConstant) { +func (m *CryptographySuite) GetAuthenticationTransformConstants()(*CryptographySuite_authenticationTransformConstants) { val, err := m.GetBackingStore().Get("authenticationTransformConstants") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationTransformConstant) + return val.(*CryptographySuite_authenticationTransformConstants) } return nil } @@ -50,35 +50,35 @@ func (m *CryptographySuite) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41 return m.backingStore } // GetCipherTransformConstants gets the cipherTransformConstants property value. Cipher Transform Constants. Possible values are: aes256, des, tripleDes, aes128, aes128Gcm, aes256Gcm, aes192, aes192Gcm, chaCha20Poly1305. -func (m *CryptographySuite) GetCipherTransformConstants()(*VpnEncryptionAlgorithmType) { +func (m *CryptographySuite) GetCipherTransformConstants()(*CryptographySuite_cipherTransformConstants) { val, err := m.GetBackingStore().Get("cipherTransformConstants") if err != nil { panic(err) } if val != nil { - return val.(*VpnEncryptionAlgorithmType) + return val.(*CryptographySuite_cipherTransformConstants) } return nil } // GetDhGroup gets the dhGroup property value. Diffie Hellman Group. Possible values are: group1, group2, group14, ecp256, ecp384, group24. -func (m *CryptographySuite) GetDhGroup()(*DiffieHellmanGroup) { +func (m *CryptographySuite) GetDhGroup()(*CryptographySuite_dhGroup) { val, err := m.GetBackingStore().Get("dhGroup") if err != nil { panic(err) } if val != nil { - return val.(*DiffieHellmanGroup) + return val.(*CryptographySuite_dhGroup) } return nil } // GetEncryptionMethod gets the encryptionMethod property value. Encryption Method. Possible values are: aes256, des, tripleDes, aes128, aes128Gcm, aes256Gcm, aes192, aes192Gcm, chaCha20Poly1305. -func (m *CryptographySuite) GetEncryptionMethod()(*VpnEncryptionAlgorithmType) { +func (m *CryptographySuite) GetEncryptionMethod()(*CryptographySuite_encryptionMethod) { val, err := m.GetBackingStore().Get("encryptionMethod") if err != nil { panic(err) } if val != nil { - return val.(*VpnEncryptionAlgorithmType) + return val.(*CryptographySuite_encryptionMethod) } return nil } @@ -86,52 +86,52 @@ func (m *CryptographySuite) GetEncryptionMethod()(*VpnEncryptionAlgorithmType) { func (m *CryptographySuite) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["authenticationTransformConstants"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationTransformConstant) + val, err := n.GetEnumValue(ParseCryptographySuite_authenticationTransformConstants) if err != nil { return err } if val != nil { - m.SetAuthenticationTransformConstants(val.(*AuthenticationTransformConstant)) + m.SetAuthenticationTransformConstants(val.(*CryptographySuite_authenticationTransformConstants)) } return nil } res["cipherTransformConstants"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnEncryptionAlgorithmType) + val, err := n.GetEnumValue(ParseCryptographySuite_cipherTransformConstants) if err != nil { return err } if val != nil { - m.SetCipherTransformConstants(val.(*VpnEncryptionAlgorithmType)) + m.SetCipherTransformConstants(val.(*CryptographySuite_cipherTransformConstants)) } return nil } res["dhGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDiffieHellmanGroup) + val, err := n.GetEnumValue(ParseCryptographySuite_dhGroup) if err != nil { return err } if val != nil { - m.SetDhGroup(val.(*DiffieHellmanGroup)) + m.SetDhGroup(val.(*CryptographySuite_dhGroup)) } return nil } res["encryptionMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnEncryptionAlgorithmType) + val, err := n.GetEnumValue(ParseCryptographySuite_encryptionMethod) if err != nil { return err } if val != nil { - m.SetEncryptionMethod(val.(*VpnEncryptionAlgorithmType)) + m.SetEncryptionMethod(val.(*CryptographySuite_encryptionMethod)) } return nil } res["integrityCheckMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnIntegrityAlgorithmType) + val, err := n.GetEnumValue(ParseCryptographySuite_integrityCheckMethod) if err != nil { return err } if val != nil { - m.SetIntegrityCheckMethod(val.(*VpnIntegrityAlgorithmType)) + m.SetIntegrityCheckMethod(val.(*CryptographySuite_integrityCheckMethod)) } return nil } @@ -146,25 +146,25 @@ func (m *CryptographySuite) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["pfsGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePerfectForwardSecrecyGroup) + val, err := n.GetEnumValue(ParseCryptographySuite_pfsGroup) if err != nil { return err } if val != nil { - m.SetPfsGroup(val.(*PerfectForwardSecrecyGroup)) + m.SetPfsGroup(val.(*CryptographySuite_pfsGroup)) } return nil } return res } // GetIntegrityCheckMethod gets the integrityCheckMethod property value. Integrity Check Method. Possible values are: sha2256, sha196, sha1160, sha2384, sha2_512, md5. -func (m *CryptographySuite) GetIntegrityCheckMethod()(*VpnIntegrityAlgorithmType) { +func (m *CryptographySuite) GetIntegrityCheckMethod()(*CryptographySuite_integrityCheckMethod) { val, err := m.GetBackingStore().Get("integrityCheckMethod") if err != nil { panic(err) } if val != nil { - return val.(*VpnIntegrityAlgorithmType) + return val.(*CryptographySuite_integrityCheckMethod) } return nil } @@ -180,13 +180,13 @@ func (m *CryptographySuite) GetOdataType()(*string) { return nil } // GetPfsGroup gets the pfsGroup property value. Perfect Forward Secrecy Group. Possible values are: pfs1, pfs2, pfs2048, ecp256, ecp384, pfsMM, pfs24. -func (m *CryptographySuite) GetPfsGroup()(*PerfectForwardSecrecyGroup) { +func (m *CryptographySuite) GetPfsGroup()(*CryptographySuite_pfsGroup) { val, err := m.GetBackingStore().Get("pfsGroup") if err != nil { panic(err) } if val != nil { - return val.(*PerfectForwardSecrecyGroup) + return val.(*CryptographySuite_pfsGroup) } return nil } @@ -256,7 +256,7 @@ func (m *CryptographySuite) SetAdditionalData(value map[string]any)() { } } // SetAuthenticationTransformConstants sets the authenticationTransformConstants property value. Authentication Transform Constants. Possible values are: md596, sha196, sha256128, aes128Gcm, aes192Gcm, aes256Gcm. -func (m *CryptographySuite) SetAuthenticationTransformConstants(value *AuthenticationTransformConstant)() { +func (m *CryptographySuite) SetAuthenticationTransformConstants(value *CryptographySuite_authenticationTransformConstants)() { err := m.GetBackingStore().Set("authenticationTransformConstants", value) if err != nil { panic(err) @@ -267,28 +267,28 @@ func (m *CryptographySuite) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd07 m.backingStore = value } // SetCipherTransformConstants sets the cipherTransformConstants property value. Cipher Transform Constants. Possible values are: aes256, des, tripleDes, aes128, aes128Gcm, aes256Gcm, aes192, aes192Gcm, chaCha20Poly1305. -func (m *CryptographySuite) SetCipherTransformConstants(value *VpnEncryptionAlgorithmType)() { +func (m *CryptographySuite) SetCipherTransformConstants(value *CryptographySuite_cipherTransformConstants)() { err := m.GetBackingStore().Set("cipherTransformConstants", value) if err != nil { panic(err) } } // SetDhGroup sets the dhGroup property value. Diffie Hellman Group. Possible values are: group1, group2, group14, ecp256, ecp384, group24. -func (m *CryptographySuite) SetDhGroup(value *DiffieHellmanGroup)() { +func (m *CryptographySuite) SetDhGroup(value *CryptographySuite_dhGroup)() { err := m.GetBackingStore().Set("dhGroup", value) if err != nil { panic(err) } } // SetEncryptionMethod sets the encryptionMethod property value. Encryption Method. Possible values are: aes256, des, tripleDes, aes128, aes128Gcm, aes256Gcm, aes192, aes192Gcm, chaCha20Poly1305. -func (m *CryptographySuite) SetEncryptionMethod(value *VpnEncryptionAlgorithmType)() { +func (m *CryptographySuite) SetEncryptionMethod(value *CryptographySuite_encryptionMethod)() { err := m.GetBackingStore().Set("encryptionMethod", value) if err != nil { panic(err) } } // SetIntegrityCheckMethod sets the integrityCheckMethod property value. Integrity Check Method. Possible values are: sha2256, sha196, sha1160, sha2384, sha2_512, md5. -func (m *CryptographySuite) SetIntegrityCheckMethod(value *VpnIntegrityAlgorithmType)() { +func (m *CryptographySuite) SetIntegrityCheckMethod(value *CryptographySuite_integrityCheckMethod)() { err := m.GetBackingStore().Set("integrityCheckMethod", value) if err != nil { panic(err) @@ -302,7 +302,7 @@ func (m *CryptographySuite) SetOdataType(value *string)() { } } // SetPfsGroup sets the pfsGroup property value. Perfect Forward Secrecy Group. Possible values are: pfs1, pfs2, pfs2048, ecp256, ecp384, pfsMM, pfs24. -func (m *CryptographySuite) SetPfsGroup(value *PerfectForwardSecrecyGroup)() { +func (m *CryptographySuite) SetPfsGroup(value *CryptographySuite_pfsGroup)() { err := m.GetBackingStore().Set("pfsGroup", value) if err != nil { panic(err) @@ -313,20 +313,20 @@ type CryptographySuiteable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationTransformConstants()(*AuthenticationTransformConstant) + GetAuthenticationTransformConstants()(*CryptographySuite_authenticationTransformConstants) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCipherTransformConstants()(*VpnEncryptionAlgorithmType) - GetDhGroup()(*DiffieHellmanGroup) - GetEncryptionMethod()(*VpnEncryptionAlgorithmType) - GetIntegrityCheckMethod()(*VpnIntegrityAlgorithmType) + GetCipherTransformConstants()(*CryptographySuite_cipherTransformConstants) + GetDhGroup()(*CryptographySuite_dhGroup) + GetEncryptionMethod()(*CryptographySuite_encryptionMethod) + GetIntegrityCheckMethod()(*CryptographySuite_integrityCheckMethod) GetOdataType()(*string) - GetPfsGroup()(*PerfectForwardSecrecyGroup) - SetAuthenticationTransformConstants(value *AuthenticationTransformConstant)() + GetPfsGroup()(*CryptographySuite_pfsGroup) + SetAuthenticationTransformConstants(value *CryptographySuite_authenticationTransformConstants)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCipherTransformConstants(value *VpnEncryptionAlgorithmType)() - SetDhGroup(value *DiffieHellmanGroup)() - SetEncryptionMethod(value *VpnEncryptionAlgorithmType)() - SetIntegrityCheckMethod(value *VpnIntegrityAlgorithmType)() + SetCipherTransformConstants(value *CryptographySuite_cipherTransformConstants)() + SetDhGroup(value *CryptographySuite_dhGroup)() + SetEncryptionMethod(value *CryptographySuite_encryptionMethod)() + SetIntegrityCheckMethod(value *CryptographySuite_integrityCheckMethod)() SetOdataType(value *string)() - SetPfsGroup(value *PerfectForwardSecrecyGroup)() + SetPfsGroup(value *CryptographySuite_pfsGroup)() } diff --git a/models/cryptography_suite_authentication_transform_constants.go b/models/cryptography_suite_authentication_transform_constants.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cryptography_suite_cipher_transform_constants.go b/models/cryptography_suite_cipher_transform_constants.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cryptography_suite_dh_group.go b/models/cryptography_suite_dh_group.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cryptography_suite_encryption_method.go b/models/cryptography_suite_encryption_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cryptography_suite_integrity_check_method.go b/models/cryptography_suite_integrity_check_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/cryptography_suite_pfs_group.go b/models/cryptography_suite_pfs_group.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/current_label.go b/models/current_label.go index 1ed89177637..13721b2717f 100644 --- a/models/current_label.go +++ b/models/current_label.go @@ -35,13 +35,13 @@ func (m *CurrentLabel) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetApplicationMode gets the applicationMode property value. The applicationMode property -func (m *CurrentLabel) GetApplicationMode()(*ApplicationMode) { +func (m *CurrentLabel) GetApplicationMode()(*CurrentLabel_applicationMode) { val, err := m.GetBackingStore().Get("applicationMode") if err != nil { panic(err) } if val != nil { - return val.(*ApplicationMode) + return val.(*CurrentLabel_applicationMode) } return nil } @@ -53,12 +53,12 @@ func (m *CurrentLabel) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d4118542 func (m *CurrentLabel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["applicationMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseApplicationMode) + val, err := n.GetEnumValue(ParseCurrentLabel_applicationMode) if err != nil { return err } if val != nil { - m.SetApplicationMode(val.(*ApplicationMode)) + m.SetApplicationMode(val.(*CurrentLabel_applicationMode)) } return nil } @@ -143,7 +143,7 @@ func (m *CurrentLabel) SetAdditionalData(value map[string]any)() { } } // SetApplicationMode sets the applicationMode property value. The applicationMode property -func (m *CurrentLabel) SetApplicationMode(value *ApplicationMode)() { +func (m *CurrentLabel) SetApplicationMode(value *CurrentLabel_applicationMode)() { err := m.GetBackingStore().Set("applicationMode", value) if err != nil { panic(err) @@ -172,11 +172,11 @@ type CurrentLabelable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetApplicationMode()(*ApplicationMode) + GetApplicationMode()(*CurrentLabel_applicationMode) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetId()(*string) GetOdataType()(*string) - SetApplicationMode(value *ApplicationMode)() + SetApplicationMode(value *CurrentLabel_applicationMode)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetId(value *string)() SetOdataType(value *string)() diff --git a/models/current_label_application_mode.go b/models/current_label_application_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/custom_authentication_extension.go b/models/custom_authentication_extension.go index eb35d076e83..f2bfa50491f 100644 --- a/models/custom_authentication_extension.go +++ b/models/custom_authentication_extension.go @@ -31,6 +31,10 @@ func CreateCustomAuthenticationExtensionFromDiscriminatorValue(parseNode i878a80 } if mappingValue != nil { switch *mappingValue { + case "#microsoft.graph.onAttributeCollectionStartCustomExtension": + return NewOnAttributeCollectionStartCustomExtension(), nil + case "#microsoft.graph.onAttributeCollectionSubmitCustomExtension": + return NewOnAttributeCollectionSubmitCustomExtension(), nil case "#microsoft.graph.onTokenIssuanceStartCustomExtension": return NewOnTokenIssuanceStartCustomExtension(), nil } diff --git a/models/custom_callout_extension.go b/models/custom_callout_extension.go index da09fdf1403..8345e30c4e2 100644 --- a/models/custom_callout_extension.go +++ b/models/custom_callout_extension.go @@ -37,6 +37,10 @@ func CreateCustomCalloutExtensionFromDiscriminatorValue(parseNode i878a80d2330e8 return NewCustomAccessPackageWorkflowExtension(), nil case "#microsoft.graph.customAuthenticationExtension": return NewCustomAuthenticationExtension(), nil + case "#microsoft.graph.onAttributeCollectionStartCustomExtension": + return NewOnAttributeCollectionStartCustomExtension(), nil + case "#microsoft.graph.onAttributeCollectionSubmitCustomExtension": + return NewOnAttributeCollectionSubmitCustomExtension(), nil case "#microsoft.graph.onTokenIssuanceStartCustomExtension": return NewOnTokenIssuanceStartCustomExtension(), nil } diff --git a/models/custom_extension_callout_instance.go b/models/custom_extension_callout_instance.go index e73299268f0..971bae9f46b 100644 --- a/models/custom_extension_callout_instance.go +++ b/models/custom_extension_callout_instance.go @@ -125,12 +125,12 @@ func (m *CustomExtensionCalloutInstance) GetFieldDeserializers()(map[string]func return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCustomExtensionCalloutInstanceStatus) + val, err := n.GetEnumValue(ParseCustomExtensionCalloutInstance_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CustomExtensionCalloutInstanceStatus)) + m.SetStatus(val.(*CustomExtensionCalloutInstance_status)) } return nil } @@ -159,13 +159,13 @@ func (m *CustomExtensionCalloutInstance) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. The status of the request to the custom extension. The possible values are: calloutSent, callbackReceived, calloutFailed, callbackTimedOut, waitingForCallback, unknownFutureValue. -func (m *CustomExtensionCalloutInstance) GetStatus()(*CustomExtensionCalloutInstanceStatus) { +func (m *CustomExtensionCalloutInstance) GetStatus()(*CustomExtensionCalloutInstance_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CustomExtensionCalloutInstanceStatus) + return val.(*CustomExtensionCalloutInstance_status) } return nil } @@ -263,7 +263,7 @@ func (m *CustomExtensionCalloutInstance) SetOdataType(value *string)() { } } // SetStatus sets the status property value. The status of the request to the custom extension. The possible values are: calloutSent, callbackReceived, calloutFailed, callbackTimedOut, waitingForCallback, unknownFutureValue. -func (m *CustomExtensionCalloutInstance) SetStatus(value *CustomExtensionCalloutInstanceStatus)() { +func (m *CustomExtensionCalloutInstance) SetStatus(value *CustomExtensionCalloutInstance_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -280,12 +280,12 @@ type CustomExtensionCalloutInstanceable interface { GetExternalCorrelationId()(*string) GetId()(*string) GetOdataType()(*string) - GetStatus()(*CustomExtensionCalloutInstanceStatus) + GetStatus()(*CustomExtensionCalloutInstance_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCustomExtensionId(value *string)() SetDetail(value *string)() SetExternalCorrelationId(value *string)() SetId(value *string)() SetOdataType(value *string)() - SetStatus(value *CustomExtensionCalloutInstanceStatus)() + SetStatus(value *CustomExtensionCalloutInstance_status)() } diff --git a/models/custom_extension_callout_instance_status.go b/models/custom_extension_callout_instance_status.go index 3c5be8c8ed4..e69de29bb2d 100644 --- a/models/custom_extension_callout_instance_status.go +++ b/models/custom_extension_callout_instance_status.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type CustomExtensionCalloutInstanceStatus int - -const ( - CALLOUTSENT_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS CustomExtensionCalloutInstanceStatus = iota - CALLBACKRECEIVED_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - CALLOUTFAILED_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - CALLBACKTIMEDOUT_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - WAITINGFORCALLBACK_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - UNKNOWNFUTUREVALUE_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS -) - -func (i CustomExtensionCalloutInstanceStatus) String() string { - return []string{"calloutSent", "callbackReceived", "calloutFailed", "callbackTimedOut", "waitingForCallback", "unknownFutureValue"}[i] -} -func ParseCustomExtensionCalloutInstanceStatus(v string) (any, error) { - result := CALLOUTSENT_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - switch v { - case "calloutSent": - result = CALLOUTSENT_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - case "callbackReceived": - result = CALLBACKRECEIVED_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - case "calloutFailed": - result = CALLOUTFAILED_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - case "callbackTimedOut": - result = CALLBACKTIMEDOUT_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - case "waitingForCallback": - result = WAITINGFORCALLBACK_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS - default: - return 0, errors.New("Unknown CustomExtensionCalloutInstanceStatus value: " + v) - } - return &result, nil -} -func SerializeCustomExtensionCalloutInstanceStatus(values []CustomExtensionCalloutInstanceStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CustomExtensionCalloutInstanceStatus) isMultiValue() bool { - return false -} diff --git a/models/custom_extension_handler.go b/models/custom_extension_handler.go index 4be5ee21290..9a70d1e7514 100644 --- a/models/custom_extension_handler.go +++ b/models/custom_extension_handler.go @@ -44,25 +44,25 @@ func (m *CustomExtensionHandler) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["stage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessPackageCustomExtensionStage) + val, err := n.GetEnumValue(ParseCustomExtensionHandler_stage) if err != nil { return err } if val != nil { - m.SetStage(val.(*AccessPackageCustomExtensionStage)) + m.SetStage(val.(*CustomExtensionHandler_stage)) } return nil } return res } // GetStage gets the stage property value. Indicates the stage of the access package assignment request workflow when the access package custom extension runs. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. -func (m *CustomExtensionHandler) GetStage()(*AccessPackageCustomExtensionStage) { +func (m *CustomExtensionHandler) GetStage()(*CustomExtensionHandler_stage) { val, err := m.GetBackingStore().Get("stage") if err != nil { panic(err) } if val != nil { - return val.(*AccessPackageCustomExtensionStage) + return val.(*CustomExtensionHandler_stage) } return nil } @@ -95,7 +95,7 @@ func (m *CustomExtensionHandler) SetCustomExtension(value CustomAccessPackageWor } } // SetStage sets the stage property value. Indicates the stage of the access package assignment request workflow when the access package custom extension runs. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. -func (m *CustomExtensionHandler) SetStage(value *AccessPackageCustomExtensionStage)() { +func (m *CustomExtensionHandler) SetStage(value *CustomExtensionHandler_stage)() { err := m.GetBackingStore().Set("stage", value) if err != nil { panic(err) @@ -106,7 +106,7 @@ type CustomExtensionHandlerable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCustomExtension()(CustomAccessPackageWorkflowExtensionable) - GetStage()(*AccessPackageCustomExtensionStage) + GetStage()(*CustomExtensionHandler_stage) SetCustomExtension(value CustomAccessPackageWorkflowExtensionable)() - SetStage(value *AccessPackageCustomExtensionStage)() + SetStage(value *CustomExtensionHandler_stage)() } diff --git a/models/custom_extension_handler_instance.go b/models/custom_extension_handler_instance.go index f554be9dacc..446e69dc056 100644 --- a/models/custom_extension_handler_instance.go +++ b/models/custom_extension_handler_instance.go @@ -94,22 +94,22 @@ func (m *CustomExtensionHandlerInstance) GetFieldDeserializers()(map[string]func return nil } res["stage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessPackageCustomExtensionStage) + val, err := n.GetEnumValue(ParseCustomExtensionHandlerInstance_stage) if err != nil { return err } if val != nil { - m.SetStage(val.(*AccessPackageCustomExtensionStage)) + m.SetStage(val.(*CustomExtensionHandlerInstance_stage)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessPackageCustomExtensionHandlerStatus) + val, err := n.GetEnumValue(ParseCustomExtensionHandlerInstance_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AccessPackageCustomExtensionHandlerStatus)) + m.SetStatus(val.(*CustomExtensionHandlerInstance_status)) } return nil } @@ -127,24 +127,24 @@ func (m *CustomExtensionHandlerInstance) GetOdataType()(*string) { return nil } // GetStage gets the stage property value. Indicates the stage of the request workflow when the access package custom extension runs. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. -func (m *CustomExtensionHandlerInstance) GetStage()(*AccessPackageCustomExtensionStage) { +func (m *CustomExtensionHandlerInstance) GetStage()(*CustomExtensionHandlerInstance_stage) { val, err := m.GetBackingStore().Get("stage") if err != nil { panic(err) } if val != nil { - return val.(*AccessPackageCustomExtensionStage) + return val.(*CustomExtensionHandlerInstance_stage) } return nil } // GetStatus gets the status property value. Status of the request to run the access package custom extension workflow that is associated with the logic app. The possible values are: requestSent, requestReceived, unknownFutureValue. -func (m *CustomExtensionHandlerInstance) GetStatus()(*AccessPackageCustomExtensionHandlerStatus) { +func (m *CustomExtensionHandlerInstance) GetStatus()(*CustomExtensionHandlerInstance_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AccessPackageCustomExtensionHandlerStatus) + return val.(*CustomExtensionHandlerInstance_status) } return nil } @@ -223,14 +223,14 @@ func (m *CustomExtensionHandlerInstance) SetOdataType(value *string)() { } } // SetStage sets the stage property value. Indicates the stage of the request workflow when the access package custom extension runs. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue. -func (m *CustomExtensionHandlerInstance) SetStage(value *AccessPackageCustomExtensionStage)() { +func (m *CustomExtensionHandlerInstance) SetStage(value *CustomExtensionHandlerInstance_stage)() { err := m.GetBackingStore().Set("stage", value) if err != nil { panic(err) } } // SetStatus sets the status property value. Status of the request to run the access package custom extension workflow that is associated with the logic app. The possible values are: requestSent, requestReceived, unknownFutureValue. -func (m *CustomExtensionHandlerInstance) SetStatus(value *AccessPackageCustomExtensionHandlerStatus)() { +func (m *CustomExtensionHandlerInstance) SetStatus(value *CustomExtensionHandlerInstance_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -245,12 +245,12 @@ type CustomExtensionHandlerInstanceable interface { GetCustomExtensionId()(*string) GetExternalCorrelationId()(*string) GetOdataType()(*string) - GetStage()(*AccessPackageCustomExtensionStage) - GetStatus()(*AccessPackageCustomExtensionHandlerStatus) + GetStage()(*CustomExtensionHandlerInstance_stage) + GetStatus()(*CustomExtensionHandlerInstance_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCustomExtensionId(value *string)() SetExternalCorrelationId(value *string)() SetOdataType(value *string)() - SetStage(value *AccessPackageCustomExtensionStage)() - SetStatus(value *AccessPackageCustomExtensionHandlerStatus)() + SetStage(value *CustomExtensionHandlerInstance_stage)() + SetStatus(value *CustomExtensionHandlerInstance_status)() } diff --git a/models/custom_extension_handler_instance_stage.go b/models/custom_extension_handler_instance_stage.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/custom_extension_handler_instance_status.go b/models/custom_extension_handler_instance_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/custom_extension_handler_stage.go b/models/custom_extension_handler_stage.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/custom_security_attribute_audit.go b/models/custom_security_attribute_audit.go index 0f71f63013d..e6d3d5ceff8 100644 --- a/models/custom_security_attribute_audit.go +++ b/models/custom_security_attribute_audit.go @@ -165,12 +165,12 @@ func (m *CustomSecurityAttributeAudit) GetFieldDeserializers()(map[string]func(i return nil } res["result"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOperationResult) + val, err := n.GetEnumValue(ParseCustomSecurityAttributeAudit_result) if err != nil { return err } if val != nil { - m.SetResult(val.(*OperationResult)) + m.SetResult(val.(*CustomSecurityAttributeAudit_result)) } return nil } @@ -246,13 +246,13 @@ func (m *CustomSecurityAttributeAudit) GetOperationType()(*string) { return nil } // GetResult gets the result property value. The result property -func (m *CustomSecurityAttributeAudit) GetResult()(*OperationResult) { +func (m *CustomSecurityAttributeAudit) GetResult()(*CustomSecurityAttributeAudit_result) { val, err := m.GetBackingStore().Get("result") if err != nil { panic(err) } if val != nil { - return val.(*OperationResult) + return val.(*CustomSecurityAttributeAudit_result) } return nil } @@ -439,7 +439,7 @@ func (m *CustomSecurityAttributeAudit) SetOperationType(value *string)() { } } // SetResult sets the result property value. The result property -func (m *CustomSecurityAttributeAudit) SetResult(value *OperationResult)() { +func (m *CustomSecurityAttributeAudit) SetResult(value *CustomSecurityAttributeAudit_result)() { err := m.GetBackingStore().Set("result", value) if err != nil { panic(err) @@ -478,7 +478,7 @@ type CustomSecurityAttributeAuditable interface { GetInitiatedBy()(AuditActivityInitiatorable) GetLoggedByService()(*string) GetOperationType()(*string) - GetResult()(*OperationResult) + GetResult()(*CustomSecurityAttributeAudit_result) GetResultReason()(*string) GetTargetResources()([]TargetResourceable) GetUserAgent()(*string) @@ -490,7 +490,7 @@ type CustomSecurityAttributeAuditable interface { SetInitiatedBy(value AuditActivityInitiatorable)() SetLoggedByService(value *string)() SetOperationType(value *string)() - SetResult(value *OperationResult)() + SetResult(value *CustomSecurityAttributeAudit_result)() SetResultReason(value *string)() SetTargetResources(value []TargetResourceable)() SetUserAgent(value *string)() diff --git a/models/custom_security_attribute_audit_result.go b/models/custom_security_attribute_audit_result.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/custom_training_setting.go b/models/custom_training_setting.go index ffde55c5c5b..56f804c48c3 100644 --- a/models/custom_training_setting.go +++ b/models/custom_training_setting.go @@ -22,13 +22,13 @@ func CreateCustomTrainingSettingFromDiscriminatorValue(parseNode i878a80d2330e89 return NewCustomTrainingSetting(), nil } // GetAssignedTo gets the assignedTo property value. A user collection that specifies to whom the training should be assigned. Possible values are: none, allUsers, clickedPayload, compromised, reportedPhish, readButNotClicked, didNothing, unknownFutureValue. -func (m *CustomTrainingSetting) GetAssignedTo()([]TrainingAssignedTo) { +func (m *CustomTrainingSetting) GetAssignedTo()([]CustomTrainingSetting_assignedTo) { val, err := m.GetBackingStore().Get("assignedTo") if err != nil { panic(err) } if val != nil { - return val.([]TrainingAssignedTo) + return val.([]CustomTrainingSetting_assignedTo) } return nil } @@ -69,15 +69,15 @@ func (m *CustomTrainingSetting) GetDurationInMinutes()(*int32) { func (m *CustomTrainingSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.TrainingSetting.GetFieldDeserializers() res["assignedTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseTrainingAssignedTo) + val, err := n.GetCollectionOfEnumValues(ParseCustomTrainingSetting_assignedTo) if err != nil { return err } if val != nil { - res := make([]TrainingAssignedTo, len(val)) + res := make([]CustomTrainingSetting_assignedTo, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*TrainingAssignedTo)) + res[i] = *(v.(*CustomTrainingSetting_assignedTo)) } } m.SetAssignedTo(res) @@ -144,7 +144,7 @@ func (m *CustomTrainingSetting) Serialize(writer i878a80d2330e89d26896388a3f487e return err } if m.GetAssignedTo() != nil { - err = writer.WriteCollectionOfStringValues("assignedTo", SerializeTrainingAssignedTo(m.GetAssignedTo())) + err = writer.WriteCollectionOfStringValues("assignedTo", SerializeCustomTrainingSetting_assignedTo(m.GetAssignedTo())) if err != nil { return err } @@ -176,7 +176,7 @@ func (m *CustomTrainingSetting) Serialize(writer i878a80d2330e89d26896388a3f487e return nil } // SetAssignedTo sets the assignedTo property value. A user collection that specifies to whom the training should be assigned. Possible values are: none, allUsers, clickedPayload, compromised, reportedPhish, readButNotClicked, didNothing, unknownFutureValue. -func (m *CustomTrainingSetting) SetAssignedTo(value []TrainingAssignedTo)() { +func (m *CustomTrainingSetting) SetAssignedTo(value []CustomTrainingSetting_assignedTo)() { err := m.GetBackingStore().Set("assignedTo", value) if err != nil { panic(err) @@ -214,12 +214,12 @@ func (m *CustomTrainingSetting) SetUrl(value *string)() { type CustomTrainingSettingable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable TrainingSettingable - GetAssignedTo()([]TrainingAssignedTo) + GetAssignedTo()([]CustomTrainingSetting_assignedTo) GetDescription()(*string) GetDisplayName()(*string) GetDurationInMinutes()(*int32) GetUrl()(*string) - SetAssignedTo(value []TrainingAssignedTo)() + SetAssignedTo(value []CustomTrainingSetting_assignedTo)() SetDescription(value *string)() SetDisplayName(value *string)() SetDurationInMinutes(value *int32)() diff --git a/models/custom_training_setting_assigned_to.go b/models/custom_training_setting_assigned_to.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/data_policy_operation.go b/models/data_policy_operation.go index c31a7cf1e24..c180a71be2e 100644 --- a/models/data_policy_operation.go +++ b/models/data_policy_operation.go @@ -55,12 +55,12 @@ func (m *DataPolicyOperation) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataPolicyOperationStatus) + val, err := n.GetEnumValue(ParseDataPolicyOperation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*DataPolicyOperationStatus)) + m.SetStatus(val.(*DataPolicyOperation_status)) } return nil } @@ -108,13 +108,13 @@ func (m *DataPolicyOperation) GetProgress()(*float64) { return nil } // GetStatus gets the status property value. Possible values are: notStarted, running, complete, failed, unknownFutureValue. -func (m *DataPolicyOperation) GetStatus()(*DataPolicyOperationStatus) { +func (m *DataPolicyOperation) GetStatus()(*DataPolicyOperation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*DataPolicyOperationStatus) + return val.(*DataPolicyOperation_status) } return nil } @@ -211,7 +211,7 @@ func (m *DataPolicyOperation) SetProgress(value *float64)() { } } // SetStatus sets the status property value. Possible values are: notStarted, running, complete, failed, unknownFutureValue. -func (m *DataPolicyOperation) SetStatus(value *DataPolicyOperationStatus)() { +func (m *DataPolicyOperation) SetStatus(value *DataPolicyOperation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -244,13 +244,13 @@ type DataPolicyOperationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetProgress()(*float64) - GetStatus()(*DataPolicyOperationStatus) + GetStatus()(*DataPolicyOperation_status) GetStorageLocation()(*string) GetSubmittedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetUserId()(*string) SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetProgress(value *float64)() - SetStatus(value *DataPolicyOperationStatus)() + SetStatus(value *DataPolicyOperation_status)() SetStorageLocation(value *string)() SetSubmittedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetUserId(value *string)() diff --git a/models/data_policy_operation_status.go b/models/data_policy_operation_status.go index b4435b925fb..e69de29bb2d 100644 --- a/models/data_policy_operation_status.go +++ b/models/data_policy_operation_status.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type DataPolicyOperationStatus int - -const ( - NOTSTARTED_DATAPOLICYOPERATIONSTATUS DataPolicyOperationStatus = iota - RUNNING_DATAPOLICYOPERATIONSTATUS - COMPLETE_DATAPOLICYOPERATIONSTATUS - FAILED_DATAPOLICYOPERATIONSTATUS - UNKNOWNFUTUREVALUE_DATAPOLICYOPERATIONSTATUS -) - -func (i DataPolicyOperationStatus) String() string { - return []string{"notStarted", "running", "complete", "failed", "unknownFutureValue"}[i] -} -func ParseDataPolicyOperationStatus(v string) (any, error) { - result := NOTSTARTED_DATAPOLICYOPERATIONSTATUS - switch v { - case "notStarted": - result = NOTSTARTED_DATAPOLICYOPERATIONSTATUS - case "running": - result = RUNNING_DATAPOLICYOPERATIONSTATUS - case "complete": - result = COMPLETE_DATAPOLICYOPERATIONSTATUS - case "failed": - result = FAILED_DATAPOLICYOPERATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DATAPOLICYOPERATIONSTATUS - default: - return 0, errors.New("Unknown DataPolicyOperationStatus value: " + v) - } - return &result, nil -} -func SerializeDataPolicyOperationStatus(values []DataPolicyOperationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DataPolicyOperationStatus) isMultiValue() bool { - return false -} diff --git a/models/data_subject_type.go b/models/data_subject_type.go deleted file mode 100644 index 1a2d9054822..00000000000 --- a/models/data_subject_type.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type DataSubjectType int - -const ( - CUSTOMER_DATASUBJECTTYPE DataSubjectType = iota - CURRENTEMPLOYEE_DATASUBJECTTYPE - FORMEREMPLOYEE_DATASUBJECTTYPE - PROSPECTIVEEMPLOYEE_DATASUBJECTTYPE - STUDENT_DATASUBJECTTYPE - TEACHER_DATASUBJECTTYPE - FACULTY_DATASUBJECTTYPE - OTHER_DATASUBJECTTYPE - UNKNOWNFUTUREVALUE_DATASUBJECTTYPE -) - -func (i DataSubjectType) String() string { - return []string{"customer", "currentEmployee", "formerEmployee", "prospectiveEmployee", "student", "teacher", "faculty", "other", "unknownFutureValue"}[i] -} -func ParseDataSubjectType(v string) (any, error) { - result := CUSTOMER_DATASUBJECTTYPE - switch v { - case "customer": - result = CUSTOMER_DATASUBJECTTYPE - case "currentEmployee": - result = CURRENTEMPLOYEE_DATASUBJECTTYPE - case "formerEmployee": - result = FORMEREMPLOYEE_DATASUBJECTTYPE - case "prospectiveEmployee": - result = PROSPECTIVEEMPLOYEE_DATASUBJECTTYPE - case "student": - result = STUDENT_DATASUBJECTTYPE - case "teacher": - result = TEACHER_DATASUBJECTTYPE - case "faculty": - result = FACULTY_DATASUBJECTTYPE - case "other": - result = OTHER_DATASUBJECTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DATASUBJECTTYPE - default: - return 0, errors.New("Unknown DataSubjectType value: " + v) - } - return &result, nil -} -func SerializeDataSubjectType(values []DataSubjectType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DataSubjectType) isMultiValue() bool { - return false -} diff --git a/models/default_managed_app_protection.go b/models/default_managed_app_protection.go index f9f8b06f374..73de0c705ba 100644 --- a/models/default_managed_app_protection.go +++ b/models/default_managed_app_protection.go @@ -55,13 +55,13 @@ func (m *DefaultManagedAppProtection) GetAllowedIosDeviceModels()(*string) { return nil } // GetAppActionIfAccountIsClockedOut gets the appActionIfAccountIsClockedOut property value. Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time). Possible values are: block, wipe, warn. -func (m *DefaultManagedAppProtection) GetAppActionIfAccountIsClockedOut()(*ManagedAppRemediationAction) { +func (m *DefaultManagedAppProtection) GetAppActionIfAccountIsClockedOut()(*DefaultManagedAppProtection_appActionIfAccountIsClockedOut) { val, err := m.GetBackingStore().Get("appActionIfAccountIsClockedOut") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*DefaultManagedAppProtection_appActionIfAccountIsClockedOut) } return nil } @@ -121,35 +121,35 @@ func (m *DefaultManagedAppProtection) GetAppActionIfDeviceLockNotSet()(*ManagedA return nil } // GetAppActionIfDevicePasscodeComplexityLessThanHigh gets the appActionIfDevicePasscodeComplexityLessThanHigh property value. If the device does not have a passcode of high complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. -func (m *DefaultManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*ManagedAppRemediationAction) { +func (m *DefaultManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanHigh") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh) } return nil } // GetAppActionIfDevicePasscodeComplexityLessThanLow gets the appActionIfDevicePasscodeComplexityLessThanLow property value. If the device does not have a passcode of low complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. -func (m *DefaultManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanLow()(*ManagedAppRemediationAction) { +func (m *DefaultManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanLow()(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanLow") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow) } return nil } // GetAppActionIfDevicePasscodeComplexityLessThanMedium gets the appActionIfDevicePasscodeComplexityLessThanMedium property value. If the device does not have a passcode of medium complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. -func (m *DefaultManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*ManagedAppRemediationAction) { +func (m *DefaultManagedAppProtection) GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium) { val, err := m.GetBackingStore().Get("appActionIfDevicePasscodeComplexityLessThanMedium") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium) } return nil } @@ -435,12 +435,12 @@ func (m *DefaultManagedAppProtection) GetFieldDeserializers()(map[string]func(i8 return nil } res["appActionIfAccountIsClockedOut"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseDefaultManagedAppProtection_appActionIfAccountIsClockedOut) if err != nil { return err } if val != nil { - m.SetAppActionIfAccountIsClockedOut(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfAccountIsClockedOut(val.(*DefaultManagedAppProtection_appActionIfAccountIsClockedOut)) } return nil } @@ -495,32 +495,32 @@ func (m *DefaultManagedAppProtection) GetFieldDeserializers()(map[string]func(i8 return nil } res["appActionIfDevicePasscodeComplexityLessThanHigh"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseDefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh) if err != nil { return err } if val != nil { - m.SetAppActionIfDevicePasscodeComplexityLessThanHigh(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfDevicePasscodeComplexityLessThanHigh(val.(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh)) } return nil } res["appActionIfDevicePasscodeComplexityLessThanLow"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseDefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow) if err != nil { return err } if val != nil { - m.SetAppActionIfDevicePasscodeComplexityLessThanLow(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfDevicePasscodeComplexityLessThanLow(val.(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow)) } return nil } res["appActionIfDevicePasscodeComplexityLessThanMedium"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseDefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium) if err != nil { return err } if val != nil { - m.SetAppActionIfDevicePasscodeComplexityLessThanMedium(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfDevicePasscodeComplexityLessThanMedium(val.(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium)) } return nil } @@ -1690,7 +1690,7 @@ func (m *DefaultManagedAppProtection) SetAllowedIosDeviceModels(value *string)() } } // SetAppActionIfAccountIsClockedOut sets the appActionIfAccountIsClockedOut property value. Defines a managed app behavior, either block or warn, if the user is clocked out (non-working time). Possible values are: block, wipe, warn. -func (m *DefaultManagedAppProtection) SetAppActionIfAccountIsClockedOut(value *ManagedAppRemediationAction)() { +func (m *DefaultManagedAppProtection) SetAppActionIfAccountIsClockedOut(value *DefaultManagedAppProtection_appActionIfAccountIsClockedOut)() { err := m.GetBackingStore().Set("appActionIfAccountIsClockedOut", value) if err != nil { panic(err) @@ -1732,21 +1732,21 @@ func (m *DefaultManagedAppProtection) SetAppActionIfDeviceLockNotSet(value *Mana } } // SetAppActionIfDevicePasscodeComplexityLessThanHigh sets the appActionIfDevicePasscodeComplexityLessThanHigh property value. If the device does not have a passcode of high complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. -func (m *DefaultManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *ManagedAppRemediationAction)() { +func (m *DefaultManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanHigh", value) if err != nil { panic(err) } } // SetAppActionIfDevicePasscodeComplexityLessThanLow sets the appActionIfDevicePasscodeComplexityLessThanLow property value. If the device does not have a passcode of low complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. -func (m *DefaultManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanLow(value *ManagedAppRemediationAction)() { +func (m *DefaultManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanLow(value *DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanLow", value) if err != nil { panic(err) } } // SetAppActionIfDevicePasscodeComplexityLessThanMedium sets the appActionIfDevicePasscodeComplexityLessThanMedium property value. If the device does not have a passcode of medium complexity or higher, trigger the stored action. Possible values are: block, wipe, warn. -func (m *DefaultManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *ManagedAppRemediationAction)() { +func (m *DefaultManagedAppProtection) SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium)() { err := m.GetBackingStore().Set("appActionIfDevicePasscodeComplexityLessThanMedium", value) if err != nil { panic(err) @@ -2081,15 +2081,15 @@ type DefaultManagedAppProtectionable interface { GetAllowedAndroidDeviceManufacturers()(*string) GetAllowedAndroidDeviceModels()([]string) GetAllowedIosDeviceModels()(*string) - GetAppActionIfAccountIsClockedOut()(*ManagedAppRemediationAction) + GetAppActionIfAccountIsClockedOut()(*DefaultManagedAppProtection_appActionIfAccountIsClockedOut) GetAppActionIfAndroidDeviceManufacturerNotAllowed()(*ManagedAppRemediationAction) GetAppActionIfAndroidDeviceModelNotAllowed()(*ManagedAppRemediationAction) GetAppActionIfAndroidSafetyNetAppsVerificationFailed()(*ManagedAppRemediationAction) GetAppActionIfAndroidSafetyNetDeviceAttestationFailed()(*ManagedAppRemediationAction) GetAppActionIfDeviceLockNotSet()(*ManagedAppRemediationAction) - GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*ManagedAppRemediationAction) - GetAppActionIfDevicePasscodeComplexityLessThanLow()(*ManagedAppRemediationAction) - GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*ManagedAppRemediationAction) + GetAppActionIfDevicePasscodeComplexityLessThanHigh()(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh) + GetAppActionIfDevicePasscodeComplexityLessThanLow()(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow) + GetAppActionIfDevicePasscodeComplexityLessThanMedium()(*DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium) GetAppActionIfIosDeviceModelNotAllowed()(*ManagedAppRemediationAction) GetAppDataEncryptionType()(*ManagedAppDataEncryptionType) GetApps()([]ManagedMobileAppable) @@ -2139,15 +2139,15 @@ type DefaultManagedAppProtectionable interface { SetAllowedAndroidDeviceManufacturers(value *string)() SetAllowedAndroidDeviceModels(value []string)() SetAllowedIosDeviceModels(value *string)() - SetAppActionIfAccountIsClockedOut(value *ManagedAppRemediationAction)() + SetAppActionIfAccountIsClockedOut(value *DefaultManagedAppProtection_appActionIfAccountIsClockedOut)() SetAppActionIfAndroidDeviceManufacturerNotAllowed(value *ManagedAppRemediationAction)() SetAppActionIfAndroidDeviceModelNotAllowed(value *ManagedAppRemediationAction)() SetAppActionIfAndroidSafetyNetAppsVerificationFailed(value *ManagedAppRemediationAction)() SetAppActionIfAndroidSafetyNetDeviceAttestationFailed(value *ManagedAppRemediationAction)() SetAppActionIfDeviceLockNotSet(value *ManagedAppRemediationAction)() - SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *ManagedAppRemediationAction)() - SetAppActionIfDevicePasscodeComplexityLessThanLow(value *ManagedAppRemediationAction)() - SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *ManagedAppRemediationAction)() + SetAppActionIfDevicePasscodeComplexityLessThanHigh(value *DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanHigh)() + SetAppActionIfDevicePasscodeComplexityLessThanLow(value *DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanLow)() + SetAppActionIfDevicePasscodeComplexityLessThanMedium(value *DefaultManagedAppProtection_appActionIfDevicePasscodeComplexityLessThanMedium)() SetAppActionIfIosDeviceModelNotAllowed(value *ManagedAppRemediationAction)() SetAppDataEncryptionType(value *ManagedAppDataEncryptionType)() SetApps(value []ManagedMobileAppable)() diff --git a/models/default_managed_app_protection_app_action_if_account_is_clocked_out.go b/models/default_managed_app_protection_app_action_if_account_is_clocked_out.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_high.go b/models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_high.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_low.go b/models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_low.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_medium.go b/models/default_managed_app_protection_app_action_if_device_passcode_complexity_less_than_medium.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/default_mfa_method_type.go b/models/default_mfa_method_type.go deleted file mode 100644 index 929237bbe4f..00000000000 --- a/models/default_mfa_method_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type DefaultMfaMethodType int - -const ( - NONE_DEFAULTMFAMETHODTYPE DefaultMfaMethodType = iota - MOBILEPHONE_DEFAULTMFAMETHODTYPE - ALTERNATEMOBILEPHONE_DEFAULTMFAMETHODTYPE - OFFICEPHONE_DEFAULTMFAMETHODTYPE - MICROSOFTAUTHENTICATORPUSH_DEFAULTMFAMETHODTYPE - SOFTWAREONETIMEPASSCODE_DEFAULTMFAMETHODTYPE - UNKNOWNFUTUREVALUE_DEFAULTMFAMETHODTYPE -) - -func (i DefaultMfaMethodType) String() string { - return []string{"none", "mobilePhone", "alternateMobilePhone", "officePhone", "microsoftAuthenticatorPush", "softwareOneTimePasscode", "unknownFutureValue"}[i] -} -func ParseDefaultMfaMethodType(v string) (any, error) { - result := NONE_DEFAULTMFAMETHODTYPE - switch v { - case "none": - result = NONE_DEFAULTMFAMETHODTYPE - case "mobilePhone": - result = MOBILEPHONE_DEFAULTMFAMETHODTYPE - case "alternateMobilePhone": - result = ALTERNATEMOBILEPHONE_DEFAULTMFAMETHODTYPE - case "officePhone": - result = OFFICEPHONE_DEFAULTMFAMETHODTYPE - case "microsoftAuthenticatorPush": - result = MICROSOFTAUTHENTICATORPUSH_DEFAULTMFAMETHODTYPE - case "softwareOneTimePasscode": - result = SOFTWAREONETIMEPASSCODE_DEFAULTMFAMETHODTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DEFAULTMFAMETHODTYPE - default: - return 0, errors.New("Unknown DefaultMfaMethodType value: " + v) - } - return &result, nil -} -func SerializeDefaultMfaMethodType(values []DefaultMfaMethodType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DefaultMfaMethodType) isMultiValue() bool { - return false -} diff --git a/models/defender_potentially_unwanted_app_action.go b/models/defender_potentially_unwanted_app_action.go deleted file mode 100644 index 4ccf1323dcf..00000000000 --- a/models/defender_potentially_unwanted_app_action.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Defender’s action to take on detected Potentially Unwanted Application (PUA). -type DefenderPotentiallyUnwantedAppAction int - -const ( - // PUA Protection is off. Defender will not protect against potentially unwanted applications. - DEVICEDEFAULT_DEFENDERPOTENTIALLYUNWANTEDAPPACTION DefenderPotentiallyUnwantedAppAction = iota - // PUA Protection is on. Detected items are blocked. They will show in history along with other threats. - BLOCK_DEFENDERPOTENTIALLYUNWANTEDAPPACTION - // Audit mode. Defender will detect potentially unwanted applications, but take no actions. You can review information about applications Defender would have taken action against by searching for events created by Defender in the Event Viewer. - AUDIT_DEFENDERPOTENTIALLYUNWANTEDAPPACTION -) - -func (i DefenderPotentiallyUnwantedAppAction) String() string { - return []string{"deviceDefault", "block", "audit"}[i] -} -func ParseDefenderPotentiallyUnwantedAppAction(v string) (any, error) { - result := DEVICEDEFAULT_DEFENDERPOTENTIALLYUNWANTEDAPPACTION - switch v { - case "deviceDefault": - result = DEVICEDEFAULT_DEFENDERPOTENTIALLYUNWANTEDAPPACTION - case "block": - result = BLOCK_DEFENDERPOTENTIALLYUNWANTEDAPPACTION - case "audit": - result = AUDIT_DEFENDERPOTENTIALLYUNWANTEDAPPACTION - default: - return 0, errors.New("Unknown DefenderPotentiallyUnwantedAppAction value: " + v) - } - return &result, nil -} -func SerializeDefenderPotentiallyUnwantedAppAction(values []DefenderPotentiallyUnwantedAppAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DefenderPotentiallyUnwantedAppAction) isMultiValue() bool { - return false -} diff --git a/models/defender_realtime_scan_direction.go b/models/defender_realtime_scan_direction.go deleted file mode 100644 index 32e1fa98d1e..00000000000 --- a/models/defender_realtime_scan_direction.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Possible values for monitoring file activity. -type DefenderRealtimeScanDirection int - -const ( - // 0 (default) – Monitor all files(bi-directional) - MONITORALLFILES_DEFENDERREALTIMESCANDIRECTION DefenderRealtimeScanDirection = iota - // Monitor incoming files only. - MONITORINCOMINGFILESONLY_DEFENDERREALTIMESCANDIRECTION - // Monitor outgoing files only. - MONITOROUTGOINGFILESONLY_DEFENDERREALTIMESCANDIRECTION -) - -func (i DefenderRealtimeScanDirection) String() string { - return []string{"monitorAllFiles", "monitorIncomingFilesOnly", "monitorOutgoingFilesOnly"}[i] -} -func ParseDefenderRealtimeScanDirection(v string) (any, error) { - result := MONITORALLFILES_DEFENDERREALTIMESCANDIRECTION - switch v { - case "monitorAllFiles": - result = MONITORALLFILES_DEFENDERREALTIMESCANDIRECTION - case "monitorIncomingFilesOnly": - result = MONITORINCOMINGFILESONLY_DEFENDERREALTIMESCANDIRECTION - case "monitorOutgoingFilesOnly": - result = MONITOROUTGOINGFILESONLY_DEFENDERREALTIMESCANDIRECTION - default: - return 0, errors.New("Unknown DefenderRealtimeScanDirection value: " + v) - } - return &result, nil -} -func SerializeDefenderRealtimeScanDirection(values []DefenderRealtimeScanDirection) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DefenderRealtimeScanDirection) isMultiValue() bool { - return false -} diff --git a/models/defender_submit_samples_consent_type.go b/models/defender_submit_samples_consent_type.go deleted file mode 100644 index 3a6f32a7a91..00000000000 --- a/models/defender_submit_samples_consent_type.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Possible values for DefenderSubmitSamplesConsentType -type DefenderSubmitSamplesConsentType int - -const ( - // Send safe samples automatically - SENDSAFESAMPLESAUTOMATICALLY_DEFENDERSUBMITSAMPLESCONSENTTYPE DefenderSubmitSamplesConsentType = iota - // Always prompt - ALWAYSPROMPT_DEFENDERSUBMITSAMPLESCONSENTTYPE - // Never send - NEVERSEND_DEFENDERSUBMITSAMPLESCONSENTTYPE - // Send all samples automatically - SENDALLSAMPLESAUTOMATICALLY_DEFENDERSUBMITSAMPLESCONSENTTYPE -) - -func (i DefenderSubmitSamplesConsentType) String() string { - return []string{"sendSafeSamplesAutomatically", "alwaysPrompt", "neverSend", "sendAllSamplesAutomatically"}[i] -} -func ParseDefenderSubmitSamplesConsentType(v string) (any, error) { - result := SENDSAFESAMPLESAUTOMATICALLY_DEFENDERSUBMITSAMPLESCONSENTTYPE - switch v { - case "sendSafeSamplesAutomatically": - result = SENDSAFESAMPLESAUTOMATICALLY_DEFENDERSUBMITSAMPLESCONSENTTYPE - case "alwaysPrompt": - result = ALWAYSPROMPT_DEFENDERSUBMITSAMPLESCONSENTTYPE - case "neverSend": - result = NEVERSEND_DEFENDERSUBMITSAMPLESCONSENTTYPE - case "sendAllSamplesAutomatically": - result = SENDALLSAMPLESAUTOMATICALLY_DEFENDERSUBMITSAMPLESCONSENTTYPE - default: - return 0, errors.New("Unknown DefenderSubmitSamplesConsentType value: " + v) - } - return &result, nil -} -func SerializeDefenderSubmitSamplesConsentType(values []DefenderSubmitSamplesConsentType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DefenderSubmitSamplesConsentType) isMultiValue() bool { - return false -} diff --git a/models/delegate_meeting_message_delivery_options.go b/models/delegate_meeting_message_delivery_options.go deleted file mode 100644 index 1080a8fc7d2..00000000000 --- a/models/delegate_meeting_message_delivery_options.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type DelegateMeetingMessageDeliveryOptions int - -const ( - SENDTODELEGATEANDINFORMATIONTOPRINCIPAL_DELEGATEMEETINGMESSAGEDELIVERYOPTIONS DelegateMeetingMessageDeliveryOptions = iota - SENDTODELEGATEANDPRINCIPAL_DELEGATEMEETINGMESSAGEDELIVERYOPTIONS - SENDTODELEGATEONLY_DELEGATEMEETINGMESSAGEDELIVERYOPTIONS -) - -func (i DelegateMeetingMessageDeliveryOptions) String() string { - return []string{"sendToDelegateAndInformationToPrincipal", "sendToDelegateAndPrincipal", "sendToDelegateOnly"}[i] -} -func ParseDelegateMeetingMessageDeliveryOptions(v string) (any, error) { - result := SENDTODELEGATEANDINFORMATIONTOPRINCIPAL_DELEGATEMEETINGMESSAGEDELIVERYOPTIONS - switch v { - case "sendToDelegateAndInformationToPrincipal": - result = SENDTODELEGATEANDINFORMATIONTOPRINCIPAL_DELEGATEMEETINGMESSAGEDELIVERYOPTIONS - case "sendToDelegateAndPrincipal": - result = SENDTODELEGATEANDPRINCIPAL_DELEGATEMEETINGMESSAGEDELIVERYOPTIONS - case "sendToDelegateOnly": - result = SENDTODELEGATEONLY_DELEGATEMEETINGMESSAGEDELIVERYOPTIONS - default: - return 0, errors.New("Unknown DelegateMeetingMessageDeliveryOptions value: " + v) - } - return &result, nil -} -func SerializeDelegateMeetingMessageDeliveryOptions(values []DelegateMeetingMessageDeliveryOptions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DelegateMeetingMessageDeliveryOptions) isMultiValue() bool { - return false -} diff --git a/models/delegated_admin_access_assignment.go b/models/delegated_admin_access_assignment.go index e55270d619b..f51822b6bd4 100644 --- a/models/delegated_admin_access_assignment.go +++ b/models/delegated_admin_access_assignment.go @@ -97,12 +97,12 @@ func (m *DelegatedAdminAccessAssignment) GetFieldDeserializers()(map[string]func return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDelegatedAdminAccessAssignmentStatus) + val, err := n.GetEnumValue(ParseDelegatedAdminAccessAssignment_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*DelegatedAdminAccessAssignmentStatus)) + m.SetStatus(val.(*DelegatedAdminAccessAssignment_status)) } return nil } @@ -120,13 +120,13 @@ func (m *DelegatedAdminAccessAssignment) GetLastModifiedDateTime()(*i336074805fc return nil } // GetStatus gets the status property value. The status of the access assignment. Read-only. The possible values are: pending, active, deleting, deleted, error, unknownFutureValue. -func (m *DelegatedAdminAccessAssignment) GetStatus()(*DelegatedAdminAccessAssignmentStatus) { +func (m *DelegatedAdminAccessAssignment) GetStatus()(*DelegatedAdminAccessAssignment_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*DelegatedAdminAccessAssignmentStatus) + return val.(*DelegatedAdminAccessAssignment_status) } return nil } @@ -198,7 +198,7 @@ func (m *DelegatedAdminAccessAssignment) SetLastModifiedDateTime(value *i3360748 } } // SetStatus sets the status property value. The status of the access assignment. Read-only. The possible values are: pending, active, deleting, deleted, error, unknownFutureValue. -func (m *DelegatedAdminAccessAssignment) SetStatus(value *DelegatedAdminAccessAssignmentStatus)() { +func (m *DelegatedAdminAccessAssignment) SetStatus(value *DelegatedAdminAccessAssignment_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -212,10 +212,10 @@ type DelegatedAdminAccessAssignmentable interface { GetAccessDetails()(DelegatedAdminAccessDetailsable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*DelegatedAdminAccessAssignmentStatus) + GetStatus()(*DelegatedAdminAccessAssignment_status) SetAccessContainer(value DelegatedAdminAccessContainerable)() SetAccessDetails(value DelegatedAdminAccessDetailsable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *DelegatedAdminAccessAssignmentStatus)() + SetStatus(value *DelegatedAdminAccessAssignment_status)() } diff --git a/models/delegated_admin_access_assignment_status.go b/models/delegated_admin_access_assignment_status.go index d368d664efb..e69de29bb2d 100644 --- a/models/delegated_admin_access_assignment_status.go +++ b/models/delegated_admin_access_assignment_status.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type DelegatedAdminAccessAssignmentStatus int - -const ( - PENDING_DELEGATEDADMINACCESSASSIGNMENTSTATUS DelegatedAdminAccessAssignmentStatus = iota - ACTIVE_DELEGATEDADMINACCESSASSIGNMENTSTATUS - DELETING_DELEGATEDADMINACCESSASSIGNMENTSTATUS - DELETED_DELEGATEDADMINACCESSASSIGNMENTSTATUS - ERROR_DELEGATEDADMINACCESSASSIGNMENTSTATUS - UNKNOWNFUTUREVALUE_DELEGATEDADMINACCESSASSIGNMENTSTATUS -) - -func (i DelegatedAdminAccessAssignmentStatus) String() string { - return []string{"pending", "active", "deleting", "deleted", "error", "unknownFutureValue"}[i] -} -func ParseDelegatedAdminAccessAssignmentStatus(v string) (any, error) { - result := PENDING_DELEGATEDADMINACCESSASSIGNMENTSTATUS - switch v { - case "pending": - result = PENDING_DELEGATEDADMINACCESSASSIGNMENTSTATUS - case "active": - result = ACTIVE_DELEGATEDADMINACCESSASSIGNMENTSTATUS - case "deleting": - result = DELETING_DELEGATEDADMINACCESSASSIGNMENTSTATUS - case "deleted": - result = DELETED_DELEGATEDADMINACCESSASSIGNMENTSTATUS - case "error": - result = ERROR_DELEGATEDADMINACCESSASSIGNMENTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DELEGATEDADMINACCESSASSIGNMENTSTATUS - default: - return 0, errors.New("Unknown DelegatedAdminAccessAssignmentStatus value: " + v) - } - return &result, nil -} -func SerializeDelegatedAdminAccessAssignmentStatus(values []DelegatedAdminAccessAssignmentStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DelegatedAdminAccessAssignmentStatus) isMultiValue() bool { - return false -} diff --git a/models/delegated_admin_relationship.go b/models/delegated_admin_relationship.go index 9d9249948d5..2657a067a11 100644 --- a/models/delegated_admin_relationship.go +++ b/models/delegated_admin_relationship.go @@ -279,12 +279,12 @@ func (m *DelegatedAdminRelationship) GetFieldDeserializers()(map[string]func(i87 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDelegatedAdminRelationshipStatus) + val, err := n.GetEnumValue(ParseDelegatedAdminRelationship_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*DelegatedAdminRelationshipStatus)) + m.SetStatus(val.(*DelegatedAdminRelationship_status)) } return nil } @@ -324,13 +324,13 @@ func (m *DelegatedAdminRelationship) GetRequests()([]DelegatedAdminRelationshipR return nil } // GetStatus gets the status property value. The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby. -func (m *DelegatedAdminRelationship) GetStatus()(*DelegatedAdminRelationshipStatus) { +func (m *DelegatedAdminRelationship) GetStatus()(*DelegatedAdminRelationship_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*DelegatedAdminRelationshipStatus) + return val.(*DelegatedAdminRelationship_status) } return nil } @@ -524,7 +524,7 @@ func (m *DelegatedAdminRelationship) SetRequests(value []DelegatedAdminRelations } } // SetStatus sets the status property value. The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby. -func (m *DelegatedAdminRelationship) SetStatus(value *DelegatedAdminRelationshipStatus)() { +func (m *DelegatedAdminRelationship) SetStatus(value *DelegatedAdminRelationship_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -546,7 +546,7 @@ type DelegatedAdminRelationshipable interface { GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOperations()([]DelegatedAdminRelationshipOperationable) GetRequests()([]DelegatedAdminRelationshipRequestable) - GetStatus()(*DelegatedAdminRelationshipStatus) + GetStatus()(*DelegatedAdminRelationship_status) SetAccessAssignments(value []DelegatedAdminAccessAssignmentable)() SetAccessDetails(value DelegatedAdminAccessDetailsable)() SetActivatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -559,5 +559,5 @@ type DelegatedAdminRelationshipable interface { SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOperations(value []DelegatedAdminRelationshipOperationable)() SetRequests(value []DelegatedAdminRelationshipRequestable)() - SetStatus(value *DelegatedAdminRelationshipStatus)() + SetStatus(value *DelegatedAdminRelationship_status)() } diff --git a/models/delegated_admin_relationship_request.go b/models/delegated_admin_relationship_request.go index 6aa9f1c095f..1e641adbe8a 100644 --- a/models/delegated_admin_relationship_request.go +++ b/models/delegated_admin_relationship_request.go @@ -76,12 +76,12 @@ func (m *DelegatedAdminRelationshipRequest) GetFieldDeserializers()(map[string]f return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDelegatedAdminRelationshipRequestStatus) + val, err := n.GetEnumValue(ParseDelegatedAdminRelationshipRequest_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*DelegatedAdminRelationshipRequestStatus)) + m.SetStatus(val.(*DelegatedAdminRelationshipRequest_status)) } return nil } @@ -99,13 +99,13 @@ func (m *DelegatedAdminRelationshipRequest) GetLastModifiedDateTime()(*i33607480 return nil } // GetStatus gets the status property value. The status of the request. Read-only. The possible values are: created, pending, succeeded, failed, unknownFutureValue. -func (m *DelegatedAdminRelationshipRequest) GetStatus()(*DelegatedAdminRelationshipRequestStatus) { +func (m *DelegatedAdminRelationshipRequest) GetStatus()(*DelegatedAdminRelationshipRequest_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*DelegatedAdminRelationshipRequestStatus) + return val.(*DelegatedAdminRelationshipRequest_status) } return nil } @@ -165,7 +165,7 @@ func (m *DelegatedAdminRelationshipRequest) SetLastModifiedDateTime(value *i3360 } } // SetStatus sets the status property value. The status of the request. Read-only. The possible values are: created, pending, succeeded, failed, unknownFutureValue. -func (m *DelegatedAdminRelationshipRequest) SetStatus(value *DelegatedAdminRelationshipRequestStatus)() { +func (m *DelegatedAdminRelationshipRequest) SetStatus(value *DelegatedAdminRelationshipRequest_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -178,9 +178,9 @@ type DelegatedAdminRelationshipRequestable interface { GetAction()(*DelegatedAdminRelationshipRequestAction) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*DelegatedAdminRelationshipRequestStatus) + GetStatus()(*DelegatedAdminRelationshipRequest_status) SetAction(value *DelegatedAdminRelationshipRequestAction)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *DelegatedAdminRelationshipRequestStatus)() + SetStatus(value *DelegatedAdminRelationshipRequest_status)() } diff --git a/models/delegated_admin_relationship_request_status.go b/models/delegated_admin_relationship_request_status.go index 96688d5779a..e69de29bb2d 100644 --- a/models/delegated_admin_relationship_request_status.go +++ b/models/delegated_admin_relationship_request_status.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type DelegatedAdminRelationshipRequestStatus int - -const ( - CREATED_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS DelegatedAdminRelationshipRequestStatus = iota - PENDING_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - SUCCEEDED_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - FAILED_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - UNKNOWNFUTUREVALUE_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS -) - -func (i DelegatedAdminRelationshipRequestStatus) String() string { - return []string{"created", "pending", "succeeded", "failed", "unknownFutureValue"}[i] -} -func ParseDelegatedAdminRelationshipRequestStatus(v string) (any, error) { - result := CREATED_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - switch v { - case "created": - result = CREATED_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - case "pending": - result = PENDING_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - case "succeeded": - result = SUCCEEDED_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - case "failed": - result = FAILED_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS - default: - return 0, errors.New("Unknown DelegatedAdminRelationshipRequestStatus value: " + v) - } - return &result, nil -} -func SerializeDelegatedAdminRelationshipRequestStatus(values []DelegatedAdminRelationshipRequestStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DelegatedAdminRelationshipRequestStatus) isMultiValue() bool { - return false -} diff --git a/models/delegated_admin_relationship_status.go b/models/delegated_admin_relationship_status.go index 41f56b27706..e69de29bb2d 100644 --- a/models/delegated_admin_relationship_status.go +++ b/models/delegated_admin_relationship_status.go @@ -1,64 +0,0 @@ -package models -import ( - "errors" -) -// -type DelegatedAdminRelationshipStatus int - -const ( - ACTIVATING_DELEGATEDADMINRELATIONSHIPSTATUS DelegatedAdminRelationshipStatus = iota - ACTIVE_DELEGATEDADMINRELATIONSHIPSTATUS - APPROVALPENDING_DELEGATEDADMINRELATIONSHIPSTATUS - APPROVED_DELEGATEDADMINRELATIONSHIPSTATUS - CREATED_DELEGATEDADMINRELATIONSHIPSTATUS - EXPIRED_DELEGATEDADMINRELATIONSHIPSTATUS - EXPIRING_DELEGATEDADMINRELATIONSHIPSTATUS - TERMINATED_DELEGATEDADMINRELATIONSHIPSTATUS - TERMINATING_DELEGATEDADMINRELATIONSHIPSTATUS - TERMINATIONREQUESTED_DELEGATEDADMINRELATIONSHIPSTATUS - UNKNOWNFUTUREVALUE_DELEGATEDADMINRELATIONSHIPSTATUS -) - -func (i DelegatedAdminRelationshipStatus) String() string { - return []string{"activating", "active", "approvalPending", "approved", "created", "expired", "expiring", "terminated", "terminating", "terminationRequested", "unknownFutureValue"}[i] -} -func ParseDelegatedAdminRelationshipStatus(v string) (any, error) { - result := ACTIVATING_DELEGATEDADMINRELATIONSHIPSTATUS - switch v { - case "activating": - result = ACTIVATING_DELEGATEDADMINRELATIONSHIPSTATUS - case "active": - result = ACTIVE_DELEGATEDADMINRELATIONSHIPSTATUS - case "approvalPending": - result = APPROVALPENDING_DELEGATEDADMINRELATIONSHIPSTATUS - case "approved": - result = APPROVED_DELEGATEDADMINRELATIONSHIPSTATUS - case "created": - result = CREATED_DELEGATEDADMINRELATIONSHIPSTATUS - case "expired": - result = EXPIRED_DELEGATEDADMINRELATIONSHIPSTATUS - case "expiring": - result = EXPIRING_DELEGATEDADMINRELATIONSHIPSTATUS - case "terminated": - result = TERMINATED_DELEGATEDADMINRELATIONSHIPSTATUS - case "terminating": - result = TERMINATING_DELEGATEDADMINRELATIONSHIPSTATUS - case "terminationRequested": - result = TERMINATIONREQUESTED_DELEGATEDADMINRELATIONSHIPSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DELEGATEDADMINRELATIONSHIPSTATUS - default: - return 0, errors.New("Unknown DelegatedAdminRelationshipStatus value: " + v) - } - return &result, nil -} -func SerializeDelegatedAdminRelationshipStatus(values []DelegatedAdminRelationshipStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DelegatedAdminRelationshipStatus) isMultiValue() bool { - return false -} diff --git a/models/delegated_permission_classification.go b/models/delegated_permission_classification.go index 1a39d870d20..c7eea8bd855 100644 --- a/models/delegated_permission_classification.go +++ b/models/delegated_permission_classification.go @@ -20,13 +20,13 @@ func CreateDelegatedPermissionClassificationFromDiscriminatorValue(parseNode i87 return NewDelegatedPermissionClassification(), nil } // GetClassification gets the classification property value. The classification value being given. Possible value: low. Doesn't support $filter. -func (m *DelegatedPermissionClassification) GetClassification()(*PermissionClassificationType) { +func (m *DelegatedPermissionClassification) GetClassification()(*DelegatedPermissionClassification_classification) { val, err := m.GetBackingStore().Get("classification") if err != nil { panic(err) } if val != nil { - return val.(*PermissionClassificationType) + return val.(*DelegatedPermissionClassification_classification) } return nil } @@ -34,12 +34,12 @@ func (m *DelegatedPermissionClassification) GetClassification()(*PermissionClass func (m *DelegatedPermissionClassification) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["classification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePermissionClassificationType) + val, err := n.GetEnumValue(ParseDelegatedPermissionClassification_classification) if err != nil { return err } if val != nil { - m.SetClassification(val.(*PermissionClassificationType)) + m.SetClassification(val.(*DelegatedPermissionClassification_classification)) } return nil } @@ -115,7 +115,7 @@ func (m *DelegatedPermissionClassification) Serialize(writer i878a80d2330e89d268 return nil } // SetClassification sets the classification property value. The classification value being given. Possible value: low. Doesn't support $filter. -func (m *DelegatedPermissionClassification) SetClassification(value *PermissionClassificationType)() { +func (m *DelegatedPermissionClassification) SetClassification(value *DelegatedPermissionClassification_classification)() { err := m.GetBackingStore().Set("classification", value) if err != nil { panic(err) @@ -139,10 +139,10 @@ func (m *DelegatedPermissionClassification) SetPermissionName(value *string)() { type DelegatedPermissionClassificationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetClassification()(*PermissionClassificationType) + GetClassification()(*DelegatedPermissionClassification_classification) GetPermissionId()(*string) GetPermissionName()(*string) - SetClassification(value *PermissionClassificationType)() + SetClassification(value *DelegatedPermissionClassification_classification)() SetPermissionId(value *string)() SetPermissionName(value *string)() } diff --git a/models/delegated_permission_classification_classification.go b/models/delegated_permission_classification_classification.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/detected_sensitive_content.go b/models/detected_sensitive_content.go index 9484a586651..3e41237564e 100644 --- a/models/detected_sensitive_content.go +++ b/models/detected_sensitive_content.go @@ -49,13 +49,13 @@ func (m *DetectedSensitiveContent) GetClassificationAttributes()([]Classificatio return nil } // GetClassificationMethod gets the classificationMethod property value. The classificationMethod property -func (m *DetectedSensitiveContent) GetClassificationMethod()(*ClassificationMethod) { +func (m *DetectedSensitiveContent) GetClassificationMethod()(*DetectedSensitiveContent_classificationMethod) { val, err := m.GetBackingStore().Get("classificationMethod") if err != nil { panic(err) } if val != nil { - return val.(*ClassificationMethod) + return val.(*DetectedSensitiveContent_classificationMethod) } return nil } @@ -79,12 +79,12 @@ func (m *DetectedSensitiveContent) GetFieldDeserializers()(map[string]func(i878a return nil } res["classificationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseClassificationMethod) + val, err := n.GetEnumValue(ParseDetectedSensitiveContent_classificationMethod) if err != nil { return err } if val != nil { - m.SetClassificationMethod(val.(*ClassificationMethod)) + m.SetClassificationMethod(val.(*DetectedSensitiveContent_classificationMethod)) } return nil } @@ -105,22 +105,22 @@ func (m *DetectedSensitiveContent) GetFieldDeserializers()(map[string]func(i878a return nil } res["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitiveTypeScope) + val, err := n.GetEnumValue(ParseDetectedSensitiveContent_scope) if err != nil { return err } if val != nil { - m.SetScope(val.(*SensitiveTypeScope)) + m.SetScope(val.(*DetectedSensitiveContent_scope)) } return nil } res["sensitiveTypeSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitiveTypeSource) + val, err := n.GetEnumValue(ParseDetectedSensitiveContent_sensitiveTypeSource) if err != nil { return err } if val != nil { - m.SetSensitiveTypeSource(val.(*SensitiveTypeSource)) + m.SetSensitiveTypeSource(val.(*DetectedSensitiveContent_sensitiveTypeSource)) } return nil } @@ -138,24 +138,24 @@ func (m *DetectedSensitiveContent) GetMatches()([]SensitiveContentLocationable) return nil } // GetScope gets the scope property value. The scope property -func (m *DetectedSensitiveContent) GetScope()(*SensitiveTypeScope) { +func (m *DetectedSensitiveContent) GetScope()(*DetectedSensitiveContent_scope) { val, err := m.GetBackingStore().Get("scope") if err != nil { panic(err) } if val != nil { - return val.(*SensitiveTypeScope) + return val.(*DetectedSensitiveContent_scope) } return nil } // GetSensitiveTypeSource gets the sensitiveTypeSource property value. The sensitiveTypeSource property -func (m *DetectedSensitiveContent) GetSensitiveTypeSource()(*SensitiveTypeSource) { +func (m *DetectedSensitiveContent) GetSensitiveTypeSource()(*DetectedSensitiveContent_sensitiveTypeSource) { val, err := m.GetBackingStore().Get("sensitiveTypeSource") if err != nil { panic(err) } if val != nil { - return val.(*SensitiveTypeSource) + return val.(*DetectedSensitiveContent_sensitiveTypeSource) } return nil } @@ -220,7 +220,7 @@ func (m *DetectedSensitiveContent) SetClassificationAttributes(value []Classific } } // SetClassificationMethod sets the classificationMethod property value. The classificationMethod property -func (m *DetectedSensitiveContent) SetClassificationMethod(value *ClassificationMethod)() { +func (m *DetectedSensitiveContent) SetClassificationMethod(value *DetectedSensitiveContent_classificationMethod)() { err := m.GetBackingStore().Set("classificationMethod", value) if err != nil { panic(err) @@ -234,14 +234,14 @@ func (m *DetectedSensitiveContent) SetMatches(value []SensitiveContentLocationab } } // SetScope sets the scope property value. The scope property -func (m *DetectedSensitiveContent) SetScope(value *SensitiveTypeScope)() { +func (m *DetectedSensitiveContent) SetScope(value *DetectedSensitiveContent_scope)() { err := m.GetBackingStore().Set("scope", value) if err != nil { panic(err) } } // SetSensitiveTypeSource sets the sensitiveTypeSource property value. The sensitiveTypeSource property -func (m *DetectedSensitiveContent) SetSensitiveTypeSource(value *SensitiveTypeSource)() { +func (m *DetectedSensitiveContent) SetSensitiveTypeSource(value *DetectedSensitiveContent_sensitiveTypeSource)() { err := m.GetBackingStore().Set("sensitiveTypeSource", value) if err != nil { panic(err) @@ -252,13 +252,13 @@ type DetectedSensitiveContentable interface { DetectedSensitiveContentBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetClassificationAttributes()([]ClassificationAttributeable) - GetClassificationMethod()(*ClassificationMethod) + GetClassificationMethod()(*DetectedSensitiveContent_classificationMethod) GetMatches()([]SensitiveContentLocationable) - GetScope()(*SensitiveTypeScope) - GetSensitiveTypeSource()(*SensitiveTypeSource) + GetScope()(*DetectedSensitiveContent_scope) + GetSensitiveTypeSource()(*DetectedSensitiveContent_sensitiveTypeSource) SetClassificationAttributes(value []ClassificationAttributeable)() - SetClassificationMethod(value *ClassificationMethod)() + SetClassificationMethod(value *DetectedSensitiveContent_classificationMethod)() SetMatches(value []SensitiveContentLocationable)() - SetScope(value *SensitiveTypeScope)() - SetSensitiveTypeSource(value *SensitiveTypeSource)() + SetScope(value *DetectedSensitiveContent_scope)() + SetSensitiveTypeSource(value *DetectedSensitiveContent_sensitiveTypeSource)() } diff --git a/models/detected_sensitive_content_classification_method.go b/models/detected_sensitive_content_classification_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/detected_sensitive_content_scope.go b/models/detected_sensitive_content_scope.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/detected_sensitive_content_sensitive_type_source.go b/models/detected_sensitive_content_sensitive_type_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/device_config_assignment_intent.go b/models/device_config_assignment_intent.go deleted file mode 100644 index c3e3037b873..00000000000 --- a/models/device_config_assignment_intent.go +++ /dev/null @@ -1,39 +0,0 @@ -package models -import ( - "errors" -) -// The administrator intent for the assignment of the profile. -type DeviceConfigAssignmentIntent int - -const ( - // Ensure that the configuration profile is applied to the devices in the assignment. - APPLY_DEVICECONFIGASSIGNMENTINTENT DeviceConfigAssignmentIntent = iota - // Ensure that the configuration profile is removed from devices that have previously installed the configuration profile. - REMOVE_DEVICECONFIGASSIGNMENTINTENT -) - -func (i DeviceConfigAssignmentIntent) String() string { - return []string{"apply", "remove"}[i] -} -func ParseDeviceConfigAssignmentIntent(v string) (any, error) { - result := APPLY_DEVICECONFIGASSIGNMENTINTENT - switch v { - case "apply": - result = APPLY_DEVICECONFIGASSIGNMENTINTENT - case "remove": - result = REMOVE_DEVICECONFIGASSIGNMENTINTENT - default: - return 0, errors.New("Unknown DeviceConfigAssignmentIntent value: " + v) - } - return &result, nil -} -func SerializeDeviceConfigAssignmentIntent(values []DeviceConfigAssignmentIntent) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DeviceConfigAssignmentIntent) isMultiValue() bool { - return false -} diff --git a/models/device_configuration_assignment.go b/models/device_configuration_assignment.go index 388384d63b3..0eb704e5ef8 100644 --- a/models/device_configuration_assignment.go +++ b/models/device_configuration_assignment.go @@ -23,12 +23,12 @@ func CreateDeviceConfigurationAssignmentFromDiscriminatorValue(parseNode i878a80 func (m *DeviceConfigurationAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["intent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDeviceConfigAssignmentIntent) + val, err := n.GetEnumValue(ParseDeviceConfigurationAssignment_intent) if err != nil { return err } if val != nil { - m.SetIntent(val.(*DeviceConfigAssignmentIntent)) + m.SetIntent(val.(*DeviceConfigurationAssignment_intent)) } return nil } @@ -65,13 +65,13 @@ func (m *DeviceConfigurationAssignment) GetFieldDeserializers()(map[string]func( return res } // GetIntent gets the intent property value. The admin intent to apply or remove the profile. Possible values are: apply, remove. -func (m *DeviceConfigurationAssignment) GetIntent()(*DeviceConfigAssignmentIntent) { +func (m *DeviceConfigurationAssignment) GetIntent()(*DeviceConfigurationAssignment_intent) { val, err := m.GetBackingStore().Get("intent") if err != nil { panic(err) } if val != nil { - return val.(*DeviceConfigAssignmentIntent) + return val.(*DeviceConfigurationAssignment_intent) } return nil } @@ -137,7 +137,7 @@ func (m *DeviceConfigurationAssignment) Serialize(writer i878a80d2330e89d2689638 return nil } // SetIntent sets the intent property value. The admin intent to apply or remove the profile. Possible values are: apply, remove. -func (m *DeviceConfigurationAssignment) SetIntent(value *DeviceConfigAssignmentIntent)() { +func (m *DeviceConfigurationAssignment) SetIntent(value *DeviceConfigurationAssignment_intent)() { err := m.GetBackingStore().Set("intent", value) if err != nil { panic(err) @@ -168,11 +168,11 @@ func (m *DeviceConfigurationAssignment) SetTarget(value DeviceAndAppManagementAs type DeviceConfigurationAssignmentable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetIntent()(*DeviceConfigAssignmentIntent) + GetIntent()(*DeviceConfigurationAssignment_intent) GetSource()(*DeviceAndAppManagementAssignmentSource) GetSourceId()(*string) GetTarget()(DeviceAndAppManagementAssignmentTargetable) - SetIntent(value *DeviceConfigAssignmentIntent)() + SetIntent(value *DeviceConfigurationAssignment_intent)() SetSource(value *DeviceAndAppManagementAssignmentSource)() SetSourceId(value *string)() SetTarget(value DeviceAndAppManagementAssignmentTargetable)() diff --git a/models/device_configuration_assignment_intent.go b/models/device_configuration_assignment_intent.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/device_management_configuration_referred_setting_information.go b/models/device_management_configuration_referred_setting_information.go index 32aedc01dab..8fddbb0e965 100644 --- a/models/device_management_configuration_referred_setting_information.go +++ b/models/device_management_configuration_referred_setting_information.go @@ -74,7 +74,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) GetOdataType() } return nil } -// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting func (m *DeviceManagementConfigurationReferredSettingInformation) GetSettingDefinitionId()(*string) { val, err := m.GetBackingStore().Get("settingDefinitionId") if err != nil { @@ -125,7 +125,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) SetOdataType(v panic(err) } } -// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting func (m *DeviceManagementConfigurationReferredSettingInformation) SetSettingDefinitionId(value *string)() { err := m.GetBackingStore().Set("settingDefinitionId", value) if err != nil { diff --git a/models/device_management_configuration_setting_group_collection_definition.go b/models/device_management_configuration_setting_group_collection_definition.go index 1b640305b33..7702cbf6faf 100644 --- a/models/device_management_configuration_setting_group_collection_definition.go +++ b/models/device_management_configuration_setting_group_collection_definition.go @@ -44,7 +44,7 @@ func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) GetField } return res } -// GetMaximumCount gets the maximumCount property value. Maximum number of setting group count in the collection. Valid values 1 to 100 +// GetMaximumCount gets the maximumCount property value. Maximum number of setting group count in the collection func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) GetMaximumCount()(*int32) { val, err := m.GetBackingStore().Get("maximumCount") if err != nil { @@ -55,7 +55,7 @@ func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) GetMaxim } return nil } -// GetMinimumCount gets the minimumCount property value. Minimum number of setting group count in the collection. Valid values 1 to 100 +// GetMinimumCount gets the minimumCount property value. Minimum number of setting group count in the collection func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) GetMinimumCount()(*int32) { val, err := m.GetBackingStore().Get("minimumCount") if err != nil { @@ -86,14 +86,14 @@ func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) Serializ } return nil } -// SetMaximumCount sets the maximumCount property value. Maximum number of setting group count in the collection. Valid values 1 to 100 +// SetMaximumCount sets the maximumCount property value. Maximum number of setting group count in the collection func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) SetMaximumCount(value *int32)() { err := m.GetBackingStore().Set("maximumCount", value) if err != nil { panic(err) } } -// SetMinimumCount sets the minimumCount property value. Minimum number of setting group count in the collection. Valid values 1 to 100 +// SetMinimumCount sets the minimumCount property value. Minimum number of setting group count in the collection func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) SetMinimumCount(value *int32)() { err := m.GetBackingStore().Set("minimumCount", value) if err != nil { diff --git a/models/device_management_configuration_setting_group_definition.go b/models/device_management_configuration_setting_group_definition.go index 903241e4d89..bd3bc86750e 100644 --- a/models/device_management_configuration_setting_group_definition.go +++ b/models/device_management_configuration_setting_group_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSettingGroupDefinitionFromDiscriminatorV } return NewDeviceManagementConfigurationSettingGroupDefinition(), nil } -// GetChildIds gets the childIds property value. Dependent child settings to this group of settings. +// GetChildIds gets the childIds property value. Dependent child settings to this group of settings func (m *DeviceManagementConfigurationSettingGroupDefinition) GetChildIds()([]string) { val, err := m.GetBackingStore().Get("childIds") if err != nil { @@ -161,7 +161,7 @@ func (m *DeviceManagementConfigurationSettingGroupDefinition) Serialize(writer i } return nil } -// SetChildIds sets the childIds property value. Dependent child settings to this group of settings. +// SetChildIds sets the childIds property value. Dependent child settings to this group of settings func (m *DeviceManagementConfigurationSettingGroupDefinition) SetChildIds(value []string)() { err := m.GetBackingStore().Set("childIds", value) if err != nil { diff --git a/models/device_management_configuration_simple_setting_definition.go b/models/device_management_configuration_simple_setting_definition.go index 8823bd51d21..7492cbcc736 100644 --- a/models/device_management_configuration_simple_setting_definition.go +++ b/models/device_management_configuration_simple_setting_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSimpleSettingDefinitionFromDiscriminator } return NewDeviceManagementConfigurationSimpleSettingDefinition(), nil } -// GetDefaultValue gets the defaultValue property value. Default setting value for this setting. +// GetDefaultValue gets the defaultValue property value. Default setting value for this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue()(DeviceManagementConfigurationSettingValueable) { val, err := m.GetBackingStore().Get("defaultValue") if err != nil { @@ -48,7 +48,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue() } return nil } -// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting. +// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy()([]DeviceManagementConfigurationSettingDependedOnByable) { val, err := m.GetBackingStore().Get("dependedOnBy") if err != nil { @@ -59,7 +59,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy() } return nil } -// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on. +// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependentOn()([]DeviceManagementConfigurationDependentOnable) { val, err := m.GetBackingStore().Get("dependentOn") if err != nil { @@ -127,7 +127,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetFieldDeseriali } return res } -// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting. +// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetValueDefinition()(DeviceManagementConfigurationSettingValueDefinitionable) { val, err := m.GetBackingStore().Get("valueDefinition") if err != nil { @@ -182,28 +182,28 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) Serialize(writer } return nil } -// SetDefaultValue sets the defaultValue property value. Default setting value for this setting. +// SetDefaultValue sets the defaultValue property value. Default setting value for this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDefaultValue(value DeviceManagementConfigurationSettingValueable)() { err := m.GetBackingStore().Set("defaultValue", value) if err != nil { panic(err) } } -// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting. +// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependedOnBy(value []DeviceManagementConfigurationSettingDependedOnByable)() { err := m.GetBackingStore().Set("dependedOnBy", value) if err != nil { panic(err) } } -// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on. +// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependentOn(value []DeviceManagementConfigurationDependentOnable)() { err := m.GetBackingStore().Set("dependentOn", value) if err != nil { panic(err) } } -// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting. +// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetValueDefinition(value DeviceManagementConfigurationSettingValueDefinitionable)() { err := m.GetBackingStore().Set("valueDefinition", value) if err != nil { diff --git a/models/device_management_configuration_string_format.go b/models/device_management_configuration_string_format.go deleted file mode 100644 index 7f33434633f..00000000000 --- a/models/device_management_configuration_string_format.go +++ /dev/null @@ -1,98 +0,0 @@ -package models -import ( - "errors" -) -// -type DeviceManagementConfigurationStringFormat int - -const ( - // Indicates a string with no well-defined format expected. - NONE_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT DeviceManagementConfigurationStringFormat = iota - // Indicates a string that is expected to be a valid email address. - EMAIL_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid GUID. - GUID_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid IP address. - IP_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is base64 encoded. - BASE64_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid URL. - URL_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that should refer to a version. - VERSION_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid XML. - XML_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid date. - DATE_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid time. - TIME_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - BINARY_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid Regex string. - REGEX_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid JSON string. - JSON_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a string that is expected to be a valid Datetime. - DATETIME_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Indicates a Windows SKU applicability value that maps to Intune. - SURFACEHUB_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // String whose value is a bash script - BASHSCRIPT_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - // Sentinel member for cases where the client cannot handle the new enum values. - UNKNOWNFUTUREVALUE_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT -) - -func (i DeviceManagementConfigurationStringFormat) String() string { - return []string{"none", "email", "guid", "ip", "base64", "url", "version", "xml", "date", "time", "binary", "regEx", "json", "dateTime", "surfaceHub", "bashScript", "unknownFutureValue"}[i] -} -func ParseDeviceManagementConfigurationStringFormat(v string) (any, error) { - result := NONE_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - switch v { - case "none": - result = NONE_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "email": - result = EMAIL_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "guid": - result = GUID_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "ip": - result = IP_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "base64": - result = BASE64_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "url": - result = URL_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "version": - result = VERSION_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "xml": - result = XML_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "date": - result = DATE_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "time": - result = TIME_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "binary": - result = BINARY_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "regEx": - result = REGEX_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "json": - result = JSON_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "dateTime": - result = DATETIME_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "surfaceHub": - result = SURFACEHUB_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "bashScript": - result = BASHSCRIPT_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DEVICEMANAGEMENTCONFIGURATIONSTRINGFORMAT - default: - return 0, errors.New("Unknown DeviceManagementConfigurationStringFormat value: " + v) - } - return &result, nil -} -func SerializeDeviceManagementConfigurationStringFormat(values []DeviceManagementConfigurationStringFormat) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DeviceManagementConfigurationStringFormat) isMultiValue() bool { - return false -} diff --git a/models/device_management_configuration_string_setting_value_definition.go b/models/device_management_configuration_string_setting_value_definition.go index 17139592aa7..0999d60d9e2 100644 --- a/models/device_management_configuration_string_setting_value_definition.go +++ b/models/device_management_configuration_string_setting_value_definition.go @@ -41,12 +41,12 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetFieldDese return nil } res["format"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDeviceManagementConfigurationStringFormat) + val, err := n.GetEnumValue(ParseDeviceManagementConfigurationStringSettingValueDefinition_format) if err != nil { return err } if val != nil { - m.SetFormat(val.(*DeviceManagementConfigurationStringFormat)) + m.SetFormat(val.(*DeviceManagementConfigurationStringSettingValueDefinition_format)) } return nil } @@ -104,13 +104,13 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetFileTypes return nil } // GetFormat gets the format property value. 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. -func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetFormat()(*DeviceManagementConfigurationStringFormat) { +func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetFormat()(*DeviceManagementConfigurationStringSettingValueDefinition_format) { val, err := m.GetBackingStore().Get("format") if err != nil { panic(err) } if val != nil { - return val.(*DeviceManagementConfigurationStringFormat) + return val.(*DeviceManagementConfigurationStringSettingValueDefinition_format) } return nil } @@ -211,7 +211,7 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetFileTypes } } // SetFormat sets the format property value. 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. -func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetFormat(value *DeviceManagementConfigurationStringFormat)() { +func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetFormat(value *DeviceManagementConfigurationStringSettingValueDefinition_format)() { err := m.GetBackingStore().Set("format", value) if err != nil { panic(err) @@ -250,13 +250,13 @@ type DeviceManagementConfigurationStringSettingValueDefinitionable interface { DeviceManagementConfigurationSettingValueDefinitionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFileTypes()([]string) - GetFormat()(*DeviceManagementConfigurationStringFormat) + GetFormat()(*DeviceManagementConfigurationStringSettingValueDefinition_format) GetInputValidationSchema()(*string) GetIsSecret()(*bool) GetMaximumLength()(*int64) GetMinimumLength()(*int64) SetFileTypes(value []string)() - SetFormat(value *DeviceManagementConfigurationStringFormat)() + SetFormat(value *DeviceManagementConfigurationStringSettingValueDefinition_format)() SetInputValidationSchema(value *string)() SetIsSecret(value *bool)() SetMaximumLength(value *int64)() diff --git a/models/device_management_configuration_string_setting_value_definition_format.go b/models/device_management_configuration_string_setting_value_definition_format.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/aggregation_type.go b/models/devicemanagement/aggregation_type.go deleted file mode 100644 index 680f98efc2c..00000000000 --- a/models/devicemanagement/aggregation_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package devicemanagement -import ( - "errors" -) -// -type AggregationType int - -const ( - COUNT_AGGREGATIONTYPE AggregationType = iota - PERCENTAGE_AGGREGATIONTYPE - AFFECTEDCLOUDPCCOUNT_AGGREGATIONTYPE - AFFECTEDCLOUDPCPERCENTAGE_AGGREGATIONTYPE - UNKNOWNFUTUREVALUE_AGGREGATIONTYPE -) - -func (i AggregationType) String() string { - return []string{"count", "percentage", "affectedCloudPcCount", "affectedCloudPcPercentage", "unknownFutureValue"}[i] -} -func ParseAggregationType(v string) (any, error) { - result := COUNT_AGGREGATIONTYPE - switch v { - case "count": - result = COUNT_AGGREGATIONTYPE - case "percentage": - result = PERCENTAGE_AGGREGATIONTYPE - case "affectedCloudPcCount": - result = AFFECTEDCLOUDPCCOUNT_AGGREGATIONTYPE - case "affectedCloudPcPercentage": - result = AFFECTEDCLOUDPCPERCENTAGE_AGGREGATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AGGREGATIONTYPE - default: - return 0, errors.New("Unknown AggregationType value: " + v) - } - return &result, nil -} -func SerializeAggregationType(values []AggregationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AggregationType) isMultiValue() bool { - return false -} diff --git a/models/devicemanagement/alert_impact.go b/models/devicemanagement/alert_impact.go index 2f36840ae7f..01099f66f40 100644 --- a/models/devicemanagement/alert_impact.go +++ b/models/devicemanagement/alert_impact.go @@ -36,13 +36,13 @@ func (m *AlertImpact) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAggregationType gets the aggregationType property value. The aggregation type of the impact. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue. -func (m *AlertImpact) GetAggregationType()(*AggregationType) { +func (m *AlertImpact) GetAggregationType()(*AlertImpact_aggregationType) { val, err := m.GetBackingStore().Get("aggregationType") if err != nil { panic(err) } if val != nil { - return val.(*AggregationType) + return val.(*AlertImpact_aggregationType) } return nil } @@ -65,12 +65,12 @@ func (m *AlertImpact) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424 func (m *AlertImpact) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["aggregationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAggregationType) + val, err := n.GetEnumValue(ParseAlertImpact_aggregationType) if err != nil { return err } if val != nil { - m.SetAggregationType(val.(*AggregationType)) + m.SetAggregationType(val.(*AlertImpact_aggregationType)) } return nil } @@ -183,7 +183,7 @@ func (m *AlertImpact) SetAdditionalData(value map[string]any)() { } } // SetAggregationType sets the aggregationType property value. The aggregation type of the impact. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue. -func (m *AlertImpact) SetAggregationType(value *AggregationType)() { +func (m *AlertImpact) SetAggregationType(value *AlertImpact_aggregationType)() { err := m.GetBackingStore().Set("aggregationType", value) if err != nil { panic(err) @@ -219,12 +219,12 @@ type AlertImpactable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAggregationType()(*AggregationType) + GetAggregationType()(*AlertImpact_aggregationType) GetAlertImpactDetails()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetValue()(*int32) - SetAggregationType(value *AggregationType)() + SetAggregationType(value *AlertImpact_aggregationType)() SetAlertImpactDetails(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.KeyValuePairable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() diff --git a/models/devicemanagement/alert_impact_aggregation_type.go b/models/devicemanagement/alert_impact_aggregation_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/alert_record.go b/models/devicemanagement/alert_record.go index c5766d30e72..05899e1244e 100644 --- a/models/devicemanagement/alert_record.go +++ b/models/devicemanagement/alert_record.go @@ -44,13 +44,13 @@ func (m *AlertRecord) GetAlertRuleId()(*string) { return nil } // GetAlertRuleTemplate gets the alertRuleTemplate property value. The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. -func (m *AlertRecord) GetAlertRuleTemplate()(*AlertRuleTemplate) { +func (m *AlertRecord) GetAlertRuleTemplate()(*AlertRecord_alertRuleTemplate) { val, err := m.GetBackingStore().Get("alertRuleTemplate") if err != nil { panic(err) } if val != nil { - return val.(*AlertRuleTemplate) + return val.(*AlertRecord_alertRuleTemplate) } return nil } @@ -100,12 +100,12 @@ func (m *AlertRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["alertRuleTemplate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertRuleTemplate) + val, err := n.GetEnumValue(ParseAlertRecord_alertRuleTemplate) if err != nil { return err } if val != nil { - m.SetAlertRuleTemplate(val.(*AlertRuleTemplate)) + m.SetAlertRuleTemplate(val.(*AlertRecord_alertRuleTemplate)) } return nil } @@ -150,22 +150,22 @@ func (m *AlertRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRuleSeverityType) + val, err := n.GetEnumValue(ParseAlertRecord_severity) if err != nil { return err } if val != nil { - m.SetSeverity(val.(*RuleSeverityType)) + m.SetSeverity(val.(*AlertRecord_severity)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertStatusType) + val, err := n.GetEnumValue(ParseAlertRecord_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AlertStatusType)) + m.SetStatus(val.(*AlertRecord_status)) } return nil } @@ -194,24 +194,24 @@ func (m *AlertRecord) GetResolvedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6 return nil } // GetSeverity gets the severity property value. The severity of the alert event. The possible values are: unknown, informational, warning, critical, unknownFutureValue. -func (m *AlertRecord) GetSeverity()(*RuleSeverityType) { +func (m *AlertRecord) GetSeverity()(*AlertRecord_severity) { val, err := m.GetBackingStore().Get("severity") if err != nil { panic(err) } if val != nil { - return val.(*RuleSeverityType) + return val.(*AlertRecord_severity) } return nil } // GetStatus gets the status property value. The status of the alert record. The possible values are: active, resolved, unknownFutureValue. -func (m *AlertRecord) GetStatus()(*AlertStatusType) { +func (m *AlertRecord) GetStatus()(*AlertRecord_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AlertStatusType) + return val.(*AlertRecord_status) } return nil } @@ -295,7 +295,7 @@ func (m *AlertRecord) SetAlertRuleId(value *string)() { } } // SetAlertRuleTemplate sets the alertRuleTemplate property value. The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. -func (m *AlertRecord) SetAlertRuleTemplate(value *AlertRuleTemplate)() { +func (m *AlertRecord) SetAlertRuleTemplate(value *AlertRecord_alertRuleTemplate)() { err := m.GetBackingStore().Set("alertRuleTemplate", value) if err != nil { panic(err) @@ -330,14 +330,14 @@ func (m *AlertRecord) SetResolvedDateTime(value *i336074805fc853987abe6f7fe3ad97 } } // SetSeverity sets the severity property value. The severity of the alert event. The possible values are: unknown, informational, warning, critical, unknownFutureValue. -func (m *AlertRecord) SetSeverity(value *RuleSeverityType)() { +func (m *AlertRecord) SetSeverity(value *AlertRecord_severity)() { err := m.GetBackingStore().Set("severity", value) if err != nil { panic(err) } } // SetStatus sets the status property value. The status of the alert record. The possible values are: active, resolved, unknownFutureValue. -func (m *AlertRecord) SetStatus(value *AlertStatusType)() { +func (m *AlertRecord) SetStatus(value *AlertRecord_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -349,20 +349,20 @@ type AlertRecordable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAlertImpact()(AlertImpactable) GetAlertRuleId()(*string) - GetAlertRuleTemplate()(*AlertRuleTemplate) + GetAlertRuleTemplate()(*AlertRecord_alertRuleTemplate) GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetResolvedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetSeverity()(*RuleSeverityType) - GetStatus()(*AlertStatusType) + GetSeverity()(*AlertRecord_severity) + GetStatus()(*AlertRecord_status) SetAlertImpact(value AlertImpactable)() SetAlertRuleId(value *string)() - SetAlertRuleTemplate(value *AlertRuleTemplate)() + SetAlertRuleTemplate(value *AlertRecord_alertRuleTemplate)() SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetResolvedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetSeverity(value *RuleSeverityType)() - SetStatus(value *AlertStatusType)() + SetSeverity(value *AlertRecord_severity)() + SetStatus(value *AlertRecord_status)() } diff --git a/models/devicemanagement/alert_record_alert_rule_template.go b/models/devicemanagement/alert_record_alert_rule_template.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/alert_record_severity.go b/models/devicemanagement/alert_record_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/alert_record_status.go b/models/devicemanagement/alert_record_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/alert_rule.go b/models/devicemanagement/alert_rule.go index c3050a9fede..e9231790319 100644 --- a/models/devicemanagement/alert_rule.go +++ b/models/devicemanagement/alert_rule.go @@ -21,13 +21,24 @@ func CreateAlertRuleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewAlertRule(), nil } // GetAlertRuleTemplate gets the alertRuleTemplate property value. The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, cloudPcInGracePeriodScenario, cloudPcFrontlineInsufficientLicensesScenario, cloudPcInaccessibleScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. -func (m *AlertRule) GetAlertRuleTemplate()(*AlertRuleTemplate) { +func (m *AlertRule) GetAlertRuleTemplate()(*AlertRule_alertRuleTemplate) { val, err := m.GetBackingStore().Get("alertRuleTemplate") if err != nil { panic(err) } if val != nil { - return val.(*AlertRuleTemplate) + return val.(*AlertRule_alertRuleTemplate) + } + return nil +} +// GetConditions gets the conditions property value. The conditions that determine when to send alerts. For example, you can configure a condition to send an alert when provisioning fails for six or more Cloud PCs. +func (m *AlertRule) GetConditions()([]RuleConditionable) { + val, err := m.GetBackingStore().Get("conditions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]RuleConditionable) } return nil } @@ -68,12 +79,28 @@ func (m *AlertRule) GetEnabled()(*bool) { func (m *AlertRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["alertRuleTemplate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertRuleTemplate) + val, err := n.GetEnumValue(ParseAlertRule_alertRuleTemplate) if err != nil { return err } if val != nil { - m.SetAlertRuleTemplate(val.(*AlertRuleTemplate)) + m.SetAlertRuleTemplate(val.(*AlertRule_alertRuleTemplate)) + } + return nil + } + res["conditions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateRuleConditionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]RuleConditionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(RuleConditionable) + } + } + m.SetConditions(res) } return nil } @@ -134,12 +161,12 @@ func (m *AlertRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRuleSeverityType) + val, err := n.GetEnumValue(ParseAlertRule_severity) if err != nil { return err } if val != nil { - m.SetSeverity(val.(*RuleSeverityType)) + m.SetSeverity(val.(*AlertRule_severity)) } return nil } @@ -178,13 +205,13 @@ func (m *AlertRule) GetNotificationChannels()([]NotificationChannelable) { return nil } // GetSeverity gets the severity property value. The severity of the rule. The possible values are: unknown, informational, warning, critical, unknownFutureValue. -func (m *AlertRule) GetSeverity()(*RuleSeverityType) { +func (m *AlertRule) GetSeverity()(*AlertRule_severity) { val, err := m.GetBackingStore().Get("severity") if err != nil { panic(err) } if val != nil { - return val.(*RuleSeverityType) + return val.(*AlertRule_severity) } return nil } @@ -212,6 +239,18 @@ func (m *AlertRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } + if m.GetConditions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetConditions())) + for i, v := range m.GetConditions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("conditions", cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("description", m.GetDescription()) if err != nil { @@ -264,12 +303,19 @@ func (m *AlertRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return nil } // SetAlertRuleTemplate sets the alertRuleTemplate property value. The rule template of the alert event. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, cloudPcInGracePeriodScenario, cloudPcFrontlineInsufficientLicensesScenario, cloudPcInaccessibleScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. -func (m *AlertRule) SetAlertRuleTemplate(value *AlertRuleTemplate)() { +func (m *AlertRule) SetAlertRuleTemplate(value *AlertRule_alertRuleTemplate)() { err := m.GetBackingStore().Set("alertRuleTemplate", value) if err != nil { panic(err) } } +// SetConditions sets the conditions property value. The conditions that determine when to send alerts. For example, you can configure a condition to send an alert when provisioning fails for six or more Cloud PCs. +func (m *AlertRule) SetConditions(value []RuleConditionable)() { + err := m.GetBackingStore().Set("conditions", value) + if err != nil { + panic(err) + } +} // SetDescription sets the description property value. The rule description. func (m *AlertRule) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) @@ -306,7 +352,7 @@ func (m *AlertRule) SetNotificationChannels(value []NotificationChannelable)() { } } // SetSeverity sets the severity property value. The severity of the rule. The possible values are: unknown, informational, warning, critical, unknownFutureValue. -func (m *AlertRule) SetSeverity(value *RuleSeverityType)() { +func (m *AlertRule) SetSeverity(value *AlertRule_severity)() { err := m.GetBackingStore().Set("severity", value) if err != nil { panic(err) @@ -323,20 +369,22 @@ func (m *AlertRule) SetThreshold(value RuleThresholdable)() { type AlertRuleable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlertRuleTemplate()(*AlertRuleTemplate) + GetAlertRuleTemplate()(*AlertRule_alertRuleTemplate) + GetConditions()([]RuleConditionable) GetDescription()(*string) GetDisplayName()(*string) GetEnabled()(*bool) GetIsSystemRule()(*bool) GetNotificationChannels()([]NotificationChannelable) - GetSeverity()(*RuleSeverityType) + GetSeverity()(*AlertRule_severity) GetThreshold()(RuleThresholdable) - SetAlertRuleTemplate(value *AlertRuleTemplate)() + SetAlertRuleTemplate(value *AlertRule_alertRuleTemplate)() + SetConditions(value []RuleConditionable)() SetDescription(value *string)() SetDisplayName(value *string)() SetEnabled(value *bool)() SetIsSystemRule(value *bool)() SetNotificationChannels(value []NotificationChannelable)() - SetSeverity(value *RuleSeverityType)() + SetSeverity(value *AlertRule_severity)() SetThreshold(value RuleThresholdable)() } diff --git a/models/devicemanagement/alert_rule_alert_rule_template.go b/models/devicemanagement/alert_rule_alert_rule_template.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/alert_rule_severity.go b/models/devicemanagement/alert_rule_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/alert_rule_template.go b/models/devicemanagement/alert_rule_template.go deleted file mode 100644 index 2edc4a73650..00000000000 --- a/models/devicemanagement/alert_rule_template.go +++ /dev/null @@ -1,49 +0,0 @@ -package devicemanagement -import ( - "errors" -) -// -type AlertRuleTemplate int - -const ( - CLOUDPCPROVISIONSCENARIO_ALERTRULETEMPLATE AlertRuleTemplate = iota - CLOUDPCIMAGEUPLOADSCENARIO_ALERTRULETEMPLATE - CLOUDPCONPREMISENETWORKCONNECTIONCHECKSCENARIO_ALERTRULETEMPLATE - UNKNOWNFUTUREVALUE_ALERTRULETEMPLATE - CLOUDPCINGRACEPERIODSCENARIO_ALERTRULETEMPLATE - CLOUDPCFRONTLINEINSUFFICIENTLICENSESSCENARIO_ALERTRULETEMPLATE -) - -func (i AlertRuleTemplate) String() string { - return []string{"cloudPcProvisionScenario", "cloudPcImageUploadScenario", "cloudPcOnPremiseNetworkConnectionCheckScenario", "unknownFutureValue", "cloudPcInGracePeriodScenario", "cloudPcFrontlineInsufficientLicensesScenario"}[i] -} -func ParseAlertRuleTemplate(v string) (any, error) { - result := CLOUDPCPROVISIONSCENARIO_ALERTRULETEMPLATE - switch v { - case "cloudPcProvisionScenario": - result = CLOUDPCPROVISIONSCENARIO_ALERTRULETEMPLATE - case "cloudPcImageUploadScenario": - result = CLOUDPCIMAGEUPLOADSCENARIO_ALERTRULETEMPLATE - case "cloudPcOnPremiseNetworkConnectionCheckScenario": - result = CLOUDPCONPREMISENETWORKCONNECTIONCHECKSCENARIO_ALERTRULETEMPLATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ALERTRULETEMPLATE - case "cloudPcInGracePeriodScenario": - result = CLOUDPCINGRACEPERIODSCENARIO_ALERTRULETEMPLATE - case "cloudPcFrontlineInsufficientLicensesScenario": - result = CLOUDPCFRONTLINEINSUFFICIENTLICENSESSCENARIO_ALERTRULETEMPLATE - default: - return 0, errors.New("Unknown AlertRuleTemplate value: " + v) - } - return &result, nil -} -func SerializeAlertRuleTemplate(values []AlertRuleTemplate) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AlertRuleTemplate) isMultiValue() bool { - return false -} diff --git a/models/devicemanagement/alert_status_type.go b/models/devicemanagement/alert_status_type.go deleted file mode 100644 index 28a03874ae8..00000000000 --- a/models/devicemanagement/alert_status_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package devicemanagement -import ( - "errors" -) -// -type AlertStatusType int - -const ( - ACTIVE_ALERTSTATUSTYPE AlertStatusType = iota - RESOLVED_ALERTSTATUSTYPE - UNKNOWNFUTUREVALUE_ALERTSTATUSTYPE -) - -func (i AlertStatusType) String() string { - return []string{"active", "resolved", "unknownFutureValue"}[i] -} -func ParseAlertStatusType(v string) (any, error) { - result := ACTIVE_ALERTSTATUSTYPE - switch v { - case "active": - result = ACTIVE_ALERTSTATUSTYPE - case "resolved": - result = RESOLVED_ALERTSTATUSTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ALERTSTATUSTYPE - default: - return 0, errors.New("Unknown AlertStatusType value: " + v) - } - return &result, nil -} -func SerializeAlertStatusType(values []AlertStatusType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AlertStatusType) isMultiValue() bool { - return false -} diff --git a/models/devicemanagement/notification_channel.go b/models/devicemanagement/notification_channel.go index 5e42d02c5ed..31e48fae683 100644 --- a/models/devicemanagement/notification_channel.go +++ b/models/devicemanagement/notification_channel.go @@ -42,12 +42,12 @@ func (m *NotificationChannel) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d func (m *NotificationChannel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["notificationChannelType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNotificationChannelType) + val, err := n.GetEnumValue(ParseNotificationChannel_notificationChannelType) if err != nil { return err } if val != nil { - m.SetNotificationChannelType(val.(*NotificationChannelType)) + m.SetNotificationChannelType(val.(*NotificationChannel_notificationChannelType)) } return nil } @@ -80,13 +80,13 @@ func (m *NotificationChannel) GetFieldDeserializers()(map[string]func(i878a80d23 return res } // GetNotificationChannelType gets the notificationChannelType property value. The type of the notification channel. The possible values are: portal, email, phoneCall, sms, unknownFutureValue. -func (m *NotificationChannel) GetNotificationChannelType()(*NotificationChannelType) { +func (m *NotificationChannel) GetNotificationChannelType()(*NotificationChannel_notificationChannelType) { val, err := m.GetBackingStore().Get("notificationChannelType") if err != nil { panic(err) } if val != nil { - return val.(*NotificationChannelType) + return val.(*NotificationChannel_notificationChannelType) } return nil } @@ -159,7 +159,7 @@ func (m *NotificationChannel) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd m.backingStore = value } // SetNotificationChannelType sets the notificationChannelType property value. The type of the notification channel. The possible values are: portal, email, phoneCall, sms, unknownFutureValue. -func (m *NotificationChannel) SetNotificationChannelType(value *NotificationChannelType)() { +func (m *NotificationChannel) SetNotificationChannelType(value *NotificationChannel_notificationChannelType)() { err := m.GetBackingStore().Set("notificationChannelType", value) if err != nil { panic(err) @@ -185,11 +185,11 @@ type NotificationChannelable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNotificationChannelType()(*NotificationChannelType) + GetNotificationChannelType()(*NotificationChannel_notificationChannelType) GetNotificationReceivers()([]NotificationReceiverable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNotificationChannelType(value *NotificationChannelType)() + SetNotificationChannelType(value *NotificationChannel_notificationChannelType)() SetNotificationReceivers(value []NotificationReceiverable)() SetOdataType(value *string)() } diff --git a/models/devicemanagement/notification_channel_notification_channel_type.go b/models/devicemanagement/notification_channel_notification_channel_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/notification_channel_type.go b/models/devicemanagement/notification_channel_type.go deleted file mode 100644 index 203fd7102e4..00000000000 --- a/models/devicemanagement/notification_channel_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package devicemanagement -import ( - "errors" -) -// -type NotificationChannelType int - -const ( - PORTAL_NOTIFICATIONCHANNELTYPE NotificationChannelType = iota - EMAIL_NOTIFICATIONCHANNELTYPE - PHONECALL_NOTIFICATIONCHANNELTYPE - SMS_NOTIFICATIONCHANNELTYPE - UNKNOWNFUTUREVALUE_NOTIFICATIONCHANNELTYPE -) - -func (i NotificationChannelType) String() string { - return []string{"portal", "email", "phoneCall", "sms", "unknownFutureValue"}[i] -} -func ParseNotificationChannelType(v string) (any, error) { - result := PORTAL_NOTIFICATIONCHANNELTYPE - switch v { - case "portal": - result = PORTAL_NOTIFICATIONCHANNELTYPE - case "email": - result = EMAIL_NOTIFICATIONCHANNELTYPE - case "phoneCall": - result = PHONECALL_NOTIFICATIONCHANNELTYPE - case "sms": - result = SMS_NOTIFICATIONCHANNELTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_NOTIFICATIONCHANNELTYPE - default: - return 0, errors.New("Unknown NotificationChannelType value: " + v) - } - return &result, nil -} -func SerializeNotificationChannelType(values []NotificationChannelType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NotificationChannelType) isMultiValue() bool { - return false -} diff --git a/models/devicemanagement/operator_type.go b/models/devicemanagement/operator_type.go deleted file mode 100644 index 9de0087efd2..00000000000 --- a/models/devicemanagement/operator_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package devicemanagement -import ( - "errors" -) -// -type OperatorType int - -const ( - GREATEROREQUAL_OPERATORTYPE OperatorType = iota - EQUAL_OPERATORTYPE - GREATER_OPERATORTYPE - LESS_OPERATORTYPE - LESSOREQUAL_OPERATORTYPE - NOTEQUAL_OPERATORTYPE - UNKNOWNFUTUREVALUE_OPERATORTYPE -) - -func (i OperatorType) String() string { - return []string{"greaterOrEqual", "equal", "greater", "less", "lessOrEqual", "notEqual", "unknownFutureValue"}[i] -} -func ParseOperatorType(v string) (any, error) { - result := GREATEROREQUAL_OPERATORTYPE - switch v { - case "greaterOrEqual": - result = GREATEROREQUAL_OPERATORTYPE - case "equal": - result = EQUAL_OPERATORTYPE - case "greater": - result = GREATER_OPERATORTYPE - case "less": - result = LESS_OPERATORTYPE - case "lessOrEqual": - result = LESSOREQUAL_OPERATORTYPE - case "notEqual": - result = NOTEQUAL_OPERATORTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_OPERATORTYPE - default: - return 0, errors.New("Unknown OperatorType value: " + v) - } - return &result, nil -} -func SerializeOperatorType(values []OperatorType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OperatorType) isMultiValue() bool { - return false -} diff --git a/models/devicemanagement/portal_notification.go b/models/devicemanagement/portal_notification.go index dff07a1565f..469b81bc12f 100644 --- a/models/devicemanagement/portal_notification.go +++ b/models/devicemanagement/portal_notification.go @@ -79,13 +79,13 @@ func (m *PortalNotification) GetAlertRuleName()(*string) { return nil } // GetAlertRuleTemplate gets the alertRuleTemplate property value. The associated alert rule template. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. -func (m *PortalNotification) GetAlertRuleTemplate()(*AlertRuleTemplate) { +func (m *PortalNotification) GetAlertRuleTemplate()(*PortalNotification_alertRuleTemplate) { val, err := m.GetBackingStore().Get("alertRuleTemplate") if err != nil { panic(err) } if val != nil { - return val.(*AlertRuleTemplate) + return val.(*PortalNotification_alertRuleTemplate) } return nil } @@ -137,12 +137,12 @@ func (m *PortalNotification) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["alertRuleTemplate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertRuleTemplate) + val, err := n.GetEnumValue(ParsePortalNotification_alertRuleTemplate) if err != nil { return err } if val != nil { - m.SetAlertRuleTemplate(val.(*AlertRuleTemplate)) + m.SetAlertRuleTemplate(val.(*PortalNotification_alertRuleTemplate)) } return nil } @@ -177,12 +177,12 @@ func (m *PortalNotification) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRuleSeverityType) + val, err := n.GetEnumValue(ParsePortalNotification_severity) if err != nil { return err } if val != nil { - m.SetSeverity(val.(*RuleSeverityType)) + m.SetSeverity(val.(*PortalNotification_severity)) } return nil } @@ -222,13 +222,13 @@ func (m *PortalNotification) GetOdataType()(*string) { return nil } // GetSeverity gets the severity property value. The associated alert rule severity. The possible values are: unknown, informational, warning, critical, unknownFutureValue. -func (m *PortalNotification) GetSeverity()(*RuleSeverityType) { +func (m *PortalNotification) GetSeverity()(*PortalNotification_severity) { val, err := m.GetBackingStore().Get("severity") if err != nil { panic(err) } if val != nil { - return val.(*RuleSeverityType) + return val.(*PortalNotification_severity) } return nil } @@ -334,7 +334,7 @@ func (m *PortalNotification) SetAlertRuleName(value *string)() { } } // SetAlertRuleTemplate sets the alertRuleTemplate property value. The associated alert rule template. The possible values are: cloudPcProvisionScenario, cloudPcImageUploadScenario, cloudPcOnPremiseNetworkConnectionCheckScenario, unknownFutureValue, cloudPcInGracePeriodScenario. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: cloudPcInGracePeriodScenario. -func (m *PortalNotification) SetAlertRuleTemplate(value *AlertRuleTemplate)() { +func (m *PortalNotification) SetAlertRuleTemplate(value *PortalNotification_alertRuleTemplate)() { err := m.GetBackingStore().Set("alertRuleTemplate", value) if err != nil { panic(err) @@ -366,7 +366,7 @@ func (m *PortalNotification) SetOdataType(value *string)() { } } // SetSeverity sets the severity property value. The associated alert rule severity. The possible values are: unknown, informational, warning, critical, unknownFutureValue. -func (m *PortalNotification) SetSeverity(value *RuleSeverityType)() { +func (m *PortalNotification) SetSeverity(value *PortalNotification_severity)() { err := m.GetBackingStore().Set("severity", value) if err != nil { panic(err) @@ -381,20 +381,20 @@ type PortalNotificationable interface { GetAlertRecordId()(*string) GetAlertRuleId()(*string) GetAlertRuleName()(*string) - GetAlertRuleTemplate()(*AlertRuleTemplate) + GetAlertRuleTemplate()(*PortalNotification_alertRuleTemplate) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetId()(*string) GetIsPortalNotificationSent()(*bool) GetOdataType()(*string) - GetSeverity()(*RuleSeverityType) + GetSeverity()(*PortalNotification_severity) SetAlertImpact(value AlertImpactable)() SetAlertRecordId(value *string)() SetAlertRuleId(value *string)() SetAlertRuleName(value *string)() - SetAlertRuleTemplate(value *AlertRuleTemplate)() + SetAlertRuleTemplate(value *PortalNotification_alertRuleTemplate)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetId(value *string)() SetIsPortalNotificationSent(value *bool)() SetOdataType(value *string)() - SetSeverity(value *RuleSeverityType)() + SetSeverity(value *PortalNotification_severity)() } diff --git a/models/devicemanagement/portal_notification_alert_rule_template.go b/models/devicemanagement/portal_notification_alert_rule_template.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/portal_notification_severity.go b/models/devicemanagement/portal_notification_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/rule_condition.go b/models/devicemanagement/rule_condition.go new file mode 100644 index 00000000000..70f960945a1 --- /dev/null +++ b/models/devicemanagement/rule_condition.go @@ -0,0 +1,294 @@ +package devicemanagement + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// RuleCondition +type RuleCondition struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewRuleCondition instantiates a new ruleCondition and sets the default values. +func NewRuleCondition()(*RuleCondition) { + m := &RuleCondition{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateRuleConditionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateRuleConditionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewRuleCondition(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *RuleCondition) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAggregation gets the aggregation property value. The built-in aggregation method for the rule condition. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue. +func (m *RuleCondition) GetAggregation()(*RuleCondition_aggregation) { + val, err := m.GetBackingStore().Get("aggregation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RuleCondition_aggregation) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *RuleCondition) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetConditionCategory gets the conditionCategory property value. The property that the rule condition monitors. Possible values are: provisionFailures, imageUploadFailures, azureNetworkConnectionCheckFailures, cloudPcInGracePeriod, frontlineInsufficientLicenses, cloudPcConnectionErrors, cloudPcHostHealthCheckFailures, cloudPcZoneOutage, unknownFutureValue. +func (m *RuleCondition) GetConditionCategory()(*RuleCondition_conditionCategory) { + val, err := m.GetBackingStore().Get("conditionCategory") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RuleCondition_conditionCategory) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *RuleCondition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["aggregation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRuleCondition_aggregation) + if err != nil { + return err + } + if val != nil { + m.SetAggregation(val.(*RuleCondition_aggregation)) + } + return nil + } + res["conditionCategory"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRuleCondition_conditionCategory) + if err != nil { + return err + } + if val != nil { + m.SetConditionCategory(val.(*RuleCondition_conditionCategory)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["operator"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRuleCondition_operator) + if err != nil { + return err + } + if val != nil { + m.SetOperator(val.(*RuleCondition_operator)) + } + return nil + } + res["relationshipType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRuleCondition_relationshipType) + if err != nil { + return err + } + if val != nil { + m.SetRelationshipType(val.(*RuleCondition_relationshipType)) + } + return nil + } + res["thresholdValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetThresholdValue(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RuleCondition) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOperator gets the operator property value. The built-in operator for the rule condition. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue. +func (m *RuleCondition) GetOperator()(*RuleCondition_operator) { + val, err := m.GetBackingStore().Get("operator") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RuleCondition_operator) + } + return nil +} +// GetRelationshipType gets the relationshipType property value. The relationship type. Possible values are: and, or. +func (m *RuleCondition) GetRelationshipType()(*RuleCondition_relationshipType) { + val, err := m.GetBackingStore().Get("relationshipType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RuleCondition_relationshipType) + } + return nil +} +// GetThresholdValue gets the thresholdValue property value. The threshold value of the alert condition. The threshold value can be a number in string form or string like 'WestUS'. +func (m *RuleCondition) GetThresholdValue()(*string) { + val, err := m.GetBackingStore().Get("thresholdValue") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *RuleCondition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAggregation() != nil { + cast := (*m.GetAggregation()).String() + err := writer.WriteStringValue("aggregation", &cast) + if err != nil { + return err + } + } + if m.GetConditionCategory() != nil { + cast := (*m.GetConditionCategory()).String() + err := writer.WriteStringValue("conditionCategory", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetOperator() != nil { + cast := (*m.GetOperator()).String() + err := writer.WriteStringValue("operator", &cast) + if err != nil { + return err + } + } + if m.GetRelationshipType() != nil { + cast := (*m.GetRelationshipType()).String() + err := writer.WriteStringValue("relationshipType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("thresholdValue", m.GetThresholdValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *RuleCondition) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAggregation sets the aggregation property value. The built-in aggregation method for the rule condition. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue. +func (m *RuleCondition) SetAggregation(value *RuleCondition_aggregation)() { + err := m.GetBackingStore().Set("aggregation", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *RuleCondition) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetConditionCategory sets the conditionCategory property value. The property that the rule condition monitors. Possible values are: provisionFailures, imageUploadFailures, azureNetworkConnectionCheckFailures, cloudPcInGracePeriod, frontlineInsufficientLicenses, cloudPcConnectionErrors, cloudPcHostHealthCheckFailures, cloudPcZoneOutage, unknownFutureValue. +func (m *RuleCondition) SetConditionCategory(value *RuleCondition_conditionCategory)() { + err := m.GetBackingStore().Set("conditionCategory", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RuleCondition) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOperator sets the operator property value. The built-in operator for the rule condition. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue. +func (m *RuleCondition) SetOperator(value *RuleCondition_operator)() { + err := m.GetBackingStore().Set("operator", value) + if err != nil { + panic(err) + } +} +// SetRelationshipType sets the relationshipType property value. The relationship type. Possible values are: and, or. +func (m *RuleCondition) SetRelationshipType(value *RuleCondition_relationshipType)() { + err := m.GetBackingStore().Set("relationshipType", value) + if err != nil { + panic(err) + } +} +// SetThresholdValue sets the thresholdValue property value. The threshold value of the alert condition. The threshold value can be a number in string form or string like 'WestUS'. +func (m *RuleCondition) SetThresholdValue(value *string)() { + err := m.GetBackingStore().Set("thresholdValue", value) + if err != nil { + panic(err) + } +} +// RuleConditionable +type RuleConditionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAggregation()(*RuleCondition_aggregation) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetConditionCategory()(*RuleCondition_conditionCategory) + GetOdataType()(*string) + GetOperator()(*RuleCondition_operator) + GetRelationshipType()(*RuleCondition_relationshipType) + GetThresholdValue()(*string) + SetAggregation(value *RuleCondition_aggregation)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetConditionCategory(value *RuleCondition_conditionCategory)() + SetOdataType(value *string)() + SetOperator(value *RuleCondition_operator)() + SetRelationshipType(value *RuleCondition_relationshipType)() + SetThresholdValue(value *string)() +} diff --git a/models/devicemanagement/rule_condition_aggregation.go b/models/devicemanagement/rule_condition_aggregation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/rule_condition_condition_category.go b/models/devicemanagement/rule_condition_condition_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/rule_condition_operator.go b/models/devicemanagement/rule_condition_operator.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/rule_condition_relationship_type.go b/models/devicemanagement/rule_condition_relationship_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/rule_severity_type.go b/models/devicemanagement/rule_severity_type.go deleted file mode 100644 index 6a5b7d9228b..00000000000 --- a/models/devicemanagement/rule_severity_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package devicemanagement -import ( - "errors" -) -// -type RuleSeverityType int - -const ( - UNKNOWN_RULESEVERITYTYPE RuleSeverityType = iota - INFORMATIONAL_RULESEVERITYTYPE - WARNING_RULESEVERITYTYPE - CRITICAL_RULESEVERITYTYPE - UNKNOWNFUTUREVALUE_RULESEVERITYTYPE -) - -func (i RuleSeverityType) String() string { - return []string{"unknown", "informational", "warning", "critical", "unknownFutureValue"}[i] -} -func ParseRuleSeverityType(v string) (any, error) { - result := UNKNOWN_RULESEVERITYTYPE - switch v { - case "unknown": - result = UNKNOWN_RULESEVERITYTYPE - case "informational": - result = INFORMATIONAL_RULESEVERITYTYPE - case "warning": - result = WARNING_RULESEVERITYTYPE - case "critical": - result = CRITICAL_RULESEVERITYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RULESEVERITYTYPE - default: - return 0, errors.New("Unknown RuleSeverityType value: " + v) - } - return &result, nil -} -func SerializeRuleSeverityType(values []RuleSeverityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RuleSeverityType) isMultiValue() bool { - return false -} diff --git a/models/devicemanagement/rule_threshold.go b/models/devicemanagement/rule_threshold.go index 1a965999656..00c6aecc475 100644 --- a/models/devicemanagement/rule_threshold.go +++ b/models/devicemanagement/rule_threshold.go @@ -35,13 +35,13 @@ func (m *RuleThreshold) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAggregation gets the aggregation property value. Indicates the built-in aggregation methods. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue. -func (m *RuleThreshold) GetAggregation()(*AggregationType) { +func (m *RuleThreshold) GetAggregation()(*RuleThreshold_aggregation) { val, err := m.GetBackingStore().Get("aggregation") if err != nil { panic(err) } if val != nil { - return val.(*AggregationType) + return val.(*RuleThreshold_aggregation) } return nil } @@ -53,12 +53,12 @@ func (m *RuleThreshold) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d411854 func (m *RuleThreshold) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["aggregation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAggregationType) + val, err := n.GetEnumValue(ParseRuleThreshold_aggregation) if err != nil { return err } if val != nil { - m.SetAggregation(val.(*AggregationType)) + m.SetAggregation(val.(*RuleThreshold_aggregation)) } return nil } @@ -73,12 +73,12 @@ func (m *RuleThreshold) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["operator"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOperatorType) + val, err := n.GetEnumValue(ParseRuleThreshold_operator) if err != nil { return err } if val != nil { - m.SetOperator(val.(*OperatorType)) + m.SetOperator(val.(*RuleThreshold_operator)) } return nil } @@ -106,13 +106,13 @@ func (m *RuleThreshold) GetOdataType()(*string) { return nil } // GetOperator gets the operator property value. Indicates the built-in operator. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue. -func (m *RuleThreshold) GetOperator()(*OperatorType) { +func (m *RuleThreshold) GetOperator()(*RuleThreshold_operator) { val, err := m.GetBackingStore().Get("operator") if err != nil { panic(err) } if val != nil { - return val.(*OperatorType) + return val.(*RuleThreshold_operator) } return nil } @@ -171,7 +171,7 @@ func (m *RuleThreshold) SetAdditionalData(value map[string]any)() { } } // SetAggregation sets the aggregation property value. Indicates the built-in aggregation methods. The possible values are: count, percentage, affectedCloudPcCount, affectedCloudPcPercentage, unknownFutureValue. -func (m *RuleThreshold) SetAggregation(value *AggregationType)() { +func (m *RuleThreshold) SetAggregation(value *RuleThreshold_aggregation)() { err := m.GetBackingStore().Set("aggregation", value) if err != nil { panic(err) @@ -189,7 +189,7 @@ func (m *RuleThreshold) SetOdataType(value *string)() { } } // SetOperator sets the operator property value. Indicates the built-in operator. The possible values are: greaterOrEqual, equal, greater, less, lessOrEqual, notEqual, unknownFutureValue. -func (m *RuleThreshold) SetOperator(value *OperatorType)() { +func (m *RuleThreshold) SetOperator(value *RuleThreshold_operator)() { err := m.GetBackingStore().Set("operator", value) if err != nil { panic(err) @@ -207,14 +207,14 @@ type RuleThresholdable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAggregation()(*AggregationType) + GetAggregation()(*RuleThreshold_aggregation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetOperator()(*OperatorType) + GetOperator()(*RuleThreshold_operator) GetTarget()(*int32) - SetAggregation(value *AggregationType)() + SetAggregation(value *RuleThreshold_aggregation)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetOperator(value *OperatorType)() + SetOperator(value *RuleThreshold_operator)() SetTarget(value *int32)() } diff --git a/models/devicemanagement/rule_threshold_aggregation.go b/models/devicemanagement/rule_threshold_aggregation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devicemanagement/rule_threshold_operator.go b/models/devicemanagement/rule_threshold_operator.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/devices_filter.go b/models/devices_filter.go index 6bab8d8febd..d7ed029e30f 100644 --- a/models/devices_filter.go +++ b/models/devices_filter.go @@ -42,12 +42,12 @@ func (m *DevicesFilter) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d411854 func (m *DevicesFilter) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["mode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCrossTenantAccessPolicyTargetConfigurationAccessType) + val, err := n.GetEnumValue(ParseDevicesFilter_mode) if err != nil { return err } if val != nil { - m.SetMode(val.(*CrossTenantAccessPolicyTargetConfigurationAccessType)) + m.SetMode(val.(*DevicesFilter_mode)) } return nil } @@ -74,13 +74,13 @@ func (m *DevicesFilter) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return res } // GetMode gets the mode property value. Determines whether devices satisfying the rule should be allowed or blocked.The possible values are: allowed, blocked, unknownFutureValue. -func (m *DevicesFilter) GetMode()(*CrossTenantAccessPolicyTargetConfigurationAccessType) { +func (m *DevicesFilter) GetMode()(*DevicesFilter_mode) { val, err := m.GetBackingStore().Get("mode") if err != nil { panic(err) } if val != nil { - return val.(*CrossTenantAccessPolicyTargetConfigurationAccessType) + return val.(*DevicesFilter_mode) } return nil } @@ -147,7 +147,7 @@ func (m *DevicesFilter) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41 m.backingStore = value } // SetMode sets the mode property value. Determines whether devices satisfying the rule should be allowed or blocked.The possible values are: allowed, blocked, unknownFutureValue. -func (m *DevicesFilter) SetMode(value *CrossTenantAccessPolicyTargetConfigurationAccessType)() { +func (m *DevicesFilter) SetMode(value *DevicesFilter_mode)() { err := m.GetBackingStore().Set("mode", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ type DevicesFilterable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMode()(*CrossTenantAccessPolicyTargetConfigurationAccessType) + GetMode()(*DevicesFilter_mode) GetOdataType()(*string) GetRule()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMode(value *CrossTenantAccessPolicyTargetConfigurationAccessType)() + SetMode(value *DevicesFilter_mode)() SetOdataType(value *string)() SetRule(value *string)() } diff --git a/models/devices_filter_mode.go b/models/devices_filter_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/diamond_model.go b/models/diamond_model.go deleted file mode 100644 index f499bd4ccfe..00000000000 --- a/models/diamond_model.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type DiamondModel int - -const ( - UNKNOWN_DIAMONDMODEL DiamondModel = iota - ADVERSARY_DIAMONDMODEL - CAPABILITY_DIAMONDMODEL - INFRASTRUCTURE_DIAMONDMODEL - VICTIM_DIAMONDMODEL - UNKNOWNFUTUREVALUE_DIAMONDMODEL -) - -func (i DiamondModel) String() string { - return []string{"unknown", "adversary", "capability", "infrastructure", "victim", "unknownFutureValue"}[i] -} -func ParseDiamondModel(v string) (any, error) { - result := UNKNOWN_DIAMONDMODEL - switch v { - case "unknown": - result = UNKNOWN_DIAMONDMODEL - case "adversary": - result = ADVERSARY_DIAMONDMODEL - case "capability": - result = CAPABILITY_DIAMONDMODEL - case "infrastructure": - result = INFRASTRUCTURE_DIAMONDMODEL - case "victim": - result = VICTIM_DIAMONDMODEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DIAMONDMODEL - default: - return 0, errors.New("Unknown DiamondModel value: " + v) - } - return &result, nil -} -func SerializeDiamondModel(values []DiamondModel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DiamondModel) isMultiValue() bool { - return false -} diff --git a/models/dictionary.go b/models/dictionary.go index 06d469f862d..f09977963f9 100644 --- a/models/dictionary.go +++ b/models/dictionary.go @@ -34,6 +34,8 @@ func CreateDictionaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3 switch *mappingValue { case "#microsoft.graph.customAppScopeAttributesDictionary": return NewCustomAppScopeAttributesDictionary(), nil + case "#microsoft.graph.plannerFormsDictionary": + return NewPlannerFormsDictionary(), nil case "#microsoft.graph.resultTemplateDictionary": return NewResultTemplateDictionary(), nil } diff --git a/models/diffie_hellman_group.go b/models/diffie_hellman_group.go deleted file mode 100644 index 1539ae595e8..00000000000 --- a/models/diffie_hellman_group.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// Diffie Hellman Group values for Windows10 VPN policies with IKEv2 connection type. -type DiffieHellmanGroup int - -const ( - // Group1 - GROUP1_DIFFIEHELLMANGROUP DiffieHellmanGroup = iota - // Group2 - GROUP2_DIFFIEHELLMANGROUP - // Group14 - GROUP14_DIFFIEHELLMANGROUP - // ECP256 - ECP256_DIFFIEHELLMANGROUP - // ECP384 - ECP384_DIFFIEHELLMANGROUP - // Group24 - GROUP24_DIFFIEHELLMANGROUP -) - -func (i DiffieHellmanGroup) String() string { - return []string{"group1", "group2", "group14", "ecp256", "ecp384", "group24"}[i] -} -func ParseDiffieHellmanGroup(v string) (any, error) { - result := GROUP1_DIFFIEHELLMANGROUP - switch v { - case "group1": - result = GROUP1_DIFFIEHELLMANGROUP - case "group2": - result = GROUP2_DIFFIEHELLMANGROUP - case "group14": - result = GROUP14_DIFFIEHELLMANGROUP - case "ecp256": - result = ECP256_DIFFIEHELLMANGROUP - case "ecp384": - result = ECP384_DIFFIEHELLMANGROUP - case "group24": - result = GROUP24_DIFFIEHELLMANGROUP - default: - return 0, errors.New("Unknown DiffieHellmanGroup value: " + v) - } - return &result, nil -} -func SerializeDiffieHellmanGroup(values []DiffieHellmanGroup) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DiffieHellmanGroup) isMultiValue() bool { - return false -} diff --git a/models/directory_audit.go b/models/directory_audit.go index 8fb3485a82a..b0f89295ef7 100644 --- a/models/directory_audit.go +++ b/models/directory_audit.go @@ -165,12 +165,12 @@ func (m *DirectoryAudit) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["result"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOperationResult) + val, err := n.GetEnumValue(ParseDirectoryAudit_result) if err != nil { return err } if val != nil { - m.SetResult(val.(*OperationResult)) + m.SetResult(val.(*DirectoryAudit_result)) } return nil } @@ -246,13 +246,13 @@ func (m *DirectoryAudit) GetOperationType()(*string) { return nil } // GetResult gets the result property value. Indicates the result of the activity. Possible values are: success, failure, timeout, unknownFutureValue. -func (m *DirectoryAudit) GetResult()(*OperationResult) { +func (m *DirectoryAudit) GetResult()(*DirectoryAudit_result) { val, err := m.GetBackingStore().Get("result") if err != nil { panic(err) } if val != nil { - return val.(*OperationResult) + return val.(*DirectoryAudit_result) } return nil } @@ -439,7 +439,7 @@ func (m *DirectoryAudit) SetOperationType(value *string)() { } } // SetResult sets the result property value. Indicates the result of the activity. Possible values are: success, failure, timeout, unknownFutureValue. -func (m *DirectoryAudit) SetResult(value *OperationResult)() { +func (m *DirectoryAudit) SetResult(value *DirectoryAudit_result)() { err := m.GetBackingStore().Set("result", value) if err != nil { panic(err) @@ -478,7 +478,7 @@ type DirectoryAuditable interface { GetInitiatedBy()(AuditActivityInitiatorable) GetLoggedByService()(*string) GetOperationType()(*string) - GetResult()(*OperationResult) + GetResult()(*DirectoryAudit_result) GetResultReason()(*string) GetTargetResources()([]TargetResourceable) GetUserAgent()(*string) @@ -490,7 +490,7 @@ type DirectoryAuditable interface { SetInitiatedBy(value AuditActivityInitiatorable)() SetLoggedByService(value *string)() SetOperationType(value *string)() - SetResult(value *OperationResult)() + SetResult(value *DirectoryAudit_result)() SetResultReason(value *string)() SetTargetResources(value []TargetResourceable)() SetUserAgent(value *string)() diff --git a/models/directory_audit_result.go b/models/directory_audit_result.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/domain_name_source.go b/models/domain_name_source.go deleted file mode 100644 index b377d669528..00000000000 --- a/models/domain_name_source.go +++ /dev/null @@ -1,39 +0,0 @@ -package models -import ( - "errors" -) -// Domainname source. -type DomainNameSource int - -const ( - // Full domain name. - FULLDOMAINNAME_DOMAINNAMESOURCE DomainNameSource = iota - // net bios domain name. - NETBIOSDOMAINNAME_DOMAINNAMESOURCE -) - -func (i DomainNameSource) String() string { - return []string{"fullDomainName", "netBiosDomainName"}[i] -} -func ParseDomainNameSource(v string) (any, error) { - result := FULLDOMAINNAME_DOMAINNAMESOURCE - switch v { - case "fullDomainName": - result = FULLDOMAINNAME_DOMAINNAMESOURCE - case "netBiosDomainName": - result = NETBIOSDOMAINNAME_DOMAINNAMESOURCE - default: - return 0, errors.New("Unknown DomainNameSource value: " + v) - } - return &result, nil -} -func SerializeDomainNameSource(values []DomainNameSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DomainNameSource) isMultiValue() bool { - return false -} diff --git a/models/drive_item_source.go b/models/drive_item_source.go index 89c56844837..cdafdd85b6f 100644 --- a/models/drive_item_source.go +++ b/models/drive_item_source.go @@ -35,13 +35,13 @@ func (m *DriveItemSource) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetApplication gets the application property value. Enumeration value that indicates the source application where the file was created. -func (m *DriveItemSource) GetApplication()(*DriveItemSourceApplication) { +func (m *DriveItemSource) GetApplication()(*DriveItemSource_application) { val, err := m.GetBackingStore().Get("application") if err != nil { panic(err) } if val != nil { - return val.(*DriveItemSourceApplication) + return val.(*DriveItemSource_application) } return nil } @@ -64,12 +64,12 @@ func (m *DriveItemSource) GetExternalId()(*string) { func (m *DriveItemSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["application"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDriveItemSourceApplication) + val, err := n.GetEnumValue(ParseDriveItemSource_application) if err != nil { return err } if val != nil { - m.SetApplication(val.(*DriveItemSourceApplication)) + m.SetApplication(val.(*DriveItemSource_application)) } return nil } @@ -143,7 +143,7 @@ func (m *DriveItemSource) SetAdditionalData(value map[string]any)() { } } // SetApplication sets the application property value. Enumeration value that indicates the source application where the file was created. -func (m *DriveItemSource) SetApplication(value *DriveItemSourceApplication)() { +func (m *DriveItemSource) SetApplication(value *DriveItemSource_application)() { err := m.GetBackingStore().Set("application", value) if err != nil { panic(err) @@ -172,11 +172,11 @@ type DriveItemSourceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetApplication()(*DriveItemSourceApplication) + GetApplication()(*DriveItemSource_application) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExternalId()(*string) GetOdataType()(*string) - SetApplication(value *DriveItemSourceApplication)() + SetApplication(value *DriveItemSource_application)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExternalId(value *string)() SetOdataType(value *string)() diff --git a/models/drive_item_source_application.go b/models/drive_item_source_application.go index 8ba1596fcaa..e69de29bb2d 100644 --- a/models/drive_item_source_application.go +++ b/models/drive_item_source_application.go @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type DriveItemSourceApplication int - -const ( - TEAMS_DRIVEITEMSOURCEAPPLICATION DriveItemSourceApplication = iota - YAMMER_DRIVEITEMSOURCEAPPLICATION - SHAREPOINT_DRIVEITEMSOURCEAPPLICATION - ONEDRIVE_DRIVEITEMSOURCEAPPLICATION - STREAM_DRIVEITEMSOURCEAPPLICATION - POWERPOINT_DRIVEITEMSOURCEAPPLICATION - OFFICE_DRIVEITEMSOURCEAPPLICATION - UNKNOWNFUTUREVALUE_DRIVEITEMSOURCEAPPLICATION -) - -func (i DriveItemSourceApplication) String() string { - return []string{"teams", "yammer", "sharePoint", "oneDrive", "stream", "powerPoint", "office", "unknownFutureValue"}[i] -} -func ParseDriveItemSourceApplication(v string) (any, error) { - result := TEAMS_DRIVEITEMSOURCEAPPLICATION - switch v { - case "teams": - result = TEAMS_DRIVEITEMSOURCEAPPLICATION - case "yammer": - result = YAMMER_DRIVEITEMSOURCEAPPLICATION - case "sharePoint": - result = SHAREPOINT_DRIVEITEMSOURCEAPPLICATION - case "oneDrive": - result = ONEDRIVE_DRIVEITEMSOURCEAPPLICATION - case "stream": - result = STREAM_DRIVEITEMSOURCEAPPLICATION - case "powerPoint": - result = POWERPOINT_DRIVEITEMSOURCEAPPLICATION - case "office": - result = OFFICE_DRIVEITEMSOURCEAPPLICATION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DRIVEITEMSOURCEAPPLICATION - default: - return 0, errors.New("Unknown DriveItemSourceApplication value: " + v) - } - return &result, nil -} -func SerializeDriveItemSourceApplication(values []DriveItemSourceApplication) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DriveItemSourceApplication) isMultiValue() bool { - return false -} diff --git a/models/eap_fast_configuration.go b/models/eap_fast_configuration.go deleted file mode 100644 index 8f229a58d4c..00000000000 --- a/models/eap_fast_configuration.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Available settings for EAP-FAST Configuration. -type EapFastConfiguration int - -const ( - // Use EAP-FAST without Protected Access Credential (PAC). - NOPROTECTEDACCESSCREDENTIAL_EAPFASTCONFIGURATION EapFastConfiguration = iota - // Use Protected Access Credential (PAC). - USEPROTECTEDACCESSCREDENTIAL_EAPFASTCONFIGURATION - // Use Protected Access Credential (PAC) and Provision PAC. - USEPROTECTEDACCESSCREDENTIALANDPROVISION_EAPFASTCONFIGURATION - // Use Protected Access Credential (PAC), Provision PAC, and do so anonymously. - USEPROTECTEDACCESSCREDENTIALANDPROVISIONANONYMOUSLY_EAPFASTCONFIGURATION -) - -func (i EapFastConfiguration) String() string { - return []string{"noProtectedAccessCredential", "useProtectedAccessCredential", "useProtectedAccessCredentialAndProvision", "useProtectedAccessCredentialAndProvisionAnonymously"}[i] -} -func ParseEapFastConfiguration(v string) (any, error) { - result := NOPROTECTEDACCESSCREDENTIAL_EAPFASTCONFIGURATION - switch v { - case "noProtectedAccessCredential": - result = NOPROTECTEDACCESSCREDENTIAL_EAPFASTCONFIGURATION - case "useProtectedAccessCredential": - result = USEPROTECTEDACCESSCREDENTIAL_EAPFASTCONFIGURATION - case "useProtectedAccessCredentialAndProvision": - result = USEPROTECTEDACCESSCREDENTIALANDPROVISION_EAPFASTCONFIGURATION - case "useProtectedAccessCredentialAndProvisionAnonymously": - result = USEPROTECTEDACCESSCREDENTIALANDPROVISIONANONYMOUSLY_EAPFASTCONFIGURATION - default: - return 0, errors.New("Unknown EapFastConfiguration value: " + v) - } - return &result, nil -} -func SerializeEapFastConfiguration(values []EapFastConfiguration) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EapFastConfiguration) isMultiValue() bool { - return false -} diff --git a/models/eas_email_profile_configuration_base.go b/models/eas_email_profile_configuration_base.go index 52e6ecf3dba..a834b7f846b 100644 --- a/models/eas_email_profile_configuration_base.go +++ b/models/eas_email_profile_configuration_base.go @@ -68,22 +68,22 @@ func (m *EasEmailProfileConfigurationBase) GetFieldDeserializers()(map[string]fu return nil } res["userDomainNameSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDomainNameSource) + val, err := n.GetEnumValue(ParseEasEmailProfileConfigurationBase_userDomainNameSource) if err != nil { return err } if val != nil { - m.SetUserDomainNameSource(val.(*DomainNameSource)) + m.SetUserDomainNameSource(val.(*EasEmailProfileConfigurationBase_userDomainNameSource)) } return nil } res["usernameAADSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUsernameSource) + val, err := n.GetEnumValue(ParseEasEmailProfileConfigurationBase_usernameAADSource) if err != nil { return err } if val != nil { - m.SetUsernameAADSource(val.(*UsernameSource)) + m.SetUsernameAADSource(val.(*EasEmailProfileConfigurationBase_usernameAADSource)) } return nil } @@ -100,24 +100,24 @@ func (m *EasEmailProfileConfigurationBase) GetFieldDeserializers()(map[string]fu return res } // GetUserDomainNameSource gets the userDomainNameSource property value. UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: fullDomainName, netBiosDomainName. -func (m *EasEmailProfileConfigurationBase) GetUserDomainNameSource()(*DomainNameSource) { +func (m *EasEmailProfileConfigurationBase) GetUserDomainNameSource()(*EasEmailProfileConfigurationBase_userDomainNameSource) { val, err := m.GetBackingStore().Get("userDomainNameSource") if err != nil { panic(err) } if val != nil { - return val.(*DomainNameSource) + return val.(*EasEmailProfileConfigurationBase_userDomainNameSource) } return nil } // GetUsernameAADSource gets the usernameAADSource property value. Name of the AAD field, that will be used to retrieve UserName for email profile. Possible values are: userPrincipalName, primarySmtpAddress, samAccountName. -func (m *EasEmailProfileConfigurationBase) GetUsernameAADSource()(*UsernameSource) { +func (m *EasEmailProfileConfigurationBase) GetUsernameAADSource()(*EasEmailProfileConfigurationBase_usernameAADSource) { val, err := m.GetBackingStore().Get("usernameAADSource") if err != nil { panic(err) } if val != nil { - return val.(*UsernameSource) + return val.(*EasEmailProfileConfigurationBase_usernameAADSource) } return nil } @@ -175,14 +175,14 @@ func (m *EasEmailProfileConfigurationBase) SetCustomDomainName(value *string)() } } // SetUserDomainNameSource sets the userDomainNameSource property value. UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: fullDomainName, netBiosDomainName. -func (m *EasEmailProfileConfigurationBase) SetUserDomainNameSource(value *DomainNameSource)() { +func (m *EasEmailProfileConfigurationBase) SetUserDomainNameSource(value *EasEmailProfileConfigurationBase_userDomainNameSource)() { err := m.GetBackingStore().Set("userDomainNameSource", value) if err != nil { panic(err) } } // SetUsernameAADSource sets the usernameAADSource property value. Name of the AAD field, that will be used to retrieve UserName for email profile. Possible values are: userPrincipalName, primarySmtpAddress, samAccountName. -func (m *EasEmailProfileConfigurationBase) SetUsernameAADSource(value *UsernameSource)() { +func (m *EasEmailProfileConfigurationBase) SetUsernameAADSource(value *EasEmailProfileConfigurationBase_usernameAADSource)() { err := m.GetBackingStore().Set("usernameAADSource", value) if err != nil { panic(err) @@ -200,11 +200,11 @@ type EasEmailProfileConfigurationBaseable interface { DeviceConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCustomDomainName()(*string) - GetUserDomainNameSource()(*DomainNameSource) - GetUsernameAADSource()(*UsernameSource) + GetUserDomainNameSource()(*EasEmailProfileConfigurationBase_userDomainNameSource) + GetUsernameAADSource()(*EasEmailProfileConfigurationBase_usernameAADSource) GetUsernameSource()(*UserEmailSource) SetCustomDomainName(value *string)() - SetUserDomainNameSource(value *DomainNameSource)() - SetUsernameAADSource(value *UsernameSource)() + SetUserDomainNameSource(value *EasEmailProfileConfigurationBase_userDomainNameSource)() + SetUsernameAADSource(value *EasEmailProfileConfigurationBase_usernameAADSource)() SetUsernameSource(value *UserEmailSource)() } diff --git a/models/eas_email_profile_configuration_base_user_domain_name_source.go b/models/eas_email_profile_configuration_base_user_domain_name_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/eas_email_profile_configuration_base_username_a_a_d_source.go b/models/eas_email_profile_configuration_base_username_a_a_d_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/eas_services.go b/models/eas_services.go deleted file mode 100644 index 5f999702e4a..00000000000 --- a/models/eas_services.go +++ /dev/null @@ -1,64 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// Exchange Active Sync services. -type EasServices int - -const ( - NONE_EASSERVICES EasServices = iota - // Enables synchronization of calendars. - CALENDARS_EASSERVICES - // Enables synchronization of contacts. - CONTACTS_EASSERVICES - // Enables synchronization of email. - EMAIL_EASSERVICES - // Enables synchronization of notes. - NOTES_EASSERVICES - // Enables synchronization of reminders. - REMINDERS_EASSERVICES -) - -func (i EasServices) String() string { - var values []string - for p := EasServices(1); p <= REMINDERS_EASSERVICES; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "calendars", "contacts", "email", "notes", "reminders"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseEasServices(v string) (any, error) { - var result EasServices - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_EASSERVICES - case "calendars": - result |= CALENDARS_EASSERVICES - case "contacts": - result |= CONTACTS_EASSERVICES - case "email": - result |= EMAIL_EASSERVICES - case "notes": - result |= NOTES_EASSERVICES - case "reminders": - result |= REMINDERS_EASSERVICES - default: - return 0, errors.New("Unknown EasServices value: " + v) - } - } - return &result, nil -} -func SerializeEasServices(values []EasServices) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EasServices) isMultiValue() bool { - return true -} diff --git a/models/ediscovery/additional_data_options.go b/models/ediscovery/additional_data_options.go deleted file mode 100644 index 48f9acf8f1e..00000000000 --- a/models/ediscovery/additional_data_options.go +++ /dev/null @@ -1,50 +0,0 @@ -package ediscovery -import ( - "errors" - "strings" -) -// -type AdditionalDataOptions int - -const ( - ALLVERSIONS_ADDITIONALDATAOPTIONS AdditionalDataOptions = iota - LINKEDFILES_ADDITIONALDATAOPTIONS - UNKNOWNFUTUREVALUE_ADDITIONALDATAOPTIONS -) - -func (i AdditionalDataOptions) String() string { - var values []string - for p := AdditionalDataOptions(1); p <= UNKNOWNFUTUREVALUE_ADDITIONALDATAOPTIONS; p <<= 1 { - if i&p == p { - values = append(values, []string{"allVersions", "linkedFiles", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseAdditionalDataOptions(v string) (any, error) { - var result AdditionalDataOptions - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "allVersions": - result |= ALLVERSIONS_ADDITIONALDATAOPTIONS - case "linkedFiles": - result |= LINKEDFILES_ADDITIONALDATAOPTIONS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_ADDITIONALDATAOPTIONS - default: - return 0, errors.New("Unknown AdditionalDataOptions value: " + v) - } - } - return &result, nil -} -func SerializeAdditionalDataOptions(values []AdditionalDataOptions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AdditionalDataOptions) isMultiValue() bool { - return true -} diff --git a/models/ediscovery/case_action.go b/models/ediscovery/case_action.go deleted file mode 100644 index 9da77c427ac..00000000000 --- a/models/ediscovery/case_action.go +++ /dev/null @@ -1,58 +0,0 @@ -package ediscovery -import ( - "errors" -) -// -type CaseAction int - -const ( - CONTENTEXPORT_CASEACTION CaseAction = iota - APPLYTAGS_CASEACTION - CONVERTTOPDF_CASEACTION - INDEX_CASEACTION - ESTIMATESTATISTICS_CASEACTION - ADDTOREVIEWSET_CASEACTION - HOLDUPDATE_CASEACTION - UNKNOWNFUTUREVALUE_CASEACTION - PURGEDATA_CASEACTION -) - -func (i CaseAction) String() string { - return []string{"contentExport", "applyTags", "convertToPdf", "index", "estimateStatistics", "addToReviewSet", "holdUpdate", "unknownFutureValue", "purgeData"}[i] -} -func ParseCaseAction(v string) (any, error) { - result := CONTENTEXPORT_CASEACTION - switch v { - case "contentExport": - result = CONTENTEXPORT_CASEACTION - case "applyTags": - result = APPLYTAGS_CASEACTION - case "convertToPdf": - result = CONVERTTOPDF_CASEACTION - case "index": - result = INDEX_CASEACTION - case "estimateStatistics": - result = ESTIMATESTATISTICS_CASEACTION - case "addToReviewSet": - result = ADDTOREVIEWSET_CASEACTION - case "holdUpdate": - result = HOLDUPDATE_CASEACTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CASEACTION - case "purgeData": - result = PURGEDATA_CASEACTION - default: - return 0, errors.New("Unknown CaseAction value: " + v) - } - return &result, nil -} -func SerializeCaseAction(values []CaseAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CaseAction) isMultiValue() bool { - return false -} diff --git a/models/ediscovery/case_escaped.go b/models/ediscovery/case_escaped.go index 2ae96a55b53..2a9f3bae371 100644 --- a/models/ediscovery/case_escaped.go +++ b/models/ediscovery/case_escaped.go @@ -288,12 +288,12 @@ func (m *CaseEscaped) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCaseStatus) + val, err := n.GetEnumValue(ParseCase_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CaseStatus)) + m.SetStatus(val.(*Case_status)) } return nil } @@ -404,13 +404,13 @@ func (m *CaseEscaped) GetSourceCollections()([]SourceCollectionable) { return nil } // GetStatus gets the status property value. The case status. Possible values are unknown, active, pendingDelete, closing, closed, and closedWithError. For details, see the following table. -func (m *CaseEscaped) GetStatus()(*CaseStatus) { +func (m *CaseEscaped) GetStatus()(*Case_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CaseStatus) + return val.(*Case_status) } return nil } @@ -684,7 +684,7 @@ func (m *CaseEscaped) SetSourceCollections(value []SourceCollectionable)() { } } // SetStatus sets the status property value. The case status. Possible values are unknown, active, pendingDelete, closing, closed, and closedWithError. For details, see the following table. -func (m *CaseEscaped) SetStatus(value *CaseStatus)() { +func (m *CaseEscaped) SetStatus(value *Case_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -716,7 +716,7 @@ type CaseEscapedable interface { GetReviewSets()([]ReviewSetable) GetSettings()(CaseSettingsable) GetSourceCollections()([]SourceCollectionable) - GetStatus()(*CaseStatus) + GetStatus()(*Case_status) GetTags()([]Tagable) SetClosedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetClosedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -733,6 +733,6 @@ type CaseEscapedable interface { SetReviewSets(value []ReviewSetable)() SetSettings(value CaseSettingsable)() SetSourceCollections(value []SourceCollectionable)() - SetStatus(value *CaseStatus)() + SetStatus(value *Case_status)() SetTags(value []Tagable)() } diff --git a/models/ediscovery/case_export_operation.go b/models/ediscovery/case_export_operation.go index b097a7298c5..6e5589112c4 100644 --- a/models/ediscovery/case_export_operation.go +++ b/models/ediscovery/case_export_operation.go @@ -53,24 +53,24 @@ func (m *CaseExportOperation) GetDescription()(*string) { return nil } // GetExportOptions gets the exportOptions property value. The options provided for the export. For more information, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, fileInfo, tags. -func (m *CaseExportOperation) GetExportOptions()(*ExportOptions) { +func (m *CaseExportOperation) GetExportOptions()(*CaseExportOperation_exportOptions) { val, err := m.GetBackingStore().Get("exportOptions") if err != nil { panic(err) } if val != nil { - return val.(*ExportOptions) + return val.(*CaseExportOperation_exportOptions) } return nil } // GetExportStructure gets the exportStructure property value. The options provided specify the structure of the export. For more information, see reviewSet: export. Possible values are: none, directory, pst. -func (m *CaseExportOperation) GetExportStructure()(*ExportFileStructure) { +func (m *CaseExportOperation) GetExportStructure()(*CaseExportOperation_exportStructure) { val, err := m.GetBackingStore().Get("exportStructure") if err != nil { panic(err) } if val != nil { - return val.(*ExportFileStructure) + return val.(*CaseExportOperation_exportStructure) } return nil } @@ -108,22 +108,22 @@ func (m *CaseExportOperation) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["exportOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExportOptions) + val, err := n.GetEnumValue(ParseCaseExportOperation_exportOptions) if err != nil { return err } if val != nil { - m.SetExportOptions(val.(*ExportOptions)) + m.SetExportOptions(val.(*CaseExportOperation_exportOptions)) } return nil } res["exportStructure"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExportFileStructure) + val, err := n.GetEnumValue(ParseCaseExportOperation_exportStructure) if err != nil { return err } if val != nil { - m.SetExportStructure(val.(*ExportFileStructure)) + m.SetExportStructure(val.(*CaseExportOperation_exportStructure)) } return nil } @@ -272,14 +272,14 @@ func (m *CaseExportOperation) SetDescription(value *string)() { } } // SetExportOptions sets the exportOptions property value. The options provided for the export. For more information, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, fileInfo, tags. -func (m *CaseExportOperation) SetExportOptions(value *ExportOptions)() { +func (m *CaseExportOperation) SetExportOptions(value *CaseExportOperation_exportOptions)() { err := m.GetBackingStore().Set("exportOptions", value) if err != nil { panic(err) } } // SetExportStructure sets the exportStructure property value. The options provided specify the structure of the export. For more information, see reviewSet: export. Possible values are: none, directory, pst. -func (m *CaseExportOperation) SetExportStructure(value *ExportFileStructure)() { +func (m *CaseExportOperation) SetExportStructure(value *CaseExportOperation_exportStructure)() { err := m.GetBackingStore().Set("exportStructure", value) if err != nil { panic(err) @@ -313,16 +313,16 @@ type CaseExportOperationable interface { GetAzureBlobContainer()(*string) GetAzureBlobToken()(*string) GetDescription()(*string) - GetExportOptions()(*ExportOptions) - GetExportStructure()(*ExportFileStructure) + GetExportOptions()(*CaseExportOperation_exportOptions) + GetExportStructure()(*CaseExportOperation_exportStructure) GetOutputFolderId()(*string) GetOutputName()(*string) GetReviewSet()(ReviewSetable) SetAzureBlobContainer(value *string)() SetAzureBlobToken(value *string)() SetDescription(value *string)() - SetExportOptions(value *ExportOptions)() - SetExportStructure(value *ExportFileStructure)() + SetExportOptions(value *CaseExportOperation_exportOptions)() + SetExportStructure(value *CaseExportOperation_exportStructure)() SetOutputFolderId(value *string)() SetOutputName(value *string)() SetReviewSet(value ReviewSetable)() diff --git a/models/ediscovery/case_export_operation_export_options.go b/models/ediscovery/case_export_operation_export_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ediscovery/case_export_operation_export_structure.go b/models/ediscovery/case_export_operation_export_structure.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ediscovery/case_operation.go b/models/ediscovery/case_operation.go index 1b6b4d5648f..779a012911a 100644 --- a/models/ediscovery/case_operation.go +++ b/models/ediscovery/case_operation.go @@ -52,13 +52,13 @@ func CreateCaseOperationFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 return NewCaseOperation(), nil } // GetAction gets the action property value. The type of action the operation represents. Possible values are: addToReviewSet,applyTags,contentExport,convertToPdf,estimateStatistics, purgeData -func (m *CaseOperation) GetAction()(*CaseAction) { +func (m *CaseOperation) GetAction()(*CaseOperation_action) { val, err := m.GetBackingStore().Get("action") if err != nil { panic(err) } if val != nil { - return val.(*CaseAction) + return val.(*CaseOperation_action) } return nil } @@ -99,12 +99,12 @@ func (m *CaseOperation) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a func (m *CaseOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCaseAction) + val, err := n.GetEnumValue(ParseCaseOperation_action) if err != nil { return err } if val != nil { - m.SetAction(val.(*CaseAction)) + m.SetAction(val.(*CaseOperation_action)) } return nil } @@ -159,12 +159,12 @@ func (m *CaseOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCaseOperationStatus) + val, err := n.GetEnumValue(ParseCaseOperation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CaseOperationStatus)) + m.SetStatus(val.(*CaseOperation_status)) } return nil } @@ -193,13 +193,13 @@ func (m *CaseOperation) GetResultInfo()(ie233ee762e29b4ba6970aa2a2efce4b7fde1169 return nil } // GetStatus gets the status property value. The status of the case operation. Possible values are: notStarted, submissionFailed, running, succeeded, partiallySucceeded, failed. -func (m *CaseOperation) GetStatus()(*CaseOperationStatus) { +func (m *CaseOperation) GetStatus()(*CaseOperation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CaseOperationStatus) + return val.(*CaseOperation_status) } return nil } @@ -256,7 +256,7 @@ func (m *CaseOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return nil } // SetAction sets the action property value. The type of action the operation represents. Possible values are: addToReviewSet,applyTags,contentExport,convertToPdf,estimateStatistics, purgeData -func (m *CaseOperation) SetAction(value *CaseAction)() { +func (m *CaseOperation) SetAction(value *CaseOperation_action)() { err := m.GetBackingStore().Set("action", value) if err != nil { panic(err) @@ -298,7 +298,7 @@ func (m *CaseOperation) SetResultInfo(value ie233ee762e29b4ba6970aa2a2efce4b7fde } } // SetStatus sets the status property value. The status of the case operation. Possible values are: notStarted, submissionFailed, running, succeeded, partiallySucceeded, failed. -func (m *CaseOperation) SetStatus(value *CaseOperationStatus)() { +func (m *CaseOperation) SetStatus(value *CaseOperation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -308,18 +308,18 @@ func (m *CaseOperation) SetStatus(value *CaseOperationStatus)() { type CaseOperationable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAction()(*CaseAction) + GetAction()(*CaseOperation_action) GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCreatedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPercentProgress()(*int32) GetResultInfo()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResultInfoable) - GetStatus()(*CaseOperationStatus) - SetAction(value *CaseAction)() + GetStatus()(*CaseOperation_status) + SetAction(value *CaseOperation_action)() SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPercentProgress(value *int32)() SetResultInfo(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResultInfoable)() - SetStatus(value *CaseOperationStatus)() + SetStatus(value *CaseOperation_status)() } diff --git a/models/ediscovery/case_operation_action.go b/models/ediscovery/case_operation_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ediscovery/case_operation_status.go b/models/ediscovery/case_operation_status.go index e9d84e33079..e69de29bb2d 100644 --- a/models/ediscovery/case_operation_status.go +++ b/models/ediscovery/case_operation_status.go @@ -1,49 +0,0 @@ -package ediscovery -import ( - "errors" -) -// -type CaseOperationStatus int - -const ( - NOTSTARTED_CASEOPERATIONSTATUS CaseOperationStatus = iota - SUBMISSIONFAILED_CASEOPERATIONSTATUS - RUNNING_CASEOPERATIONSTATUS - SUCCEEDED_CASEOPERATIONSTATUS - PARTIALLYSUCCEEDED_CASEOPERATIONSTATUS - FAILED_CASEOPERATIONSTATUS -) - -func (i CaseOperationStatus) String() string { - return []string{"notStarted", "submissionFailed", "running", "succeeded", "partiallySucceeded", "failed"}[i] -} -func ParseCaseOperationStatus(v string) (any, error) { - result := NOTSTARTED_CASEOPERATIONSTATUS - switch v { - case "notStarted": - result = NOTSTARTED_CASEOPERATIONSTATUS - case "submissionFailed": - result = SUBMISSIONFAILED_CASEOPERATIONSTATUS - case "running": - result = RUNNING_CASEOPERATIONSTATUS - case "succeeded": - result = SUCCEEDED_CASEOPERATIONSTATUS - case "partiallySucceeded": - result = PARTIALLYSUCCEEDED_CASEOPERATIONSTATUS - case "failed": - result = FAILED_CASEOPERATIONSTATUS - default: - return 0, errors.New("Unknown CaseOperationStatus value: " + v) - } - return &result, nil -} -func SerializeCaseOperationStatus(values []CaseOperationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CaseOperationStatus) isMultiValue() bool { - return false -} diff --git a/models/ediscovery/case_status.go b/models/ediscovery/case_status.go index df3396f4d75..e69de29bb2d 100644 --- a/models/ediscovery/case_status.go +++ b/models/ediscovery/case_status.go @@ -1,49 +0,0 @@ -package ediscovery -import ( - "errors" -) -// -type CaseStatus int - -const ( - UNKNOWN_CASESTATUS CaseStatus = iota - ACTIVE_CASESTATUS - PENDINGDELETE_CASESTATUS - CLOSING_CASESTATUS - CLOSED_CASESTATUS - CLOSEDWITHERROR_CASESTATUS -) - -func (i CaseStatus) String() string { - return []string{"unknown", "active", "pendingDelete", "closing", "closed", "closedWithError"}[i] -} -func ParseCaseStatus(v string) (any, error) { - result := UNKNOWN_CASESTATUS - switch v { - case "unknown": - result = UNKNOWN_CASESTATUS - case "active": - result = ACTIVE_CASESTATUS - case "pendingDelete": - result = PENDINGDELETE_CASESTATUS - case "closing": - result = CLOSING_CASESTATUS - case "closed": - result = CLOSED_CASESTATUS - case "closedWithError": - result = CLOSEDWITHERROR_CASESTATUS - default: - return 0, errors.New("Unknown CaseStatus value: " + v) - } - return &result, nil -} -func SerializeCaseStatus(values []CaseStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CaseStatus) isMultiValue() bool { - return false -} diff --git a/models/ediscovery/child_selectability.go b/models/ediscovery/child_selectability.go deleted file mode 100644 index 5ba7e6a2ef8..00000000000 --- a/models/ediscovery/child_selectability.go +++ /dev/null @@ -1,37 +0,0 @@ -package ediscovery -import ( - "errors" -) -// -type ChildSelectability int - -const ( - ONE_CHILDSELECTABILITY ChildSelectability = iota - MANY_CHILDSELECTABILITY -) - -func (i ChildSelectability) String() string { - return []string{"One", "Many"}[i] -} -func ParseChildSelectability(v string) (any, error) { - result := ONE_CHILDSELECTABILITY - switch v { - case "One": - result = ONE_CHILDSELECTABILITY - case "Many": - result = MANY_CHILDSELECTABILITY - default: - return 0, errors.New("Unknown ChildSelectability value: " + v) - } - return &result, nil -} -func SerializeChildSelectability(values []ChildSelectability) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ChildSelectability) isMultiValue() bool { - return false -} diff --git a/models/ediscovery/data_source.go b/models/ediscovery/data_source.go index d983c4170ff..92b09e85293 100644 --- a/models/ediscovery/data_source.go +++ b/models/ediscovery/data_source.go @@ -110,25 +110,25 @@ func (m *DataSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["holdStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSourceHoldStatus) + val, err := n.GetEnumValue(ParseDataSource_holdStatus) if err != nil { return err } if val != nil { - m.SetHoldStatus(val.(*DataSourceHoldStatus)) + m.SetHoldStatus(val.(*DataSource_holdStatus)) } return nil } return res } // GetHoldStatus gets the holdStatus property value. The holdStatus property -func (m *DataSource) GetHoldStatus()(*DataSourceHoldStatus) { +func (m *DataSource) GetHoldStatus()(*DataSource_holdStatus) { val, err := m.GetBackingStore().Get("holdStatus") if err != nil { panic(err) } if val != nil { - return val.(*DataSourceHoldStatus) + return val.(*DataSource_holdStatus) } return nil } @@ -187,7 +187,7 @@ func (m *DataSource) SetDisplayName(value *string)() { } } // SetHoldStatus sets the holdStatus property value. The holdStatus property -func (m *DataSource) SetHoldStatus(value *DataSourceHoldStatus)() { +func (m *DataSource) SetHoldStatus(value *DataSource_holdStatus)() { err := m.GetBackingStore().Set("holdStatus", value) if err != nil { panic(err) @@ -200,9 +200,9 @@ type DataSourceable interface { GetCreatedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) - GetHoldStatus()(*DataSourceHoldStatus) + GetHoldStatus()(*DataSource_holdStatus) SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() - SetHoldStatus(value *DataSourceHoldStatus)() + SetHoldStatus(value *DataSource_holdStatus)() } diff --git a/models/ediscovery/data_source_container.go b/models/ediscovery/data_source_container.go index ac8daea4c2a..4bdabfc5668 100644 --- a/models/ediscovery/data_source_container.go +++ b/models/ediscovery/data_source_container.go @@ -87,12 +87,12 @@ func (m *DataSourceContainer) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["holdStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSourceHoldStatus) + val, err := n.GetEnumValue(ParseDataSourceContainer_holdStatus) if err != nil { return err } if val != nil { - m.SetHoldStatus(val.(*DataSourceHoldStatus)) + m.SetHoldStatus(val.(*DataSourceContainer_holdStatus)) } return nil } @@ -127,25 +127,25 @@ func (m *DataSourceContainer) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSourceContainerStatus) + val, err := n.GetEnumValue(ParseDataSourceContainer_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*DataSourceContainerStatus)) + m.SetStatus(val.(*DataSourceContainer_status)) } return nil } return res } // GetHoldStatus gets the holdStatus property value. The holdStatus property -func (m *DataSourceContainer) GetHoldStatus()(*DataSourceHoldStatus) { +func (m *DataSourceContainer) GetHoldStatus()(*DataSourceContainer_holdStatus) { val, err := m.GetBackingStore().Get("holdStatus") if err != nil { panic(err) } if val != nil { - return val.(*DataSourceHoldStatus) + return val.(*DataSourceContainer_holdStatus) } return nil } @@ -183,13 +183,13 @@ func (m *DataSourceContainer) GetReleasedDateTime()(*i336074805fc853987abe6f7fe3 return nil } // GetStatus gets the status property value. Latest status of the dataSourceContainer. Possible values are: Active, Released. -func (m *DataSourceContainer) GetStatus()(*DataSourceContainerStatus) { +func (m *DataSourceContainer) GetStatus()(*DataSourceContainer_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*DataSourceContainerStatus) + return val.(*DataSourceContainer_status) } return nil } @@ -260,7 +260,7 @@ func (m *DataSourceContainer) SetDisplayName(value *string)() { } } // SetHoldStatus sets the holdStatus property value. The holdStatus property -func (m *DataSourceContainer) SetHoldStatus(value *DataSourceHoldStatus)() { +func (m *DataSourceContainer) SetHoldStatus(value *DataSourceContainer_holdStatus)() { err := m.GetBackingStore().Set("holdStatus", value) if err != nil { panic(err) @@ -288,7 +288,7 @@ func (m *DataSourceContainer) SetReleasedDateTime(value *i336074805fc853987abe6f } } // SetStatus sets the status property value. Latest status of the dataSourceContainer. Possible values are: Active, Released. -func (m *DataSourceContainer) SetStatus(value *DataSourceContainerStatus)() { +func (m *DataSourceContainer) SetStatus(value *DataSourceContainer_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -300,16 +300,16 @@ type DataSourceContainerable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) - GetHoldStatus()(*DataSourceHoldStatus) + GetHoldStatus()(*DataSourceContainer_holdStatus) GetLastIndexOperation()(CaseIndexOperationable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetReleasedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*DataSourceContainerStatus) + GetStatus()(*DataSourceContainer_status) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() - SetHoldStatus(value *DataSourceHoldStatus)() + SetHoldStatus(value *DataSourceContainer_holdStatus)() SetLastIndexOperation(value CaseIndexOperationable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetReleasedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *DataSourceContainerStatus)() + SetStatus(value *DataSourceContainer_status)() } diff --git a/models/ediscovery/data_source_container_hold_status.go b/models/ediscovery/data_source_container_hold_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ediscovery/data_source_container_status.go b/models/ediscovery/data_source_container_status.go index bf162b080e1..e69de29bb2d 100644 --- a/models/ediscovery/data_source_container_status.go +++ b/models/ediscovery/data_source_container_status.go @@ -1,40 +0,0 @@ -package ediscovery -import ( - "errors" -) -// -type DataSourceContainerStatus int - -const ( - ACTIVE_DATASOURCECONTAINERSTATUS DataSourceContainerStatus = iota - RELEASED_DATASOURCECONTAINERSTATUS - UNKNOWNFUTUREVALUE_DATASOURCECONTAINERSTATUS -) - -func (i DataSourceContainerStatus) String() string { - return []string{"Active", "Released", "UnknownFutureValue"}[i] -} -func ParseDataSourceContainerStatus(v string) (any, error) { - result := ACTIVE_DATASOURCECONTAINERSTATUS - switch v { - case "Active": - result = ACTIVE_DATASOURCECONTAINERSTATUS - case "Released": - result = RELEASED_DATASOURCECONTAINERSTATUS - case "UnknownFutureValue": - result = UNKNOWNFUTUREVALUE_DATASOURCECONTAINERSTATUS - default: - return 0, errors.New("Unknown DataSourceContainerStatus value: " + v) - } - return &result, nil -} -func SerializeDataSourceContainerStatus(values []DataSourceContainerStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DataSourceContainerStatus) isMultiValue() bool { - return false -} diff --git a/models/ediscovery/data_source_hold_status.go b/models/ediscovery/data_source_hold_status.go index 5878deb7ccd..e69de29bb2d 100644 --- a/models/ediscovery/data_source_hold_status.go +++ b/models/ediscovery/data_source_hold_status.go @@ -1,49 +0,0 @@ -package ediscovery -import ( - "errors" -) -// -type DataSourceHoldStatus int - -const ( - NOTAPPLIED_DATASOURCEHOLDSTATUS DataSourceHoldStatus = iota - APPLIED_DATASOURCEHOLDSTATUS - APPLYING_DATASOURCEHOLDSTATUS - REMOVING_DATASOURCEHOLDSTATUS - PARTIAL_DATASOURCEHOLDSTATUS - UNKNOWNFUTUREVALUE_DATASOURCEHOLDSTATUS -) - -func (i DataSourceHoldStatus) String() string { - return []string{"notApplied", "applied", "applying", "removing", "partial", "unknownFutureValue"}[i] -} -func ParseDataSourceHoldStatus(v string) (any, error) { - result := NOTAPPLIED_DATASOURCEHOLDSTATUS - switch v { - case "notApplied": - result = NOTAPPLIED_DATASOURCEHOLDSTATUS - case "applied": - result = APPLIED_DATASOURCEHOLDSTATUS - case "applying": - result = APPLYING_DATASOURCEHOLDSTATUS - case "removing": - result = REMOVING_DATASOURCEHOLDSTATUS - case "partial": - result = PARTIAL_DATASOURCEHOLDSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DATASOURCEHOLDSTATUS - default: - return 0, errors.New("Unknown DataSourceHoldStatus value: " + v) - } - return &result, nil -} -func SerializeDataSourceHoldStatus(values []DataSourceHoldStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DataSourceHoldStatus) isMultiValue() bool { - return false -} diff --git a/models/ediscovery/data_source_scopes.go b/models/ediscovery/data_source_scopes.go deleted file mode 100644 index ac3d8a9d550..00000000000 --- a/models/ediscovery/data_source_scopes.go +++ /dev/null @@ -1,59 +0,0 @@ -package ediscovery -import ( - "errors" - "strings" -) -// -type DataSourceScopes int - -const ( - NONE_DATASOURCESCOPES DataSourceScopes = iota - ALLTENANTMAILBOXES_DATASOURCESCOPES - ALLTENANTSITES_DATASOURCESCOPES - ALLCASECUSTODIANS_DATASOURCESCOPES - ALLCASENONCUSTODIALDATASOURCES_DATASOURCESCOPES - UNKNOWNFUTUREVALUE_DATASOURCESCOPES -) - -func (i DataSourceScopes) String() string { - var values []string - for p := DataSourceScopes(1); p <= UNKNOWNFUTUREVALUE_DATASOURCESCOPES; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "allTenantMailboxes", "allTenantSites", "allCaseCustodians", "allCaseNoncustodialDataSources", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseDataSourceScopes(v string) (any, error) { - var result DataSourceScopes - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_DATASOURCESCOPES - case "allTenantMailboxes": - result |= ALLTENANTMAILBOXES_DATASOURCESCOPES - case "allTenantSites": - result |= ALLTENANTSITES_DATASOURCESCOPES - case "allCaseCustodians": - result |= ALLCASECUSTODIANS_DATASOURCESCOPES - case "allCaseNoncustodialDataSources": - result |= ALLCASENONCUSTODIALDATASOURCES_DATASOURCESCOPES - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_DATASOURCESCOPES - default: - return 0, errors.New("Unknown DataSourceScopes value: " + v) - } - } - return &result, nil -} -func SerializeDataSourceScopes(values []DataSourceScopes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DataSourceScopes) isMultiValue() bool { - return true -} diff --git a/models/ediscovery/export_options.go b/models/ediscovery/export_options.go deleted file mode 100644 index 0a8f73a484c..00000000000 --- a/models/ediscovery/export_options.go +++ /dev/null @@ -1,59 +0,0 @@ -package ediscovery -import ( - "errors" - "strings" -) -// -type ExportOptions int - -const ( - ORIGINALFILES_EXPORTOPTIONS ExportOptions = iota - TEXT_EXPORTOPTIONS - PDFREPLACEMENT_EXPORTOPTIONS - FILEINFO_EXPORTOPTIONS - TAGS_EXPORTOPTIONS - UNKNOWNFUTUREVALUE_EXPORTOPTIONS -) - -func (i ExportOptions) String() string { - var values []string - for p := ExportOptions(1); p <= UNKNOWNFUTUREVALUE_EXPORTOPTIONS; p <<= 1 { - if i&p == p { - values = append(values, []string{"originalFiles", "text", "pdfReplacement", "fileInfo", "tags", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseExportOptions(v string) (any, error) { - var result ExportOptions - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "originalFiles": - result |= ORIGINALFILES_EXPORTOPTIONS - case "text": - result |= TEXT_EXPORTOPTIONS - case "pdfReplacement": - result |= PDFREPLACEMENT_EXPORTOPTIONS - case "fileInfo": - result |= FILEINFO_EXPORTOPTIONS - case "tags": - result |= TAGS_EXPORTOPTIONS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_EXPORTOPTIONS - default: - return 0, errors.New("Unknown ExportOptions value: " + v) - } - } - return &result, nil -} -func SerializeExportOptions(values []ExportOptions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExportOptions) isMultiValue() bool { - return true -} diff --git a/models/ediscovery/legal_hold.go b/models/ediscovery/legal_hold.go index 25208b4cbae..be2eda09129 100644 --- a/models/ediscovery/legal_hold.go +++ b/models/ediscovery/legal_hold.go @@ -203,12 +203,12 @@ func (m *LegalHold) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLegalHoldStatus) + val, err := n.GetEnumValue(ParseLegalHold_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*LegalHoldStatus)) + m.SetStatus(val.(*LegalHold_status)) } return nil } @@ -291,13 +291,13 @@ func (m *LegalHold) GetSiteSources()([]SiteSourceable) { return nil } // GetStatus gets the status property value. The status of the legal hold. Possible values are: Pending, Error, Success, UnknownFutureValue. -func (m *LegalHold) GetStatus()(*LegalHoldStatus) { +func (m *LegalHold) GetStatus()(*LegalHold_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*LegalHoldStatus) + return val.(*LegalHold_status) } return nil } @@ -499,7 +499,7 @@ func (m *LegalHold) SetSiteSources(value []SiteSourceable)() { } } // SetStatus sets the status property value. The status of the legal hold. Possible values are: Pending, Error, Success, UnknownFutureValue. -func (m *LegalHold) SetStatus(value *LegalHoldStatus)() { +func (m *LegalHold) SetStatus(value *LegalHold_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -533,7 +533,7 @@ type LegalHoldable interface { GetLastModifiedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSiteSources()([]SiteSourceable) - GetStatus()(*LegalHoldStatus) + GetStatus()(*LegalHold_status) GetUnifiedGroupSources()([]UnifiedGroupSourceable) GetUserSources()([]UserSourceable) SetContentQuery(value *string)() @@ -546,7 +546,7 @@ type LegalHoldable interface { SetLastModifiedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSiteSources(value []SiteSourceable)() - SetStatus(value *LegalHoldStatus)() + SetStatus(value *LegalHold_status)() SetUnifiedGroupSources(value []UnifiedGroupSourceable)() SetUserSources(value []UserSourceable)() } diff --git a/models/ediscovery/legal_hold_status.go b/models/ediscovery/legal_hold_status.go index ada99876d21..e69de29bb2d 100644 --- a/models/ediscovery/legal_hold_status.go +++ b/models/ediscovery/legal_hold_status.go @@ -1,43 +0,0 @@ -package ediscovery -import ( - "errors" -) -// -type LegalHoldStatus int - -const ( - PENDING_LEGALHOLDSTATUS LegalHoldStatus = iota - ERROR_LEGALHOLDSTATUS - SUCCESS_LEGALHOLDSTATUS - UNKNOWNFUTUREVALUE_LEGALHOLDSTATUS -) - -func (i LegalHoldStatus) String() string { - return []string{"Pending", "Error", "Success", "UnknownFutureValue"}[i] -} -func ParseLegalHoldStatus(v string) (any, error) { - result := PENDING_LEGALHOLDSTATUS - switch v { - case "Pending": - result = PENDING_LEGALHOLDSTATUS - case "Error": - result = ERROR_LEGALHOLDSTATUS - case "Success": - result = SUCCESS_LEGALHOLDSTATUS - case "UnknownFutureValue": - result = UNKNOWNFUTUREVALUE_LEGALHOLDSTATUS - default: - return 0, errors.New("Unknown LegalHoldStatus value: " + v) - } - return &result, nil -} -func SerializeLegalHoldStatus(values []LegalHoldStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i LegalHoldStatus) isMultiValue() bool { - return false -} diff --git a/models/ediscovery/source_collection.go b/models/ediscovery/source_collection.go index f1cfd804db8..bcbf642ea05 100644 --- a/models/ediscovery/source_collection.go +++ b/models/ediscovery/source_collection.go @@ -88,13 +88,13 @@ func (m *SourceCollection) GetCustodianSources()([]DataSourceable) { return nil } // GetDataSourceScopes gets the dataSourceScopes property value. When specified, the collection spans across a service for an entire workload. Possible values are: none, allTenantMailboxes, allTenantSites, allCaseCustodians, allCaseNoncustodialDataSources. -func (m *SourceCollection) GetDataSourceScopes()(*DataSourceScopes) { +func (m *SourceCollection) GetDataSourceScopes()(*SourceCollection_dataSourceScopes) { val, err := m.GetBackingStore().Get("dataSourceScopes") if err != nil { panic(err) } if val != nil { - return val.(*DataSourceScopes) + return val.(*SourceCollection_dataSourceScopes) } return nil } @@ -196,12 +196,12 @@ func (m *SourceCollection) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["dataSourceScopes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSourceScopes) + val, err := n.GetEnumValue(ParseSourceCollection_dataSourceScopes) if err != nil { return err } if val != nil { - m.SetDataSourceScopes(val.(*DataSourceScopes)) + m.SetDataSourceScopes(val.(*SourceCollection_dataSourceScopes)) } return nil } @@ -465,7 +465,7 @@ func (m *SourceCollection) SetCustodianSources(value []DataSourceable)() { } } // SetDataSourceScopes sets the dataSourceScopes property value. When specified, the collection spans across a service for an entire workload. Possible values are: none, allTenantMailboxes, allTenantSites, allCaseCustodians, allCaseNoncustodialDataSources. -func (m *SourceCollection) SetDataSourceScopes(value *DataSourceScopes)() { +func (m *SourceCollection) SetDataSourceScopes(value *SourceCollection_dataSourceScopes)() { err := m.GetBackingStore().Set("dataSourceScopes", value) if err != nil { panic(err) @@ -523,7 +523,7 @@ type SourceCollectionable interface { GetCreatedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCustodianSources()([]DataSourceable) - GetDataSourceScopes()(*DataSourceScopes) + GetDataSourceScopes()(*SourceCollection_dataSourceScopes) GetDescription()(*string) GetDisplayName()(*string) GetLastEstimateStatisticsOperation()(EstimateStatisticsOperationable) @@ -536,7 +536,7 @@ type SourceCollectionable interface { SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCustodianSources(value []DataSourceable)() - SetDataSourceScopes(value *DataSourceScopes)() + SetDataSourceScopes(value *SourceCollection_dataSourceScopes)() SetDescription(value *string)() SetDisplayName(value *string)() SetLastEstimateStatisticsOperation(value EstimateStatisticsOperationable)() diff --git a/models/ediscovery/source_collection_data_source_scopes.go b/models/ediscovery/source_collection_data_source_scopes.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ediscovery/source_type.go b/models/ediscovery/source_type.go deleted file mode 100644 index 85f6f6f8cca..00000000000 --- a/models/ediscovery/source_type.go +++ /dev/null @@ -1,47 +0,0 @@ -package ediscovery -import ( - "errors" - "strings" -) -// -type SourceType int - -const ( - MAILBOX_SOURCETYPE SourceType = iota - SITE_SOURCETYPE -) - -func (i SourceType) String() string { - var values []string - for p := SourceType(1); p <= SITE_SOURCETYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"mailbox", "site"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseSourceType(v string) (any, error) { - var result SourceType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "mailbox": - result |= MAILBOX_SOURCETYPE - case "site": - result |= SITE_SOURCETYPE - default: - return 0, errors.New("Unknown SourceType value: " + v) - } - } - return &result, nil -} -func SerializeSourceType(values []SourceType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SourceType) isMultiValue() bool { - return true -} diff --git a/models/ediscovery/tag.go b/models/ediscovery/tag.go index 5cad4d26431..618ba9e95ab 100644 --- a/models/ediscovery/tag.go +++ b/models/ediscovery/tag.go @@ -22,13 +22,13 @@ func CreateTagFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef return NewTag(), nil } // GetChildSelectability gets the childSelectability property value. Indicates whether a single or multiple child tags can be associated with a document. Possible values are: One, Many. This value controls whether the UX presents the tags as checkboxes or a radio button group. -func (m *Tag) GetChildSelectability()(*ChildSelectability) { +func (m *Tag) GetChildSelectability()(*Tag_childSelectability) { val, err := m.GetBackingStore().Get("childSelectability") if err != nil { panic(err) } if val != nil { - return val.(*ChildSelectability) + return val.(*Tag_childSelectability) } return nil } @@ -80,12 +80,12 @@ func (m *Tag) GetDisplayName()(*string) { func (m *Tag) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["childSelectability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseChildSelectability) + val, err := n.GetEnumValue(ParseTag_childSelectability) if err != nil { return err } if val != nil { - m.SetChildSelectability(val.(*ChildSelectability)) + m.SetChildSelectability(val.(*Tag_childSelectability)) } return nil } @@ -237,7 +237,7 @@ func (m *Tag) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493 return nil } // SetChildSelectability sets the childSelectability property value. Indicates whether a single or multiple child tags can be associated with a document. Possible values are: One, Many. This value controls whether the UX presents the tags as checkboxes or a radio button group. -func (m *Tag) SetChildSelectability(value *ChildSelectability)() { +func (m *Tag) SetChildSelectability(value *Tag_childSelectability)() { err := m.GetBackingStore().Set("childSelectability", value) if err != nil { panic(err) @@ -289,14 +289,14 @@ func (m *Tag) SetParent(value Tagable)() { type Tagable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetChildSelectability()(*ChildSelectability) + GetChildSelectability()(*Tag_childSelectability) GetChildTags()([]Tagable) GetCreatedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetDescription()(*string) GetDisplayName()(*string) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetParent()(Tagable) - SetChildSelectability(value *ChildSelectability)() + SetChildSelectability(value *Tag_childSelectability)() SetChildTags(value []Tagable)() SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetDescription(value *string)() diff --git a/models/ediscovery/tag_child_selectability.go b/models/ediscovery/tag_child_selectability.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ediscovery/unified_group_source.go b/models/ediscovery/unified_group_source.go index e2077913597..50cdeade0c0 100644 --- a/models/ediscovery/unified_group_source.go +++ b/models/ediscovery/unified_group_source.go @@ -36,12 +36,12 @@ func (m *UnifiedGroupSource) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["includedSources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSourceType) + val, err := n.GetEnumValue(ParseUnifiedGroupSource_includedSources) if err != nil { return err } if val != nil { - m.SetIncludedSources(val.(*SourceType)) + m.SetIncludedSources(val.(*UnifiedGroupSource_includedSources)) } return nil } @@ -59,13 +59,13 @@ func (m *UnifiedGroupSource) GetGroup()(ie233ee762e29b4ba6970aa2a2efce4b7fde1169 return nil } // GetIncludedSources gets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site. -func (m *UnifiedGroupSource) GetIncludedSources()(*SourceType) { +func (m *UnifiedGroupSource) GetIncludedSources()(*UnifiedGroupSource_includedSources) { val, err := m.GetBackingStore().Get("includedSources") if err != nil { panic(err) } if val != nil { - return val.(*SourceType) + return val.(*UnifiedGroupSource_includedSources) } return nil } @@ -98,7 +98,7 @@ func (m *UnifiedGroupSource) SetGroup(value ie233ee762e29b4ba6970aa2a2efce4b7fde } } // SetIncludedSources sets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site. -func (m *UnifiedGroupSource) SetIncludedSources(value *SourceType)() { +func (m *UnifiedGroupSource) SetIncludedSources(value *UnifiedGroupSource_includedSources)() { err := m.GetBackingStore().Set("includedSources", value) if err != nil { panic(err) @@ -109,7 +109,7 @@ type UnifiedGroupSourceable interface { DataSourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroup()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable) - GetIncludedSources()(*SourceType) + GetIncludedSources()(*UnifiedGroupSource_includedSources) SetGroup(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable)() - SetIncludedSources(value *SourceType)() + SetIncludedSources(value *UnifiedGroupSource_includedSources)() } diff --git a/models/ediscovery/unified_group_source_included_sources.go b/models/ediscovery/unified_group_source_included_sources.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ediscovery/user_source.go b/models/ediscovery/user_source.go index e9d0f6f6f72..b0f88e75b55 100644 --- a/models/ediscovery/user_source.go +++ b/models/ediscovery/user_source.go @@ -46,12 +46,12 @@ func (m *UserSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["includedSources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSourceType) + val, err := n.GetEnumValue(ParseUserSource_includedSources) if err != nil { return err } if val != nil { - m.SetIncludedSources(val.(*SourceType)) + m.SetIncludedSources(val.(*UserSource_includedSources)) } return nil } @@ -68,13 +68,13 @@ func (m *UserSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return res } // GetIncludedSources gets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site. -func (m *UserSource) GetIncludedSources()(*SourceType) { +func (m *UserSource) GetIncludedSources()(*UserSource_includedSources) { val, err := m.GetBackingStore().Get("includedSources") if err != nil { panic(err) } if val != nil { - return val.(*SourceType) + return val.(*UserSource_includedSources) } return nil } @@ -124,7 +124,7 @@ func (m *UserSource) SetEmail(value *string)() { } } // SetIncludedSources sets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site. -func (m *UserSource) SetIncludedSources(value *SourceType)() { +func (m *UserSource) SetIncludedSources(value *UserSource_includedSources)() { err := m.GetBackingStore().Set("includedSources", value) if err != nil { panic(err) @@ -142,9 +142,9 @@ type UserSourceable interface { DataSourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEmail()(*string) - GetIncludedSources()(*SourceType) + GetIncludedSources()(*UserSource_includedSources) GetSiteWebUrl()(*string) SetEmail(value *string)() - SetIncludedSources(value *SourceType)() + SetIncludedSources(value *UserSource_includedSources)() SetSiteWebUrl(value *string)() } diff --git a/models/ediscovery/user_source_included_sources.go b/models/ediscovery/user_source_included_sources.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_add_to_calendar_options.go b/models/education_add_to_calendar_options.go deleted file mode 100644 index b8f47a4fb7d..00000000000 --- a/models/education_add_to_calendar_options.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationAddToCalendarOptions int - -const ( - NONE_EDUCATIONADDTOCALENDAROPTIONS EducationAddToCalendarOptions = iota - STUDENTSANDPUBLISHER_EDUCATIONADDTOCALENDAROPTIONS - STUDENTSANDTEAMOWNERS_EDUCATIONADDTOCALENDAROPTIONS - UNKNOWNFUTUREVALUE_EDUCATIONADDTOCALENDAROPTIONS - STUDENTSONLY_EDUCATIONADDTOCALENDAROPTIONS -) - -func (i EducationAddToCalendarOptions) String() string { - return []string{"none", "studentsAndPublisher", "studentsAndTeamOwners", "unknownFutureValue", "studentsOnly"}[i] -} -func ParseEducationAddToCalendarOptions(v string) (any, error) { - result := NONE_EDUCATIONADDTOCALENDAROPTIONS - switch v { - case "none": - result = NONE_EDUCATIONADDTOCALENDAROPTIONS - case "studentsAndPublisher": - result = STUDENTSANDPUBLISHER_EDUCATIONADDTOCALENDAROPTIONS - case "studentsAndTeamOwners": - result = STUDENTSANDTEAMOWNERS_EDUCATIONADDTOCALENDAROPTIONS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONADDTOCALENDAROPTIONS - case "studentsOnly": - result = STUDENTSONLY_EDUCATIONADDTOCALENDAROPTIONS - default: - return 0, errors.New("Unknown EducationAddToCalendarOptions value: " + v) - } - return &result, nil -} -func SerializeEducationAddToCalendarOptions(values []EducationAddToCalendarOptions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationAddToCalendarOptions) isMultiValue() bool { - return false -} diff --git a/models/education_added_student_action.go b/models/education_added_student_action.go deleted file mode 100644 index ee2fdd17de7..00000000000 --- a/models/education_added_student_action.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationAddedStudentAction int - -const ( - NONE_EDUCATIONADDEDSTUDENTACTION EducationAddedStudentAction = iota - ASSIGNIFOPEN_EDUCATIONADDEDSTUDENTACTION - UNKNOWNFUTUREVALUE_EDUCATIONADDEDSTUDENTACTION -) - -func (i EducationAddedStudentAction) String() string { - return []string{"none", "assignIfOpen", "unknownFutureValue"}[i] -} -func ParseEducationAddedStudentAction(v string) (any, error) { - result := NONE_EDUCATIONADDEDSTUDENTACTION - switch v { - case "none": - result = NONE_EDUCATIONADDEDSTUDENTACTION - case "assignIfOpen": - result = ASSIGNIFOPEN_EDUCATIONADDEDSTUDENTACTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONADDEDSTUDENTACTION - default: - return 0, errors.New("Unknown EducationAddedStudentAction value: " + v) - } - return &result, nil -} -func SerializeEducationAddedStudentAction(values []EducationAddedStudentAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationAddedStudentAction) isMultiValue() bool { - return false -} diff --git a/models/education_assignment.go b/models/education_assignment.go index f9bfdef47bf..3b490bfdf58 100644 --- a/models/education_assignment.go +++ b/models/education_assignment.go @@ -21,24 +21,24 @@ func CreateEducationAssignmentFromDiscriminatorValue(parseNode i878a80d2330e89d2 return NewEducationAssignment(), nil } // GetAddedStudentAction gets the addedStudentAction property value. Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none. Supported values are: none, assignIfOpen. For example, a teacher can use assignIfOpen to indicate that an assignment should be assigned to any new student who joins the class while the assignment is still open, and none to indicate that an assignment should not be assigned to new students. -func (m *EducationAssignment) GetAddedStudentAction()(*EducationAddedStudentAction) { +func (m *EducationAssignment) GetAddedStudentAction()(*EducationAssignment_addedStudentAction) { val, err := m.GetBackingStore().Get("addedStudentAction") if err != nil { panic(err) } if val != nil { - return val.(*EducationAddedStudentAction) + return val.(*EducationAssignment_addedStudentAction) } return nil } // GetAddToCalendarAction gets the addToCalendarAction property value. Optional field to control the assignment behavior for adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: studentsOnly. The default value is none. -func (m *EducationAssignment) GetAddToCalendarAction()(*EducationAddToCalendarOptions) { +func (m *EducationAssignment) GetAddToCalendarAction()(*EducationAssignment_addToCalendarAction) { val, err := m.GetBackingStore().Get("addToCalendarAction") if err != nil { panic(err) } if val != nil { - return val.(*EducationAddToCalendarOptions) + return val.(*EducationAssignment_addToCalendarAction) } return nil } @@ -189,22 +189,22 @@ func (m *EducationAssignment) GetFeedbackResourcesFolderUrl()(*string) { func (m *EducationAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["addedStudentAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationAddedStudentAction) + val, err := n.GetEnumValue(ParseEducationAssignment_addedStudentAction) if err != nil { return err } if val != nil { - m.SetAddedStudentAction(val.(*EducationAddedStudentAction)) + m.SetAddedStudentAction(val.(*EducationAssignment_addedStudentAction)) } return nil } res["addToCalendarAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationAddToCalendarOptions) + val, err := n.GetEnumValue(ParseEducationAssignment_addToCalendarAction) if err != nil { return err } if val != nil { - m.SetAddToCalendarAction(val.(*EducationAddToCalendarOptions)) + m.SetAddToCalendarAction(val.(*EducationAssignment_addToCalendarAction)) } return nil } @@ -451,12 +451,12 @@ func (m *EducationAssignment) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationAssignmentStatus) + val, err := n.GetEnumValue(ParseEducationAssignment_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*EducationAssignmentStatus)) + m.SetStatus(val.(*EducationAssignment_status)) } return nil } @@ -599,13 +599,13 @@ func (m *EducationAssignment) GetRubric()(EducationRubricable) { return nil } // GetStatus gets the status property value. Status of the Assignment. You can not PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue and inactive. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive. -func (m *EducationAssignment) GetStatus()(*EducationAssignmentStatus) { +func (m *EducationAssignment) GetStatus()(*EducationAssignment_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*EducationAssignmentStatus) + return val.(*EducationAssignment_status) } return nil } @@ -768,14 +768,14 @@ func (m *EducationAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef return nil } // SetAddedStudentAction sets the addedStudentAction property value. Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none. Supported values are: none, assignIfOpen. For example, a teacher can use assignIfOpen to indicate that an assignment should be assigned to any new student who joins the class while the assignment is still open, and none to indicate that an assignment should not be assigned to new students. -func (m *EducationAssignment) SetAddedStudentAction(value *EducationAddedStudentAction)() { +func (m *EducationAssignment) SetAddedStudentAction(value *EducationAssignment_addedStudentAction)() { err := m.GetBackingStore().Set("addedStudentAction", value) if err != nil { panic(err) } } // SetAddToCalendarAction sets the addToCalendarAction property value. Optional field to control the assignment behavior for adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: studentsOnly. The default value is none. -func (m *EducationAssignment) SetAddToCalendarAction(value *EducationAddToCalendarOptions)() { +func (m *EducationAssignment) SetAddToCalendarAction(value *EducationAssignment_addToCalendarAction)() { err := m.GetBackingStore().Set("addToCalendarAction", value) if err != nil { panic(err) @@ -943,7 +943,7 @@ func (m *EducationAssignment) SetRubric(value EducationRubricable)() { } } // SetStatus sets the status property value. Status of the Assignment. You can not PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue and inactive. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive. -func (m *EducationAssignment) SetStatus(value *EducationAssignmentStatus)() { +func (m *EducationAssignment) SetStatus(value *EducationAssignment_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -967,8 +967,8 @@ func (m *EducationAssignment) SetWebUrl(value *string)() { type EducationAssignmentable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAddedStudentAction()(*EducationAddedStudentAction) - GetAddToCalendarAction()(*EducationAddToCalendarOptions) + GetAddedStudentAction()(*EducationAssignment_addedStudentAction) + GetAddToCalendarAction()(*EducationAssignment_addToCalendarAction) GetAllowLateSubmissions()(*bool) GetAllowStudentsToAddResourcesToSubmission()(*bool) GetAssignDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -992,11 +992,11 @@ type EducationAssignmentable interface { GetResources()([]EducationAssignmentResourceable) GetResourcesFolderUrl()(*string) GetRubric()(EducationRubricable) - GetStatus()(*EducationAssignmentStatus) + GetStatus()(*EducationAssignment_status) GetSubmissions()([]EducationSubmissionable) GetWebUrl()(*string) - SetAddedStudentAction(value *EducationAddedStudentAction)() - SetAddToCalendarAction(value *EducationAddToCalendarOptions)() + SetAddedStudentAction(value *EducationAssignment_addedStudentAction)() + SetAddToCalendarAction(value *EducationAssignment_addToCalendarAction)() SetAllowLateSubmissions(value *bool)() SetAllowStudentsToAddResourcesToSubmission(value *bool)() SetAssignDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -1020,7 +1020,7 @@ type EducationAssignmentable interface { SetResources(value []EducationAssignmentResourceable)() SetResourcesFolderUrl(value *string)() SetRubric(value EducationRubricable)() - SetStatus(value *EducationAssignmentStatus)() + SetStatus(value *EducationAssignment_status)() SetSubmissions(value []EducationSubmissionable)() SetWebUrl(value *string)() } diff --git a/models/education_assignment_add_to_calendar_action.go b/models/education_assignment_add_to_calendar_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_assignment_added_student_action.go b/models/education_assignment_added_student_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_assignment_defaults.go b/models/education_assignment_defaults.go index 25f8c2a86d8..5e56ed8f73c 100644 --- a/models/education_assignment_defaults.go +++ b/models/education_assignment_defaults.go @@ -20,24 +20,24 @@ func CreateEducationAssignmentDefaultsFromDiscriminatorValue(parseNode i878a80d2 return NewEducationAssignmentDefaults(), nil } // GetAddedStudentAction gets the addedStudentAction property value. Class-level default behavior for handling students who are added after the assignment is published. Possible values are: none, assignIfOpen. -func (m *EducationAssignmentDefaults) GetAddedStudentAction()(*EducationAddedStudentAction) { +func (m *EducationAssignmentDefaults) GetAddedStudentAction()(*EducationAssignmentDefaults_addedStudentAction) { val, err := m.GetBackingStore().Get("addedStudentAction") if err != nil { panic(err) } if val != nil { - return val.(*EducationAddedStudentAction) + return val.(*EducationAssignmentDefaults_addedStudentAction) } return nil } // GetAddToCalendarAction gets the addToCalendarAction property value. Optional field to control adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: studentsOnly. The default value is none. -func (m *EducationAssignmentDefaults) GetAddToCalendarAction()(*EducationAddToCalendarOptions) { +func (m *EducationAssignmentDefaults) GetAddToCalendarAction()(*EducationAssignmentDefaults_addToCalendarAction) { val, err := m.GetBackingStore().Get("addToCalendarAction") if err != nil { panic(err) } if val != nil { - return val.(*EducationAddToCalendarOptions) + return val.(*EducationAssignmentDefaults_addToCalendarAction) } return nil } @@ -56,22 +56,22 @@ func (m *EducationAssignmentDefaults) GetDueTime()(*i878a80d2330e89d26896388a3f4 func (m *EducationAssignmentDefaults) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["addedStudentAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationAddedStudentAction) + val, err := n.GetEnumValue(ParseEducationAssignmentDefaults_addedStudentAction) if err != nil { return err } if val != nil { - m.SetAddedStudentAction(val.(*EducationAddedStudentAction)) + m.SetAddedStudentAction(val.(*EducationAssignmentDefaults_addedStudentAction)) } return nil } res["addToCalendarAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationAddToCalendarOptions) + val, err := n.GetEnumValue(ParseEducationAssignmentDefaults_addToCalendarAction) if err != nil { return err } if val != nil { - m.SetAddToCalendarAction(val.(*EducationAddToCalendarOptions)) + m.SetAddToCalendarAction(val.(*EducationAssignmentDefaults_addToCalendarAction)) } return nil } @@ -143,14 +143,14 @@ func (m *EducationAssignmentDefaults) Serialize(writer i878a80d2330e89d26896388a return nil } // SetAddedStudentAction sets the addedStudentAction property value. Class-level default behavior for handling students who are added after the assignment is published. Possible values are: none, assignIfOpen. -func (m *EducationAssignmentDefaults) SetAddedStudentAction(value *EducationAddedStudentAction)() { +func (m *EducationAssignmentDefaults) SetAddedStudentAction(value *EducationAssignmentDefaults_addedStudentAction)() { err := m.GetBackingStore().Set("addedStudentAction", value) if err != nil { panic(err) } } // SetAddToCalendarAction sets the addToCalendarAction property value. Optional field to control adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: studentsOnly. The default value is none. -func (m *EducationAssignmentDefaults) SetAddToCalendarAction(value *EducationAddToCalendarOptions)() { +func (m *EducationAssignmentDefaults) SetAddToCalendarAction(value *EducationAssignmentDefaults_addToCalendarAction)() { err := m.GetBackingStore().Set("addToCalendarAction", value) if err != nil { panic(err) @@ -174,12 +174,12 @@ func (m *EducationAssignmentDefaults) SetNotificationChannelUrl(value *string)() type EducationAssignmentDefaultsable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAddedStudentAction()(*EducationAddedStudentAction) - GetAddToCalendarAction()(*EducationAddToCalendarOptions) + GetAddedStudentAction()(*EducationAssignmentDefaults_addedStudentAction) + GetAddToCalendarAction()(*EducationAssignmentDefaults_addToCalendarAction) GetDueTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) GetNotificationChannelUrl()(*string) - SetAddedStudentAction(value *EducationAddedStudentAction)() - SetAddToCalendarAction(value *EducationAddToCalendarOptions)() + SetAddedStudentAction(value *EducationAssignmentDefaults_addedStudentAction)() + SetAddToCalendarAction(value *EducationAssignmentDefaults_addToCalendarAction)() SetDueTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() SetNotificationChannelUrl(value *string)() } diff --git a/models/education_assignment_defaults_add_to_calendar_action.go b/models/education_assignment_defaults_add_to_calendar_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_assignment_defaults_added_student_action.go b/models/education_assignment_defaults_added_student_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_assignment_status.go b/models/education_assignment_status.go index fed4ec89ac4..e69de29bb2d 100644 --- a/models/education_assignment_status.go +++ b/models/education_assignment_status.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationAssignmentStatus int - -const ( - DRAFT_EDUCATIONASSIGNMENTSTATUS EducationAssignmentStatus = iota - PUBLISHED_EDUCATIONASSIGNMENTSTATUS - ASSIGNED_EDUCATIONASSIGNMENTSTATUS - UNKNOWNFUTUREVALUE_EDUCATIONASSIGNMENTSTATUS - INACTIVE_EDUCATIONASSIGNMENTSTATUS -) - -func (i EducationAssignmentStatus) String() string { - return []string{"draft", "published", "assigned", "unknownFutureValue", "inactive"}[i] -} -func ParseEducationAssignmentStatus(v string) (any, error) { - result := DRAFT_EDUCATIONASSIGNMENTSTATUS - switch v { - case "draft": - result = DRAFT_EDUCATIONASSIGNMENTSTATUS - case "published": - result = PUBLISHED_EDUCATIONASSIGNMENTSTATUS - case "assigned": - result = ASSIGNED_EDUCATIONASSIGNMENTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONASSIGNMENTSTATUS - case "inactive": - result = INACTIVE_EDUCATIONASSIGNMENTSTATUS - default: - return 0, errors.New("Unknown EducationAssignmentStatus value: " + v) - } - return &result, nil -} -func SerializeEducationAssignmentStatus(values []EducationAssignmentStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationAssignmentStatus) isMultiValue() bool { - return false -} diff --git a/models/education_class.go b/models/education_class.go index 640ff21bd0f..2bf4f0cc77d 100644 --- a/models/education_class.go +++ b/models/education_class.go @@ -141,13 +141,13 @@ func (m *EducationClass) GetExternalName()(*string) { return nil } // GetExternalSource gets the externalSource property value. The type of external source this resource was generated from (automatically determined from externalSourceDetail). Possible values are: sis, lms, or manual. -func (m *EducationClass) GetExternalSource()(*EducationExternalSource) { +func (m *EducationClass) GetExternalSource()(*EducationClass_externalSource) { val, err := m.GetBackingStore().Get("externalSource") if err != nil { panic(err) } if val != nil { - return val.(*EducationExternalSource) + return val.(*EducationClass_externalSource) } return nil } @@ -288,12 +288,12 @@ func (m *EducationClass) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["externalSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationExternalSource) + val, err := n.GetEnumValue(ParseEducationClass_externalSource) if err != nil { return err } if val != nil { - m.SetExternalSource(val.(*EducationExternalSource)) + m.SetExternalSource(val.(*EducationClass_externalSource)) } return nil } @@ -750,7 +750,7 @@ func (m *EducationClass) SetExternalName(value *string)() { } } // SetExternalSource sets the externalSource property value. The type of external source this resource was generated from (automatically determined from externalSourceDetail). Possible values are: sis, lms, or manual. -func (m *EducationClass) SetExternalSource(value *EducationExternalSource)() { +func (m *EducationClass) SetExternalSource(value *EducationClass_externalSource)() { err := m.GetBackingStore().Set("externalSource", value) if err != nil { panic(err) @@ -834,7 +834,7 @@ type EducationClassable interface { GetDisplayName()(*string) GetExternalId()(*string) GetExternalName()(*string) - GetExternalSource()(*EducationExternalSource) + GetExternalSource()(*EducationClass_externalSource) GetExternalSourceDetail()(*string) GetGrade()(*string) GetGroup()(Groupable) @@ -855,7 +855,7 @@ type EducationClassable interface { SetDisplayName(value *string)() SetExternalId(value *string)() SetExternalName(value *string)() - SetExternalSource(value *EducationExternalSource)() + SetExternalSource(value *EducationClass_externalSource)() SetExternalSourceDetail(value *string)() SetGrade(value *string)() SetGroup(value Groupable)() diff --git a/models/education_class_external_source.go b/models/education_class_external_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_external_source.go b/models/education_external_source.go deleted file mode 100644 index e8d44cad300..00000000000 --- a/models/education_external_source.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationExternalSource int - -const ( - SIS_EDUCATIONEXTERNALSOURCE EducationExternalSource = iota - MANUAL_EDUCATIONEXTERNALSOURCE - UNKNOWNFUTUREVALUE_EDUCATIONEXTERNALSOURCE - LMS_EDUCATIONEXTERNALSOURCE -) - -func (i EducationExternalSource) String() string { - return []string{"sis", "manual", "unknownFutureValue", "lms"}[i] -} -func ParseEducationExternalSource(v string) (any, error) { - result := SIS_EDUCATIONEXTERNALSOURCE - switch v { - case "sis": - result = SIS_EDUCATIONEXTERNALSOURCE - case "manual": - result = MANUAL_EDUCATIONEXTERNALSOURCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONEXTERNALSOURCE - case "lms": - result = LMS_EDUCATIONEXTERNALSOURCE - default: - return 0, errors.New("Unknown EducationExternalSource value: " + v) - } - return &result, nil -} -func SerializeEducationExternalSource(values []EducationExternalSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationExternalSource) isMultiValue() bool { - return false -} diff --git a/models/education_feedback_resource_outcome.go b/models/education_feedback_resource_outcome.go index dd05694648e..150533f42c3 100644 --- a/models/education_feedback_resource_outcome.go +++ b/models/education_feedback_resource_outcome.go @@ -46,25 +46,25 @@ func (m *EducationFeedbackResourceOutcome) GetFieldDeserializers()(map[string]fu return nil } res["resourceStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationFeedbackResourceOutcomeStatus) + val, err := n.GetEnumValue(ParseEducationFeedbackResourceOutcome_resourceStatus) if err != nil { return err } if val != nil { - m.SetResourceStatus(val.(*EducationFeedbackResourceOutcomeStatus)) + m.SetResourceStatus(val.(*EducationFeedbackResourceOutcome_resourceStatus)) } return nil } return res } // GetResourceStatus gets the resourceStatus property value. The status of the feedback resource. The possible values are: notPublished, pendingPublish, published, failedPublish, unknownFutureValue. -func (m *EducationFeedbackResourceOutcome) GetResourceStatus()(*EducationFeedbackResourceOutcomeStatus) { +func (m *EducationFeedbackResourceOutcome) GetResourceStatus()(*EducationFeedbackResourceOutcome_resourceStatus) { val, err := m.GetBackingStore().Get("resourceStatus") if err != nil { panic(err) } if val != nil { - return val.(*EducationFeedbackResourceOutcomeStatus) + return val.(*EducationFeedbackResourceOutcome_resourceStatus) } return nil } @@ -97,7 +97,7 @@ func (m *EducationFeedbackResourceOutcome) SetFeedbackResource(value EducationRe } } // SetResourceStatus sets the resourceStatus property value. The status of the feedback resource. The possible values are: notPublished, pendingPublish, published, failedPublish, unknownFutureValue. -func (m *EducationFeedbackResourceOutcome) SetResourceStatus(value *EducationFeedbackResourceOutcomeStatus)() { +func (m *EducationFeedbackResourceOutcome) SetResourceStatus(value *EducationFeedbackResourceOutcome_resourceStatus)() { err := m.GetBackingStore().Set("resourceStatus", value) if err != nil { panic(err) @@ -108,7 +108,7 @@ type EducationFeedbackResourceOutcomeable interface { EducationOutcomeable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFeedbackResource()(EducationResourceable) - GetResourceStatus()(*EducationFeedbackResourceOutcomeStatus) + GetResourceStatus()(*EducationFeedbackResourceOutcome_resourceStatus) SetFeedbackResource(value EducationResourceable)() - SetResourceStatus(value *EducationFeedbackResourceOutcomeStatus)() + SetResourceStatus(value *EducationFeedbackResourceOutcome_resourceStatus)() } diff --git a/models/education_feedback_resource_outcome_resource_status.go b/models/education_feedback_resource_outcome_resource_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_feedback_resource_outcome_status.go b/models/education_feedback_resource_outcome_status.go deleted file mode 100644 index eaa2fdba477..00000000000 --- a/models/education_feedback_resource_outcome_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationFeedbackResourceOutcomeStatus int - -const ( - NOTPUBLISHED_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS EducationFeedbackResourceOutcomeStatus = iota - PENDINGPUBLISH_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - PUBLISHED_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - FAILEDPUBLISH_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - UNKNOWNFUTUREVALUE_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS -) - -func (i EducationFeedbackResourceOutcomeStatus) String() string { - return []string{"notPublished", "pendingPublish", "published", "failedPublish", "unknownFutureValue"}[i] -} -func ParseEducationFeedbackResourceOutcomeStatus(v string) (any, error) { - result := NOTPUBLISHED_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - switch v { - case "notPublished": - result = NOTPUBLISHED_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - case "pendingPublish": - result = PENDINGPUBLISH_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - case "published": - result = PUBLISHED_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - case "failedPublish": - result = FAILEDPUBLISH_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS - default: - return 0, errors.New("Unknown EducationFeedbackResourceOutcomeStatus value: " + v) - } - return &result, nil -} -func SerializeEducationFeedbackResourceOutcomeStatus(values []EducationFeedbackResourceOutcomeStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationFeedbackResourceOutcomeStatus) isMultiValue() bool { - return false -} diff --git a/models/education_gender.go b/models/education_gender.go deleted file mode 100644 index 0d1cb22624e..00000000000 --- a/models/education_gender.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationGender int - -const ( - FEMALE_EDUCATIONGENDER EducationGender = iota - MALE_EDUCATIONGENDER - OTHER_EDUCATIONGENDER - UNKNOWNFUTUREVALUE_EDUCATIONGENDER -) - -func (i EducationGender) String() string { - return []string{"female", "male", "other", "unknownFutureValue"}[i] -} -func ParseEducationGender(v string) (any, error) { - result := FEMALE_EDUCATIONGENDER - switch v { - case "female": - result = FEMALE_EDUCATIONGENDER - case "male": - result = MALE_EDUCATIONGENDER - case "other": - result = OTHER_EDUCATIONGENDER - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONGENDER - default: - return 0, errors.New("Unknown EducationGender value: " + v) - } - return &result, nil -} -func SerializeEducationGender(values []EducationGender) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationGender) isMultiValue() bool { - return false -} diff --git a/models/education_item_body.go b/models/education_item_body.go index d0f8e811da9..1ea32762009 100644 --- a/models/education_item_body.go +++ b/models/education_item_body.go @@ -50,13 +50,13 @@ func (m *EducationItemBody) GetContent()(*string) { return nil } // GetContentType gets the contentType property value. The contentType property -func (m *EducationItemBody) GetContentType()(*BodyType) { +func (m *EducationItemBody) GetContentType()(*EducationItemBody_contentType) { val, err := m.GetBackingStore().Get("contentType") if err != nil { panic(err) } if val != nil { - return val.(*BodyType) + return val.(*EducationItemBody_contentType) } return nil } @@ -74,12 +74,12 @@ func (m *EducationItemBody) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["contentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBodyType) + val, err := n.GetEnumValue(ParseEducationItemBody_contentType) if err != nil { return err } if val != nil { - m.SetContentType(val.(*BodyType)) + m.SetContentType(val.(*EducationItemBody_contentType)) } return nil } @@ -154,7 +154,7 @@ func (m *EducationItemBody) SetContent(value *string)() { } } // SetContentType sets the contentType property value. The contentType property -func (m *EducationItemBody) SetContentType(value *BodyType)() { +func (m *EducationItemBody) SetContentType(value *EducationItemBody_contentType)() { err := m.GetBackingStore().Set("contentType", value) if err != nil { panic(err) @@ -174,10 +174,10 @@ type EducationItemBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContent()(*string) - GetContentType()(*BodyType) + GetContentType()(*EducationItemBody_contentType) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContent(value *string)() - SetContentType(value *BodyType)() + SetContentType(value *EducationItemBody_contentType)() SetOdataType(value *string)() } diff --git a/models/education_item_body_content_type.go b/models/education_item_body_content_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_module.go b/models/education_module.go index eeb74555e4c..7f3a763d4a2 100644 --- a/models/education_module.go +++ b/models/education_module.go @@ -164,12 +164,12 @@ func (m *EducationModule) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationModuleStatus) + val, err := n.GetEnumValue(ParseEducationModule_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*EducationModuleStatus)) + m.SetStatus(val.(*EducationModule_status)) } return nil } @@ -231,13 +231,13 @@ func (m *EducationModule) GetResourcesFolderUrl()(*string) { return nil } // GetStatus gets the status property value. Status of the module. You can't use a PATCH operation to update this value. Possible values are: draft and published. -func (m *EducationModule) GetStatus()(*EducationModuleStatus) { +func (m *EducationModule) GetStatus()(*EducationModule_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*EducationModuleStatus) + return val.(*EducationModule_status) } return nil } @@ -343,7 +343,7 @@ func (m *EducationModule) SetResourcesFolderUrl(value *string)() { } } // SetStatus sets the status property value. Status of the module. You can't use a PATCH operation to update this value. Possible values are: draft and published. -func (m *EducationModule) SetStatus(value *EducationModuleStatus)() { +func (m *EducationModule) SetStatus(value *EducationModule_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -362,7 +362,7 @@ type EducationModuleable interface { GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetResources()([]EducationModuleResourceable) GetResourcesFolderUrl()(*string) - GetStatus()(*EducationModuleStatus) + GetStatus()(*EducationModule_status) SetCreatedBy(value IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() @@ -372,5 +372,5 @@ type EducationModuleable interface { SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetResources(value []EducationModuleResourceable)() SetResourcesFolderUrl(value *string)() - SetStatus(value *EducationModuleStatus)() + SetStatus(value *EducationModule_status)() } diff --git a/models/education_module_status.go b/models/education_module_status.go index a31e7948a5a..e69de29bb2d 100644 --- a/models/education_module_status.go +++ b/models/education_module_status.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationModuleStatus int - -const ( - DRAFT_EDUCATIONMODULESTATUS EducationModuleStatus = iota - PUBLISHED_EDUCATIONMODULESTATUS - UNKNOWNFUTUREVALUE_EDUCATIONMODULESTATUS -) - -func (i EducationModuleStatus) String() string { - return []string{"draft", "published", "unknownFutureValue"}[i] -} -func ParseEducationModuleStatus(v string) (any, error) { - result := DRAFT_EDUCATIONMODULESTATUS - switch v { - case "draft": - result = DRAFT_EDUCATIONMODULESTATUS - case "published": - result = PUBLISHED_EDUCATIONMODULESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONMODULESTATUS - default: - return 0, errors.New("Unknown EducationModuleStatus value: " + v) - } - return &result, nil -} -func SerializeEducationModuleStatus(values []EducationModuleStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationModuleStatus) isMultiValue() bool { - return false -} diff --git a/models/education_organization.go b/models/education_organization.go index a00f61113d3..f08bbc0ffa0 100644 --- a/models/education_organization.go +++ b/models/education_organization.go @@ -60,13 +60,13 @@ func (m *EducationOrganization) GetDisplayName()(*string) { return nil } // GetExternalSource gets the externalSource property value. Where this user was created from. Possible values are: sis, lms, or manual. -func (m *EducationOrganization) GetExternalSource()(*EducationExternalSource) { +func (m *EducationOrganization) GetExternalSource()(*EducationOrganization_externalSource) { val, err := m.GetBackingStore().Get("externalSource") if err != nil { panic(err) } if val != nil { - return val.(*EducationExternalSource) + return val.(*EducationOrganization_externalSource) } return nil } @@ -105,12 +105,12 @@ func (m *EducationOrganization) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["externalSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationExternalSource) + val, err := n.GetEnumValue(ParseEducationOrganization_externalSource) if err != nil { return err } if val != nil { - m.SetExternalSource(val.(*EducationExternalSource)) + m.SetExternalSource(val.(*EducationOrganization_externalSource)) } return nil } @@ -174,7 +174,7 @@ func (m *EducationOrganization) SetDisplayName(value *string)() { } } // SetExternalSource sets the externalSource property value. Where this user was created from. Possible values are: sis, lms, or manual. -func (m *EducationOrganization) SetExternalSource(value *EducationExternalSource)() { +func (m *EducationOrganization) SetExternalSource(value *EducationOrganization_externalSource)() { err := m.GetBackingStore().Set("externalSource", value) if err != nil { panic(err) @@ -193,10 +193,10 @@ type EducationOrganizationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDescription()(*string) GetDisplayName()(*string) - GetExternalSource()(*EducationExternalSource) + GetExternalSource()(*EducationOrganization_externalSource) GetExternalSourceDetail()(*string) SetDescription(value *string)() SetDisplayName(value *string)() - SetExternalSource(value *EducationExternalSource)() + SetExternalSource(value *EducationOrganization_externalSource)() SetExternalSourceDetail(value *string)() } diff --git a/models/education_organization_external_source.go b/models/education_organization_external_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_student.go b/models/education_student.go index 837b76f0044..384f201c2ec 100644 --- a/models/education_student.go +++ b/models/education_student.go @@ -84,12 +84,12 @@ func (m *EducationStudent) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["gender"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationGender) + val, err := n.GetEnumValue(ParseEducationStudent_gender) if err != nil { return err } if val != nil { - m.SetGender(val.(*EducationGender)) + m.SetGender(val.(*EducationStudent_gender)) } return nil } @@ -136,13 +136,13 @@ func (m *EducationStudent) GetFieldDeserializers()(map[string]func(i878a80d2330e return res } // GetGender gets the gender property value. Possible values are: female, male, other. -func (m *EducationStudent) GetGender()(*EducationGender) { +func (m *EducationStudent) GetGender()(*EducationStudent_gender) { val, err := m.GetBackingStore().Get("gender") if err != nil { panic(err) } if val != nil { - return val.(*EducationGender) + return val.(*EducationStudent_gender) } return nil } @@ -269,7 +269,7 @@ func (m *EducationStudent) SetExternalId(value *string)() { } } // SetGender sets the gender property value. Possible values are: female, male, other. -func (m *EducationStudent) SetGender(value *EducationGender)() { +func (m *EducationStudent) SetGender(value *EducationStudent_gender)() { err := m.GetBackingStore().Set("gender", value) if err != nil { panic(err) @@ -311,7 +311,7 @@ type EducationStudentable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetBirthDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetExternalId()(*string) - GetGender()(*EducationGender) + GetGender()(*EducationStudent_gender) GetGrade()(*string) GetGraduationYear()(*string) GetOdataType()(*string) @@ -319,7 +319,7 @@ type EducationStudentable interface { SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetBirthDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetExternalId(value *string)() - SetGender(value *EducationGender)() + SetGender(value *EducationStudent_gender)() SetGrade(value *string)() SetGraduationYear(value *string)() SetOdataType(value *string)() diff --git a/models/education_student_gender.go b/models/education_student_gender.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_submission.go b/models/education_submission.go index 6f229c07125..981f9f89c9e 100644 --- a/models/education_submission.go +++ b/models/education_submission.go @@ -158,12 +158,12 @@ func (m *EducationSubmission) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationSubmissionStatus) + val, err := n.GetEnumValue(ParseEducationSubmission_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*EducationSubmissionStatus)) + m.SetStatus(val.(*EducationSubmission_status)) } return nil } @@ -324,13 +324,13 @@ func (m *EducationSubmission) GetReturnedDateTime()(*i336074805fc853987abe6f7fe3 return nil } // GetStatus gets the status property value. Read-only. Possible values are: working, submitted, returned, unknownFutureValue and reassigned. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reassigned. -func (m *EducationSubmission) GetStatus()(*EducationSubmissionStatus) { +func (m *EducationSubmission) GetStatus()(*EducationSubmission_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*EducationSubmissionStatus) + return val.(*EducationSubmission_status) } return nil } @@ -521,7 +521,7 @@ func (m *EducationSubmission) SetReturnedDateTime(value *i336074805fc853987abe6f } } // SetStatus sets the status property value. Read-only. Possible values are: working, submitted, returned, unknownFutureValue and reassigned. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reassigned. -func (m *EducationSubmission) SetStatus(value *EducationSubmissionStatus)() { +func (m *EducationSubmission) SetStatus(value *EducationSubmission_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -583,7 +583,7 @@ type EducationSubmissionable interface { GetResourcesFolderUrl()(*string) GetReturnedBy()(IdentitySetable) GetReturnedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*EducationSubmissionStatus) + GetStatus()(*EducationSubmission_status) GetSubmittedBy()(IdentitySetable) GetSubmittedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSubmittedResources()([]EducationSubmissionResourceable) @@ -600,7 +600,7 @@ type EducationSubmissionable interface { SetResourcesFolderUrl(value *string)() SetReturnedBy(value IdentitySetable)() SetReturnedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *EducationSubmissionStatus)() + SetStatus(value *EducationSubmission_status)() SetSubmittedBy(value IdentitySetable)() SetSubmittedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSubmittedResources(value []EducationSubmissionResourceable)() diff --git a/models/education_submission_status.go b/models/education_submission_status.go index 754b279ea4b..e69de29bb2d 100644 --- a/models/education_submission_status.go +++ b/models/education_submission_status.go @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationSubmissionStatus int - -const ( - WORKING_EDUCATIONSUBMISSIONSTATUS EducationSubmissionStatus = iota - SUBMITTED_EDUCATIONSUBMISSIONSTATUS - RELEASED_EDUCATIONSUBMISSIONSTATUS - RETURNED_EDUCATIONSUBMISSIONSTATUS - UNKNOWNFUTUREVALUE_EDUCATIONSUBMISSIONSTATUS - REASSIGNED_EDUCATIONSUBMISSIONSTATUS - EXCUSED_EDUCATIONSUBMISSIONSTATUS -) - -func (i EducationSubmissionStatus) String() string { - return []string{"working", "submitted", "released", "returned", "unknownFutureValue", "reassigned", "excused"}[i] -} -func ParseEducationSubmissionStatus(v string) (any, error) { - result := WORKING_EDUCATIONSUBMISSIONSTATUS - switch v { - case "working": - result = WORKING_EDUCATIONSUBMISSIONSTATUS - case "submitted": - result = SUBMITTED_EDUCATIONSUBMISSIONSTATUS - case "released": - result = RELEASED_EDUCATIONSUBMISSIONSTATUS - case "returned": - result = RETURNED_EDUCATIONSUBMISSIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONSUBMISSIONSTATUS - case "reassigned": - result = REASSIGNED_EDUCATIONSUBMISSIONSTATUS - case "excused": - result = EXCUSED_EDUCATIONSUBMISSIONSTATUS - default: - return 0, errors.New("Unknown EducationSubmissionStatus value: " + v) - } - return &result, nil -} -func SerializeEducationSubmissionStatus(values []EducationSubmissionStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationSubmissionStatus) isMultiValue() bool { - return false -} diff --git a/models/education_synchronization_license_assignment.go b/models/education_synchronization_license_assignment.go index 00813e2c13f..6cbbb0ff7b4 100644 --- a/models/education_synchronization_license_assignment.go +++ b/models/education_synchronization_license_assignment.go @@ -35,13 +35,13 @@ func (m *EducationSynchronizationLicenseAssignment) GetAdditionalData()(map[stri return val.(map[string]any) } // GetAppliesTo gets the appliesTo property value. The user role type to assign to license. Possible values are: student, teacher, faculty. -func (m *EducationSynchronizationLicenseAssignment) GetAppliesTo()(*EducationUserRole) { +func (m *EducationSynchronizationLicenseAssignment) GetAppliesTo()(*EducationSynchronizationLicenseAssignment_appliesTo) { val, err := m.GetBackingStore().Get("appliesTo") if err != nil { panic(err) } if val != nil { - return val.(*EducationUserRole) + return val.(*EducationSynchronizationLicenseAssignment_appliesTo) } return nil } @@ -53,12 +53,12 @@ func (m *EducationSynchronizationLicenseAssignment) GetBackingStore()(ie8677ce2c func (m *EducationSynchronizationLicenseAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["appliesTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationUserRole) + val, err := n.GetEnumValue(ParseEducationSynchronizationLicenseAssignment_appliesTo) if err != nil { return err } if val != nil { - m.SetAppliesTo(val.(*EducationUserRole)) + m.SetAppliesTo(val.(*EducationSynchronizationLicenseAssignment_appliesTo)) } return nil } @@ -149,7 +149,7 @@ func (m *EducationSynchronizationLicenseAssignment) SetAdditionalData(value map[ } } // SetAppliesTo sets the appliesTo property value. The user role type to assign to license. Possible values are: student, teacher, faculty. -func (m *EducationSynchronizationLicenseAssignment) SetAppliesTo(value *EducationUserRole)() { +func (m *EducationSynchronizationLicenseAssignment) SetAppliesTo(value *EducationSynchronizationLicenseAssignment_appliesTo)() { err := m.GetBackingStore().Set("appliesTo", value) if err != nil { panic(err) @@ -178,11 +178,11 @@ type EducationSynchronizationLicenseAssignmentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAppliesTo()(*EducationUserRole) + GetAppliesTo()(*EducationSynchronizationLicenseAssignment_appliesTo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetSkuIds()([]string) - SetAppliesTo(value *EducationUserRole)() + SetAppliesTo(value *EducationSynchronizationLicenseAssignment_appliesTo)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetSkuIds(value []string)() diff --git a/models/education_synchronization_license_assignment_applies_to.go b/models/education_synchronization_license_assignment_applies_to.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_synchronization_profile.go b/models/education_synchronization_profile.go index c06887c3fe3..fbb81471d77 100644 --- a/models/education_synchronization_profile.go +++ b/models/education_synchronization_profile.go @@ -159,12 +159,12 @@ func (m *EducationSynchronizationProfile) GetFieldDeserializers()(map[string]fun return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationSynchronizationProfileState) + val, err := n.GetEnumValue(ParseEducationSynchronizationProfile_state) if err != nil { return err } if val != nil { - m.SetState(val.(*EducationSynchronizationProfileState)) + m.SetState(val.(*EducationSynchronizationProfile_state)) } return nil } @@ -215,13 +215,13 @@ func (m *EducationSynchronizationProfile) GetProfileStatus()(EducationSynchroniz return nil } // GetState gets the state property value. The state of the profile. Possible values are: provisioning, provisioned, provisioningFailed, deleting, deletionFailed. -func (m *EducationSynchronizationProfile) GetState()(*EducationSynchronizationProfileState) { +func (m *EducationSynchronizationProfile) GetState()(*EducationSynchronizationProfile_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*EducationSynchronizationProfileState) + return val.(*EducationSynchronizationProfile_state) } return nil } @@ -357,7 +357,7 @@ func (m *EducationSynchronizationProfile) SetProfileStatus(value EducationSynchr } } // SetState sets the state property value. The state of the profile. Possible values are: provisioning, provisioned, provisioningFailed, deleting, deletionFailed. -func (m *EducationSynchronizationProfile) SetState(value *EducationSynchronizationProfileState)() { +func (m *EducationSynchronizationProfile) SetState(value *EducationSynchronizationProfile_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -375,7 +375,7 @@ type EducationSynchronizationProfileable interface { GetIdentitySynchronizationConfiguration()(EducationIdentitySynchronizationConfigurationable) GetLicensesToAssign()([]EducationSynchronizationLicenseAssignmentable) GetProfileStatus()(EducationSynchronizationProfileStatusable) - GetState()(*EducationSynchronizationProfileState) + GetState()(*EducationSynchronizationProfile_state) SetDataProvider(value EducationSynchronizationDataProviderable)() SetDisplayName(value *string)() SetErrors(value []EducationSynchronizationErrorable)() @@ -384,5 +384,5 @@ type EducationSynchronizationProfileable interface { SetIdentitySynchronizationConfiguration(value EducationIdentitySynchronizationConfigurationable)() SetLicensesToAssign(value []EducationSynchronizationLicenseAssignmentable)() SetProfileStatus(value EducationSynchronizationProfileStatusable)() - SetState(value *EducationSynchronizationProfileState)() + SetState(value *EducationSynchronizationProfile_state)() } diff --git a/models/education_synchronization_profile_state.go b/models/education_synchronization_profile_state.go index 8b83ad40a73..e69de29bb2d 100644 --- a/models/education_synchronization_profile_state.go +++ b/models/education_synchronization_profile_state.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationSynchronizationProfileState int - -const ( - DELETING_EDUCATIONSYNCHRONIZATIONPROFILESTATE EducationSynchronizationProfileState = iota - DELETIONFAILED_EDUCATIONSYNCHRONIZATIONPROFILESTATE - PROVISIONINGFAILED_EDUCATIONSYNCHRONIZATIONPROFILESTATE - PROVISIONED_EDUCATIONSYNCHRONIZATIONPROFILESTATE - PROVISIONING_EDUCATIONSYNCHRONIZATIONPROFILESTATE - UNKNOWNFUTUREVALUE_EDUCATIONSYNCHRONIZATIONPROFILESTATE -) - -func (i EducationSynchronizationProfileState) String() string { - return []string{"deleting", "deletionFailed", "provisioningFailed", "provisioned", "provisioning", "unknownFutureValue"}[i] -} -func ParseEducationSynchronizationProfileState(v string) (any, error) { - result := DELETING_EDUCATIONSYNCHRONIZATIONPROFILESTATE - switch v { - case "deleting": - result = DELETING_EDUCATIONSYNCHRONIZATIONPROFILESTATE - case "deletionFailed": - result = DELETIONFAILED_EDUCATIONSYNCHRONIZATIONPROFILESTATE - case "provisioningFailed": - result = PROVISIONINGFAILED_EDUCATIONSYNCHRONIZATIONPROFILESTATE - case "provisioned": - result = PROVISIONED_EDUCATIONSYNCHRONIZATIONPROFILESTATE - case "provisioning": - result = PROVISIONING_EDUCATIONSYNCHRONIZATIONPROFILESTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONSYNCHRONIZATIONPROFILESTATE - default: - return 0, errors.New("Unknown EducationSynchronizationProfileState value: " + v) - } - return &result, nil -} -func SerializeEducationSynchronizationProfileState(values []EducationSynchronizationProfileState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationSynchronizationProfileState) isMultiValue() bool { - return false -} diff --git a/models/education_synchronization_profile_status.go b/models/education_synchronization_profile_status.go index aa8989813c2..7f7e11940ed 100644 --- a/models/education_synchronization_profile_status.go +++ b/models/education_synchronization_profile_status.go @@ -65,12 +65,12 @@ func (m *EducationSynchronizationProfileStatus) GetFieldDeserializers()(map[stri return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationSynchronizationStatus) + val, err := n.GetEnumValue(ParseEducationSynchronizationProfileStatus_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*EducationSynchronizationStatus)) + m.SetStatus(val.(*EducationSynchronizationProfileStatus_status)) } return nil } @@ -109,13 +109,13 @@ func (m *EducationSynchronizationProfileStatus) GetLastSynchronizationDateTime() return nil } // GetStatus gets the status property value. The status of a sync. The possible values are: paused, inProgress, success, error, validationError, quarantined, unknownFutureValue, extracting, validating. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: extracting, validating. -func (m *EducationSynchronizationProfileStatus) GetStatus()(*EducationSynchronizationStatus) { +func (m *EducationSynchronizationProfileStatus) GetStatus()(*EducationSynchronizationProfileStatus_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*EducationSynchronizationStatus) + return val.(*EducationSynchronizationProfileStatus_status) } return nil } @@ -191,7 +191,7 @@ func (m *EducationSynchronizationProfileStatus) SetLastSynchronizationDateTime(v } } // SetStatus sets the status property value. The status of a sync. The possible values are: paused, inProgress, success, error, validationError, quarantined, unknownFutureValue, extracting, validating. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: extracting, validating. -func (m *EducationSynchronizationProfileStatus) SetStatus(value *EducationSynchronizationStatus)() { +func (m *EducationSynchronizationProfileStatus) SetStatus(value *EducationSynchronizationProfileStatus_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -211,11 +211,11 @@ type EducationSynchronizationProfileStatusable interface { GetErrorCount()(*int64) GetLastActivityDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastSynchronizationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*EducationSynchronizationStatus) + GetStatus()(*EducationSynchronizationProfileStatus_status) GetStatusMessage()(*string) SetErrorCount(value *int64)() SetLastActivityDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastSynchronizationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *EducationSynchronizationStatus)() + SetStatus(value *EducationSynchronizationProfileStatus_status)() SetStatusMessage(value *string)() } diff --git a/models/education_synchronization_profile_status_status.go b/models/education_synchronization_profile_status_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/education_synchronization_status.go b/models/education_synchronization_status.go deleted file mode 100644 index 959ecf4cdbe..00000000000 --- a/models/education_synchronization_status.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type EducationSynchronizationStatus int - -const ( - PAUSED_EDUCATIONSYNCHRONIZATIONSTATUS EducationSynchronizationStatus = iota - INPROGRESS_EDUCATIONSYNCHRONIZATIONSTATUS - SUCCESS_EDUCATIONSYNCHRONIZATIONSTATUS - ERROR_EDUCATIONSYNCHRONIZATIONSTATUS - VALIDATIONERROR_EDUCATIONSYNCHRONIZATIONSTATUS - QUARANTINED_EDUCATIONSYNCHRONIZATIONSTATUS - UNKNOWNFUTUREVALUE_EDUCATIONSYNCHRONIZATIONSTATUS - EXTRACTING_EDUCATIONSYNCHRONIZATIONSTATUS - VALIDATING_EDUCATIONSYNCHRONIZATIONSTATUS -) - -func (i EducationSynchronizationStatus) String() string { - return []string{"paused", "inProgress", "success", "error", "validationError", "quarantined", "unknownFutureValue", "extracting", "validating"}[i] -} -func ParseEducationSynchronizationStatus(v string) (any, error) { - result := PAUSED_EDUCATIONSYNCHRONIZATIONSTATUS - switch v { - case "paused": - result = PAUSED_EDUCATIONSYNCHRONIZATIONSTATUS - case "inProgress": - result = INPROGRESS_EDUCATIONSYNCHRONIZATIONSTATUS - case "success": - result = SUCCESS_EDUCATIONSYNCHRONIZATIONSTATUS - case "error": - result = ERROR_EDUCATIONSYNCHRONIZATIONSTATUS - case "validationError": - result = VALIDATIONERROR_EDUCATIONSYNCHRONIZATIONSTATUS - case "quarantined": - result = QUARANTINED_EDUCATIONSYNCHRONIZATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EDUCATIONSYNCHRONIZATIONSTATUS - case "extracting": - result = EXTRACTING_EDUCATIONSYNCHRONIZATIONSTATUS - case "validating": - result = VALIDATING_EDUCATIONSYNCHRONIZATIONSTATUS - default: - return 0, errors.New("Unknown EducationSynchronizationStatus value: " + v) - } - return &result, nil -} -func SerializeEducationSynchronizationStatus(values []EducationSynchronizationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EducationSynchronizationStatus) isMultiValue() bool { - return false -} diff --git a/models/education_user.go b/models/education_user.go index a86368ab930..365ec54d78b 100644 --- a/models/education_user.go +++ b/models/education_user.go @@ -120,13 +120,13 @@ func (m *EducationUser) GetDisplayName()(*string) { return nil } // GetExternalSource gets the externalSource property value. The type of external source this resource was generated from (automatically determined from externalSourceDetail). Possible values are: sis, lms, or manual. -func (m *EducationUser) GetExternalSource()(*EducationExternalSource) { +func (m *EducationUser) GetExternalSource()(*EducationUser_externalSource) { val, err := m.GetBackingStore().Get("externalSource") if err != nil { panic(err) } if val != nil { - return val.(*EducationExternalSource) + return val.(*EducationUser_externalSource) } return nil } @@ -265,12 +265,12 @@ func (m *EducationUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["externalSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEducationExternalSource) + val, err := n.GetEnumValue(ParseEducationUser_externalSource) if err != nil { return err } if val != nil { - m.SetExternalSource(val.(*EducationExternalSource)) + m.SetExternalSource(val.(*EducationUser_externalSource)) } return nil } @@ -1239,7 +1239,7 @@ func (m *EducationUser) SetDisplayName(value *string)() { } } // SetExternalSource sets the externalSource property value. The type of external source this resource was generated from (automatically determined from externalSourceDetail). Possible values are: sis, lms, or manual. -func (m *EducationUser) SetExternalSource(value *EducationExternalSource)() { +func (m *EducationUser) SetExternalSource(value *EducationUser_externalSource)() { err := m.GetBackingStore().Set("externalSource", value) if err != nil { panic(err) @@ -1454,7 +1454,7 @@ type EducationUserable interface { GetCreatedBy()(IdentitySetable) GetDepartment()(*string) GetDisplayName()(*string) - GetExternalSource()(*EducationExternalSource) + GetExternalSource()(*EducationUser_externalSource) GetExternalSourceDetail()(*string) GetGivenName()(*string) GetMail()(*string) @@ -1492,7 +1492,7 @@ type EducationUserable interface { SetCreatedBy(value IdentitySetable)() SetDepartment(value *string)() SetDisplayName(value *string)() - SetExternalSource(value *EducationExternalSource)() + SetExternalSource(value *EducationUser_externalSource)() SetExternalSourceDetail(value *string)() SetGivenName(value *string)() SetMail(value *string)() diff --git a/models/education_user_external_source.go b/models/education_user_external_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/eligibility_filtering_enabled_entities.go b/models/eligibility_filtering_enabled_entities.go deleted file mode 100644 index b86219ce708..00000000000 --- a/models/eligibility_filtering_enabled_entities.go +++ /dev/null @@ -1,56 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type EligibilityFilteringEnabledEntities int - -const ( - NONE_ELIGIBILITYFILTERINGENABLEDENTITIES EligibilityFilteringEnabledEntities = iota - SWAPREQUEST_ELIGIBILITYFILTERINGENABLEDENTITIES - OFFERSHIFTREQUEST_ELIGIBILITYFILTERINGENABLEDENTITIES - UNKNOWNFUTUREVALUE_ELIGIBILITYFILTERINGENABLEDENTITIES - TIMEOFFREASON_ELIGIBILITYFILTERINGENABLEDENTITIES -) - -func (i EligibilityFilteringEnabledEntities) String() string { - var values []string - for p := EligibilityFilteringEnabledEntities(1); p <= TIMEOFFREASON_ELIGIBILITYFILTERINGENABLEDENTITIES; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "swapRequest", "offerShiftRequest", "unknownFutureValue", "timeOffReason"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseEligibilityFilteringEnabledEntities(v string) (any, error) { - var result EligibilityFilteringEnabledEntities - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_ELIGIBILITYFILTERINGENABLEDENTITIES - case "swapRequest": - result |= SWAPREQUEST_ELIGIBILITYFILTERINGENABLEDENTITIES - case "offerShiftRequest": - result |= OFFERSHIFTREQUEST_ELIGIBILITYFILTERINGENABLEDENTITIES - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_ELIGIBILITYFILTERINGENABLEDENTITIES - case "timeOffReason": - result |= TIMEOFFREASON_ELIGIBILITYFILTERINGENABLEDENTITIES - default: - return 0, errors.New("Unknown EligibilityFilteringEnabledEntities value: " + v) - } - } - return &result, nil -} -func SerializeEligibilityFilteringEnabledEntities(values []EligibilityFilteringEnabledEntities) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EligibilityFilteringEnabledEntities) isMultiValue() bool { - return true -} diff --git a/models/email_authentication_method_configuration.go b/models/email_authentication_method_configuration.go index 8ffaa828f53..da0f7d271c1 100644 --- a/models/email_authentication_method_configuration.go +++ b/models/email_authentication_method_configuration.go @@ -22,13 +22,13 @@ func CreateEmailAuthenticationMethodConfigurationFromDiscriminatorValue(parseNod return NewEmailAuthenticationMethodConfiguration(), nil } // GetAllowExternalIdToUseEmailOtp gets the allowExternalIdToUseEmailOtp property value. Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who didn't use public preview will automatically have email OTP enabled beginning in October 2021. -func (m *EmailAuthenticationMethodConfiguration) GetAllowExternalIdToUseEmailOtp()(*ExternalEmailOtpState) { +func (m *EmailAuthenticationMethodConfiguration) GetAllowExternalIdToUseEmailOtp()(*EmailAuthenticationMethodConfiguration_allowExternalIdToUseEmailOtp) { val, err := m.GetBackingStore().Get("allowExternalIdToUseEmailOtp") if err != nil { panic(err) } if val != nil { - return val.(*ExternalEmailOtpState) + return val.(*EmailAuthenticationMethodConfiguration_allowExternalIdToUseEmailOtp) } return nil } @@ -36,12 +36,12 @@ func (m *EmailAuthenticationMethodConfiguration) GetAllowExternalIdToUseEmailOtp func (m *EmailAuthenticationMethodConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AuthenticationMethodConfiguration.GetFieldDeserializers() res["allowExternalIdToUseEmailOtp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExternalEmailOtpState) + val, err := n.GetEnumValue(ParseEmailAuthenticationMethodConfiguration_allowExternalIdToUseEmailOtp) if err != nil { return err } if val != nil { - m.SetAllowExternalIdToUseEmailOtp(val.(*ExternalEmailOtpState)) + m.SetAllowExternalIdToUseEmailOtp(val.(*EmailAuthenticationMethodConfiguration_allowExternalIdToUseEmailOtp)) } return nil } @@ -102,7 +102,7 @@ func (m *EmailAuthenticationMethodConfiguration) Serialize(writer i878a80d2330e8 return nil } // SetAllowExternalIdToUseEmailOtp sets the allowExternalIdToUseEmailOtp property value. Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who didn't use public preview will automatically have email OTP enabled beginning in October 2021. -func (m *EmailAuthenticationMethodConfiguration) SetAllowExternalIdToUseEmailOtp(value *ExternalEmailOtpState)() { +func (m *EmailAuthenticationMethodConfiguration) SetAllowExternalIdToUseEmailOtp(value *EmailAuthenticationMethodConfiguration_allowExternalIdToUseEmailOtp)() { err := m.GetBackingStore().Set("allowExternalIdToUseEmailOtp", value) if err != nil { panic(err) @@ -119,8 +119,8 @@ func (m *EmailAuthenticationMethodConfiguration) SetIncludeTargets(value []Authe type EmailAuthenticationMethodConfigurationable interface { AuthenticationMethodConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowExternalIdToUseEmailOtp()(*ExternalEmailOtpState) + GetAllowExternalIdToUseEmailOtp()(*EmailAuthenticationMethodConfiguration_allowExternalIdToUseEmailOtp) GetIncludeTargets()([]AuthenticationMethodTargetable) - SetAllowExternalIdToUseEmailOtp(value *ExternalEmailOtpState)() + SetAllowExternalIdToUseEmailOtp(value *EmailAuthenticationMethodConfiguration_allowExternalIdToUseEmailOtp)() SetIncludeTargets(value []AuthenticationMethodTargetable)() } diff --git a/models/email_authentication_method_configuration_allow_external_id_to_use_email_otp.go b/models/email_authentication_method_configuration_allow_external_id_to_use_email_otp.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/email_certificate_type.go b/models/email_certificate_type.go deleted file mode 100644 index eebfa55141b..00000000000 --- a/models/email_certificate_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Supported certificate sources for email signing and encryption. -type EmailCertificateType int - -const ( - // Do not use a certificate as a source. - NONE_EMAILCERTIFICATETYPE EmailCertificateType = iota - // Use an certificate for certificate source. - CERTIFICATE_EMAILCERTIFICATETYPE - // Use a derived credential for certificate source. - DERIVEDCREDENTIAL_EMAILCERTIFICATETYPE -) - -func (i EmailCertificateType) String() string { - return []string{"none", "certificate", "derivedCredential"}[i] -} -func ParseEmailCertificateType(v string) (any, error) { - result := NONE_EMAILCERTIFICATETYPE - switch v { - case "none": - result = NONE_EMAILCERTIFICATETYPE - case "certificate": - result = CERTIFICATE_EMAILCERTIFICATETYPE - case "derivedCredential": - result = DERIVEDCREDENTIAL_EMAILCERTIFICATETYPE - default: - return 0, errors.New("Unknown EmailCertificateType value: " + v) - } - return &result, nil -} -func SerializeEmailCertificateType(values []EmailCertificateType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EmailCertificateType) isMultiValue() bool { - return false -} diff --git a/models/email_file_assessment_request.go b/models/email_file_assessment_request.go index 873ef125508..8ed1a22ff4d 100644 --- a/models/email_file_assessment_request.go +++ b/models/email_file_assessment_request.go @@ -33,13 +33,13 @@ func (m *EmailFileAssessmentRequest) GetContentData()(*string) { return nil } // GetDestinationRoutingReason gets the destinationRoutingReason property value. The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk. -func (m *EmailFileAssessmentRequest) GetDestinationRoutingReason()(*MailDestinationRoutingReason) { +func (m *EmailFileAssessmentRequest) GetDestinationRoutingReason()(*EmailFileAssessmentRequest_destinationRoutingReason) { val, err := m.GetBackingStore().Get("destinationRoutingReason") if err != nil { panic(err) } if val != nil { - return val.(*MailDestinationRoutingReason) + return val.(*EmailFileAssessmentRequest_destinationRoutingReason) } return nil } @@ -57,12 +57,12 @@ func (m *EmailFileAssessmentRequest) GetFieldDeserializers()(map[string]func(i87 return nil } res["destinationRoutingReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMailDestinationRoutingReason) + val, err := n.GetEnumValue(ParseEmailFileAssessmentRequest_destinationRoutingReason) if err != nil { return err } if val != nil { - m.SetDestinationRoutingReason(val.(*MailDestinationRoutingReason)) + m.SetDestinationRoutingReason(val.(*EmailFileAssessmentRequest_destinationRoutingReason)) } return nil } @@ -124,7 +124,7 @@ func (m *EmailFileAssessmentRequest) SetContentData(value *string)() { } } // SetDestinationRoutingReason sets the destinationRoutingReason property value. The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk. -func (m *EmailFileAssessmentRequest) SetDestinationRoutingReason(value *MailDestinationRoutingReason)() { +func (m *EmailFileAssessmentRequest) SetDestinationRoutingReason(value *EmailFileAssessmentRequest_destinationRoutingReason)() { err := m.GetBackingStore().Set("destinationRoutingReason", value) if err != nil { panic(err) @@ -142,9 +142,9 @@ type EmailFileAssessmentRequestable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ThreatAssessmentRequestable GetContentData()(*string) - GetDestinationRoutingReason()(*MailDestinationRoutingReason) + GetDestinationRoutingReason()(*EmailFileAssessmentRequest_destinationRoutingReason) GetRecipientEmail()(*string) SetContentData(value *string)() - SetDestinationRoutingReason(value *MailDestinationRoutingReason)() + SetDestinationRoutingReason(value *EmailFileAssessmentRequest_destinationRoutingReason)() SetRecipientEmail(value *string)() } diff --git a/models/email_file_assessment_request_destination_routing_reason.go b/models/email_file_assessment_request_destination_routing_reason.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/email_role.go b/models/email_role.go deleted file mode 100644 index 8e4fd48c794..00000000000 --- a/models/email_role.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type EmailRole int - -const ( - UNKNOWN_EMAILROLE EmailRole = iota - SENDER_EMAILROLE - RECIPIENT_EMAILROLE - UNKNOWNFUTUREVALUE_EMAILROLE -) - -func (i EmailRole) String() string { - return []string{"unknown", "sender", "recipient", "unknownFutureValue"}[i] -} -func ParseEmailRole(v string) (any, error) { - result := UNKNOWN_EMAILROLE - switch v { - case "unknown": - result = UNKNOWN_EMAILROLE - case "sender": - result = SENDER_EMAILROLE - case "recipient": - result = RECIPIENT_EMAILROLE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EMAILROLE - default: - return 0, errors.New("Unknown EmailRole value: " + v) - } - return &result, nil -} -func SerializeEmailRole(values []EmailRole) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EmailRole) isMultiValue() bool { - return false -} diff --git a/models/employee_experience.go b/models/employee_experience.go index 1cd9068d788..e28d8f30afd 100644 --- a/models/employee_experience.go +++ b/models/employee_experience.go @@ -38,9 +38,63 @@ func (m *EmployeeExperience) GetAdditionalData()(map[string]any) { func (m *EmployeeExperience) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetCommunities gets the communities property value. A collection of communities in Viva Engage. +func (m *EmployeeExperience) GetCommunities()([]Communityable) { + val, err := m.GetBackingStore().Get("communities") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Communityable) + } + return nil +} +// GetEngagementAsyncOperations gets the engagementAsyncOperations property value. A collection of long-running, asynchronous operations related to Viva Engage. +func (m *EmployeeExperience) GetEngagementAsyncOperations()([]EngagementAsyncOperationable) { + val, err := m.GetBackingStore().Get("engagementAsyncOperations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EngagementAsyncOperationable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *EmployeeExperience) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["communities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCommunityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Communityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Communityable) + } + } + m.SetCommunities(res) + } + return nil + } + res["engagementAsyncOperations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEngagementAsyncOperationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EngagementAsyncOperationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EngagementAsyncOperationable) + } + } + m.SetEngagementAsyncOperations(res) + } + return nil + } res["goals"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateGoalsFromDiscriminatorValue) if err != nil { @@ -141,6 +195,30 @@ func (m *EmployeeExperience) GetOdataType()(*string) { } // Serialize serializes information the current object func (m *EmployeeExperience) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetCommunities() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCommunities())) + for i, v := range m.GetCommunities() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("communities", cast) + if err != nil { + return err + } + } + if m.GetEngagementAsyncOperations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetEngagementAsyncOperations())) + for i, v := range m.GetEngagementAsyncOperations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("engagementAsyncOperations", cast) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("goals", m.GetGoals()) if err != nil { @@ -196,6 +274,20 @@ func (m *EmployeeExperience) SetAdditionalData(value map[string]any)() { func (m *EmployeeExperience) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetCommunities sets the communities property value. A collection of communities in Viva Engage. +func (m *EmployeeExperience) SetCommunities(value []Communityable)() { + err := m.GetBackingStore().Set("communities", value) + if err != nil { + panic(err) + } +} +// SetEngagementAsyncOperations sets the engagementAsyncOperations property value. A collection of long-running, asynchronous operations related to Viva Engage. +func (m *EmployeeExperience) SetEngagementAsyncOperations(value []EngagementAsyncOperationable)() { + err := m.GetBackingStore().Set("engagementAsyncOperations", value) + if err != nil { + panic(err) + } +} // SetGoals sets the goals property value. Represents a collection of goals in a Viva Goals organization. func (m *EmployeeExperience) SetGoals(value Goalsable)() { err := m.GetBackingStore().Set("goals", value) @@ -230,11 +322,15 @@ type EmployeeExperienceable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCommunities()([]Communityable) + GetEngagementAsyncOperations()([]EngagementAsyncOperationable) GetGoals()(Goalsable) GetLearningCourseActivities()([]LearningCourseActivityable) GetLearningProviders()([]LearningProviderable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCommunities(value []Communityable)() + SetEngagementAsyncOperations(value []EngagementAsyncOperationable)() SetGoals(value Goalsable)() SetLearningCourseActivities(value []LearningCourseActivityable)() SetLearningProviders(value []LearningProviderable)() diff --git a/models/encrypt_content.go b/models/encrypt_content.go index 17860e39907..095ee93c24f 100644 --- a/models/encrypt_content.go +++ b/models/encrypt_content.go @@ -42,13 +42,13 @@ func CreateEncryptContentFromDiscriminatorValue(parseNode i878a80d2330e89d268963 return NewEncryptContent(), nil } // GetEncryptWith gets the encryptWith property value. The encryptWith property -func (m *EncryptContent) GetEncryptWith()(*EncryptWith) { +func (m *EncryptContent) GetEncryptWith()(*EncryptContent_encryptWith) { val, err := m.GetBackingStore().Get("encryptWith") if err != nil { panic(err) } if val != nil { - return val.(*EncryptWith) + return val.(*EncryptContent_encryptWith) } return nil } @@ -56,12 +56,12 @@ func (m *EncryptContent) GetEncryptWith()(*EncryptWith) { func (m *EncryptContent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.LabelActionBase.GetFieldDeserializers() res["encryptWith"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEncryptWith) + val, err := n.GetEnumValue(ParseEncryptContent_encryptWith) if err != nil { return err } if val != nil { - m.SetEncryptWith(val.(*EncryptWith)) + m.SetEncryptWith(val.(*EncryptContent_encryptWith)) } return nil } @@ -83,7 +83,7 @@ func (m *EncryptContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return nil } // SetEncryptWith sets the encryptWith property value. The encryptWith property -func (m *EncryptContent) SetEncryptWith(value *EncryptWith)() { +func (m *EncryptContent) SetEncryptWith(value *EncryptContent_encryptWith)() { err := m.GetBackingStore().Set("encryptWith", value) if err != nil { panic(err) @@ -93,6 +93,6 @@ func (m *EncryptContent) SetEncryptWith(value *EncryptWith)() { type EncryptContentable interface { LabelActionBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetEncryptWith()(*EncryptWith) - SetEncryptWith(value *EncryptWith)() + GetEncryptWith()(*EncryptContent_encryptWith) + SetEncryptWith(value *EncryptContent_encryptWith)() } diff --git a/models/encrypt_content_encrypt_with.go b/models/encrypt_content_encrypt_with.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/encrypt_with.go b/models/encrypt_with.go deleted file mode 100644 index 8bad942b8be..00000000000 --- a/models/encrypt_with.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type EncryptWith int - -const ( - TEMPLATE_ENCRYPTWITH EncryptWith = iota - USERDEFINEDRIGHTS_ENCRYPTWITH -) - -func (i EncryptWith) String() string { - return []string{"template", "userDefinedRights"}[i] -} -func ParseEncryptWith(v string) (any, error) { - result := TEMPLATE_ENCRYPTWITH - switch v { - case "template": - result = TEMPLATE_ENCRYPTWITH - case "userDefinedRights": - result = USERDEFINEDRIGHTS_ENCRYPTWITH - default: - return 0, errors.New("Unknown EncryptWith value: " + v) - } - return &result, nil -} -func SerializeEncryptWith(values []EncryptWith) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EncryptWith) isMultiValue() bool { - return false -} diff --git a/models/end_user_notification.go b/models/end_user_notification.go index fe8f1802b9c..7d176d897b7 100644 --- a/models/end_user_notification.go +++ b/models/end_user_notification.go @@ -155,32 +155,32 @@ func (m *EndUserNotification) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["notificationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEndUserNotificationType) + val, err := n.GetEnumValue(ParseEndUserNotification_notificationType) if err != nil { return err } if val != nil { - m.SetNotificationType(val.(*EndUserNotificationType)) + m.SetNotificationType(val.(*EndUserNotification_notificationType)) } return nil } res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationContentSource) + val, err := n.GetEnumValue(ParseEndUserNotification_source) if err != nil { return err } if val != nil { - m.SetSource(val.(*SimulationContentSource)) + m.SetSource(val.(*EndUserNotification_source)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationContentStatus) + val, err := n.GetEnumValue(ParseEndUserNotification_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SimulationContentStatus)) + m.SetStatus(val.(*EndUserNotification_status)) } return nil } @@ -225,35 +225,35 @@ func (m *EndUserNotification) GetLastModifiedDateTime()(*i336074805fc853987abe6f return nil } // GetNotificationType gets the notificationType property value. Type of notification. Possible values are: unknown, positiveReinforcement, noTraining, trainingAssignment, trainingReminder, unknownFutureValue. -func (m *EndUserNotification) GetNotificationType()(*EndUserNotificationType) { +func (m *EndUserNotification) GetNotificationType()(*EndUserNotification_notificationType) { val, err := m.GetBackingStore().Get("notificationType") if err != nil { panic(err) } if val != nil { - return val.(*EndUserNotificationType) + return val.(*EndUserNotification_notificationType) } return nil } // GetSource gets the source property value. The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. -func (m *EndUserNotification) GetSource()(*SimulationContentSource) { +func (m *EndUserNotification) GetSource()(*EndUserNotification_source) { val, err := m.GetBackingStore().Get("source") if err != nil { panic(err) } if val != nil { - return val.(*SimulationContentSource) + return val.(*EndUserNotification_source) } return nil } // GetStatus gets the status property value. The status of the notification. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. -func (m *EndUserNotification) GetStatus()(*SimulationContentStatus) { +func (m *EndUserNotification) GetStatus()(*EndUserNotification_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SimulationContentStatus) + return val.(*EndUserNotification_status) } return nil } @@ -401,21 +401,21 @@ func (m *EndUserNotification) SetLastModifiedDateTime(value *i336074805fc853987a } } // SetNotificationType sets the notificationType property value. Type of notification. Possible values are: unknown, positiveReinforcement, noTraining, trainingAssignment, trainingReminder, unknownFutureValue. -func (m *EndUserNotification) SetNotificationType(value *EndUserNotificationType)() { +func (m *EndUserNotification) SetNotificationType(value *EndUserNotification_notificationType)() { err := m.GetBackingStore().Set("notificationType", value) if err != nil { panic(err) } } // SetSource sets the source property value. The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. -func (m *EndUserNotification) SetSource(value *SimulationContentSource)() { +func (m *EndUserNotification) SetSource(value *EndUserNotification_source)() { err := m.GetBackingStore().Set("source", value) if err != nil { panic(err) } } // SetStatus sets the status property value. The status of the notification. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. -func (m *EndUserNotification) SetStatus(value *SimulationContentStatus)() { +func (m *EndUserNotification) SetStatus(value *EndUserNotification_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -439,9 +439,9 @@ type EndUserNotificationable interface { GetDisplayName()(*string) GetLastModifiedBy()(EmailIdentityable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetNotificationType()(*EndUserNotificationType) - GetSource()(*SimulationContentSource) - GetStatus()(*SimulationContentStatus) + GetNotificationType()(*EndUserNotification_notificationType) + GetSource()(*EndUserNotification_source) + GetStatus()(*EndUserNotification_status) GetSupportedLocales()([]string) SetCreatedBy(value EmailIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -450,8 +450,8 @@ type EndUserNotificationable interface { SetDisplayName(value *string)() SetLastModifiedBy(value EmailIdentityable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetNotificationType(value *EndUserNotificationType)() - SetSource(value *SimulationContentSource)() - SetStatus(value *SimulationContentStatus)() + SetNotificationType(value *EndUserNotification_notificationType)() + SetSource(value *EndUserNotification_source)() + SetStatus(value *EndUserNotification_status)() SetSupportedLocales(value []string)() } diff --git a/models/end_user_notification_notification_type.go b/models/end_user_notification_notification_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/end_user_notification_preference.go b/models/end_user_notification_preference.go deleted file mode 100644 index 587d0821098..00000000000 --- a/models/end_user_notification_preference.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type EndUserNotificationPreference int - -const ( - UNKNOWN_ENDUSERNOTIFICATIONPREFERENCE EndUserNotificationPreference = iota - MICROSOFT_ENDUSERNOTIFICATIONPREFERENCE - CUSTOM_ENDUSERNOTIFICATIONPREFERENCE - UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONPREFERENCE -) - -func (i EndUserNotificationPreference) String() string { - return []string{"unknown", "microsoft", "custom", "unknownFutureValue"}[i] -} -func ParseEndUserNotificationPreference(v string) (any, error) { - result := UNKNOWN_ENDUSERNOTIFICATIONPREFERENCE - switch v { - case "unknown": - result = UNKNOWN_ENDUSERNOTIFICATIONPREFERENCE - case "microsoft": - result = MICROSOFT_ENDUSERNOTIFICATIONPREFERENCE - case "custom": - result = CUSTOM_ENDUSERNOTIFICATIONPREFERENCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONPREFERENCE - default: - return 0, errors.New("Unknown EndUserNotificationPreference value: " + v) - } - return &result, nil -} -func SerializeEndUserNotificationPreference(values []EndUserNotificationPreference) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EndUserNotificationPreference) isMultiValue() bool { - return false -} diff --git a/models/end_user_notification_setting.go b/models/end_user_notification_setting.go index fbf464910d5..d6024fd53b0 100644 --- a/models/end_user_notification_setting.go +++ b/models/end_user_notification_setting.go @@ -62,12 +62,12 @@ func (m *EndUserNotificationSetting) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827 func (m *EndUserNotificationSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["notificationPreference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEndUserNotificationPreference) + val, err := n.GetEnumValue(ParseEndUserNotificationSetting_notificationPreference) if err != nil { return err } if val != nil { - m.SetNotificationPreference(val.(*EndUserNotificationPreference)) + m.SetNotificationPreference(val.(*EndUserNotificationSetting_notificationPreference)) } return nil } @@ -92,25 +92,25 @@ func (m *EndUserNotificationSetting) GetFieldDeserializers()(map[string]func(i87 return nil } res["settingType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEndUserNotificationSettingType) + val, err := n.GetEnumValue(ParseEndUserNotificationSetting_settingType) if err != nil { return err } if val != nil { - m.SetSettingType(val.(*EndUserNotificationSettingType)) + m.SetSettingType(val.(*EndUserNotificationSetting_settingType)) } return nil } return res } // GetNotificationPreference gets the notificationPreference property value. Notification preference. Possible values are: unknown, microsoft, custom, unknownFutureValue. -func (m *EndUserNotificationSetting) GetNotificationPreference()(*EndUserNotificationPreference) { +func (m *EndUserNotificationSetting) GetNotificationPreference()(*EndUserNotificationSetting_notificationPreference) { val, err := m.GetBackingStore().Get("notificationPreference") if err != nil { panic(err) } if val != nil { - return val.(*EndUserNotificationPreference) + return val.(*EndUserNotificationSetting_notificationPreference) } return nil } @@ -137,13 +137,13 @@ func (m *EndUserNotificationSetting) GetPositiveReinforcement()(PositiveReinforc return nil } // GetSettingType gets the settingType property value. End user notification type. Possible values are: unknown, noTraining, trainingSelected, noNotification, unknownFutureValue. -func (m *EndUserNotificationSetting) GetSettingType()(*EndUserNotificationSettingType) { +func (m *EndUserNotificationSetting) GetSettingType()(*EndUserNotificationSetting_settingType) { val, err := m.GetBackingStore().Get("settingType") if err != nil { panic(err) } if val != nil { - return val.(*EndUserNotificationSettingType) + return val.(*EndUserNotificationSetting_settingType) } return nil } @@ -195,7 +195,7 @@ func (m *EndUserNotificationSetting) SetBackingStore(value ie8677ce2c7e1b4c22e9c m.backingStore = value } // SetNotificationPreference sets the notificationPreference property value. Notification preference. Possible values are: unknown, microsoft, custom, unknownFutureValue. -func (m *EndUserNotificationSetting) SetNotificationPreference(value *EndUserNotificationPreference)() { +func (m *EndUserNotificationSetting) SetNotificationPreference(value *EndUserNotificationSetting_notificationPreference)() { err := m.GetBackingStore().Set("notificationPreference", value) if err != nil { panic(err) @@ -216,7 +216,7 @@ func (m *EndUserNotificationSetting) SetPositiveReinforcement(value PositiveRein } } // SetSettingType sets the settingType property value. End user notification type. Possible values are: unknown, noTraining, trainingSelected, noNotification, unknownFutureValue. -func (m *EndUserNotificationSetting) SetSettingType(value *EndUserNotificationSettingType)() { +func (m *EndUserNotificationSetting) SetSettingType(value *EndUserNotificationSetting_settingType)() { err := m.GetBackingStore().Set("settingType", value) if err != nil { panic(err) @@ -228,13 +228,13 @@ type EndUserNotificationSettingable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNotificationPreference()(*EndUserNotificationPreference) + GetNotificationPreference()(*EndUserNotificationSetting_notificationPreference) GetOdataType()(*string) GetPositiveReinforcement()(PositiveReinforcementNotificationable) - GetSettingType()(*EndUserNotificationSettingType) + GetSettingType()(*EndUserNotificationSetting_settingType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNotificationPreference(value *EndUserNotificationPreference)() + SetNotificationPreference(value *EndUserNotificationSetting_notificationPreference)() SetOdataType(value *string)() SetPositiveReinforcement(value PositiveReinforcementNotificationable)() - SetSettingType(value *EndUserNotificationSettingType)() + SetSettingType(value *EndUserNotificationSetting_settingType)() } diff --git a/models/end_user_notification_setting_notification_preference.go b/models/end_user_notification_setting_notification_preference.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/end_user_notification_setting_setting_type.go b/models/end_user_notification_setting_setting_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/end_user_notification_setting_type.go b/models/end_user_notification_setting_type.go deleted file mode 100644 index 406c1df958b..00000000000 --- a/models/end_user_notification_setting_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type EndUserNotificationSettingType int - -const ( - UNKNOWN_ENDUSERNOTIFICATIONSETTINGTYPE EndUserNotificationSettingType = iota - NOTRAINING_ENDUSERNOTIFICATIONSETTINGTYPE - TRAININGSELECTED_ENDUSERNOTIFICATIONSETTINGTYPE - NONOTIFICATION_ENDUSERNOTIFICATIONSETTINGTYPE - UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONSETTINGTYPE -) - -func (i EndUserNotificationSettingType) String() string { - return []string{"unknown", "noTraining", "trainingSelected", "noNotification", "unknownFutureValue"}[i] -} -func ParseEndUserNotificationSettingType(v string) (any, error) { - result := UNKNOWN_ENDUSERNOTIFICATIONSETTINGTYPE - switch v { - case "unknown": - result = UNKNOWN_ENDUSERNOTIFICATIONSETTINGTYPE - case "noTraining": - result = NOTRAINING_ENDUSERNOTIFICATIONSETTINGTYPE - case "trainingSelected": - result = TRAININGSELECTED_ENDUSERNOTIFICATIONSETTINGTYPE - case "noNotification": - result = NONOTIFICATION_ENDUSERNOTIFICATIONSETTINGTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONSETTINGTYPE - default: - return 0, errors.New("Unknown EndUserNotificationSettingType value: " + v) - } - return &result, nil -} -func SerializeEndUserNotificationSettingType(values []EndUserNotificationSettingType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EndUserNotificationSettingType) isMultiValue() bool { - return false -} diff --git a/models/end_user_notification_source.go b/models/end_user_notification_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/end_user_notification_status.go b/models/end_user_notification_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/end_user_notification_type.go b/models/end_user_notification_type.go deleted file mode 100644 index a3589277dd6..00000000000 --- a/models/end_user_notification_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type EndUserNotificationType int - -const ( - UNKNOWN_ENDUSERNOTIFICATIONTYPE EndUserNotificationType = iota - POSITIVEREINFORCEMENT_ENDUSERNOTIFICATIONTYPE - NOTRAINING_ENDUSERNOTIFICATIONTYPE - TRAININGASSIGNMENT_ENDUSERNOTIFICATIONTYPE - TRAININGREMINDER_ENDUSERNOTIFICATIONTYPE - UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONTYPE -) - -func (i EndUserNotificationType) String() string { - return []string{"unknown", "positiveReinforcement", "noTraining", "trainingAssignment", "trainingReminder", "unknownFutureValue"}[i] -} -func ParseEndUserNotificationType(v string) (any, error) { - result := UNKNOWN_ENDUSERNOTIFICATIONTYPE - switch v { - case "unknown": - result = UNKNOWN_ENDUSERNOTIFICATIONTYPE - case "positiveReinforcement": - result = POSITIVEREINFORCEMENT_ENDUSERNOTIFICATIONTYPE - case "noTraining": - result = NOTRAINING_ENDUSERNOTIFICATIONTYPE - case "trainingAssignment": - result = TRAININGASSIGNMENT_ENDUSERNOTIFICATIONTYPE - case "trainingReminder": - result = TRAININGREMINDER_ENDUSERNOTIFICATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONTYPE - default: - return 0, errors.New("Unknown EndUserNotificationType value: " + v) - } - return &result, nil -} -func SerializeEndUserNotificationType(values []EndUserNotificationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EndUserNotificationType) isMultiValue() bool { - return false -} diff --git a/models/endpoint_type.go b/models/endpoint_type.go deleted file mode 100644 index 0e780890e88..00000000000 --- a/models/endpoint_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type EndpointType int - -const ( - DEFAULTESCAPED_ENDPOINTTYPE EndpointType = iota - VOICEMAIL_ENDPOINTTYPE - SKYPEFORBUSINESS_ENDPOINTTYPE - SKYPEFORBUSINESSVOIPPHONE_ENDPOINTTYPE - UNKNOWNFUTUREVALUE_ENDPOINTTYPE -) - -func (i EndpointType) String() string { - return []string{"default", "voicemail", "skypeForBusiness", "skypeForBusinessVoipPhone", "unknownFutureValue"}[i] -} -func ParseEndpointType(v string) (any, error) { - result := DEFAULTESCAPED_ENDPOINTTYPE - switch v { - case "default": - result = DEFAULTESCAPED_ENDPOINTTYPE - case "voicemail": - result = VOICEMAIL_ENDPOINTTYPE - case "skypeForBusiness": - result = SKYPEFORBUSINESS_ENDPOINTTYPE - case "skypeForBusinessVoipPhone": - result = SKYPEFORBUSINESSVOIPPHONE_ENDPOINTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ENDPOINTTYPE - default: - return 0, errors.New("Unknown EndpointType value: " + v) - } - return &result, nil -} -func SerializeEndpointType(values []EndpointType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EndpointType) isMultiValue() bool { - return false -} diff --git a/models/engagement_async_operation.go b/models/engagement_async_operation.go new file mode 100644 index 00000000000..db94878bbcd --- /dev/null +++ b/models/engagement_async_operation.go @@ -0,0 +1,112 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// EngagementAsyncOperation +type EngagementAsyncOperation struct { + LongRunningOperation +} +// NewEngagementAsyncOperation instantiates a new engagementAsyncOperation and sets the default values. +func NewEngagementAsyncOperation()(*EngagementAsyncOperation) { + m := &EngagementAsyncOperation{ + LongRunningOperation: *NewLongRunningOperation(), + } + return m +} +// CreateEngagementAsyncOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateEngagementAsyncOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEngagementAsyncOperation(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *EngagementAsyncOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.LongRunningOperation.GetFieldDeserializers() + res["operationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseEngagementAsyncOperation_operationType) + if err != nil { + return err + } + if val != nil { + m.SetOperationType(val.(*EngagementAsyncOperation_operationType)) + } + return nil + } + res["resourceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceId(val) + } + return nil + } + return res +} +// GetOperationType gets the operationType property value. The type of the long-running operation. The possible values are: createCommunity, unknownFutureValue. +func (m *EngagementAsyncOperation) GetOperationType()(*EngagementAsyncOperation_operationType) { + val, err := m.GetBackingStore().Get("operationType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*EngagementAsyncOperation_operationType) + } + return nil +} +// GetResourceId gets the resourceId property value. The ID of the object created or modified as a result of this async operation. +func (m *EngagementAsyncOperation) GetResourceId()(*string) { + val, err := m.GetBackingStore().Get("resourceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *EngagementAsyncOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.LongRunningOperation.Serialize(writer) + if err != nil { + return err + } + if m.GetOperationType() != nil { + cast := (*m.GetOperationType()).String() + err = writer.WriteStringValue("operationType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("resourceId", m.GetResourceId()) + if err != nil { + return err + } + } + return nil +} +// SetOperationType sets the operationType property value. The type of the long-running operation. The possible values are: createCommunity, unknownFutureValue. +func (m *EngagementAsyncOperation) SetOperationType(value *EngagementAsyncOperation_operationType)() { + err := m.GetBackingStore().Set("operationType", value) + if err != nil { + panic(err) + } +} +// SetResourceId sets the resourceId property value. The ID of the object created or modified as a result of this async operation. +func (m *EngagementAsyncOperation) SetResourceId(value *string)() { + err := m.GetBackingStore().Set("resourceId", value) + if err != nil { + panic(err) + } +} +// EngagementAsyncOperationable +type EngagementAsyncOperationable interface { + LongRunningOperationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOperationType()(*EngagementAsyncOperation_operationType) + GetResourceId()(*string) + SetOperationType(value *EngagementAsyncOperation_operationType)() + SetResourceId(value *string)() +} diff --git a/models/engagement_async_operation_collection_response.go b/models/engagement_async_operation_collection_response.go new file mode 100644 index 00000000000..12446b4b6f4 --- /dev/null +++ b/models/engagement_async_operation_collection_response.go @@ -0,0 +1,87 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// EngagementAsyncOperationCollectionResponse +type EngagementAsyncOperationCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewEngagementAsyncOperationCollectionResponse instantiates a new engagementAsyncOperationCollectionResponse and sets the default values. +func NewEngagementAsyncOperationCollectionResponse()(*EngagementAsyncOperationCollectionResponse) { + m := &EngagementAsyncOperationCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateEngagementAsyncOperationCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateEngagementAsyncOperationCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEngagementAsyncOperationCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *EngagementAsyncOperationCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEngagementAsyncOperationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EngagementAsyncOperationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EngagementAsyncOperationable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *EngagementAsyncOperationCollectionResponse) GetValue()([]EngagementAsyncOperationable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EngagementAsyncOperationable) + } + return nil +} +// Serialize serializes information the current object +func (m *EngagementAsyncOperationCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *EngagementAsyncOperationCollectionResponse) SetValue(value []EngagementAsyncOperationable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// EngagementAsyncOperationCollectionResponseable +type EngagementAsyncOperationCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]EngagementAsyncOperationable) + SetValue(value []EngagementAsyncOperationable)() +} diff --git a/models/engagement_async_operation_operation_type.go b/models/engagement_async_operation_operation_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/entity.go b/models/entity.go index df2fc5ae377..89918123a38 100644 --- a/models/entity.go +++ b/models/entity.go @@ -110,6 +110,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewAdminForms(), nil case "#microsoft.graph.administrativeUnit": return NewAdministrativeUnit(), nil + case "#microsoft.graph.adminMicrosoft365Apps": + return NewAdminMicrosoft365Apps(), nil case "#microsoft.graph.adminReportSettings": return NewAdminReportSettings(), nil case "#microsoft.graph.adminTodo": @@ -602,6 +604,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCloudPcAuditEvent(), nil case "#microsoft.graph.cloudPcBulkAction": return NewCloudPcBulkAction(), nil + case "#microsoft.graph.cloudPcBulkModifyDiskEncryptionType": + return NewCloudPcBulkModifyDiskEncryptionType(), nil case "#microsoft.graph.cloudPcBulkPowerOff": return NewCloudPcBulkPowerOff(), nil case "#microsoft.graph.cloudPcBulkPowerOn": @@ -662,6 +666,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCommand(), nil case "#microsoft.graph.commsOperation": return NewCommsOperation(), nil + case "#microsoft.graph.community": + return NewCommunity(), nil case "#microsoft.graph.companySubscription": return NewCompanySubscription(), nil case "#microsoft.graph.complianceManagementPartner": @@ -1160,6 +1166,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewEndUserNotification(), nil case "#microsoft.graph.endUserNotificationDetail": return NewEndUserNotificationDetail(), nil + case "#microsoft.graph.engagementAsyncOperation": + return NewEngagementAsyncOperation(), nil case "#microsoft.graph.enrollmentConfigurationAssignment": return NewEnrollmentConfigurationAssignment(), nil case "#microsoft.graph.enrollmentProfile": @@ -1588,6 +1596,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewLongRunningOperation(), nil case "#microsoft.graph.lookupResultRow": return NewLookupResultRow(), nil + case "#microsoft.graph.m365AppsInstallationOptions": + return NewM365AppsInstallationOptions(), nil case "#microsoft.graph.macOSCertificateProfileBase": return NewMacOSCertificateProfileBase(), nil case "#microsoft.graph.macOSCompliancePolicy": @@ -1876,6 +1886,14 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewOfficeSuiteApp(), nil case "#microsoft.graph.onAttributeCollectionListener": return NewOnAttributeCollectionListener(), nil + case "#microsoft.graph.onAttributeCollectionStartCustomExtension": + return NewOnAttributeCollectionStartCustomExtension(), nil + case "#microsoft.graph.onAttributeCollectionStartListener": + return NewOnAttributeCollectionStartListener(), nil + case "#microsoft.graph.onAttributeCollectionSubmitCustomExtension": + return NewOnAttributeCollectionSubmitCustomExtension(), nil + case "#microsoft.graph.onAttributeCollectionSubmitListener": + return NewOnAttributeCollectionSubmitListener(), nil case "#microsoft.graph.onAuthenticationMethodLoadStartListener": return NewOnAuthenticationMethodLoadStartListener(), nil case "#microsoft.graph.onenote": @@ -2832,12 +2850,12 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewVirtualEvent(), nil case "#microsoft.graph.virtualEventPresenter": return NewVirtualEventPresenter(), nil - case "#microsoft.graph.virtualEventRegistratioCustomQuestion": - return NewVirtualEventRegistratioCustomQuestion(), nil case "#microsoft.graph.virtualEventRegistration": return NewVirtualEventRegistration(), nil case "#microsoft.graph.virtualEventRegistrationConfiguration": return NewVirtualEventRegistrationConfiguration(), nil + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": + return NewVirtualEventRegistrationCustomQuestion(), nil case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": return NewVirtualEventRegistrationPredefinedQuestion(), nil case "#microsoft.graph.virtualEventRegistrationQuestionBase": diff --git a/models/entity_type.go b/models/entity_type.go deleted file mode 100644 index f9b251b521d..00000000000 --- a/models/entity_type.go +++ /dev/null @@ -1,73 +0,0 @@ -package models -import ( - "errors" -) -// -type EntityType int - -const ( - EVENT_ENTITYTYPE EntityType = iota - MESSAGE_ENTITYTYPE - DRIVEITEM_ENTITYTYPE - EXTERNALITEM_ENTITYTYPE - SITE_ENTITYTYPE - LIST_ENTITYTYPE - LISTITEM_ENTITYTYPE - DRIVE_ENTITYTYPE - UNKNOWNFUTUREVALUE_ENTITYTYPE - ACRONYM_ENTITYTYPE - BOOKMARK_ENTITYTYPE - CHATMESSAGE_ENTITYTYPE - PERSON_ENTITYTYPE - QNA_ENTITYTYPE -) - -func (i EntityType) String() string { - return []string{"event", "message", "driveItem", "externalItem", "site", "list", "listItem", "drive", "unknownFutureValue", "acronym", "bookmark", "chatMessage", "person", "qna"}[i] -} -func ParseEntityType(v string) (any, error) { - result := EVENT_ENTITYTYPE - switch v { - case "event": - result = EVENT_ENTITYTYPE - case "message": - result = MESSAGE_ENTITYTYPE - case "driveItem": - result = DRIVEITEM_ENTITYTYPE - case "externalItem": - result = EXTERNALITEM_ENTITYTYPE - case "site": - result = SITE_ENTITYTYPE - case "list": - result = LIST_ENTITYTYPE - case "listItem": - result = LISTITEM_ENTITYTYPE - case "drive": - result = DRIVE_ENTITYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ENTITYTYPE - case "acronym": - result = ACRONYM_ENTITYTYPE - case "bookmark": - result = BOOKMARK_ENTITYTYPE - case "chatMessage": - result = CHATMESSAGE_ENTITYTYPE - case "person": - result = PERSON_ENTITYTYPE - case "qna": - result = QNA_ENTITYTYPE - default: - return 0, errors.New("Unknown EntityType value: " + v) - } - return &result, nil -} -func SerializeEntityType(values []EntityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EntityType) isMultiValue() bool { - return false -} diff --git a/models/enumerated_device_registration_membership.go b/models/enumerated_device_registration_membership.go index fb278796d4e..35ea61584f1 100644 --- a/models/enumerated_device_registration_membership.go +++ b/models/enumerated_device_registration_membership.go @@ -58,7 +58,7 @@ func (m *EnumeratedDeviceRegistrationMembership) GetFieldDeserializers()(map[str } return res } -// GetGroups gets the groups property value. The groups property +// GetGroups gets the groups property value. List of groups that this policy applies to. func (m *EnumeratedDeviceRegistrationMembership) GetGroups()([]string) { val, err := m.GetBackingStore().Get("groups") if err != nil { @@ -69,7 +69,7 @@ func (m *EnumeratedDeviceRegistrationMembership) GetGroups()([]string) { } return nil } -// GetUsers gets the users property value. The users property +// GetUsers gets the users property value. List of users that this policy applies to. func (m *EnumeratedDeviceRegistrationMembership) GetUsers()([]string) { val, err := m.GetBackingStore().Get("users") if err != nil { @@ -100,14 +100,14 @@ func (m *EnumeratedDeviceRegistrationMembership) Serialize(writer i878a80d2330e8 } return nil } -// SetGroups sets the groups property value. The groups property +// SetGroups sets the groups property value. List of groups that this policy applies to. func (m *EnumeratedDeviceRegistrationMembership) SetGroups(value []string)() { err := m.GetBackingStore().Set("groups", value) if err != nil { panic(err) } } -// SetUsers sets the users property value. The users property +// SetUsers sets the users property value. List of users that this policy applies to. func (m *EnumeratedDeviceRegistrationMembership) SetUsers(value []string)() { err := m.GetBackingStore().Set("users", value) if err != nil { diff --git a/models/event.go b/models/event.go index c472cc55395..0c5c1250863 100644 --- a/models/event.go +++ b/models/event.go @@ -286,12 +286,12 @@ func (m *Event) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["importance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseImportance) + val, err := n.GetEnumValue(ParseEvent_importance) if err != nil { return err } if val != nil { - m.SetImportance(val.(*Importance)) + m.SetImportance(val.(*Event_importance)) } return nil } @@ -434,12 +434,12 @@ func (m *Event) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["onlineMeetingProvider"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnlineMeetingProviderType) + val, err := n.GetEnumValue(ParseEvent_onlineMeetingProvider) if err != nil { return err } if val != nil { - m.SetOnlineMeetingProvider(val.(*OnlineMeetingProviderType)) + m.SetOnlineMeetingProvider(val.(*Event_onlineMeetingProvider)) } return nil } @@ -534,12 +534,12 @@ func (m *Event) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["sensitivity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitivity) + val, err := n.GetEnumValue(ParseEvent_sensitivity) if err != nil { return err } if val != nil { - m.SetSensitivity(val.(*Sensitivity)) + m.SetSensitivity(val.(*Event_sensitivity)) } return nil } @@ -554,12 +554,12 @@ func (m *Event) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["showAs"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFreeBusyStatus) + val, err := n.GetEnumValue(ParseEvent_showAs) if err != nil { return err } if val != nil { - m.SetShowAs(val.(*FreeBusyStatus)) + m.SetShowAs(val.(*Event_showAs)) } return nil } @@ -610,12 +610,12 @@ func (m *Event) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEventType) + val, err := n.GetEnumValue(ParseEvent_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*EventType)) + m.SetTypeEscaped(val.(*Event_type)) } return nil } @@ -664,13 +664,13 @@ func (m *Event) GetHideAttendees()(*bool) { return nil } // GetImportance gets the importance property value. The importance property -func (m *Event) GetImportance()(*Importance) { +func (m *Event) GetImportance()(*Event_importance) { val, err := m.GetBackingStore().Get("importance") if err != nil { panic(err) } if val != nil { - return val.(*Importance) + return val.(*Event_importance) } return nil } @@ -807,13 +807,13 @@ func (m *Event) GetOnlineMeeting()(OnlineMeetingInfoable) { return nil } // GetOnlineMeetingProvider gets the onlineMeetingProvider property value. The onlineMeetingProvider property -func (m *Event) GetOnlineMeetingProvider()(*OnlineMeetingProviderType) { +func (m *Event) GetOnlineMeetingProvider()(*Event_onlineMeetingProvider) { val, err := m.GetBackingStore().Get("onlineMeetingProvider") if err != nil { panic(err) } if val != nil { - return val.(*OnlineMeetingProviderType) + return val.(*Event_onlineMeetingProvider) } return nil } @@ -917,13 +917,13 @@ func (m *Event) GetResponseStatus()(ResponseStatusable) { return nil } // GetSensitivity gets the sensitivity property value. The sensitivity property -func (m *Event) GetSensitivity()(*Sensitivity) { +func (m *Event) GetSensitivity()(*Event_sensitivity) { val, err := m.GetBackingStore().Get("sensitivity") if err != nil { panic(err) } if val != nil { - return val.(*Sensitivity) + return val.(*Event_sensitivity) } return nil } @@ -939,13 +939,13 @@ func (m *Event) GetSeriesMasterId()(*string) { return nil } // GetShowAs gets the showAs property value. The showAs property -func (m *Event) GetShowAs()(*FreeBusyStatus) { +func (m *Event) GetShowAs()(*Event_showAs) { val, err := m.GetBackingStore().Get("showAs") if err != nil { panic(err) } if val != nil { - return val.(*FreeBusyStatus) + return val.(*Event_showAs) } return nil } @@ -994,13 +994,13 @@ func (m *Event) GetTransactionId()(*string) { return nil } // GetTypeEscaped gets the type property value. The type property -func (m *Event) GetTypeEscaped()(*EventType) { +func (m *Event) GetTypeEscaped()(*Event_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*EventType) + return val.(*Event_type) } return nil } @@ -1442,7 +1442,7 @@ func (m *Event) SetHideAttendees(value *bool)() { } } // SetImportance sets the importance property value. The importance property -func (m *Event) SetImportance(value *Importance)() { +func (m *Event) SetImportance(value *Event_importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) @@ -1533,7 +1533,7 @@ func (m *Event) SetOnlineMeeting(value OnlineMeetingInfoable)() { } } // SetOnlineMeetingProvider sets the onlineMeetingProvider property value. The onlineMeetingProvider property -func (m *Event) SetOnlineMeetingProvider(value *OnlineMeetingProviderType)() { +func (m *Event) SetOnlineMeetingProvider(value *Event_onlineMeetingProvider)() { err := m.GetBackingStore().Set("onlineMeetingProvider", value) if err != nil { panic(err) @@ -1603,7 +1603,7 @@ func (m *Event) SetResponseStatus(value ResponseStatusable)() { } } // SetSensitivity sets the sensitivity property value. The sensitivity property -func (m *Event) SetSensitivity(value *Sensitivity)() { +func (m *Event) SetSensitivity(value *Event_sensitivity)() { err := m.GetBackingStore().Set("sensitivity", value) if err != nil { panic(err) @@ -1617,7 +1617,7 @@ func (m *Event) SetSeriesMasterId(value *string)() { } } // SetShowAs sets the showAs property value. The showAs property -func (m *Event) SetShowAs(value *FreeBusyStatus)() { +func (m *Event) SetShowAs(value *Event_showAs)() { err := m.GetBackingStore().Set("showAs", value) if err != nil { panic(err) @@ -1652,7 +1652,7 @@ func (m *Event) SetTransactionId(value *string)() { } } // SetTypeEscaped sets the type property value. The type property -func (m *Event) SetTypeEscaped(value *EventType)() { +func (m *Event) SetTypeEscaped(value *Event_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -1688,7 +1688,7 @@ type Eventable interface { GetExtensions()([]Extensionable) GetHasAttachments()(*bool) GetHideAttendees()(*bool) - GetImportance()(*Importance) + GetImportance()(*Event_importance) GetInstances()([]Eventable) GetIsAllDay()(*bool) GetIsCancelled()(*bool) @@ -1701,7 +1701,7 @@ type Eventable interface { GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedPropertyable) GetOccurrenceId()(*string) GetOnlineMeeting()(OnlineMeetingInfoable) - GetOnlineMeetingProvider()(*OnlineMeetingProviderType) + GetOnlineMeetingProvider()(*Event_onlineMeetingProvider) GetOnlineMeetingUrl()(*string) GetOrganizer()(Recipientable) GetOriginalEndTimeZone()(*string) @@ -1711,14 +1711,14 @@ type Eventable interface { GetReminderMinutesBeforeStart()(*int32) GetResponseRequested()(*bool) GetResponseStatus()(ResponseStatusable) - GetSensitivity()(*Sensitivity) + GetSensitivity()(*Event_sensitivity) GetSeriesMasterId()(*string) - GetShowAs()(*FreeBusyStatus) + GetShowAs()(*Event_showAs) GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPropertyable) GetStart()(DateTimeTimeZoneable) GetSubject()(*string) GetTransactionId()(*string) - GetTypeEscaped()(*EventType) + GetTypeEscaped()(*Event_type) GetUid()(*string) GetWebLink()(*string) SetAllowNewTimeProposals(value *bool)() @@ -1733,7 +1733,7 @@ type Eventable interface { SetExtensions(value []Extensionable)() SetHasAttachments(value *bool)() SetHideAttendees(value *bool)() - SetImportance(value *Importance)() + SetImportance(value *Event_importance)() SetInstances(value []Eventable)() SetIsAllDay(value *bool)() SetIsCancelled(value *bool)() @@ -1746,7 +1746,7 @@ type Eventable interface { SetMultiValueExtendedProperties(value []MultiValueLegacyExtendedPropertyable)() SetOccurrenceId(value *string)() SetOnlineMeeting(value OnlineMeetingInfoable)() - SetOnlineMeetingProvider(value *OnlineMeetingProviderType)() + SetOnlineMeetingProvider(value *Event_onlineMeetingProvider)() SetOnlineMeetingUrl(value *string)() SetOrganizer(value Recipientable)() SetOriginalEndTimeZone(value *string)() @@ -1756,14 +1756,14 @@ type Eventable interface { SetReminderMinutesBeforeStart(value *int32)() SetResponseRequested(value *bool)() SetResponseStatus(value ResponseStatusable)() - SetSensitivity(value *Sensitivity)() + SetSensitivity(value *Event_sensitivity)() SetSeriesMasterId(value *string)() - SetShowAs(value *FreeBusyStatus)() + SetShowAs(value *Event_showAs)() SetSingleValueExtendedProperties(value []SingleValueLegacyExtendedPropertyable)() SetStart(value DateTimeTimeZoneable)() SetSubject(value *string)() SetTransactionId(value *string)() - SetTypeEscaped(value *EventType)() + SetTypeEscaped(value *Event_type)() SetUid(value *string)() SetWebLink(value *string)() } diff --git a/models/event_importance.go b/models/event_importance.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/event_message.go b/models/event_message.go index 65cf0c6ad48..37c08b0cf34 100644 --- a/models/event_message.go +++ b/models/event_message.go @@ -127,12 +127,12 @@ func (m *EventMessage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["meetingMessageType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMeetingMessageType) + val, err := n.GetEnumValue(ParseEventMessage_meetingMessageType) if err != nil { return err } if val != nil { - m.SetMeetingMessageType(val.(*MeetingMessageType)) + m.SetMeetingMessageType(val.(*EventMessage_meetingMessageType)) } return nil } @@ -157,12 +157,12 @@ func (m *EventMessage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEventType) + val, err := n.GetEnumValue(ParseEventMessage_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*EventType)) + m.SetTypeEscaped(val.(*EventMessage_type)) } return nil } @@ -213,13 +213,13 @@ func (m *EventMessage) GetLocation()(Locationable) { return nil } // GetMeetingMessageType gets the meetingMessageType property value. The meetingMessageType property -func (m *EventMessage) GetMeetingMessageType()(*MeetingMessageType) { +func (m *EventMessage) GetMeetingMessageType()(*EventMessage_meetingMessageType) { val, err := m.GetBackingStore().Get("meetingMessageType") if err != nil { panic(err) } if val != nil { - return val.(*MeetingMessageType) + return val.(*EventMessage_meetingMessageType) } return nil } @@ -246,13 +246,13 @@ func (m *EventMessage) GetStartDateTime()(DateTimeTimeZoneable) { return nil } // GetTypeEscaped gets the type property value. The type property -func (m *EventMessage) GetTypeEscaped()(*EventType) { +func (m *EventMessage) GetTypeEscaped()(*EventMessage_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*EventType) + return val.(*EventMessage_type) } return nil } @@ -369,7 +369,7 @@ func (m *EventMessage) SetLocation(value Locationable)() { } } // SetMeetingMessageType sets the meetingMessageType property value. The meetingMessageType property -func (m *EventMessage) SetMeetingMessageType(value *MeetingMessageType)() { +func (m *EventMessage) SetMeetingMessageType(value *EventMessage_meetingMessageType)() { err := m.GetBackingStore().Set("meetingMessageType", value) if err != nil { panic(err) @@ -390,7 +390,7 @@ func (m *EventMessage) SetStartDateTime(value DateTimeTimeZoneable)() { } } // SetTypeEscaped sets the type property value. The type property -func (m *EventMessage) SetTypeEscaped(value *EventType)() { +func (m *EventMessage) SetTypeEscaped(value *EventMessage_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -406,18 +406,18 @@ type EventMessageable interface { GetIsDelegated()(*bool) GetIsOutOfDate()(*bool) GetLocation()(Locationable) - GetMeetingMessageType()(*MeetingMessageType) + GetMeetingMessageType()(*EventMessage_meetingMessageType) GetRecurrence()(PatternedRecurrenceable) GetStartDateTime()(DateTimeTimeZoneable) - GetTypeEscaped()(*EventType) + GetTypeEscaped()(*EventMessage_type) SetEndDateTime(value DateTimeTimeZoneable)() SetEvent(value Eventable)() SetIsAllDay(value *bool)() SetIsDelegated(value *bool)() SetIsOutOfDate(value *bool)() SetLocation(value Locationable)() - SetMeetingMessageType(value *MeetingMessageType)() + SetMeetingMessageType(value *EventMessage_meetingMessageType)() SetRecurrence(value PatternedRecurrenceable)() SetStartDateTime(value DateTimeTimeZoneable)() - SetTypeEscaped(value *EventType)() + SetTypeEscaped(value *EventMessage_type)() } diff --git a/models/event_message_meeting_message_type.go b/models/event_message_meeting_message_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/event_message_response.go b/models/event_message_response.go index 9c352cfe3eb..b5caaad6ede 100644 --- a/models/event_message_response.go +++ b/models/event_message_response.go @@ -35,12 +35,12 @@ func (m *EventMessageResponse) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["responseType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseResponseType) + val, err := n.GetEnumValue(ParseEventMessageResponse_responseType) if err != nil { return err } if val != nil { - m.SetResponseType(val.(*ResponseType)) + m.SetResponseType(val.(*EventMessageResponse_responseType)) } return nil } @@ -58,13 +58,13 @@ func (m *EventMessageResponse) GetProposedNewTime()(TimeSlotable) { return nil } // GetResponseType gets the responseType property value. The responseType property -func (m *EventMessageResponse) GetResponseType()(*ResponseType) { +func (m *EventMessageResponse) GetResponseType()(*EventMessageResponse_responseType) { val, err := m.GetBackingStore().Get("responseType") if err != nil { panic(err) } if val != nil { - return val.(*ResponseType) + return val.(*EventMessageResponse_responseType) } return nil } @@ -97,7 +97,7 @@ func (m *EventMessageResponse) SetProposedNewTime(value TimeSlotable)() { } } // SetResponseType sets the responseType property value. The responseType property -func (m *EventMessageResponse) SetResponseType(value *ResponseType)() { +func (m *EventMessageResponse) SetResponseType(value *EventMessageResponse_responseType)() { err := m.GetBackingStore().Set("responseType", value) if err != nil { panic(err) @@ -108,7 +108,7 @@ type EventMessageResponseable interface { EventMessageable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetProposedNewTime()(TimeSlotable) - GetResponseType()(*ResponseType) + GetResponseType()(*EventMessageResponse_responseType) SetProposedNewTime(value TimeSlotable)() - SetResponseType(value *ResponseType)() + SetResponseType(value *EventMessageResponse_responseType)() } diff --git a/models/event_message_response_response_type.go b/models/event_message_response_response_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/event_message_type.go b/models/event_message_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/event_online_meeting_provider.go b/models/event_online_meeting_provider.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/event_sensitivity.go b/models/event_sensitivity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/event_show_as.go b/models/event_show_as.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/event_type.go b/models/event_type.go index d3c2b7e1332..e69de29bb2d 100644 --- a/models/event_type.go +++ b/models/event_type.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type EventType int - -const ( - SINGLEINSTANCE_EVENTTYPE EventType = iota - OCCURRENCE_EVENTTYPE - EXCEPTION_EVENTTYPE - SERIESMASTER_EVENTTYPE -) - -func (i EventType) String() string { - return []string{"singleInstance", "occurrence", "exception", "seriesMaster"}[i] -} -func ParseEventType(v string) (any, error) { - result := SINGLEINSTANCE_EVENTTYPE - switch v { - case "singleInstance": - result = SINGLEINSTANCE_EVENTTYPE - case "occurrence": - result = OCCURRENCE_EVENTTYPE - case "exception": - result = EXCEPTION_EVENTTYPE - case "seriesMaster": - result = SERIESMASTER_EVENTTYPE - default: - return 0, errors.New("Unknown EventType value: " + v) - } - return &result, nil -} -func SerializeEventType(values []EventType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EventType) isMultiValue() bool { - return false -} diff --git a/models/expiration_pattern.go b/models/expiration_pattern.go index 17815a76e1c..b6a002f04c8 100644 --- a/models/expiration_pattern.go +++ b/models/expiration_pattern.go @@ -95,12 +95,12 @@ func (m *ExpirationPattern) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExpirationPatternType) + val, err := n.GetEnumValue(ParseExpirationPattern_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*ExpirationPatternType)) + m.SetTypeEscaped(val.(*ExpirationPattern_type)) } return nil } @@ -118,13 +118,13 @@ func (m *ExpirationPattern) GetOdataType()(*string) { return nil } // GetTypeEscaped gets the type property value. The requestor's desired expiration pattern type. -func (m *ExpirationPattern) GetTypeEscaped()(*ExpirationPatternType) { +func (m *ExpirationPattern) GetTypeEscaped()(*ExpirationPattern_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*ExpirationPatternType) + return val.(*ExpirationPattern_type) } return nil } @@ -196,7 +196,7 @@ func (m *ExpirationPattern) SetOdataType(value *string)() { } } // SetTypeEscaped sets the type property value. The requestor's desired expiration pattern type. -func (m *ExpirationPattern) SetTypeEscaped(value *ExpirationPatternType)() { +func (m *ExpirationPattern) SetTypeEscaped(value *ExpirationPattern_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -211,10 +211,10 @@ type ExpirationPatternable interface { GetDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOdataType()(*string) - GetTypeEscaped()(*ExpirationPatternType) + GetTypeEscaped()(*ExpirationPattern_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOdataType(value *string)() - SetTypeEscaped(value *ExpirationPatternType)() + SetTypeEscaped(value *ExpirationPattern_type)() } diff --git a/models/expiration_pattern_type.go b/models/expiration_pattern_type.go index 6403160cc2f..e69de29bb2d 100644 --- a/models/expiration_pattern_type.go +++ b/models/expiration_pattern_type.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ExpirationPatternType int - -const ( - NOTSPECIFIED_EXPIRATIONPATTERNTYPE ExpirationPatternType = iota - NOEXPIRATION_EXPIRATIONPATTERNTYPE - AFTERDATETIME_EXPIRATIONPATTERNTYPE - AFTERDURATION_EXPIRATIONPATTERNTYPE -) - -func (i ExpirationPatternType) String() string { - return []string{"notSpecified", "noExpiration", "afterDateTime", "afterDuration"}[i] -} -func ParseExpirationPatternType(v string) (any, error) { - result := NOTSPECIFIED_EXPIRATIONPATTERNTYPE - switch v { - case "notSpecified": - result = NOTSPECIFIED_EXPIRATIONPATTERNTYPE - case "noExpiration": - result = NOEXPIRATION_EXPIRATIONPATTERNTYPE - case "afterDateTime": - result = AFTERDATETIME_EXPIRATIONPATTERNTYPE - case "afterDuration": - result = AFTERDURATION_EXPIRATIONPATTERNTYPE - default: - return 0, errors.New("Unknown ExpirationPatternType value: " + v) - } - return &result, nil -} -func SerializeExpirationPatternType(values []ExpirationPatternType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExpirationPatternType) isMultiValue() bool { - return false -} diff --git a/models/expiration_requirement.go b/models/expiration_requirement.go deleted file mode 100644 index 62b2e44c2f4..00000000000 --- a/models/expiration_requirement.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ExpirationRequirement int - -const ( - REMEMBERMULTIFACTORAUTHENTICATIONONTRUSTEDDEVICES_EXPIRATIONREQUIREMENT ExpirationRequirement = iota - TENANTTOKENLIFETIMEPOLICY_EXPIRATIONREQUIREMENT - AUDIENCETOKENLIFETIMEPOLICY_EXPIRATIONREQUIREMENT - SIGNINFREQUENCYPERIODICREAUTHENTICATION_EXPIRATIONREQUIREMENT - NGCMFA_EXPIRATIONREQUIREMENT - SIGNINFREQUENCYEVERYTIME_EXPIRATIONREQUIREMENT - UNKNOWNFUTUREVALUE_EXPIRATIONREQUIREMENT -) - -func (i ExpirationRequirement) String() string { - return []string{"rememberMultifactorAuthenticationOnTrustedDevices", "tenantTokenLifetimePolicy", "audienceTokenLifetimePolicy", "signInFrequencyPeriodicReauthentication", "ngcMfa", "signInFrequencyEveryTime", "unknownFutureValue"}[i] -} -func ParseExpirationRequirement(v string) (any, error) { - result := REMEMBERMULTIFACTORAUTHENTICATIONONTRUSTEDDEVICES_EXPIRATIONREQUIREMENT - switch v { - case "rememberMultifactorAuthenticationOnTrustedDevices": - result = REMEMBERMULTIFACTORAUTHENTICATIONONTRUSTEDDEVICES_EXPIRATIONREQUIREMENT - case "tenantTokenLifetimePolicy": - result = TENANTTOKENLIFETIMEPOLICY_EXPIRATIONREQUIREMENT - case "audienceTokenLifetimePolicy": - result = AUDIENCETOKENLIFETIMEPOLICY_EXPIRATIONREQUIREMENT - case "signInFrequencyPeriodicReauthentication": - result = SIGNINFREQUENCYPERIODICREAUTHENTICATION_EXPIRATIONREQUIREMENT - case "ngcMfa": - result = NGCMFA_EXPIRATIONREQUIREMENT - case "signInFrequencyEveryTime": - result = SIGNINFREQUENCYEVERYTIME_EXPIRATIONREQUIREMENT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EXPIRATIONREQUIREMENT - default: - return 0, errors.New("Unknown ExpirationRequirement value: " + v) - } - return &result, nil -} -func SerializeExpirationRequirement(values []ExpirationRequirement) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExpirationRequirement) isMultiValue() bool { - return false -} diff --git a/models/external_audience_scope.go b/models/external_audience_scope.go deleted file mode 100644 index f5e85332640..00000000000 --- a/models/external_audience_scope.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ExternalAudienceScope int - -const ( - NONE_EXTERNALAUDIENCESCOPE ExternalAudienceScope = iota - CONTACTSONLY_EXTERNALAUDIENCESCOPE - ALL_EXTERNALAUDIENCESCOPE -) - -func (i ExternalAudienceScope) String() string { - return []string{"none", "contactsOnly", "all"}[i] -} -func ParseExternalAudienceScope(v string) (any, error) { - result := NONE_EXTERNALAUDIENCESCOPE - switch v { - case "none": - result = NONE_EXTERNALAUDIENCESCOPE - case "contactsOnly": - result = CONTACTSONLY_EXTERNALAUDIENCESCOPE - case "all": - result = ALL_EXTERNALAUDIENCESCOPE - default: - return 0, errors.New("Unknown ExternalAudienceScope value: " + v) - } - return &result, nil -} -func SerializeExternalAudienceScope(values []ExternalAudienceScope) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExternalAudienceScope) isMultiValue() bool { - return false -} diff --git a/models/external_authentication_type.go b/models/external_authentication_type.go deleted file mode 100644 index ceb35d1c7ff..00000000000 --- a/models/external_authentication_type.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type ExternalAuthenticationType int - -const ( - PASSTHRU_EXTERNALAUTHENTICATIONTYPE ExternalAuthenticationType = iota - AADPREAUTHENTICATION_EXTERNALAUTHENTICATIONTYPE -) - -func (i ExternalAuthenticationType) String() string { - return []string{"passthru", "aadPreAuthentication"}[i] -} -func ParseExternalAuthenticationType(v string) (any, error) { - result := PASSTHRU_EXTERNALAUTHENTICATIONTYPE - switch v { - case "passthru": - result = PASSTHRU_EXTERNALAUTHENTICATIONTYPE - case "aadPreAuthentication": - result = AADPREAUTHENTICATION_EXTERNALAUTHENTICATIONTYPE - default: - return 0, errors.New("Unknown ExternalAuthenticationType value: " + v) - } - return &result, nil -} -func SerializeExternalAuthenticationType(values []ExternalAuthenticationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExternalAuthenticationType) isMultiValue() bool { - return false -} diff --git a/models/external_connection.go b/models/external_connection.go index 82295175571..c3c43af0c9d 100644 --- a/models/external_connection.go +++ b/models/external_connection.go @@ -133,12 +133,12 @@ func (m *ExternalConnection) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectionState) + val, err := n.GetEnumValue(ParseExternalConnection_state) if err != nil { return err } if val != nil { - m.SetState(val.(*ConnectionState)) + m.SetState(val.(*ExternalConnection_state)) } return nil } @@ -200,13 +200,13 @@ func (m *ExternalConnection) GetSchema()(Schemaable) { return nil } // GetState gets the state property value. The state property -func (m *ExternalConnection) GetState()(*ConnectionState) { +func (m *ExternalConnection) GetState()(*ExternalConnection_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*ConnectionState) + return val.(*ExternalConnection_state) } return nil } @@ -328,7 +328,7 @@ func (m *ExternalConnection) SetSchema(value Schemaable)() { } } // SetState sets the state property value. The state property -func (m *ExternalConnection) SetState(value *ConnectionState)() { +func (m *ExternalConnection) SetState(value *ExternalConnection_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -345,7 +345,7 @@ type ExternalConnectionable interface { GetName()(*string) GetOperations()([]ConnectionOperationable) GetSchema()(Schemaable) - GetState()(*ConnectionState) + GetState()(*ExternalConnection_state) SetConfiguration(value Configurationable)() SetDescription(value *string)() SetGroups(value []ExternalGroupable)() @@ -353,5 +353,5 @@ type ExternalConnectionable interface { SetName(value *string)() SetOperations(value []ConnectionOperationable)() SetSchema(value Schemaable)() - SetState(value *ConnectionState)() + SetState(value *ExternalConnection_state)() } diff --git a/models/external_connection_state.go b/models/external_connection_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/external_email_otp_state.go b/models/external_email_otp_state.go deleted file mode 100644 index b18d3cd4111..00000000000 --- a/models/external_email_otp_state.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ExternalEmailOtpState int - -const ( - DEFAULTESCAPED_EXTERNALEMAILOTPSTATE ExternalEmailOtpState = iota - ENABLED_EXTERNALEMAILOTPSTATE - DISABLED_EXTERNALEMAILOTPSTATE - UNKNOWNFUTUREVALUE_EXTERNALEMAILOTPSTATE -) - -func (i ExternalEmailOtpState) String() string { - return []string{"default", "enabled", "disabled", "unknownFutureValue"}[i] -} -func ParseExternalEmailOtpState(v string) (any, error) { - result := DEFAULTESCAPED_EXTERNALEMAILOTPSTATE - switch v { - case "default": - result = DEFAULTESCAPED_EXTERNALEMAILOTPSTATE - case "enabled": - result = ENABLED_EXTERNALEMAILOTPSTATE - case "disabled": - result = DISABLED_EXTERNALEMAILOTPSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EXTERNALEMAILOTPSTATE - default: - return 0, errors.New("Unknown ExternalEmailOtpState value: " + v) - } - return &result, nil -} -func SerializeExternalEmailOtpState(values []ExternalEmailOtpState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExternalEmailOtpState) isMultiValue() bool { - return false -} diff --git a/models/external_users_self_service_sign_up_events_flow.go b/models/external_users_self_service_sign_up_events_flow.go index 29c82b9af29..96d125316ab 100644 --- a/models/external_users_self_service_sign_up_events_flow.go +++ b/models/external_users_self_service_sign_up_events_flow.go @@ -34,6 +34,26 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetFieldDeserializers()(map[s } return nil } + res["onAttributeCollectionStart"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionStartHandlerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOnAttributeCollectionStart(val.(OnAttributeCollectionStartHandlerable)) + } + return nil + } + res["onAttributeCollectionSubmit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionSubmitHandlerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOnAttributeCollectionSubmit(val.(OnAttributeCollectionSubmitHandlerable)) + } + return nil + } res["onAuthenticationMethodLoadStart"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateOnAuthenticationMethodLoadStartHandlerFromDiscriminatorValue) if err != nil { @@ -77,6 +97,28 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAttributeCollection()(On } return nil } +// GetOnAttributeCollectionStart gets the onAttributeCollectionStart property value. The onAttributeCollectionStart property +func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAttributeCollectionStart()(OnAttributeCollectionStartHandlerable) { + val, err := m.GetBackingStore().Get("onAttributeCollectionStart") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionStartHandlerable) + } + return nil +} +// GetOnAttributeCollectionSubmit gets the onAttributeCollectionSubmit property value. The onAttributeCollectionSubmit property +func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAttributeCollectionSubmit()(OnAttributeCollectionSubmitHandlerable) { + val, err := m.GetBackingStore().Get("onAttributeCollectionSubmit") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionSubmitHandlerable) + } + return nil +} // GetOnAuthenticationMethodLoadStart gets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAuthenticationMethodLoadStart()(OnAuthenticationMethodLoadStartHandlerable) { val, err := m.GetBackingStore().Get("onAuthenticationMethodLoadStart") @@ -122,6 +164,18 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) Serialize(writer i878a80d2330 return err } } + { + err = writer.WriteObjectValue("onAttributeCollectionStart", m.GetOnAttributeCollectionStart()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("onAttributeCollectionSubmit", m.GetOnAttributeCollectionSubmit()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("onAuthenticationMethodLoadStart", m.GetOnAuthenticationMethodLoadStart()) if err != nil { @@ -149,6 +203,20 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAttributeCollection(valu panic(err) } } +// SetOnAttributeCollectionStart sets the onAttributeCollectionStart property value. The onAttributeCollectionStart property +func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAttributeCollectionStart(value OnAttributeCollectionStartHandlerable)() { + err := m.GetBackingStore().Set("onAttributeCollectionStart", value) + if err != nil { + panic(err) + } +} +// SetOnAttributeCollectionSubmit sets the onAttributeCollectionSubmit property value. The onAttributeCollectionSubmit property +func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAttributeCollectionSubmit(value OnAttributeCollectionSubmitHandlerable)() { + err := m.GetBackingStore().Set("onAttributeCollectionSubmit", value) + if err != nil { + panic(err) + } +} // SetOnAuthenticationMethodLoadStart sets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAuthenticationMethodLoadStart(value OnAuthenticationMethodLoadStartHandlerable)() { err := m.GetBackingStore().Set("onAuthenticationMethodLoadStart", value) @@ -175,10 +243,14 @@ type ExternalUsersSelfServiceSignUpEventsFlowable interface { AuthenticationEventsFlowable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetOnAttributeCollection()(OnAttributeCollectionHandlerable) + GetOnAttributeCollectionStart()(OnAttributeCollectionStartHandlerable) + GetOnAttributeCollectionSubmit()(OnAttributeCollectionSubmitHandlerable) GetOnAuthenticationMethodLoadStart()(OnAuthenticationMethodLoadStartHandlerable) GetOnInteractiveAuthFlowStart()(OnInteractiveAuthFlowStartHandlerable) GetOnUserCreateStart()(OnUserCreateStartHandlerable) SetOnAttributeCollection(value OnAttributeCollectionHandlerable)() + SetOnAttributeCollectionStart(value OnAttributeCollectionStartHandlerable)() + SetOnAttributeCollectionSubmit(value OnAttributeCollectionSubmitHandlerable)() SetOnAuthenticationMethodLoadStart(value OnAuthenticationMethodLoadStartHandlerable)() SetOnInteractiveAuthFlowStart(value OnInteractiveAuthFlowStartHandlerable)() SetOnUserCreateStart(value OnUserCreateStartHandlerable)() diff --git a/models/externalconnectors/acl.go b/models/externalconnectors/acl.go index 6d41912ee6f..c11cd14ce41 100644 --- a/models/externalconnectors/acl.go +++ b/models/externalconnectors/acl.go @@ -63,12 +63,12 @@ func (m *Acl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3 return nil } res["identitySource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIdentitySourceType) + val, err := n.GetEnumValue(ParseAcl_identitySource) if err != nil { return err } if val != nil { - m.SetIdentitySource(val.(*IdentitySourceType)) + m.SetIdentitySource(val.(*Acl_identitySource)) } return nil } @@ -105,13 +105,13 @@ func (m *Acl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3 return res } // GetIdentitySource gets the identitySource property value. The source of identity. Possible values are azureActiveDirectory or external. -func (m *Acl) GetIdentitySource()(*IdentitySourceType) { +func (m *Acl) GetIdentitySource()(*Acl_identitySource) { val, err := m.GetBackingStore().Get("identitySource") if err != nil { panic(err) } if val != nil { - return val.(*IdentitySourceType) + return val.(*Acl_identitySource) } return nil } @@ -210,7 +210,7 @@ func (m *Acl) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9e m.backingStore = value } // SetIdentitySource sets the identitySource property value. The source of identity. Possible values are azureActiveDirectory or external. -func (m *Acl) SetIdentitySource(value *IdentitySourceType)() { +func (m *Acl) SetIdentitySource(value *Acl_identitySource)() { err := m.GetBackingStore().Set("identitySource", value) if err != nil { panic(err) @@ -244,13 +244,13 @@ type Aclable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccessType()(*AccessType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIdentitySource()(*IdentitySourceType) + GetIdentitySource()(*Acl_identitySource) GetOdataType()(*string) GetTypeEscaped()(*AclType) GetValue()(*string) SetAccessType(value *AccessType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIdentitySource(value *IdentitySourceType)() + SetIdentitySource(value *Acl_identitySource)() SetOdataType(value *string)() SetTypeEscaped(value *AclType)() SetValue(value *string)() diff --git a/models/externalconnectors/acl_identity_source.go b/models/externalconnectors/acl_identity_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/externalconnectors/connection_operation.go b/models/externalconnectors/connection_operation.go index 3fa1c3ba760..bc5749bf8fa 100644 --- a/models/externalconnectors/connection_operation.go +++ b/models/externalconnectors/connection_operation.go @@ -45,25 +45,25 @@ func (m *ConnectionOperation) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectionOperationStatus) + val, err := n.GetEnumValue(ParseConnectionOperation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*ConnectionOperationStatus)) + m.SetStatus(val.(*ConnectionOperation_status)) } return nil } return res } // GetStatus gets the status property value. Indicates the status of the asynchronous operation. Possible values are: unspecified, inprogress, completed, failed. -func (m *ConnectionOperation) GetStatus()(*ConnectionOperationStatus) { +func (m *ConnectionOperation) GetStatus()(*ConnectionOperation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*ConnectionOperationStatus) + return val.(*ConnectionOperation_status) } return nil } @@ -96,7 +96,7 @@ func (m *ConnectionOperation) SetError(value ie233ee762e29b4ba6970aa2a2efce4b7fd } } // SetStatus sets the status property value. Indicates the status of the asynchronous operation. Possible values are: unspecified, inprogress, completed, failed. -func (m *ConnectionOperation) SetStatus(value *ConnectionOperationStatus)() { +func (m *ConnectionOperation) SetStatus(value *ConnectionOperation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -107,7 +107,7 @@ type ConnectionOperationable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetError()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PublicErrorable) - GetStatus()(*ConnectionOperationStatus) + GetStatus()(*ConnectionOperation_status) SetError(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PublicErrorable)() - SetStatus(value *ConnectionOperationStatus)() + SetStatus(value *ConnectionOperation_status)() } diff --git a/models/externalconnectors/connection_operation_status.go b/models/externalconnectors/connection_operation_status.go index 92eb7bbb7d2..e69de29bb2d 100644 --- a/models/externalconnectors/connection_operation_status.go +++ b/models/externalconnectors/connection_operation_status.go @@ -1,46 +0,0 @@ -package externalconnectors -import ( - "errors" -) -// -type ConnectionOperationStatus int - -const ( - UNSPECIFIED_CONNECTIONOPERATIONSTATUS ConnectionOperationStatus = iota - INPROGRESS_CONNECTIONOPERATIONSTATUS - COMPLETED_CONNECTIONOPERATIONSTATUS - FAILED_CONNECTIONOPERATIONSTATUS - UNKNOWNFUTUREVALUE_CONNECTIONOPERATIONSTATUS -) - -func (i ConnectionOperationStatus) String() string { - return []string{"unspecified", "inprogress", "completed", "failed", "unknownFutureValue"}[i] -} -func ParseConnectionOperationStatus(v string) (any, error) { - result := UNSPECIFIED_CONNECTIONOPERATIONSTATUS - switch v { - case "unspecified": - result = UNSPECIFIED_CONNECTIONOPERATIONSTATUS - case "inprogress": - result = INPROGRESS_CONNECTIONOPERATIONSTATUS - case "completed": - result = COMPLETED_CONNECTIONOPERATIONSTATUS - case "failed": - result = FAILED_CONNECTIONOPERATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONNECTIONOPERATIONSTATUS - default: - return 0, errors.New("Unknown ConnectionOperationStatus value: " + v) - } - return &result, nil -} -func SerializeConnectionOperationStatus(values []ConnectionOperationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectionOperationStatus) isMultiValue() bool { - return false -} diff --git a/models/externalconnectors/connection_state.go b/models/externalconnectors/connection_state.go deleted file mode 100644 index 5a0948bb029..00000000000 --- a/models/externalconnectors/connection_state.go +++ /dev/null @@ -1,46 +0,0 @@ -package externalconnectors -import ( - "errors" -) -// -type ConnectionState int - -const ( - DRAFT_CONNECTIONSTATE ConnectionState = iota - READY_CONNECTIONSTATE - OBSOLETE_CONNECTIONSTATE - LIMITEXCEEDED_CONNECTIONSTATE - UNKNOWNFUTUREVALUE_CONNECTIONSTATE -) - -func (i ConnectionState) String() string { - return []string{"draft", "ready", "obsolete", "limitExceeded", "unknownFutureValue"}[i] -} -func ParseConnectionState(v string) (any, error) { - result := DRAFT_CONNECTIONSTATE - switch v { - case "draft": - result = DRAFT_CONNECTIONSTATE - case "ready": - result = READY_CONNECTIONSTATE - case "obsolete": - result = OBSOLETE_CONNECTIONSTATE - case "limitExceeded": - result = LIMITEXCEEDED_CONNECTIONSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONNECTIONSTATE - default: - return 0, errors.New("Unknown ConnectionState value: " + v) - } - return &result, nil -} -func SerializeConnectionState(values []ConnectionState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectionState) isMultiValue() bool { - return false -} diff --git a/models/externalconnectors/content_experience_type.go b/models/externalconnectors/content_experience_type.go deleted file mode 100644 index 5d6a9453c89..00000000000 --- a/models/externalconnectors/content_experience_type.go +++ /dev/null @@ -1,50 +0,0 @@ -package externalconnectors -import ( - "errors" - "strings" -) -// -type ContentExperienceType int - -const ( - SEARCH_CONTENTEXPERIENCETYPE ContentExperienceType = iota - COMPLIANCE_CONTENTEXPERIENCETYPE - UNKNOWNFUTUREVALUE_CONTENTEXPERIENCETYPE -) - -func (i ContentExperienceType) String() string { - var values []string - for p := ContentExperienceType(1); p <= UNKNOWNFUTUREVALUE_CONTENTEXPERIENCETYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"search", "compliance", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseContentExperienceType(v string) (any, error) { - var result ContentExperienceType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "search": - result |= SEARCH_CONTENTEXPERIENCETYPE - case "compliance": - result |= COMPLIANCE_CONTENTEXPERIENCETYPE - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_CONTENTEXPERIENCETYPE - default: - return 0, errors.New("Unknown ContentExperienceType value: " + v) - } - } - return &result, nil -} -func SerializeContentExperienceType(values []ContentExperienceType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ContentExperienceType) isMultiValue() bool { - return true -} diff --git a/models/externalconnectors/external_connection.go b/models/externalconnectors/external_connection.go index 807ca33af87..deae136f0e6 100644 --- a/models/externalconnectors/external_connection.go +++ b/models/externalconnectors/external_connection.go @@ -76,13 +76,13 @@ func (m *ExternalConnection) GetDescription()(*string) { return nil } // GetEnabledContentExperiences gets the enabledContentExperiences property value. The list of content experiences the connection will participate in. Possible values are search. -func (m *ExternalConnection) GetEnabledContentExperiences()(*ContentExperienceType) { +func (m *ExternalConnection) GetEnabledContentExperiences()(*ExternalConnection_enabledContentExperiences) { val, err := m.GetBackingStore().Get("enabledContentExperiences") if err != nil { panic(err) } if val != nil { - return val.(*ContentExperienceType) + return val.(*ExternalConnection_enabledContentExperiences) } return nil } @@ -140,12 +140,12 @@ func (m *ExternalConnection) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["enabledContentExperiences"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseContentExperienceType) + val, err := n.GetEnumValue(ParseExternalConnection_enabledContentExperiences) if err != nil { return err } if val != nil { - m.SetEnabledContentExperiences(val.(*ContentExperienceType)) + m.SetEnabledContentExperiences(val.(*ExternalConnection_enabledContentExperiences)) } return nil } @@ -248,12 +248,12 @@ func (m *ExternalConnection) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectionState) + val, err := n.GetEnumValue(ParseExternalConnection_state) if err != nil { return err } if val != nil { - m.SetState(val.(*ConnectionState)) + m.SetState(val.(*ExternalConnection_state)) } return nil } @@ -348,13 +348,13 @@ func (m *ExternalConnection) GetSearchSettings()(SearchSettingsable) { return nil } // GetState gets the state property value. Indicates the current state of the connection. Possible values are draft, ready, obsolete, and limitExceeded. Required. -func (m *ExternalConnection) GetState()(*ConnectionState) { +func (m *ExternalConnection) GetState()(*ExternalConnection_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*ConnectionState) + return val.(*ExternalConnection_state) } return nil } @@ -505,7 +505,7 @@ func (m *ExternalConnection) SetDescription(value *string)() { } } // SetEnabledContentExperiences sets the enabledContentExperiences property value. The list of content experiences the connection will participate in. Possible values are search. -func (m *ExternalConnection) SetEnabledContentExperiences(value *ContentExperienceType)() { +func (m *ExternalConnection) SetEnabledContentExperiences(value *ExternalConnection_enabledContentExperiences)() { err := m.GetBackingStore().Set("enabledContentExperiences", value) if err != nil { panic(err) @@ -568,7 +568,7 @@ func (m *ExternalConnection) SetSearchSettings(value SearchSettingsable)() { } } // SetState sets the state property value. Indicates the current state of the connection. Possible values are draft, ready, obsolete, and limitExceeded. Required. -func (m *ExternalConnection) SetState(value *ConnectionState)() { +func (m *ExternalConnection) SetState(value *ExternalConnection_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -583,7 +583,7 @@ type ExternalConnectionable interface { GetConfiguration()(Configurationable) GetConnectorId()(*string) GetDescription()(*string) - GetEnabledContentExperiences()(*ContentExperienceType) + GetEnabledContentExperiences()(*ExternalConnection_enabledContentExperiences) GetGroups()([]ExternalGroupable) GetIngestedItemsCount()(*int64) GetItems()([]ExternalItemable) @@ -592,13 +592,13 @@ type ExternalConnectionable interface { GetQuota()(ConnectionQuotaable) GetSchema()(Schemaable) GetSearchSettings()(SearchSettingsable) - GetState()(*ConnectionState) + GetState()(*ExternalConnection_state) SetActivitySettings(value ActivitySettingsable)() SetComplianceSettings(value ComplianceSettingsable)() SetConfiguration(value Configurationable)() SetConnectorId(value *string)() SetDescription(value *string)() - SetEnabledContentExperiences(value *ContentExperienceType)() + SetEnabledContentExperiences(value *ExternalConnection_enabledContentExperiences)() SetGroups(value []ExternalGroupable)() SetIngestedItemsCount(value *int64)() SetItems(value []ExternalItemable)() @@ -607,5 +607,5 @@ type ExternalConnectionable interface { SetQuota(value ConnectionQuotaable)() SetSchema(value Schemaable)() SetSearchSettings(value SearchSettingsable)() - SetState(value *ConnectionState)() + SetState(value *ExternalConnection_state)() } diff --git a/models/externalconnectors/external_connection_enabled_content_experiences.go b/models/externalconnectors/external_connection_enabled_content_experiences.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/externalconnectors/external_connection_state.go b/models/externalconnectors/external_connection_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/externalconnectors/identity.go b/models/externalconnectors/identity.go index 7f03f6e8ea0..b089044c83f 100644 --- a/models/externalconnectors/identity.go +++ b/models/externalconnectors/identity.go @@ -24,25 +24,25 @@ func CreateIdentityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f4 func (m *Identity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIdentityType) + val, err := n.GetEnumValue(ParseIdentity_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*IdentityType)) + m.SetTypeEscaped(val.(*Identity_type)) } return nil } return res } // GetTypeEscaped gets the type property value. The type of identity. Possible values are: user or group for Microsoft Entra identities and externalgroup for groups in an external system. -func (m *Identity) GetTypeEscaped()(*IdentityType) { +func (m *Identity) GetTypeEscaped()(*Identity_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*IdentityType) + return val.(*Identity_type) } return nil } @@ -62,7 +62,7 @@ func (m *Identity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return nil } // SetTypeEscaped sets the type property value. The type of identity. Possible values are: user or group for Microsoft Entra identities and externalgroup for groups in an external system. -func (m *Identity) SetTypeEscaped(value *IdentityType)() { +func (m *Identity) SetTypeEscaped(value *Identity_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -72,6 +72,6 @@ func (m *Identity) SetTypeEscaped(value *IdentityType)() { type Identityable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetTypeEscaped()(*IdentityType) - SetTypeEscaped(value *IdentityType)() + GetTypeEscaped()(*Identity_type) + SetTypeEscaped(value *Identity_type)() } diff --git a/models/externalconnectors/identity_source_type.go b/models/externalconnectors/identity_source_type.go deleted file mode 100644 index fadb93421f0..00000000000 --- a/models/externalconnectors/identity_source_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package externalconnectors -import ( - "errors" -) -// -type IdentitySourceType int - -const ( - AZUREACTIVEDIRECTORY_IDENTITYSOURCETYPE IdentitySourceType = iota - EXTERNAL_IDENTITYSOURCETYPE - UNKNOWNFUTUREVALUE_IDENTITYSOURCETYPE -) - -func (i IdentitySourceType) String() string { - return []string{"azureActiveDirectory", "external", "unknownFutureValue"}[i] -} -func ParseIdentitySourceType(v string) (any, error) { - result := AZUREACTIVEDIRECTORY_IDENTITYSOURCETYPE - switch v { - case "azureActiveDirectory": - result = AZUREACTIVEDIRECTORY_IDENTITYSOURCETYPE - case "external": - result = EXTERNAL_IDENTITYSOURCETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_IDENTITYSOURCETYPE - default: - return 0, errors.New("Unknown IdentitySourceType value: " + v) - } - return &result, nil -} -func SerializeIdentitySourceType(values []IdentitySourceType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i IdentitySourceType) isMultiValue() bool { - return false -} diff --git a/models/externalconnectors/identity_type.go b/models/externalconnectors/identity_type.go index f0875cc8d39..e69de29bb2d 100644 --- a/models/externalconnectors/identity_type.go +++ b/models/externalconnectors/identity_type.go @@ -1,43 +0,0 @@ -package externalconnectors -import ( - "errors" -) -// -type IdentityType int - -const ( - USER_IDENTITYTYPE IdentityType = iota - GROUP_IDENTITYTYPE - EXTERNALGROUP_IDENTITYTYPE - UNKNOWNFUTUREVALUE_IDENTITYTYPE -) - -func (i IdentityType) String() string { - return []string{"user", "group", "externalGroup", "unknownFutureValue"}[i] -} -func ParseIdentityType(v string) (any, error) { - result := USER_IDENTITYTYPE - switch v { - case "user": - result = USER_IDENTITYTYPE - case "group": - result = GROUP_IDENTITYTYPE - case "externalGroup": - result = EXTERNALGROUP_IDENTITYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_IDENTITYTYPE - default: - return 0, errors.New("Unknown IdentityType value: " + v) - } - return &result, nil -} -func SerializeIdentityType(values []IdentityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i IdentityType) isMultiValue() bool { - return false -} diff --git a/models/externalconnectors/label.go b/models/externalconnectors/label.go deleted file mode 100644 index 2e2547919c7..00000000000 --- a/models/externalconnectors/label.go +++ /dev/null @@ -1,70 +0,0 @@ -package externalconnectors -import ( - "errors" -) -// -type Label int - -const ( - TITLE_LABEL Label = iota - URL_LABEL - CREATEDBY_LABEL - LASTMODIFIEDBY_LABEL - AUTHORS_LABEL - CREATEDDATETIME_LABEL - LASTMODIFIEDDATETIME_LABEL - FILENAME_LABEL - FILEEXTENSION_LABEL - UNKNOWNFUTUREVALUE_LABEL - CONTAINERNAME_LABEL - CONTAINERURL_LABEL - ICONURL_LABEL -) - -func (i Label) String() string { - return []string{"title", "url", "createdBy", "lastModifiedBy", "authors", "createdDateTime", "lastModifiedDateTime", "fileName", "fileExtension", "unknownFutureValue", "containerName", "containerUrl", "iconUrl"}[i] -} -func ParseLabel(v string) (any, error) { - result := TITLE_LABEL - switch v { - case "title": - result = TITLE_LABEL - case "url": - result = URL_LABEL - case "createdBy": - result = CREATEDBY_LABEL - case "lastModifiedBy": - result = LASTMODIFIEDBY_LABEL - case "authors": - result = AUTHORS_LABEL - case "createdDateTime": - result = CREATEDDATETIME_LABEL - case "lastModifiedDateTime": - result = LASTMODIFIEDDATETIME_LABEL - case "fileName": - result = FILENAME_LABEL - case "fileExtension": - result = FILEEXTENSION_LABEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_LABEL - case "containerName": - result = CONTAINERNAME_LABEL - case "containerUrl": - result = CONTAINERURL_LABEL - case "iconUrl": - result = ICONURL_LABEL - default: - return 0, errors.New("Unknown Label value: " + v) - } - return &result, nil -} -func SerializeLabel(values []Label) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Label) isMultiValue() bool { - return false -} diff --git a/models/externalconnectors/property.go b/models/externalconnectors/property.go index 3c422114272..36020d1f4bf 100644 --- a/models/externalconnectors/property.go +++ b/models/externalconnectors/property.go @@ -119,15 +119,15 @@ func (m *Property) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["labels"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseLabel) + val, err := n.GetCollectionOfEnumValues(ParseProperty_labels) if err != nil { return err } if val != nil { - res := make([]Label, len(val)) + res := make([]Property_labels, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*Label)) + res[i] = *(v.(*Property_labels)) } } m.SetLabels(res) @@ -232,13 +232,13 @@ func (m *Property) GetIsSearchable()(*bool) { return nil } // GetLabels gets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, containerName, containerUrl, iconUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: containerName, containerUrl, iconUrl. -func (m *Property) GetLabels()([]Label) { +func (m *Property) GetLabels()([]Property_labels) { val, err := m.GetBackingStore().Get("labels") if err != nil { panic(err) } if val != nil { - return val.([]Label) + return val.([]Property_labels) } return nil } @@ -325,7 +325,7 @@ func (m *Property) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 } } if m.GetLabels() != nil { - err := writer.WriteCollectionOfStringValues("labels", SerializeLabel(m.GetLabels())) + err := writer.WriteCollectionOfStringValues("labels", SerializeProperty_labels(m.GetLabels())) if err != nil { return err } @@ -417,7 +417,7 @@ func (m *Property) SetIsSearchable(value *bool)() { } } // SetLabels sets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, containerName, containerUrl, iconUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: containerName, containerUrl, iconUrl. -func (m *Property) SetLabels(value []Label)() { +func (m *Property) SetLabels(value []Property_labels)() { err := m.GetBackingStore().Set("labels", value) if err != nil { panic(err) @@ -463,7 +463,7 @@ type Propertyable interface { GetIsRefinable()(*bool) GetIsRetrievable()(*bool) GetIsSearchable()(*bool) - GetLabels()([]Label) + GetLabels()([]Property_labels) GetName()(*string) GetOdataType()(*string) GetRankingHint()(RankingHintable) @@ -475,7 +475,7 @@ type Propertyable interface { SetIsRefinable(value *bool)() SetIsRetrievable(value *bool)() SetIsSearchable(value *bool)() - SetLabels(value []Label)() + SetLabels(value []Property_labels)() SetName(value *string)() SetOdataType(value *string)() SetRankingHint(value RankingHintable)() diff --git a/models/externalconnectors/property_labels.go b/models/externalconnectors/property_labels.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/feature_target.go b/models/feature_target.go index f85f8840d7b..b04d1de382a 100644 --- a/models/feature_target.go +++ b/models/feature_target.go @@ -62,12 +62,12 @@ func (m *FeatureTarget) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["targetType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFeatureTargetType) + val, err := n.GetEnumValue(ParseFeatureTarget_targetType) if err != nil { return err } if val != nil { - m.SetTargetType(val.(*FeatureTargetType)) + m.SetTargetType(val.(*FeatureTarget_targetType)) } return nil } @@ -96,13 +96,13 @@ func (m *FeatureTarget) GetOdataType()(*string) { return nil } // GetTargetType gets the targetType property value. The kind of entity that's targeted. The possible values are: group, administrativeUnit, role, unknownFutureValue. -func (m *FeatureTarget) GetTargetType()(*FeatureTargetType) { +func (m *FeatureTarget) GetTargetType()(*FeatureTarget_targetType) { val, err := m.GetBackingStore().Get("targetType") if err != nil { panic(err) } if val != nil { - return val.(*FeatureTargetType) + return val.(*FeatureTarget_targetType) } return nil } @@ -161,7 +161,7 @@ func (m *FeatureTarget) SetOdataType(value *string)() { } } // SetTargetType sets the targetType property value. The kind of entity that's targeted. The possible values are: group, administrativeUnit, role, unknownFutureValue. -func (m *FeatureTarget) SetTargetType(value *FeatureTargetType)() { +func (m *FeatureTarget) SetTargetType(value *FeatureTarget_targetType)() { err := m.GetBackingStore().Set("targetType", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type FeatureTargetable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetId()(*string) GetOdataType()(*string) - GetTargetType()(*FeatureTargetType) + GetTargetType()(*FeatureTarget_targetType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetId(value *string)() SetOdataType(value *string)() - SetTargetType(value *FeatureTargetType)() + SetTargetType(value *FeatureTarget_targetType)() } diff --git a/models/feature_target_target_type.go b/models/feature_target_target_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/feature_target_type.go b/models/feature_target_type.go deleted file mode 100644 index 3cb0f1c8bab..00000000000 --- a/models/feature_target_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type FeatureTargetType int - -const ( - GROUP_FEATURETARGETTYPE FeatureTargetType = iota - ADMINISTRATIVEUNIT_FEATURETARGETTYPE - ROLE_FEATURETARGETTYPE - UNKNOWNFUTUREVALUE_FEATURETARGETTYPE -) - -func (i FeatureTargetType) String() string { - return []string{"group", "administrativeUnit", "role", "unknownFutureValue"}[i] -} -func ParseFeatureTargetType(v string) (any, error) { - result := GROUP_FEATURETARGETTYPE - switch v { - case "group": - result = GROUP_FEATURETARGETTYPE - case "administrativeUnit": - result = ADMINISTRATIVEUNIT_FEATURETARGETTYPE - case "role": - result = ROLE_FEATURETARGETTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_FEATURETARGETTYPE - default: - return 0, errors.New("Unknown FeatureTargetType value: " + v) - } - return &result, nil -} -func SerializeFeatureTargetType(values []FeatureTargetType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i FeatureTargetType) isMultiValue() bool { - return false -} diff --git a/models/federated_idp_mfa_behavior.go b/models/federated_idp_mfa_behavior.go deleted file mode 100644 index bb39a7b40f1..00000000000 --- a/models/federated_idp_mfa_behavior.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type FederatedIdpMfaBehavior int - -const ( - ACCEPTIFMFADONEBYFEDERATEDIDP_FEDERATEDIDPMFABEHAVIOR FederatedIdpMfaBehavior = iota - ENFORCEMFABYFEDERATEDIDP_FEDERATEDIDPMFABEHAVIOR - REJECTMFABYFEDERATEDIDP_FEDERATEDIDPMFABEHAVIOR - UNKNOWNFUTUREVALUE_FEDERATEDIDPMFABEHAVIOR -) - -func (i FederatedIdpMfaBehavior) String() string { - return []string{"acceptIfMfaDoneByFederatedIdp", "enforceMfaByFederatedIdp", "rejectMfaByFederatedIdp", "unknownFutureValue"}[i] -} -func ParseFederatedIdpMfaBehavior(v string) (any, error) { - result := ACCEPTIFMFADONEBYFEDERATEDIDP_FEDERATEDIDPMFABEHAVIOR - switch v { - case "acceptIfMfaDoneByFederatedIdp": - result = ACCEPTIFMFADONEBYFEDERATEDIDP_FEDERATEDIDPMFABEHAVIOR - case "enforceMfaByFederatedIdp": - result = ENFORCEMFABYFEDERATEDIDP_FEDERATEDIDPMFABEHAVIOR - case "rejectMfaByFederatedIdp": - result = REJECTMFABYFEDERATEDIDP_FEDERATEDIDPMFABEHAVIOR - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_FEDERATEDIDPMFABEHAVIOR - default: - return 0, errors.New("Unknown FederatedIdpMfaBehavior value: " + v) - } - return &result, nil -} -func SerializeFederatedIdpMfaBehavior(values []FederatedIdpMfaBehavior) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i FederatedIdpMfaBehavior) isMultiValue() bool { - return false -} diff --git a/models/fido2_authentication_method.go b/models/fido2_authentication_method.go index 4f3b7c09f25..602d8b3fc56 100644 --- a/models/fido2_authentication_method.go +++ b/models/fido2_authentication_method.go @@ -45,13 +45,13 @@ func (m *Fido2AuthenticationMethod) GetAttestationCertificates()([]string) { return nil } // GetAttestationLevel gets the attestationLevel property value. The attestation level of this FIDO2 security key. Possible values are: attested, notAttested, unknownFutureValue. -func (m *Fido2AuthenticationMethod) GetAttestationLevel()(*AttestationLevel) { +func (m *Fido2AuthenticationMethod) GetAttestationLevel()(*Fido2AuthenticationMethod_attestationLevel) { val, err := m.GetBackingStore().Get("attestationLevel") if err != nil { panic(err) } if val != nil { - return val.(*AttestationLevel) + return val.(*Fido2AuthenticationMethod_attestationLevel) } return nil } @@ -107,12 +107,12 @@ func (m *Fido2AuthenticationMethod) GetFieldDeserializers()(map[string]func(i878 return nil } res["attestationLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAttestationLevel) + val, err := n.GetEnumValue(ParseFido2AuthenticationMethod_attestationLevel) if err != nil { return err } if val != nil { - m.SetAttestationLevel(val.(*AttestationLevel)) + m.SetAttestationLevel(val.(*Fido2AuthenticationMethod_attestationLevel)) } return nil } @@ -219,7 +219,7 @@ func (m *Fido2AuthenticationMethod) SetAttestationCertificates(value []string)() } } // SetAttestationLevel sets the attestationLevel property value. The attestation level of this FIDO2 security key. Possible values are: attested, notAttested, unknownFutureValue. -func (m *Fido2AuthenticationMethod) SetAttestationLevel(value *AttestationLevel)() { +func (m *Fido2AuthenticationMethod) SetAttestationLevel(value *Fido2AuthenticationMethod_attestationLevel)() { err := m.GetBackingStore().Set("attestationLevel", value) if err != nil { panic(err) @@ -252,13 +252,13 @@ type Fido2AuthenticationMethodable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAaGuid()(*string) GetAttestationCertificates()([]string) - GetAttestationLevel()(*AttestationLevel) + GetAttestationLevel()(*Fido2AuthenticationMethod_attestationLevel) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) GetModel()(*string) SetAaGuid(value *string)() SetAttestationCertificates(value []string)() - SetAttestationLevel(value *AttestationLevel)() + SetAttestationLevel(value *Fido2AuthenticationMethod_attestationLevel)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() SetModel(value *string)() diff --git a/models/fido2_authentication_method_attestation_level.go b/models/fido2_authentication_method_attestation_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/fido2_key_restrictions.go b/models/fido2_key_restrictions.go index b2bc9d0ab79..ff071b027c5 100644 --- a/models/fido2_key_restrictions.go +++ b/models/fido2_key_restrictions.go @@ -50,13 +50,13 @@ func (m *Fido2KeyRestrictions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078 return m.backingStore } // GetEnforcementType gets the enforcementType property value. Enforcement type. Possible values are: allow, block. -func (m *Fido2KeyRestrictions) GetEnforcementType()(*Fido2RestrictionEnforcementType) { +func (m *Fido2KeyRestrictions) GetEnforcementType()(*Fido2KeyRestrictions_enforcementType) { val, err := m.GetBackingStore().Get("enforcementType") if err != nil { panic(err) } if val != nil { - return val.(*Fido2RestrictionEnforcementType) + return val.(*Fido2KeyRestrictions_enforcementType) } return nil } @@ -80,12 +80,12 @@ func (m *Fido2KeyRestrictions) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["enforcementType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFido2RestrictionEnforcementType) + val, err := n.GetEnumValue(ParseFido2KeyRestrictions_enforcementType) if err != nil { return err } if val != nil { - m.SetEnforcementType(val.(*Fido2RestrictionEnforcementType)) + m.SetEnforcementType(val.(*Fido2KeyRestrictions_enforcementType)) } return nil } @@ -187,7 +187,7 @@ func (m *Fido2KeyRestrictions) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ec m.backingStore = value } // SetEnforcementType sets the enforcementType property value. Enforcement type. Possible values are: allow, block. -func (m *Fido2KeyRestrictions) SetEnforcementType(value *Fido2RestrictionEnforcementType)() { +func (m *Fido2KeyRestrictions) SetEnforcementType(value *Fido2KeyRestrictions_enforcementType)() { err := m.GetBackingStore().Set("enforcementType", value) if err != nil { panic(err) @@ -214,12 +214,12 @@ type Fido2KeyRestrictionsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAaGuids()([]string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEnforcementType()(*Fido2RestrictionEnforcementType) + GetEnforcementType()(*Fido2KeyRestrictions_enforcementType) GetIsEnforced()(*bool) GetOdataType()(*string) SetAaGuids(value []string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEnforcementType(value *Fido2RestrictionEnforcementType)() + SetEnforcementType(value *Fido2KeyRestrictions_enforcementType)() SetIsEnforced(value *bool)() SetOdataType(value *string)() } diff --git a/models/fido2_key_restrictions_enforcement_type.go b/models/fido2_key_restrictions_enforcement_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/fido2_restriction_enforcement_type.go b/models/fido2_restriction_enforcement_type.go deleted file mode 100644 index c2df5ef86f5..00000000000 --- a/models/fido2_restriction_enforcement_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type Fido2RestrictionEnforcementType int - -const ( - ALLOW_FIDO2RESTRICTIONENFORCEMENTTYPE Fido2RestrictionEnforcementType = iota - BLOCK_FIDO2RESTRICTIONENFORCEMENTTYPE - UNKNOWNFUTUREVALUE_FIDO2RESTRICTIONENFORCEMENTTYPE -) - -func (i Fido2RestrictionEnforcementType) String() string { - return []string{"allow", "block", "unknownFutureValue"}[i] -} -func ParseFido2RestrictionEnforcementType(v string) (any, error) { - result := ALLOW_FIDO2RESTRICTIONENFORCEMENTTYPE - switch v { - case "allow": - result = ALLOW_FIDO2RESTRICTIONENFORCEMENTTYPE - case "block": - result = BLOCK_FIDO2RESTRICTIONENFORCEMENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_FIDO2RESTRICTIONENFORCEMENTTYPE - default: - return 0, errors.New("Unknown Fido2RestrictionEnforcementType value: " + v) - } - return &result, nil -} -func SerializeFido2RestrictionEnforcementType(values []Fido2RestrictionEnforcementType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Fido2RestrictionEnforcementType) isMultiValue() bool { - return false -} diff --git a/models/file_hash.go b/models/file_hash.go index 38a16e952be..d6bedd774ed 100644 --- a/models/file_hash.go +++ b/models/file_hash.go @@ -42,12 +42,12 @@ func (m *FileHash) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9 func (m *FileHash) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["hashType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFileHashType) + val, err := n.GetEnumValue(ParseFileHash_hashType) if err != nil { return err } if val != nil { - m.SetHashType(val.(*FileHashType)) + m.SetHashType(val.(*FileHash_hashType)) } return nil } @@ -74,13 +74,13 @@ func (m *FileHash) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return res } // GetHashType gets the hashType property value. File hash type. Possible values are: unknown, sha1, sha256, md5, authenticodeHash256, lsHash, ctph, peSha1, peSha256. -func (m *FileHash) GetHashType()(*FileHashType) { +func (m *FileHash) GetHashType()(*FileHash_hashType) { val, err := m.GetBackingStore().Get("hashType") if err != nil { panic(err) } if val != nil { - return val.(*FileHashType) + return val.(*FileHash_hashType) } return nil } @@ -147,7 +147,7 @@ func (m *FileHash) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d4118542 m.backingStore = value } // SetHashType sets the hashType property value. File hash type. Possible values are: unknown, sha1, sha256, md5, authenticodeHash256, lsHash, ctph, peSha1, peSha256. -func (m *FileHash) SetHashType(value *FileHashType)() { +func (m *FileHash) SetHashType(value *FileHash_hashType)() { err := m.GetBackingStore().Set("hashType", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ type FileHashable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetHashType()(*FileHashType) + GetHashType()(*FileHash_hashType) GetHashValue()(*string) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetHashType(value *FileHashType)() + SetHashType(value *FileHash_hashType)() SetHashValue(value *string)() SetOdataType(value *string)() } diff --git a/models/file_hash_hash_type.go b/models/file_hash_hash_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/file_hash_type.go b/models/file_hash_type.go deleted file mode 100644 index 090148fcbaf..00000000000 --- a/models/file_hash_type.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type FileHashType int - -const ( - UNKNOWN_FILEHASHTYPE FileHashType = iota - SHA1_FILEHASHTYPE - SHA256_FILEHASHTYPE - MD5_FILEHASHTYPE - AUTHENTICODEHASH256_FILEHASHTYPE - LSHASH_FILEHASHTYPE - CTPH_FILEHASHTYPE - UNKNOWNFUTUREVALUE_FILEHASHTYPE -) - -func (i FileHashType) String() string { - return []string{"unknown", "sha1", "sha256", "md5", "authenticodeHash256", "lsHash", "ctph", "unknownFutureValue"}[i] -} -func ParseFileHashType(v string) (any, error) { - result := UNKNOWN_FILEHASHTYPE - switch v { - case "unknown": - result = UNKNOWN_FILEHASHTYPE - case "sha1": - result = SHA1_FILEHASHTYPE - case "sha256": - result = SHA256_FILEHASHTYPE - case "md5": - result = MD5_FILEHASHTYPE - case "authenticodeHash256": - result = AUTHENTICODEHASH256_FILEHASHTYPE - case "lsHash": - result = LSHASH_FILEHASHTYPE - case "ctph": - result = CTPH_FILEHASHTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_FILEHASHTYPE - default: - return 0, errors.New("Unknown FileHashType value: " + v) - } - return &result, nil -} -func SerializeFileHashType(values []FileHashType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i FileHashType) isMultiValue() bool { - return false -} diff --git a/models/file_vault_state.go b/models/file_vault_state.go deleted file mode 100644 index 029f2daedd5..00000000000 --- a/models/file_vault_state.go +++ /dev/null @@ -1,57 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// FileVault State -type FileVaultState int - -const ( - // FileVault State Success - SUCCESS_FILEVAULTSTATE FileVaultState = iota - // FileVault has been enabled by user and is not being managed by policy - DRIVEENCRYPTEDBYUSER_FILEVAULTSTATE - // FileVault policy is successfully installed but user has not started encryption - USERDEFERREDENCRYPTION_FILEVAULTSTATE - // FileVault recovery key escrow is not enabled - ESCROWNOTENABLED_FILEVAULTSTATE -) - -func (i FileVaultState) String() string { - var values []string - for p := FileVaultState(1); p <= ESCROWNOTENABLED_FILEVAULTSTATE; p <<= 1 { - if i&p == p { - values = append(values, []string{"success", "driveEncryptedByUser", "userDeferredEncryption", "escrowNotEnabled"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseFileVaultState(v string) (any, error) { - var result FileVaultState - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "success": - result |= SUCCESS_FILEVAULTSTATE - case "driveEncryptedByUser": - result |= DRIVEENCRYPTEDBYUSER_FILEVAULTSTATE - case "userDeferredEncryption": - result |= USERDEFERREDENCRYPTION_FILEVAULTSTATE - case "escrowNotEnabled": - result |= ESCROWNOTENABLED_FILEVAULTSTATE - default: - return 0, errors.New("Unknown FileVaultState value: " + v) - } - } - return &result, nil -} -func SerializeFileVaultState(values []FileVaultState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i FileVaultState) isMultiValue() bool { - return true -} diff --git a/models/followup_flag.go b/models/followup_flag.go index 49065e09a5a..f0063deb3f7 100644 --- a/models/followup_flag.go +++ b/models/followup_flag.go @@ -84,12 +84,12 @@ func (m *FollowupFlag) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["flagStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFollowupFlagStatus) + val, err := n.GetEnumValue(ParseFollowupFlag_flagStatus) if err != nil { return err } if val != nil { - m.SetFlagStatus(val.(*FollowupFlagStatus)) + m.SetFlagStatus(val.(*FollowupFlag_flagStatus)) } return nil } @@ -116,13 +116,13 @@ func (m *FollowupFlag) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return res } // GetFlagStatus gets the flagStatus property value. The status for follow-up for an item. Possible values are notFlagged, complete, and flagged. -func (m *FollowupFlag) GetFlagStatus()(*FollowupFlagStatus) { +func (m *FollowupFlag) GetFlagStatus()(*FollowupFlag_flagStatus) { val, err := m.GetBackingStore().Get("flagStatus") if err != nil { panic(err) } if val != nil { - return val.(*FollowupFlagStatus) + return val.(*FollowupFlag_flagStatus) } return nil } @@ -215,7 +215,7 @@ func (m *FollowupFlag) SetDueDateTime(value DateTimeTimeZoneable)() { } } // SetFlagStatus sets the flagStatus property value. The status for follow-up for an item. Possible values are notFlagged, complete, and flagged. -func (m *FollowupFlag) SetFlagStatus(value *FollowupFlagStatus)() { +func (m *FollowupFlag) SetFlagStatus(value *FollowupFlag_flagStatus)() { err := m.GetBackingStore().Set("flagStatus", value) if err != nil { panic(err) @@ -243,13 +243,13 @@ type FollowupFlagable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCompletedDateTime()(DateTimeTimeZoneable) GetDueDateTime()(DateTimeTimeZoneable) - GetFlagStatus()(*FollowupFlagStatus) + GetFlagStatus()(*FollowupFlag_flagStatus) GetOdataType()(*string) GetStartDateTime()(DateTimeTimeZoneable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCompletedDateTime(value DateTimeTimeZoneable)() SetDueDateTime(value DateTimeTimeZoneable)() - SetFlagStatus(value *FollowupFlagStatus)() + SetFlagStatus(value *FollowupFlag_flagStatus)() SetOdataType(value *string)() SetStartDateTime(value DateTimeTimeZoneable)() } diff --git a/models/followup_flag_flag_status.go b/models/followup_flag_flag_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/followup_flag_status.go b/models/followup_flag_status.go deleted file mode 100644 index 516ab3147d4..00000000000 --- a/models/followup_flag_status.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type FollowupFlagStatus int - -const ( - NOTFLAGGED_FOLLOWUPFLAGSTATUS FollowupFlagStatus = iota - COMPLETE_FOLLOWUPFLAGSTATUS - FLAGGED_FOLLOWUPFLAGSTATUS -) - -func (i FollowupFlagStatus) String() string { - return []string{"notFlagged", "complete", "flagged"}[i] -} -func ParseFollowupFlagStatus(v string) (any, error) { - result := NOTFLAGGED_FOLLOWUPFLAGSTATUS - switch v { - case "notFlagged": - result = NOTFLAGGED_FOLLOWUPFLAGSTATUS - case "complete": - result = COMPLETE_FOLLOWUPFLAGSTATUS - case "flagged": - result = FLAGGED_FOLLOWUPFLAGSTATUS - default: - return 0, errors.New("Unknown FollowupFlagStatus value: " + v) - } - return &result, nil -} -func SerializeFollowupFlagStatus(values []FollowupFlagStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i FollowupFlagStatus) isMultiValue() bool { - return false -} diff --git a/models/free_busy_status.go b/models/free_busy_status.go deleted file mode 100644 index 94502d129ea..00000000000 --- a/models/free_busy_status.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type FreeBusyStatus int - -const ( - UNKNOWN_FREEBUSYSTATUS FreeBusyStatus = iota - FREE_FREEBUSYSTATUS - TENTATIVE_FREEBUSYSTATUS - BUSY_FREEBUSYSTATUS - OOF_FREEBUSYSTATUS - WORKINGELSEWHERE_FREEBUSYSTATUS -) - -func (i FreeBusyStatus) String() string { - return []string{"unknown", "free", "tentative", "busy", "oof", "workingElsewhere"}[i] -} -func ParseFreeBusyStatus(v string) (any, error) { - result := UNKNOWN_FREEBUSYSTATUS - switch v { - case "unknown": - result = UNKNOWN_FREEBUSYSTATUS - case "free": - result = FREE_FREEBUSYSTATUS - case "tentative": - result = TENTATIVE_FREEBUSYSTATUS - case "busy": - result = BUSY_FREEBUSYSTATUS - case "oof": - result = OOF_FREEBUSYSTATUS - case "workingElsewhere": - result = WORKINGELSEWHERE_FREEBUSYSTATUS - default: - return 0, errors.New("Unknown FreeBusyStatus value: " + v) - } - return &result, nil -} -func SerializeFreeBusyStatus(values []FreeBusyStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i FreeBusyStatus) isMultiValue() bool { - return false -} diff --git a/models/frontline_cloud_pc_access_state.go b/models/frontline_cloud_pc_access_state.go deleted file mode 100644 index 332fd2fbf1d..00000000000 --- a/models/frontline_cloud_pc_access_state.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type FrontlineCloudPcAccessState int - -const ( - UNASSIGNED_FRONTLINECLOUDPCACCESSSTATE FrontlineCloudPcAccessState = iota - NOLICENSESAVAILABLE_FRONTLINECLOUDPCACCESSSTATE - ACTIVATIONFAILED_FRONTLINECLOUDPCACCESSSTATE - ACTIVE_FRONTLINECLOUDPCACCESSSTATE - ACTIVATING_FRONTLINECLOUDPCACCESSSTATE - STANDBYMODE_FRONTLINECLOUDPCACCESSSTATE - UNKNOWNFUTUREVALUE_FRONTLINECLOUDPCACCESSSTATE -) - -func (i FrontlineCloudPcAccessState) String() string { - return []string{"unassigned", "noLicensesAvailable", "activationFailed", "active", "activating", "standbyMode", "unknownFutureValue"}[i] -} -func ParseFrontlineCloudPcAccessState(v string) (any, error) { - result := UNASSIGNED_FRONTLINECLOUDPCACCESSSTATE - switch v { - case "unassigned": - result = UNASSIGNED_FRONTLINECLOUDPCACCESSSTATE - case "noLicensesAvailable": - result = NOLICENSESAVAILABLE_FRONTLINECLOUDPCACCESSSTATE - case "activationFailed": - result = ACTIVATIONFAILED_FRONTLINECLOUDPCACCESSSTATE - case "active": - result = ACTIVE_FRONTLINECLOUDPCACCESSSTATE - case "activating": - result = ACTIVATING_FRONTLINECLOUDPCACCESSSTATE - case "standbyMode": - result = STANDBYMODE_FRONTLINECLOUDPCACCESSSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_FRONTLINECLOUDPCACCESSSTATE - default: - return 0, errors.New("Unknown FrontlineCloudPcAccessState value: " + v) - } - return &result, nil -} -func SerializeFrontlineCloudPcAccessState(values []FrontlineCloudPcAccessState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i FrontlineCloudPcAccessState) isMultiValue() bool { - return false -} diff --git a/models/giphy_rating_type.go b/models/giphy_rating_type.go deleted file mode 100644 index 84d3c82d9ad..00000000000 --- a/models/giphy_rating_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type GiphyRatingType int - -const ( - STRICT_GIPHYRATINGTYPE GiphyRatingType = iota - MODERATE_GIPHYRATINGTYPE - UNKNOWNFUTUREVALUE_GIPHYRATINGTYPE -) - -func (i GiphyRatingType) String() string { - return []string{"strict", "moderate", "unknownFutureValue"}[i] -} -func ParseGiphyRatingType(v string) (any, error) { - result := STRICT_GIPHYRATINGTYPE - switch v { - case "strict": - result = STRICT_GIPHYRATINGTYPE - case "moderate": - result = MODERATE_GIPHYRATINGTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_GIPHYRATINGTYPE - default: - return 0, errors.New("Unknown GiphyRatingType value: " + v) - } - return &result, nil -} -func SerializeGiphyRatingType(values []GiphyRatingType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i GiphyRatingType) isMultiValue() bool { - return false -} diff --git a/models/group.go b/models/group.go index 9121be5a1c3..894d2d36cd7 100644 --- a/models/group.go +++ b/models/group.go @@ -34,13 +34,13 @@ func (m *Group) GetAcceptedSenders()([]DirectoryObjectable) { return nil } // GetAccessType gets the accessType property value. The accessType property -func (m *Group) GetAccessType()(*GroupAccessType) { +func (m *Group) GetAccessType()(*Group_accessType) { val, err := m.GetBackingStore().Get("accessType") if err != nil { panic(err) } if val != nil { - return val.(*GroupAccessType) + return val.(*Group_accessType) } return nil } @@ -284,12 +284,12 @@ func (m *Group) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["accessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseGroupAccessType) + val, err := n.GetEnumValue(ParseGroup_accessType) if err != nil { return err } if val != nil { - m.SetAccessType(val.(*GroupAccessType)) + m.SetAccessType(val.(*Group_accessType)) } return nil } @@ -2534,7 +2534,7 @@ func (m *Group) SetAcceptedSenders(value []DirectoryObjectable)() { } } // SetAccessType sets the accessType property value. The accessType property -func (m *Group) SetAccessType(value *GroupAccessType)() { +func (m *Group) SetAccessType(value *Group_accessType)() { err := m.GetBackingStore().Set("accessType", value) if err != nil { panic(err) @@ -3091,7 +3091,7 @@ type Groupable interface { DirectoryObjectable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAcceptedSenders()([]DirectoryObjectable) - GetAccessType()(*GroupAccessType) + GetAccessType()(*Group_accessType) GetAllowExternalSenders()(*bool) GetAppRoleAssignments()([]AppRoleAssignmentable) GetAssignedLabels()([]AssignedLabelable) @@ -3171,7 +3171,7 @@ type Groupable interface { GetVisibility()(*string) GetWritebackConfiguration()(GroupWritebackConfigurationable) SetAcceptedSenders(value []DirectoryObjectable)() - SetAccessType(value *GroupAccessType)() + SetAccessType(value *Group_accessType)() SetAllowExternalSenders(value *bool)() SetAppRoleAssignments(value []AppRoleAssignmentable)() SetAssignedLabels(value []AssignedLabelable)() diff --git a/models/group_access_type.go b/models/group_access_type.go index 7643788cc9c..e69de29bb2d 100644 --- a/models/group_access_type.go +++ b/models/group_access_type.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type GroupAccessType int - -const ( - NONE_GROUPACCESSTYPE GroupAccessType = iota - PRIVATE_GROUPACCESSTYPE - SECRET_GROUPACCESSTYPE - PUBLIC_GROUPACCESSTYPE -) - -func (i GroupAccessType) String() string { - return []string{"none", "private", "secret", "public"}[i] -} -func ParseGroupAccessType(v string) (any, error) { - result := NONE_GROUPACCESSTYPE - switch v { - case "none": - result = NONE_GROUPACCESSTYPE - case "private": - result = PRIVATE_GROUPACCESSTYPE - case "secret": - result = SECRET_GROUPACCESSTYPE - case "public": - result = PUBLIC_GROUPACCESSTYPE - default: - return 0, errors.New("Unknown GroupAccessType value: " + v) - } - return &result, nil -} -func SerializeGroupAccessType(values []GroupAccessType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i GroupAccessType) isMultiValue() bool { - return false -} diff --git a/models/group_privacy.go b/models/group_privacy.go deleted file mode 100644 index ba1048a8ff7..00000000000 --- a/models/group_privacy.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type GroupPrivacy int - -const ( - UNSPECIFIED_GROUPPRIVACY GroupPrivacy = iota - PUBLIC_GROUPPRIVACY - PRIVATE_GROUPPRIVACY - UNKNOWNFUTUREVALUE_GROUPPRIVACY -) - -func (i GroupPrivacy) String() string { - return []string{"unspecified", "public", "private", "unknownFutureValue"}[i] -} -func ParseGroupPrivacy(v string) (any, error) { - result := UNSPECIFIED_GROUPPRIVACY - switch v { - case "unspecified": - result = UNSPECIFIED_GROUPPRIVACY - case "public": - result = PUBLIC_GROUPPRIVACY - case "private": - result = PRIVATE_GROUPPRIVACY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_GROUPPRIVACY - default: - return 0, errors.New("Unknown GroupPrivacy value: " + v) - } - return &result, nil -} -func SerializeGroupPrivacy(values []GroupPrivacy) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i GroupPrivacy) isMultiValue() bool { - return false -} diff --git a/models/group_type.go b/models/group_type.go deleted file mode 100644 index 6d340a54f67..00000000000 --- a/models/group_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type GroupType int - -const ( - UNIFIEDGROUPS_GROUPTYPE GroupType = iota - AZUREAD_GROUPTYPE - UNKNOWNFUTUREVALUE_GROUPTYPE -) - -func (i GroupType) String() string { - return []string{"unifiedGroups", "azureAD", "unknownFutureValue"}[i] -} -func ParseGroupType(v string) (any, error) { - result := UNIFIEDGROUPS_GROUPTYPE - switch v { - case "unifiedGroups": - result = UNIFIEDGROUPS_GROUPTYPE - case "azureAD": - result = AZUREAD_GROUPTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_GROUPTYPE - default: - return 0, errors.New("Unknown GroupType value: " + v) - } - return &result, nil -} -func SerializeGroupType(values []GroupType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i GroupType) isMultiValue() bool { - return false -} diff --git a/models/horizontal_section.go b/models/horizontal_section.go index 7a44583cd3e..d239a69f7ad 100644 --- a/models/horizontal_section.go +++ b/models/horizontal_section.go @@ -31,13 +31,13 @@ func (m *HorizontalSection) GetColumns()([]HorizontalSectionColumnable) { return nil } // GetEmphasis gets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. -func (m *HorizontalSection) GetEmphasis()(*SectionEmphasisType) { +func (m *HorizontalSection) GetEmphasis()(*HorizontalSection_emphasis) { val, err := m.GetBackingStore().Get("emphasis") if err != nil { panic(err) } if val != nil { - return val.(*SectionEmphasisType) + return val.(*HorizontalSection_emphasis) } return nil } @@ -61,35 +61,35 @@ func (m *HorizontalSection) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["emphasis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSectionEmphasisType) + val, err := n.GetEnumValue(ParseHorizontalSection_emphasis) if err != nil { return err } if val != nil { - m.SetEmphasis(val.(*SectionEmphasisType)) + m.SetEmphasis(val.(*HorizontalSection_emphasis)) } return nil } res["layout"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseHorizontalSectionLayoutType) + val, err := n.GetEnumValue(ParseHorizontalSection_layout) if err != nil { return err } if val != nil { - m.SetLayout(val.(*HorizontalSectionLayoutType)) + m.SetLayout(val.(*HorizontalSection_layout)) } return nil } return res } // GetLayout gets the layout property value. Layout type of the section. The possible values are: none, oneColumn, twoColumns, threeColumns, oneThirdLeftColumn, oneThirdRightColumn, fullWidth, unknownFutureValue. -func (m *HorizontalSection) GetLayout()(*HorizontalSectionLayoutType) { +func (m *HorizontalSection) GetLayout()(*HorizontalSection_layout) { val, err := m.GetBackingStore().Get("layout") if err != nil { panic(err) } if val != nil { - return val.(*HorizontalSectionLayoutType) + return val.(*HorizontalSection_layout) } return nil } @@ -135,14 +135,14 @@ func (m *HorizontalSection) SetColumns(value []HorizontalSectionColumnable)() { } } // SetEmphasis sets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. -func (m *HorizontalSection) SetEmphasis(value *SectionEmphasisType)() { +func (m *HorizontalSection) SetEmphasis(value *HorizontalSection_emphasis)() { err := m.GetBackingStore().Set("emphasis", value) if err != nil { panic(err) } } // SetLayout sets the layout property value. Layout type of the section. The possible values are: none, oneColumn, twoColumns, threeColumns, oneThirdLeftColumn, oneThirdRightColumn, fullWidth, unknownFutureValue. -func (m *HorizontalSection) SetLayout(value *HorizontalSectionLayoutType)() { +func (m *HorizontalSection) SetLayout(value *HorizontalSection_layout)() { err := m.GetBackingStore().Set("layout", value) if err != nil { panic(err) @@ -153,9 +153,9 @@ type HorizontalSectionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetColumns()([]HorizontalSectionColumnable) - GetEmphasis()(*SectionEmphasisType) - GetLayout()(*HorizontalSectionLayoutType) + GetEmphasis()(*HorizontalSection_emphasis) + GetLayout()(*HorizontalSection_layout) SetColumns(value []HorizontalSectionColumnable)() - SetEmphasis(value *SectionEmphasisType)() - SetLayout(value *HorizontalSectionLayoutType)() + SetEmphasis(value *HorizontalSection_emphasis)() + SetLayout(value *HorizontalSection_layout)() } diff --git a/models/horizontal_section_emphasis.go b/models/horizontal_section_emphasis.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/horizontal_section_layout.go b/models/horizontal_section_layout.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/horizontal_section_layout_type.go b/models/horizontal_section_layout_type.go deleted file mode 100644 index 52c4432ca41..00000000000 --- a/models/horizontal_section_layout_type.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type HorizontalSectionLayoutType int - -const ( - NONE_HORIZONTALSECTIONLAYOUTTYPE HorizontalSectionLayoutType = iota - ONECOLUMN_HORIZONTALSECTIONLAYOUTTYPE - TWOCOLUMNS_HORIZONTALSECTIONLAYOUTTYPE - THREECOLUMNS_HORIZONTALSECTIONLAYOUTTYPE - ONETHIRDLEFTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE - ONETHIRDRIGHTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE - FULLWIDTH_HORIZONTALSECTIONLAYOUTTYPE - UNKNOWNFUTUREVALUE_HORIZONTALSECTIONLAYOUTTYPE -) - -func (i HorizontalSectionLayoutType) String() string { - return []string{"none", "oneColumn", "twoColumns", "threeColumns", "oneThirdLeftColumn", "oneThirdRightColumn", "fullWidth", "unknownFutureValue"}[i] -} -func ParseHorizontalSectionLayoutType(v string) (any, error) { - result := NONE_HORIZONTALSECTIONLAYOUTTYPE - switch v { - case "none": - result = NONE_HORIZONTALSECTIONLAYOUTTYPE - case "oneColumn": - result = ONECOLUMN_HORIZONTALSECTIONLAYOUTTYPE - case "twoColumns": - result = TWOCOLUMNS_HORIZONTALSECTIONLAYOUTTYPE - case "threeColumns": - result = THREECOLUMNS_HORIZONTALSECTIONLAYOUTTYPE - case "oneThirdLeftColumn": - result = ONETHIRDLEFTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE - case "oneThirdRightColumn": - result = ONETHIRDRIGHTCOLUMN_HORIZONTALSECTIONLAYOUTTYPE - case "fullWidth": - result = FULLWIDTH_HORIZONTALSECTIONLAYOUTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_HORIZONTALSECTIONLAYOUTTYPE - default: - return 0, errors.New("Unknown HorizontalSectionLayoutType value: " + v) - } - return &result, nil -} -func SerializeHorizontalSectionLayoutType(values []HorizontalSectionLayoutType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i HorizontalSectionLayoutType) isMultiValue() bool { - return false -} diff --git a/models/identity_provider_state.go b/models/identity_provider_state.go deleted file mode 100644 index 5e06c4eb356..00000000000 --- a/models/identity_provider_state.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type IdentityProviderState int - -const ( - ENABLED_IDENTITYPROVIDERSTATE IdentityProviderState = iota - DISABLED_IDENTITYPROVIDERSTATE - UNKNOWNFUTUREVALUE_IDENTITYPROVIDERSTATE -) - -func (i IdentityProviderState) String() string { - return []string{"enabled", "disabled", "unknownFutureValue"}[i] -} -func ParseIdentityProviderState(v string) (any, error) { - result := ENABLED_IDENTITYPROVIDERSTATE - switch v { - case "enabled": - result = ENABLED_IDENTITYPROVIDERSTATE - case "disabled": - result = DISABLED_IDENTITYPROVIDERSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_IDENTITYPROVIDERSTATE - default: - return 0, errors.New("Unknown IdentityProviderState value: " + v) - } - return &result, nil -} -func SerializeIdentityProviderState(values []IdentityProviderState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i IdentityProviderState) isMultiValue() bool { - return false -} diff --git a/models/identity_source_type.go b/models/identity_source_type.go deleted file mode 100644 index 24669d4280b..00000000000 --- a/models/identity_source_type.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type IdentitySourceType int - -const ( - AZUREACTIVEDIRECTORY_IDENTITYSOURCETYPE IdentitySourceType = iota - EXTERNAL_IDENTITYSOURCETYPE -) - -func (i IdentitySourceType) String() string { - return []string{"azureActiveDirectory", "external"}[i] -} -func ParseIdentitySourceType(v string) (any, error) { - result := AZUREACTIVEDIRECTORY_IDENTITYSOURCETYPE - switch v { - case "azureActiveDirectory": - result = AZUREACTIVEDIRECTORY_IDENTITYSOURCETYPE - case "external": - result = EXTERNAL_IDENTITYSOURCETYPE - default: - return 0, errors.New("Unknown IdentitySourceType value: " + v) - } - return &result, nil -} -func SerializeIdentitySourceType(values []IdentitySourceType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i IdentitySourceType) isMultiValue() bool { - return false -} diff --git a/models/identitygovernance/custom_task_extension_callback_data.go b/models/identitygovernance/custom_task_extension_callback_data.go index 11231fe21ba..e08633988a4 100644 --- a/models/identitygovernance/custom_task_extension_callback_data.go +++ b/models/identitygovernance/custom_task_extension_callback_data.go @@ -26,25 +26,25 @@ func CreateCustomTaskExtensionCallbackDataFromDiscriminatorValue(parseNode i878a func (m *CustomTaskExtensionCallbackData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CustomExtensionData.GetFieldDeserializers() res["operationStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCustomTaskExtensionOperationStatus) + val, err := n.GetEnumValue(ParseCustomTaskExtensionCallbackData_operationStatus) if err != nil { return err } if val != nil { - m.SetOperationStatus(val.(*CustomTaskExtensionOperationStatus)) + m.SetOperationStatus(val.(*CustomTaskExtensionCallbackData_operationStatus)) } return nil } return res } // GetOperationStatus gets the operationStatus property value. Operation status that's provided by the Azure Logic App indicating whenever the Azure Logic App has run successfully or not. Supported values: completed, failed, unknownFutureValue. -func (m *CustomTaskExtensionCallbackData) GetOperationStatus()(*CustomTaskExtensionOperationStatus) { +func (m *CustomTaskExtensionCallbackData) GetOperationStatus()(*CustomTaskExtensionCallbackData_operationStatus) { val, err := m.GetBackingStore().Get("operationStatus") if err != nil { panic(err) } if val != nil { - return val.(*CustomTaskExtensionOperationStatus) + return val.(*CustomTaskExtensionCallbackData_operationStatus) } return nil } @@ -64,7 +64,7 @@ func (m *CustomTaskExtensionCallbackData) Serialize(writer i878a80d2330e89d26896 return nil } // SetOperationStatus sets the operationStatus property value. Operation status that's provided by the Azure Logic App indicating whenever the Azure Logic App has run successfully or not. Supported values: completed, failed, unknownFutureValue. -func (m *CustomTaskExtensionCallbackData) SetOperationStatus(value *CustomTaskExtensionOperationStatus)() { +func (m *CustomTaskExtensionCallbackData) SetOperationStatus(value *CustomTaskExtensionCallbackData_operationStatus)() { err := m.GetBackingStore().Set("operationStatus", value) if err != nil { panic(err) @@ -74,6 +74,6 @@ func (m *CustomTaskExtensionCallbackData) SetOperationStatus(value *CustomTaskEx type CustomTaskExtensionCallbackDataable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionDataable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetOperationStatus()(*CustomTaskExtensionOperationStatus) - SetOperationStatus(value *CustomTaskExtensionOperationStatus)() + GetOperationStatus()(*CustomTaskExtensionCallbackData_operationStatus) + SetOperationStatus(value *CustomTaskExtensionCallbackData_operationStatus)() } diff --git a/models/identitygovernance/custom_task_extension_callback_data_operation_status.go b/models/identitygovernance/custom_task_extension_callback_data_operation_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/identitygovernance/custom_task_extension_operation_status.go b/models/identitygovernance/custom_task_extension_operation_status.go deleted file mode 100644 index 9146b7f4f4f..00000000000 --- a/models/identitygovernance/custom_task_extension_operation_status.go +++ /dev/null @@ -1,40 +0,0 @@ -package identitygovernance -import ( - "errors" -) -// -type CustomTaskExtensionOperationStatus int - -const ( - COMPLETED_CUSTOMTASKEXTENSIONOPERATIONSTATUS CustomTaskExtensionOperationStatus = iota - FAILED_CUSTOMTASKEXTENSIONOPERATIONSTATUS - UNKNOWNFUTUREVALUE_CUSTOMTASKEXTENSIONOPERATIONSTATUS -) - -func (i CustomTaskExtensionOperationStatus) String() string { - return []string{"completed", "failed", "unknownFutureValue"}[i] -} -func ParseCustomTaskExtensionOperationStatus(v string) (any, error) { - result := COMPLETED_CUSTOMTASKEXTENSIONOPERATIONSTATUS - switch v { - case "completed": - result = COMPLETED_CUSTOMTASKEXTENSIONOPERATIONSTATUS - case "failed": - result = FAILED_CUSTOMTASKEXTENSIONOPERATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CUSTOMTASKEXTENSIONOPERATIONSTATUS - default: - return 0, errors.New("Unknown CustomTaskExtensionOperationStatus value: " + v) - } - return &result, nil -} -func SerializeCustomTaskExtensionOperationStatus(values []CustomTaskExtensionOperationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CustomTaskExtensionOperationStatus) isMultiValue() bool { - return false -} diff --git a/models/image_tagging_choice.go b/models/image_tagging_choice.go deleted file mode 100644 index ff8e402bdee..00000000000 --- a/models/image_tagging_choice.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ImageTaggingChoice int - -const ( - DISABLED_IMAGETAGGINGCHOICE ImageTaggingChoice = iota - BASIC_IMAGETAGGINGCHOICE - ENHANCED_IMAGETAGGINGCHOICE - UNKNOWNFUTUREVALUE_IMAGETAGGINGCHOICE -) - -func (i ImageTaggingChoice) String() string { - return []string{"disabled", "basic", "enhanced", "unknownFutureValue"}[i] -} -func ParseImageTaggingChoice(v string) (any, error) { - result := DISABLED_IMAGETAGGINGCHOICE - switch v { - case "disabled": - result = DISABLED_IMAGETAGGINGCHOICE - case "basic": - result = BASIC_IMAGETAGGINGCHOICE - case "enhanced": - result = ENHANCED_IMAGETAGGINGCHOICE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_IMAGETAGGINGCHOICE - default: - return 0, errors.New("Unknown ImageTaggingChoice value: " + v) - } - return &result, nil -} -func SerializeImageTaggingChoice(values []ImageTaggingChoice) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ImageTaggingChoice) isMultiValue() bool { - return false -} diff --git a/models/included_user_roles.go b/models/included_user_roles.go deleted file mode 100644 index 8e74da14c0c..00000000000 --- a/models/included_user_roles.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type IncludedUserRoles int - -const ( - ALL_INCLUDEDUSERROLES IncludedUserRoles = iota - PRIVILEGEDADMIN_INCLUDEDUSERROLES - ADMIN_INCLUDEDUSERROLES - USER_INCLUDEDUSERROLES - UNKNOWNFUTUREVALUE_INCLUDEDUSERROLES -) - -func (i IncludedUserRoles) String() string { - return []string{"all", "privilegedAdmin", "admin", "user", "unknownFutureValue"}[i] -} -func ParseIncludedUserRoles(v string) (any, error) { - result := ALL_INCLUDEDUSERROLES - switch v { - case "all": - result = ALL_INCLUDEDUSERROLES - case "privilegedAdmin": - result = PRIVILEGEDADMIN_INCLUDEDUSERROLES - case "admin": - result = ADMIN_INCLUDEDUSERROLES - case "user": - result = USER_INCLUDEDUSERROLES - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_INCLUDEDUSERROLES - default: - return 0, errors.New("Unknown IncludedUserRoles value: " + v) - } - return &result, nil -} -func SerializeIncludedUserRoles(values []IncludedUserRoles) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i IncludedUserRoles) isMultiValue() bool { - return false -} diff --git a/models/included_user_types.go b/models/included_user_types.go deleted file mode 100644 index dc398a6a7a0..00000000000 --- a/models/included_user_types.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type IncludedUserTypes int - -const ( - ALL_INCLUDEDUSERTYPES IncludedUserTypes = iota - MEMBER_INCLUDEDUSERTYPES - GUEST_INCLUDEDUSERTYPES - UNKNOWNFUTUREVALUE_INCLUDEDUSERTYPES -) - -func (i IncludedUserTypes) String() string { - return []string{"all", "member", "guest", "unknownFutureValue"}[i] -} -func ParseIncludedUserTypes(v string) (any, error) { - result := ALL_INCLUDEDUSERTYPES - switch v { - case "all": - result = ALL_INCLUDEDUSERTYPES - case "member": - result = MEMBER_INCLUDEDUSERTYPES - case "guest": - result = GUEST_INCLUDEDUSERTYPES - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_INCLUDEDUSERTYPES - default: - return 0, errors.New("Unknown IncludedUserTypes value: " + v) - } - return &result, nil -} -func SerializeIncludedUserTypes(values []IncludedUserTypes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i IncludedUserTypes) isMultiValue() bool { - return false -} diff --git a/models/incoming_token_type.go b/models/incoming_token_type.go deleted file mode 100644 index 3060ee6857a..00000000000 --- a/models/incoming_token_type.go +++ /dev/null @@ -1,59 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type IncomingTokenType int - -const ( - NONE_INCOMINGTOKENTYPE IncomingTokenType = iota - PRIMARYREFRESHTOKEN_INCOMINGTOKENTYPE - SAML11_INCOMINGTOKENTYPE - SAML20_INCOMINGTOKENTYPE - UNKNOWNFUTUREVALUE_INCOMINGTOKENTYPE - REMOTEDESKTOPTOKEN_INCOMINGTOKENTYPE -) - -func (i IncomingTokenType) String() string { - var values []string - for p := IncomingTokenType(1); p <= REMOTEDESKTOPTOKEN_INCOMINGTOKENTYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "primaryRefreshToken", "saml11", "saml20", "unknownFutureValue", "remoteDesktopToken"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseIncomingTokenType(v string) (any, error) { - var result IncomingTokenType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_INCOMINGTOKENTYPE - case "primaryRefreshToken": - result |= PRIMARYREFRESHTOKEN_INCOMINGTOKENTYPE - case "saml11": - result |= SAML11_INCOMINGTOKENTYPE - case "saml20": - result |= SAML20_INCOMINGTOKENTYPE - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_INCOMINGTOKENTYPE - case "remoteDesktopToken": - result |= REMOTEDESKTOPTOKEN_INCOMINGTOKENTYPE - default: - return 0, errors.New("Unknown IncomingTokenType value: " + v) - } - } - return &result, nil -} -func SerializeIncomingTokenType(values []IncomingTokenType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i IncomingTokenType) isMultiValue() bool { - return true -} diff --git a/models/inference_classification_override.go b/models/inference_classification_override.go index c59a1ecadb4..c80ce06c1c1 100644 --- a/models/inference_classification_override.go +++ b/models/inference_classification_override.go @@ -20,13 +20,13 @@ func CreateInferenceClassificationOverrideFromDiscriminatorValue(parseNode i878a return NewInferenceClassificationOverride(), nil } // GetClassifyAs gets the classifyAs property value. Specifies how incoming messages from a specific sender should always be classified as. Possible values are: focused, other. -func (m *InferenceClassificationOverride) GetClassifyAs()(*InferenceClassificationType) { +func (m *InferenceClassificationOverride) GetClassifyAs()(*InferenceClassificationOverride_classifyAs) { val, err := m.GetBackingStore().Get("classifyAs") if err != nil { panic(err) } if val != nil { - return val.(*InferenceClassificationType) + return val.(*InferenceClassificationOverride_classifyAs) } return nil } @@ -34,12 +34,12 @@ func (m *InferenceClassificationOverride) GetClassifyAs()(*InferenceClassificati func (m *InferenceClassificationOverride) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["classifyAs"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseInferenceClassificationType) + val, err := n.GetEnumValue(ParseInferenceClassificationOverride_classifyAs) if err != nil { return err } if val != nil { - m.SetClassifyAs(val.(*InferenceClassificationType)) + m.SetClassifyAs(val.(*InferenceClassificationOverride_classifyAs)) } return nil } @@ -88,7 +88,7 @@ func (m *InferenceClassificationOverride) Serialize(writer i878a80d2330e89d26896 return nil } // SetClassifyAs sets the classifyAs property value. Specifies how incoming messages from a specific sender should always be classified as. Possible values are: focused, other. -func (m *InferenceClassificationOverride) SetClassifyAs(value *InferenceClassificationType)() { +func (m *InferenceClassificationOverride) SetClassifyAs(value *InferenceClassificationOverride_classifyAs)() { err := m.GetBackingStore().Set("classifyAs", value) if err != nil { panic(err) @@ -105,8 +105,8 @@ func (m *InferenceClassificationOverride) SetSenderEmailAddress(value EmailAddre type InferenceClassificationOverrideable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetClassifyAs()(*InferenceClassificationType) + GetClassifyAs()(*InferenceClassificationOverride_classifyAs) GetSenderEmailAddress()(EmailAddressable) - SetClassifyAs(value *InferenceClassificationType)() + SetClassifyAs(value *InferenceClassificationOverride_classifyAs)() SetSenderEmailAddress(value EmailAddressable)() } diff --git a/models/inference_classification_override_classify_as.go b/models/inference_classification_override_classify_as.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/inference_classification_type.go b/models/inference_classification_type.go deleted file mode 100644 index 8bace082f4c..00000000000 --- a/models/inference_classification_type.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type InferenceClassificationType int - -const ( - FOCUSED_INFERENCECLASSIFICATIONTYPE InferenceClassificationType = iota - OTHER_INFERENCECLASSIFICATIONTYPE -) - -func (i InferenceClassificationType) String() string { - return []string{"focused", "other"}[i] -} -func ParseInferenceClassificationType(v string) (any, error) { - result := FOCUSED_INFERENCECLASSIFICATIONTYPE - switch v { - case "focused": - result = FOCUSED_INFERENCECLASSIFICATIONTYPE - case "other": - result = OTHER_INFERENCECLASSIFICATIONTYPE - default: - return 0, errors.New("Unknown InferenceClassificationType value: " + v) - } - return &result, nil -} -func SerializeInferenceClassificationType(values []InferenceClassificationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i InferenceClassificationType) isMultiValue() bool { - return false -} diff --git a/models/initiator.go b/models/initiator.go index 5ea45f02e23..f5872ffffb3 100644 --- a/models/initiator.go +++ b/models/initiator.go @@ -25,25 +25,25 @@ func CreateInitiatorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f func (m *Initiator) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Identity.GetFieldDeserializers() res["initiatorType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseInitiatorType) + val, err := n.GetEnumValue(ParseInitiator_initiatorType) if err != nil { return err } if val != nil { - m.SetInitiatorType(val.(*InitiatorType)) + m.SetInitiatorType(val.(*Initiator_initiatorType)) } return nil } return res } // GetInitiatorType gets the initiatorType property value. Type of initiator. Possible values are: user, application, system, unknownFutureValue. -func (m *Initiator) GetInitiatorType()(*InitiatorType) { +func (m *Initiator) GetInitiatorType()(*Initiator_initiatorType) { val, err := m.GetBackingStore().Get("initiatorType") if err != nil { panic(err) } if val != nil { - return val.(*InitiatorType) + return val.(*Initiator_initiatorType) } return nil } @@ -63,7 +63,7 @@ func (m *Initiator) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return nil } // SetInitiatorType sets the initiatorType property value. Type of initiator. Possible values are: user, application, system, unknownFutureValue. -func (m *Initiator) SetInitiatorType(value *InitiatorType)() { +func (m *Initiator) SetInitiatorType(value *Initiator_initiatorType)() { err := m.GetBackingStore().Set("initiatorType", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *Initiator) SetInitiatorType(value *InitiatorType)() { type Initiatorable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetInitiatorType()(*InitiatorType) - SetInitiatorType(value *InitiatorType)() + GetInitiatorType()(*Initiator_initiatorType) + SetInitiatorType(value *Initiator_initiatorType)() } diff --git a/models/initiator_initiator_type.go b/models/initiator_initiator_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/initiator_type.go b/models/initiator_type.go deleted file mode 100644 index d7f6245c886..00000000000 --- a/models/initiator_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type InitiatorType int - -const ( - USER_INITIATORTYPE InitiatorType = iota - APPLICATION_INITIATORTYPE - SYSTEM_INITIATORTYPE - UNKNOWNFUTUREVALUE_INITIATORTYPE -) - -func (i InitiatorType) String() string { - return []string{"user", "application", "system", "unknownFutureValue"}[i] -} -func ParseInitiatorType(v string) (any, error) { - result := USER_INITIATORTYPE - switch v { - case "user": - result = USER_INITIATORTYPE - case "application": - result = APPLICATION_INITIATORTYPE - case "system": - result = SYSTEM_INITIATORTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_INITIATORTYPE - default: - return 0, errors.New("Unknown InitiatorType value: " + v) - } - return &result, nil -} -func SerializeInitiatorType(values []InitiatorType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i InitiatorType) isMultiValue() bool { - return false -} diff --git a/models/internal_domain_federation.go b/models/internal_domain_federation.go index e555b93c22d..455eafe090c 100644 --- a/models/internal_domain_federation.go +++ b/models/internal_domain_federation.go @@ -33,13 +33,13 @@ func (m *InternalDomainFederation) GetActiveSignInUri()(*string) { return nil } // GetFederatedIdpMfaBehavior gets the federatedIdpMfaBehavior property value. Determines whether Microsoft Entra ID accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. -func (m *InternalDomainFederation) GetFederatedIdpMfaBehavior()(*FederatedIdpMfaBehavior) { +func (m *InternalDomainFederation) GetFederatedIdpMfaBehavior()(*InternalDomainFederation_federatedIdpMfaBehavior) { val, err := m.GetBackingStore().Get("federatedIdpMfaBehavior") if err != nil { panic(err) } if val != nil { - return val.(*FederatedIdpMfaBehavior) + return val.(*InternalDomainFederation_federatedIdpMfaBehavior) } return nil } @@ -57,12 +57,12 @@ func (m *InternalDomainFederation) GetFieldDeserializers()(map[string]func(i878a return nil } res["federatedIdpMfaBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFederatedIdpMfaBehavior) + val, err := n.GetEnumValue(ParseInternalDomainFederation_federatedIdpMfaBehavior) if err != nil { return err } if val != nil { - m.SetFederatedIdpMfaBehavior(val.(*FederatedIdpMfaBehavior)) + m.SetFederatedIdpMfaBehavior(val.(*InternalDomainFederation_federatedIdpMfaBehavior)) } return nil } @@ -87,12 +87,12 @@ func (m *InternalDomainFederation) GetFieldDeserializers()(map[string]func(i878a return nil } res["promptLoginBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePromptLoginBehavior) + val, err := n.GetEnumValue(ParseInternalDomainFederation_promptLoginBehavior) if err != nil { return err } if val != nil { - m.SetPromptLoginBehavior(val.(*PromptLoginBehavior)) + m.SetPromptLoginBehavior(val.(*InternalDomainFederation_promptLoginBehavior)) } return nil } @@ -141,13 +141,13 @@ func (m *InternalDomainFederation) GetNextSigningCertificate()(*string) { return nil } // GetPromptLoginBehavior gets the promptLoginBehavior property value. Sets the preferred behavior for the sign-in prompt. The possible values are: translateToFreshPasswordAuthentication, nativeSupport, disabled, unknownFutureValue. -func (m *InternalDomainFederation) GetPromptLoginBehavior()(*PromptLoginBehavior) { +func (m *InternalDomainFederation) GetPromptLoginBehavior()(*InternalDomainFederation_promptLoginBehavior) { val, err := m.GetBackingStore().Get("promptLoginBehavior") if err != nil { panic(err) } if val != nil { - return val.(*PromptLoginBehavior) + return val.(*InternalDomainFederation_promptLoginBehavior) } return nil } @@ -233,7 +233,7 @@ func (m *InternalDomainFederation) SetActiveSignInUri(value *string)() { } } // SetFederatedIdpMfaBehavior sets the federatedIdpMfaBehavior property value. Determines whether Microsoft Entra ID accepts the MFA performed by the federated IdP when a federated user accesses an application that is governed by a conditional access policy that requires MFA. The possible values are: acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp, rejectMfaByFederatedIdp, unknownFutureValue. For more information, see federatedIdpMfaBehavior values. -func (m *InternalDomainFederation) SetFederatedIdpMfaBehavior(value *FederatedIdpMfaBehavior)() { +func (m *InternalDomainFederation) SetFederatedIdpMfaBehavior(value *InternalDomainFederation_federatedIdpMfaBehavior)() { err := m.GetBackingStore().Set("federatedIdpMfaBehavior", value) if err != nil { panic(err) @@ -254,7 +254,7 @@ func (m *InternalDomainFederation) SetNextSigningCertificate(value *string)() { } } // SetPromptLoginBehavior sets the promptLoginBehavior property value. Sets the preferred behavior for the sign-in prompt. The possible values are: translateToFreshPasswordAuthentication, nativeSupport, disabled, unknownFutureValue. -func (m *InternalDomainFederation) SetPromptLoginBehavior(value *PromptLoginBehavior)() { +func (m *InternalDomainFederation) SetPromptLoginBehavior(value *InternalDomainFederation_promptLoginBehavior)() { err := m.GetBackingStore().Set("promptLoginBehavior", value) if err != nil { panic(err) @@ -279,17 +279,17 @@ type InternalDomainFederationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable SamlOrWsFedProviderable GetActiveSignInUri()(*string) - GetFederatedIdpMfaBehavior()(*FederatedIdpMfaBehavior) + GetFederatedIdpMfaBehavior()(*InternalDomainFederation_federatedIdpMfaBehavior) GetIsSignedAuthenticationRequestRequired()(*bool) GetNextSigningCertificate()(*string) - GetPromptLoginBehavior()(*PromptLoginBehavior) + GetPromptLoginBehavior()(*InternalDomainFederation_promptLoginBehavior) GetSigningCertificateUpdateStatus()(SigningCertificateUpdateStatusable) GetSignOutUri()(*string) SetActiveSignInUri(value *string)() - SetFederatedIdpMfaBehavior(value *FederatedIdpMfaBehavior)() + SetFederatedIdpMfaBehavior(value *InternalDomainFederation_federatedIdpMfaBehavior)() SetIsSignedAuthenticationRequestRequired(value *bool)() SetNextSigningCertificate(value *string)() - SetPromptLoginBehavior(value *PromptLoginBehavior)() + SetPromptLoginBehavior(value *InternalDomainFederation_promptLoginBehavior)() SetSigningCertificateUpdateStatus(value SigningCertificateUpdateStatusable)() SetSignOutUri(value *string)() } diff --git a/models/internal_domain_federation_federated_idp_mfa_behavior.go b/models/internal_domain_federation_federated_idp_mfa_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/internal_domain_federation_prompt_login_behavior.go b/models/internal_domain_federation_prompt_login_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/invitation_participant_info.go b/models/invitation_participant_info.go index 93729f9abc0..ecb218b8e1e 100644 --- a/models/invitation_participant_info.go +++ b/models/invitation_participant_info.go @@ -39,13 +39,13 @@ func (m *InvitationParticipantInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827e return m.backingStore } // GetEndpointType gets the endpointType property value. The type of endpoint. Possible values are: default, voicemail, skypeForBusiness, skypeForBusinessVoipPhone and unknownFutureValue. -func (m *InvitationParticipantInfo) GetEndpointType()(*EndpointType) { +func (m *InvitationParticipantInfo) GetEndpointType()(*InvitationParticipantInfo_endpointType) { val, err := m.GetBackingStore().Get("endpointType") if err != nil { panic(err) } if val != nil { - return val.(*EndpointType) + return val.(*InvitationParticipantInfo_endpointType) } return nil } @@ -53,12 +53,12 @@ func (m *InvitationParticipantInfo) GetEndpointType()(*EndpointType) { func (m *InvitationParticipantInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["endpointType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEndpointType) + val, err := n.GetEnumValue(ParseInvitationParticipantInfo_endpointType) if err != nil { return err } if val != nil { - m.SetEndpointType(val.(*EndpointType)) + m.SetEndpointType(val.(*InvitationParticipantInfo_endpointType)) } return nil } @@ -255,7 +255,7 @@ func (m *InvitationParticipantInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3 m.backingStore = value } // SetEndpointType sets the endpointType property value. The type of endpoint. Possible values are: default, voicemail, skypeForBusiness, skypeForBusinessVoipPhone and unknownFutureValue. -func (m *InvitationParticipantInfo) SetEndpointType(value *EndpointType)() { +func (m *InvitationParticipantInfo) SetEndpointType(value *InvitationParticipantInfo_endpointType)() { err := m.GetBackingStore().Set("endpointType", value) if err != nil { panic(err) @@ -309,7 +309,7 @@ type InvitationParticipantInfoable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndpointType()(*EndpointType) + GetEndpointType()(*InvitationParticipantInfo_endpointType) GetHidden()(*bool) GetIdentity()(IdentitySetable) GetOdataType()(*string) @@ -317,7 +317,7 @@ type InvitationParticipantInfoable interface { GetRemoveFromDefaultAudioRoutingGroup()(*bool) GetReplacesCallId()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndpointType(value *EndpointType)() + SetEndpointType(value *InvitationParticipantInfo_endpointType)() SetHidden(value *bool)() SetIdentity(value IdentitySetable)() SetOdataType(value *string)() diff --git a/models/invitation_participant_info_endpoint_type.go b/models/invitation_participant_info_endpoint_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/invitation_redemption_identity_provider_configuration.go b/models/invitation_redemption_identity_provider_configuration.go index a0f16527c1b..a95e44621d9 100644 --- a/models/invitation_redemption_identity_provider_configuration.go +++ b/models/invitation_redemption_identity_provider_configuration.go @@ -57,13 +57,13 @@ func (m *InvitationRedemptionIdentityProviderConfiguration) GetBackingStore()(ie return m.backingStore } // GetFallbackIdentityProvider gets the fallbackIdentityProvider property value. The fallback identity provider to be used in case no primary identity provider can be used for guest invitation redemption. Possible values are: defaultConfiguredIdp, emailOneTimePasscode, or microsoftAccount. -func (m *InvitationRedemptionIdentityProviderConfiguration) GetFallbackIdentityProvider()(*B2bIdentityProvidersType) { +func (m *InvitationRedemptionIdentityProviderConfiguration) GetFallbackIdentityProvider()(*InvitationRedemptionIdentityProviderConfiguration_fallbackIdentityProvider) { val, err := m.GetBackingStore().Get("fallbackIdentityProvider") if err != nil { panic(err) } if val != nil { - return val.(*B2bIdentityProvidersType) + return val.(*InvitationRedemptionIdentityProviderConfiguration_fallbackIdentityProvider) } return nil } @@ -71,12 +71,12 @@ func (m *InvitationRedemptionIdentityProviderConfiguration) GetFallbackIdentityP func (m *InvitationRedemptionIdentityProviderConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["fallbackIdentityProvider"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseB2bIdentityProvidersType) + val, err := n.GetEnumValue(ParseInvitationRedemptionIdentityProviderConfiguration_fallbackIdentityProvider) if err != nil { return err } if val != nil { - m.SetFallbackIdentityProvider(val.(*B2bIdentityProvidersType)) + m.SetFallbackIdentityProvider(val.(*InvitationRedemptionIdentityProviderConfiguration_fallbackIdentityProvider)) } return nil } @@ -91,15 +91,15 @@ func (m *InvitationRedemptionIdentityProviderConfiguration) GetFieldDeserializer return nil } res["primaryIdentityProviderPrecedenceOrder"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseB2bIdentityProvidersType) + val, err := n.GetCollectionOfEnumValues(ParseInvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder) if err != nil { return err } if val != nil { - res := make([]B2bIdentityProvidersType, len(val)) + res := make([]InvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*B2bIdentityProvidersType)) + res[i] = *(v.(*InvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder)) } } m.SetPrimaryIdentityProviderPrecedenceOrder(res) @@ -120,13 +120,13 @@ func (m *InvitationRedemptionIdentityProviderConfiguration) GetOdataType()(*stri return nil } // GetPrimaryIdentityProviderPrecedenceOrder gets the primaryIdentityProviderPrecedenceOrder property value. Collection of identity providers in priority order of preference to be used for guest invitation redemption. Possible values are: azureActiveDirectory, externalFederation, or socialIdentityProviders. -func (m *InvitationRedemptionIdentityProviderConfiguration) GetPrimaryIdentityProviderPrecedenceOrder()([]B2bIdentityProvidersType) { +func (m *InvitationRedemptionIdentityProviderConfiguration) GetPrimaryIdentityProviderPrecedenceOrder()([]InvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder) { val, err := m.GetBackingStore().Get("primaryIdentityProviderPrecedenceOrder") if err != nil { panic(err) } if val != nil { - return val.([]B2bIdentityProvidersType) + return val.([]InvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder) } return nil } @@ -146,7 +146,7 @@ func (m *InvitationRedemptionIdentityProviderConfiguration) Serialize(writer i87 } } if m.GetPrimaryIdentityProviderPrecedenceOrder() != nil { - err := writer.WriteCollectionOfStringValues("primaryIdentityProviderPrecedenceOrder", SerializeB2bIdentityProvidersType(m.GetPrimaryIdentityProviderPrecedenceOrder())) + err := writer.WriteCollectionOfStringValues("primaryIdentityProviderPrecedenceOrder", SerializeInvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder(m.GetPrimaryIdentityProviderPrecedenceOrder())) if err != nil { return err } @@ -171,7 +171,7 @@ func (m *InvitationRedemptionIdentityProviderConfiguration) SetBackingStore(valu m.backingStore = value } // SetFallbackIdentityProvider sets the fallbackIdentityProvider property value. The fallback identity provider to be used in case no primary identity provider can be used for guest invitation redemption. Possible values are: defaultConfiguredIdp, emailOneTimePasscode, or microsoftAccount. -func (m *InvitationRedemptionIdentityProviderConfiguration) SetFallbackIdentityProvider(value *B2bIdentityProvidersType)() { +func (m *InvitationRedemptionIdentityProviderConfiguration) SetFallbackIdentityProvider(value *InvitationRedemptionIdentityProviderConfiguration_fallbackIdentityProvider)() { err := m.GetBackingStore().Set("fallbackIdentityProvider", value) if err != nil { panic(err) @@ -185,7 +185,7 @@ func (m *InvitationRedemptionIdentityProviderConfiguration) SetOdataType(value * } } // SetPrimaryIdentityProviderPrecedenceOrder sets the primaryIdentityProviderPrecedenceOrder property value. Collection of identity providers in priority order of preference to be used for guest invitation redemption. Possible values are: azureActiveDirectory, externalFederation, or socialIdentityProviders. -func (m *InvitationRedemptionIdentityProviderConfiguration) SetPrimaryIdentityProviderPrecedenceOrder(value []B2bIdentityProvidersType)() { +func (m *InvitationRedemptionIdentityProviderConfiguration) SetPrimaryIdentityProviderPrecedenceOrder(value []InvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder)() { err := m.GetBackingStore().Set("primaryIdentityProviderPrecedenceOrder", value) if err != nil { panic(err) @@ -197,11 +197,11 @@ type InvitationRedemptionIdentityProviderConfigurationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFallbackIdentityProvider()(*B2bIdentityProvidersType) + GetFallbackIdentityProvider()(*InvitationRedemptionIdentityProviderConfiguration_fallbackIdentityProvider) GetOdataType()(*string) - GetPrimaryIdentityProviderPrecedenceOrder()([]B2bIdentityProvidersType) + GetPrimaryIdentityProviderPrecedenceOrder()([]InvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFallbackIdentityProvider(value *B2bIdentityProvidersType)() + SetFallbackIdentityProvider(value *InvitationRedemptionIdentityProviderConfiguration_fallbackIdentityProvider)() SetOdataType(value *string)() - SetPrimaryIdentityProviderPrecedenceOrder(value []B2bIdentityProvidersType)() + SetPrimaryIdentityProviderPrecedenceOrder(value []InvitationRedemptionIdentityProviderConfiguration_primaryIdentityProviderPrecedenceOrder)() } diff --git a/models/invitation_redemption_identity_provider_configuration_fallback_identity_provider.go b/models/invitation_redemption_identity_provider_configuration_fallback_identity_provider.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/invitation_redemption_identity_provider_configuration_primary_identity_provider_precedence_order.go b/models/invitation_redemption_identity_provider_configuration_primary_identity_provider_precedence_order.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_certificate_profile_base.go b/models/ios_certificate_profile_base.go index 729745b74cb..6f85ec55802 100644 --- a/models/ios_certificate_profile_base.go +++ b/models/ios_certificate_profile_base.go @@ -97,12 +97,12 @@ func (m *IosCertificateProfileBase) GetFieldDeserializers()(map[string]func(i878 return nil } res["subjectAlternativeNameType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectAlternativeNameType) + val, err := n.GetEnumValue(ParseIosCertificateProfileBase_subjectAlternativeNameType) if err != nil { return err } if val != nil { - m.SetSubjectAlternativeNameType(val.(*SubjectAlternativeNameType)) + m.SetSubjectAlternativeNameType(val.(*IosCertificateProfileBase_subjectAlternativeNameType)) } return nil } @@ -130,13 +130,13 @@ func (m *IosCertificateProfileBase) GetRenewalThresholdPercentage()(*int32) { return nil } // GetSubjectAlternativeNameType gets the subjectAlternativeNameType property value. Certificate Subject Alternative Name type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *IosCertificateProfileBase) GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) { +func (m *IosCertificateProfileBase) GetSubjectAlternativeNameType()(*IosCertificateProfileBase_subjectAlternativeNameType) { val, err := m.GetBackingStore().Get("subjectAlternativeNameType") if err != nil { panic(err) } if val != nil { - return val.(*SubjectAlternativeNameType) + return val.(*IosCertificateProfileBase_subjectAlternativeNameType) } return nil } @@ -214,7 +214,7 @@ func (m *IosCertificateProfileBase) SetRenewalThresholdPercentage(value *int32)( } } // SetSubjectAlternativeNameType sets the subjectAlternativeNameType property value. Certificate Subject Alternative Name type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *IosCertificateProfileBase) SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() { +func (m *IosCertificateProfileBase) SetSubjectAlternativeNameType(value *IosCertificateProfileBase_subjectAlternativeNameType)() { err := m.GetBackingStore().Set("subjectAlternativeNameType", value) if err != nil { panic(err) @@ -234,11 +234,11 @@ type IosCertificateProfileBaseable interface { GetCertificateValidityPeriodScale()(*CertificateValidityPeriodScale) GetCertificateValidityPeriodValue()(*int32) GetRenewalThresholdPercentage()(*int32) - GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) + GetSubjectAlternativeNameType()(*IosCertificateProfileBase_subjectAlternativeNameType) GetSubjectNameFormat()(*AppleSubjectNameFormat) SetCertificateValidityPeriodScale(value *CertificateValidityPeriodScale)() SetCertificateValidityPeriodValue(value *int32)() SetRenewalThresholdPercentage(value *int32)() - SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() + SetSubjectAlternativeNameType(value *IosCertificateProfileBase_subjectAlternativeNameType)() SetSubjectNameFormat(value *AppleSubjectNameFormat)() } diff --git a/models/ios_certificate_profile_base_subject_alternative_name_type.go b/models/ios_certificate_profile_base_subject_alternative_name_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_eas_email_profile_configuration.go b/models/ios_eas_email_profile_configuration.go index bb9ba156760..e94b18c1713 100644 --- a/models/ios_eas_email_profile_configuration.go +++ b/models/ios_eas_email_profile_configuration.go @@ -33,13 +33,13 @@ func (m *IosEasEmailProfileConfiguration) GetAccountName()(*string) { return nil } // GetAuthenticationMethod gets the authenticationMethod property value. Authentication method for this Email profile. Possible values are: usernameAndPassword, certificate, derivedCredential. -func (m *IosEasEmailProfileConfiguration) GetAuthenticationMethod()(*EasAuthenticationMethod) { +func (m *IosEasEmailProfileConfiguration) GetAuthenticationMethod()(*IosEasEmailProfileConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*EasAuthenticationMethod) + return val.(*IosEasEmailProfileConfiguration_authenticationMethod) } return nil } @@ -99,13 +99,13 @@ func (m *IosEasEmailProfileConfiguration) GetDurationOfEmailToSync()(*EmailSyncD return nil } // GetEasServices gets the easServices property value. Exchange data to sync. Possible values are: none, calendars, contacts, email, notes, reminders. -func (m *IosEasEmailProfileConfiguration) GetEasServices()(*EasServices) { +func (m *IosEasEmailProfileConfiguration) GetEasServices()(*IosEasEmailProfileConfiguration_easServices) { val, err := m.GetBackingStore().Get("easServices") if err != nil { panic(err) } if val != nil { - return val.(*EasServices) + return val.(*IosEasEmailProfileConfiguration_easServices) } return nil } @@ -132,13 +132,13 @@ func (m *IosEasEmailProfileConfiguration) GetEmailAddressSource()(*UserEmailSour return nil } // GetEncryptionCertificateType gets the encryptionCertificateType property value. Encryption Certificate type for this Email profile. Possible values are: none, certificate, derivedCredential. -func (m *IosEasEmailProfileConfiguration) GetEncryptionCertificateType()(*EmailCertificateType) { +func (m *IosEasEmailProfileConfiguration) GetEncryptionCertificateType()(*IosEasEmailProfileConfiguration_encryptionCertificateType) { val, err := m.GetBackingStore().Get("encryptionCertificateType") if err != nil { panic(err) } if val != nil { - return val.(*EmailCertificateType) + return val.(*IosEasEmailProfileConfiguration_encryptionCertificateType) } return nil } @@ -156,12 +156,12 @@ func (m *IosEasEmailProfileConfiguration) GetFieldDeserializers()(map[string]fun return nil } res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEasAuthenticationMethod) + val, err := n.GetEnumValue(ParseIosEasEmailProfileConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*EasAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*IosEasEmailProfileConfiguration_authenticationMethod)) } return nil } @@ -216,12 +216,12 @@ func (m *IosEasEmailProfileConfiguration) GetFieldDeserializers()(map[string]fun return nil } res["easServices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEasServices) + val, err := n.GetEnumValue(ParseIosEasEmailProfileConfiguration_easServices) if err != nil { return err } if val != nil { - m.SetEasServices(val.(*EasServices)) + m.SetEasServices(val.(*IosEasEmailProfileConfiguration_easServices)) } return nil } @@ -246,12 +246,12 @@ func (m *IosEasEmailProfileConfiguration) GetFieldDeserializers()(map[string]fun return nil } res["encryptionCertificateType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEmailCertificateType) + val, err := n.GetEnumValue(ParseIosEasEmailProfileConfiguration_encryptionCertificateType) if err != nil { return err } if val != nil { - m.SetEncryptionCertificateType(val.(*EmailCertificateType)) + m.SetEncryptionCertificateType(val.(*IosEasEmailProfileConfiguration_encryptionCertificateType)) } return nil } @@ -306,12 +306,12 @@ func (m *IosEasEmailProfileConfiguration) GetFieldDeserializers()(map[string]fun return nil } res["signingCertificateType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEmailCertificateType) + val, err := n.GetEnumValue(ParseIosEasEmailProfileConfiguration_signingCertificateType) if err != nil { return err } if val != nil { - m.SetSigningCertificateType(val.(*EmailCertificateType)) + m.SetSigningCertificateType(val.(*IosEasEmailProfileConfiguration_signingCertificateType)) } return nil } @@ -473,13 +473,13 @@ func (m *IosEasEmailProfileConfiguration) GetRequireSsl()(*bool) { return nil } // GetSigningCertificateType gets the signingCertificateType property value. Signing Certificate type for this Email profile. Possible values are: none, certificate, derivedCredential. -func (m *IosEasEmailProfileConfiguration) GetSigningCertificateType()(*EmailCertificateType) { +func (m *IosEasEmailProfileConfiguration) GetSigningCertificateType()(*IosEasEmailProfileConfiguration_signingCertificateType) { val, err := m.GetBackingStore().Get("signingCertificateType") if err != nil { panic(err) } if val != nil { - return val.(*EmailCertificateType) + return val.(*IosEasEmailProfileConfiguration_signingCertificateType) } return nil } @@ -777,7 +777,7 @@ func (m *IosEasEmailProfileConfiguration) SetAccountName(value *string)() { } } // SetAuthenticationMethod sets the authenticationMethod property value. Authentication method for this Email profile. Possible values are: usernameAndPassword, certificate, derivedCredential. -func (m *IosEasEmailProfileConfiguration) SetAuthenticationMethod(value *EasAuthenticationMethod)() { +func (m *IosEasEmailProfileConfiguration) SetAuthenticationMethod(value *IosEasEmailProfileConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -819,7 +819,7 @@ func (m *IosEasEmailProfileConfiguration) SetDurationOfEmailToSync(value *EmailS } } // SetEasServices sets the easServices property value. Exchange data to sync. Possible values are: none, calendars, contacts, email, notes, reminders. -func (m *IosEasEmailProfileConfiguration) SetEasServices(value *EasServices)() { +func (m *IosEasEmailProfileConfiguration) SetEasServices(value *IosEasEmailProfileConfiguration_easServices)() { err := m.GetBackingStore().Set("easServices", value) if err != nil { panic(err) @@ -840,7 +840,7 @@ func (m *IosEasEmailProfileConfiguration) SetEmailAddressSource(value *UserEmail } } // SetEncryptionCertificateType sets the encryptionCertificateType property value. Encryption Certificate type for this Email profile. Possible values are: none, certificate, derivedCredential. -func (m *IosEasEmailProfileConfiguration) SetEncryptionCertificateType(value *EmailCertificateType)() { +func (m *IosEasEmailProfileConfiguration) SetEncryptionCertificateType(value *IosEasEmailProfileConfiguration_encryptionCertificateType)() { err := m.GetBackingStore().Set("encryptionCertificateType", value) if err != nil { panic(err) @@ -882,7 +882,7 @@ func (m *IosEasEmailProfileConfiguration) SetRequireSsl(value *bool)() { } } // SetSigningCertificateType sets the signingCertificateType property value. Signing Certificate type for this Email profile. Possible values are: none, certificate, derivedCredential. -func (m *IosEasEmailProfileConfiguration) SetSigningCertificateType(value *EmailCertificateType)() { +func (m *IosEasEmailProfileConfiguration) SetSigningCertificateType(value *IosEasEmailProfileConfiguration_signingCertificateType)() { err := m.GetBackingStore().Set("signingCertificateType", value) if err != nil { panic(err) @@ -963,22 +963,22 @@ type IosEasEmailProfileConfigurationable interface { EasEmailProfileConfigurationBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccountName()(*string) - GetAuthenticationMethod()(*EasAuthenticationMethod) + GetAuthenticationMethod()(*IosEasEmailProfileConfiguration_authenticationMethod) GetBlockMovingMessagesToOtherEmailAccounts()(*bool) GetBlockSendingEmailFromThirdPartyApps()(*bool) GetBlockSyncingRecentlyUsedEmailAddresses()(*bool) GetDerivedCredentialSettings()(DeviceManagementDerivedCredentialSettingsable) GetDurationOfEmailToSync()(*EmailSyncDuration) - GetEasServices()(*EasServices) + GetEasServices()(*IosEasEmailProfileConfiguration_easServices) GetEasServicesUserOverrideEnabled()(*bool) GetEmailAddressSource()(*UserEmailSource) - GetEncryptionCertificateType()(*EmailCertificateType) + GetEncryptionCertificateType()(*IosEasEmailProfileConfiguration_encryptionCertificateType) GetHostName()(*string) GetIdentityCertificate()(IosCertificateProfileBaseable) GetPerAppVPNProfileId()(*string) GetRequireSmime()(*bool) GetRequireSsl()(*bool) - GetSigningCertificateType()(*EmailCertificateType) + GetSigningCertificateType()(*IosEasEmailProfileConfiguration_signingCertificateType) GetSmimeEnablePerMessageSwitch()(*bool) GetSmimeEncryptByDefaultEnabled()(*bool) GetSmimeEncryptByDefaultUserOverrideEnabled()(*bool) @@ -990,22 +990,22 @@ type IosEasEmailProfileConfigurationable interface { GetSmimeSigningUserOverrideEnabled()(*bool) GetUseOAuth()(*bool) SetAccountName(value *string)() - SetAuthenticationMethod(value *EasAuthenticationMethod)() + SetAuthenticationMethod(value *IosEasEmailProfileConfiguration_authenticationMethod)() SetBlockMovingMessagesToOtherEmailAccounts(value *bool)() SetBlockSendingEmailFromThirdPartyApps(value *bool)() SetBlockSyncingRecentlyUsedEmailAddresses(value *bool)() SetDerivedCredentialSettings(value DeviceManagementDerivedCredentialSettingsable)() SetDurationOfEmailToSync(value *EmailSyncDuration)() - SetEasServices(value *EasServices)() + SetEasServices(value *IosEasEmailProfileConfiguration_easServices)() SetEasServicesUserOverrideEnabled(value *bool)() SetEmailAddressSource(value *UserEmailSource)() - SetEncryptionCertificateType(value *EmailCertificateType)() + SetEncryptionCertificateType(value *IosEasEmailProfileConfiguration_encryptionCertificateType)() SetHostName(value *string)() SetIdentityCertificate(value IosCertificateProfileBaseable)() SetPerAppVPNProfileId(value *string)() SetRequireSmime(value *bool)() SetRequireSsl(value *bool)() - SetSigningCertificateType(value *EmailCertificateType)() + SetSigningCertificateType(value *IosEasEmailProfileConfiguration_signingCertificateType)() SetSmimeEnablePerMessageSwitch(value *bool)() SetSmimeEncryptByDefaultEnabled(value *bool)() SetSmimeEncryptByDefaultUserOverrideEnabled(value *bool)() diff --git a/models/ios_eas_email_profile_configuration_authentication_method.go b/models/ios_eas_email_profile_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_eas_email_profile_configuration_eas_services.go b/models/ios_eas_email_profile_configuration_eas_services.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_eas_email_profile_configuration_encryption_certificate_type.go b/models/ios_eas_email_profile_configuration_encryption_certificate_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_eas_email_profile_configuration_signing_certificate_type.go b/models/ios_eas_email_profile_configuration_signing_certificate_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_enterprise_wi_fi_configuration.go b/models/ios_enterprise_wi_fi_configuration.go index aa5bb6d7957..8136c988431 100644 --- a/models/ios_enterprise_wi_fi_configuration.go +++ b/models/ios_enterprise_wi_fi_configuration.go @@ -22,13 +22,13 @@ func CreateIosEnterpriseWiFiConfigurationFromDiscriminatorValue(parseNode i878a8 return NewIosEnterpriseWiFiConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *IosEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *IosEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*IosEnterpriseWiFiConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*IosEnterpriseWiFiConfiguration_authenticationMethod) } return nil } @@ -44,13 +44,13 @@ func (m *IosEnterpriseWiFiConfiguration) GetDerivedCredentialSettings()(DeviceMa return nil } // GetEapFastConfiguration gets the eapFastConfiguration property value. EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. -func (m *IosEnterpriseWiFiConfiguration) GetEapFastConfiguration()(*EapFastConfiguration) { +func (m *IosEnterpriseWiFiConfiguration) GetEapFastConfiguration()(*IosEnterpriseWiFiConfiguration_eapFastConfiguration) { val, err := m.GetBackingStore().Get("eapFastConfiguration") if err != nil { panic(err) } if val != nil { - return val.(*EapFastConfiguration) + return val.(*IosEnterpriseWiFiConfiguration_eapFastConfiguration) } return nil } @@ -69,12 +69,12 @@ func (m *IosEnterpriseWiFiConfiguration) GetEapType()(*EapType) { func (m *IosEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.IosWiFiConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseIosEnterpriseWiFiConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*IosEnterpriseWiFiConfiguration_authenticationMethod)) } return nil } @@ -89,12 +89,12 @@ func (m *IosEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func return nil } res["eapFastConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEapFastConfiguration) + val, err := n.GetEnumValue(ParseIosEnterpriseWiFiConfiguration_eapFastConfiguration) if err != nil { return err } if val != nil { - m.SetEapFastConfiguration(val.(*EapFastConfiguration)) + m.SetEapFastConfiguration(val.(*IosEnterpriseWiFiConfiguration_eapFastConfiguration)) } return nil } @@ -119,12 +119,12 @@ func (m *IosEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func return nil } res["innerAuthenticationProtocolForEapTtls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseIosEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEapTtls(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEapTtls(val.(*IosEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)) } return nil } @@ -204,13 +204,13 @@ func (m *IosEnterpriseWiFiConfiguration) GetIdentityCertificateForClientAuthenti return nil } // GetInnerAuthenticationProtocolForEapTtls gets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *IosEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *IosEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*IosEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEapTtls") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*IosEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) } return nil } @@ -354,7 +354,7 @@ func (m *IosEnterpriseWiFiConfiguration) Serialize(writer i878a80d2330e89d268963 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *IosEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *IosEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *IosEnterpriseWiFiConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -368,7 +368,7 @@ func (m *IosEnterpriseWiFiConfiguration) SetDerivedCredentialSettings(value Devi } } // SetEapFastConfiguration sets the eapFastConfiguration property value. EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. -func (m *IosEnterpriseWiFiConfiguration) SetEapFastConfiguration(value *EapFastConfiguration)() { +func (m *IosEnterpriseWiFiConfiguration) SetEapFastConfiguration(value *IosEnterpriseWiFiConfiguration_eapFastConfiguration)() { err := m.GetBackingStore().Set("eapFastConfiguration", value) if err != nil { panic(err) @@ -389,7 +389,7 @@ func (m *IosEnterpriseWiFiConfiguration) SetIdentityCertificateForClientAuthenti } } // SetInnerAuthenticationProtocolForEapTtls sets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *IosEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *IosEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *IosEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEapTtls", value) if err != nil { panic(err) @@ -434,23 +434,23 @@ func (m *IosEnterpriseWiFiConfiguration) SetUsernameFormatString(value *string)( type IosEnterpriseWiFiConfigurationable interface { IosWiFiConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) + GetAuthenticationMethod()(*IosEnterpriseWiFiConfiguration_authenticationMethod) GetDerivedCredentialSettings()(DeviceManagementDerivedCredentialSettingsable) - GetEapFastConfiguration()(*EapFastConfiguration) + GetEapFastConfiguration()(*IosEnterpriseWiFiConfiguration_eapFastConfiguration) GetEapType()(*EapType) GetIdentityCertificateForClientAuthentication()(IosCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) + GetInnerAuthenticationProtocolForEapTtls()(*IosEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) GetOuterIdentityPrivacyTemporaryValue()(*string) GetPasswordFormatString()(*string) GetRootCertificatesForServerValidation()([]IosTrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) GetUsernameFormatString()(*string) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() + SetAuthenticationMethod(value *IosEnterpriseWiFiConfiguration_authenticationMethod)() SetDerivedCredentialSettings(value DeviceManagementDerivedCredentialSettingsable)() - SetEapFastConfiguration(value *EapFastConfiguration)() + SetEapFastConfiguration(value *IosEnterpriseWiFiConfiguration_eapFastConfiguration)() SetEapType(value *EapType)() SetIdentityCertificateForClientAuthentication(value IosCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() + SetInnerAuthenticationProtocolForEapTtls(value *IosEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() SetOuterIdentityPrivacyTemporaryValue(value *string)() SetPasswordFormatString(value *string)() SetRootCertificatesForServerValidation(value []IosTrustedRootCertificateable)() diff --git a/models/ios_enterprise_wi_fi_configuration_authentication_method.go b/models/ios_enterprise_wi_fi_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_enterprise_wi_fi_configuration_eap_fast_configuration.go b/models/ios_enterprise_wi_fi_configuration_eap_fast_configuration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go b/models/ios_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_pkcs_certificate_profile.go b/models/ios_pkcs_certificate_profile.go index 954a0064eff..8b8d9085d66 100644 --- a/models/ios_pkcs_certificate_profile.go +++ b/models/ios_pkcs_certificate_profile.go @@ -22,13 +22,13 @@ func CreateIosPkcsCertificateProfileFromDiscriminatorValue(parseNode i878a80d233 return NewIosPkcsCertificateProfile(), nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *IosPkcsCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *IosPkcsCertificateProfile) GetCertificateStore()(*IosPkcsCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*IosPkcsCertificateProfile_certificateStore) } return nil } @@ -80,12 +80,12 @@ func (m *IosPkcsCertificateProfile) GetCustomSubjectAlternativeNames()([]CustomS func (m *IosPkcsCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.IosCertificateProfileBase.GetFieldDeserializers() res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseIosPkcsCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*IosPkcsCertificateProfile_certificateStore)) } return nil } @@ -276,7 +276,7 @@ func (m *IosPkcsCertificateProfile) Serialize(writer i878a80d2330e89d26896388a3f return nil } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *IosPkcsCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *IosPkcsCertificateProfile) SetCertificateStore(value *IosPkcsCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -335,7 +335,7 @@ func (m *IosPkcsCertificateProfile) SetSubjectNameFormatString(value *string)() type IosPkcsCertificateProfileable interface { IosCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*IosPkcsCertificateProfile_certificateStore) GetCertificateTemplateName()(*string) GetCertificationAuthority()(*string) GetCertificationAuthorityName()(*string) @@ -343,7 +343,7 @@ type IosPkcsCertificateProfileable interface { GetManagedDeviceCertificateStates()([]ManagedDeviceCertificateStateable) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *IosPkcsCertificateProfile_certificateStore)() SetCertificateTemplateName(value *string)() SetCertificationAuthority(value *string)() SetCertificationAuthorityName(value *string)() diff --git a/models/ios_pkcs_certificate_profile_certificate_store.go b/models/ios_pkcs_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_scep_certificate_profile.go b/models/ios_scep_certificate_profile.go index d6990d4ef15..31aa21df2cb 100644 --- a/models/ios_scep_certificate_profile.go +++ b/models/ios_scep_certificate_profile.go @@ -22,13 +22,13 @@ func CreateIosScepCertificateProfileFromDiscriminatorValue(parseNode i878a80d233 return NewIosScepCertificateProfile(), nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *IosScepCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *IosScepCertificateProfile) GetCertificateStore()(*IosScepCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*IosScepCertificateProfile_certificateStore) } return nil } @@ -58,12 +58,12 @@ func (m *IosScepCertificateProfile) GetExtendedKeyUsages()([]ExtendedKeyUsageabl func (m *IosScepCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.IosCertificateProfileBase.GetFieldDeserializers() res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseIosScepCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*IosScepCertificateProfile_certificateStore)) } return nil } @@ -350,7 +350,7 @@ func (m *IosScepCertificateProfile) Serialize(writer i878a80d2330e89d26896388a3f return nil } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *IosScepCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *IosScepCertificateProfile) SetCertificateStore(value *IosScepCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -423,7 +423,7 @@ func (m *IosScepCertificateProfile) SetSubjectNameFormatString(value *string)() type IosScepCertificateProfileable interface { IosCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*IosScepCertificateProfile_certificateStore) GetCustomSubjectAlternativeNames()([]CustomSubjectAlternativeNameable) GetExtendedKeyUsages()([]ExtendedKeyUsageable) GetKeySize()(*KeySize) @@ -433,7 +433,7 @@ type IosScepCertificateProfileable interface { GetScepServerUrls()([]string) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *IosScepCertificateProfile_certificateStore)() SetCustomSubjectAlternativeNames(value []CustomSubjectAlternativeNameable)() SetExtendedKeyUsages(value []ExtendedKeyUsageable)() SetKeySize(value *KeySize)() diff --git a/models/ios_scep_certificate_profile_certificate_store.go b/models/ios_scep_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_vpn_security_association_parameters.go b/models/ios_vpn_security_association_parameters.go index 1284228fb0f..27e319ada5c 100644 --- a/models/ios_vpn_security_association_parameters.go +++ b/models/ios_vpn_security_association_parameters.go @@ -72,22 +72,22 @@ func (m *IosVpnSecurityAssociationParameters) GetFieldDeserializers()(map[string return nil } res["securityEncryptionAlgorithm"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnEncryptionAlgorithmType) + val, err := n.GetEnumValue(ParseIosVpnSecurityAssociationParameters_securityEncryptionAlgorithm) if err != nil { return err } if val != nil { - m.SetSecurityEncryptionAlgorithm(val.(*VpnEncryptionAlgorithmType)) + m.SetSecurityEncryptionAlgorithm(val.(*IosVpnSecurityAssociationParameters_securityEncryptionAlgorithm)) } return nil } res["securityIntegrityAlgorithm"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnIntegrityAlgorithmType) + val, err := n.GetEnumValue(ParseIosVpnSecurityAssociationParameters_securityIntegrityAlgorithm) if err != nil { return err } if val != nil { - m.SetSecurityIntegrityAlgorithm(val.(*VpnIntegrityAlgorithmType)) + m.SetSecurityIntegrityAlgorithm(val.(*IosVpnSecurityAssociationParameters_securityIntegrityAlgorithm)) } return nil } @@ -127,24 +127,24 @@ func (m *IosVpnSecurityAssociationParameters) GetSecurityDiffieHellmanGroup()(*i return nil } // GetSecurityEncryptionAlgorithm gets the securityEncryptionAlgorithm property value. Encryption algorithm. Possible values are: aes256, des, tripleDes, aes128, aes128Gcm, aes256Gcm, aes192, aes192Gcm, chaCha20Poly1305. -func (m *IosVpnSecurityAssociationParameters) GetSecurityEncryptionAlgorithm()(*VpnEncryptionAlgorithmType) { +func (m *IosVpnSecurityAssociationParameters) GetSecurityEncryptionAlgorithm()(*IosVpnSecurityAssociationParameters_securityEncryptionAlgorithm) { val, err := m.GetBackingStore().Get("securityEncryptionAlgorithm") if err != nil { panic(err) } if val != nil { - return val.(*VpnEncryptionAlgorithmType) + return val.(*IosVpnSecurityAssociationParameters_securityEncryptionAlgorithm) } return nil } // GetSecurityIntegrityAlgorithm gets the securityIntegrityAlgorithm property value. Integrity algorithm. Possible values are: sha2256, sha196, sha1160, sha2384, sha2_512, md5. -func (m *IosVpnSecurityAssociationParameters) GetSecurityIntegrityAlgorithm()(*VpnIntegrityAlgorithmType) { +func (m *IosVpnSecurityAssociationParameters) GetSecurityIntegrityAlgorithm()(*IosVpnSecurityAssociationParameters_securityIntegrityAlgorithm) { val, err := m.GetBackingStore().Get("securityIntegrityAlgorithm") if err != nil { panic(err) } if val != nil { - return val.(*VpnIntegrityAlgorithmType) + return val.(*IosVpnSecurityAssociationParameters_securityIntegrityAlgorithm) } return nil } @@ -223,14 +223,14 @@ func (m *IosVpnSecurityAssociationParameters) SetSecurityDiffieHellmanGroup(valu } } // SetSecurityEncryptionAlgorithm sets the securityEncryptionAlgorithm property value. Encryption algorithm. Possible values are: aes256, des, tripleDes, aes128, aes128Gcm, aes256Gcm, aes192, aes192Gcm, chaCha20Poly1305. -func (m *IosVpnSecurityAssociationParameters) SetSecurityEncryptionAlgorithm(value *VpnEncryptionAlgorithmType)() { +func (m *IosVpnSecurityAssociationParameters) SetSecurityEncryptionAlgorithm(value *IosVpnSecurityAssociationParameters_securityEncryptionAlgorithm)() { err := m.GetBackingStore().Set("securityEncryptionAlgorithm", value) if err != nil { panic(err) } } // SetSecurityIntegrityAlgorithm sets the securityIntegrityAlgorithm property value. Integrity algorithm. Possible values are: sha2256, sha196, sha1160, sha2384, sha2_512, md5. -func (m *IosVpnSecurityAssociationParameters) SetSecurityIntegrityAlgorithm(value *VpnIntegrityAlgorithmType)() { +func (m *IosVpnSecurityAssociationParameters) SetSecurityIntegrityAlgorithm(value *IosVpnSecurityAssociationParameters_securityIntegrityAlgorithm)() { err := m.GetBackingStore().Set("securityIntegrityAlgorithm", value) if err != nil { panic(err) @@ -245,12 +245,12 @@ type IosVpnSecurityAssociationParametersable interface { GetLifetimeInMinutes()(*int32) GetOdataType()(*string) GetSecurityDiffieHellmanGroup()(*int32) - GetSecurityEncryptionAlgorithm()(*VpnEncryptionAlgorithmType) - GetSecurityIntegrityAlgorithm()(*VpnIntegrityAlgorithmType) + GetSecurityEncryptionAlgorithm()(*IosVpnSecurityAssociationParameters_securityEncryptionAlgorithm) + GetSecurityIntegrityAlgorithm()(*IosVpnSecurityAssociationParameters_securityIntegrityAlgorithm) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetLifetimeInMinutes(value *int32)() SetOdataType(value *string)() SetSecurityDiffieHellmanGroup(value *int32)() - SetSecurityEncryptionAlgorithm(value *VpnEncryptionAlgorithmType)() - SetSecurityIntegrityAlgorithm(value *VpnIntegrityAlgorithmType)() + SetSecurityEncryptionAlgorithm(value *IosVpnSecurityAssociationParameters_securityEncryptionAlgorithm)() + SetSecurityIntegrityAlgorithm(value *IosVpnSecurityAssociationParameters_securityIntegrityAlgorithm)() } diff --git a/models/ios_vpn_security_association_parameters_security_encryption_algorithm.go b/models/ios_vpn_security_association_parameters_security_encryption_algorithm.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ios_vpn_security_association_parameters_security_integrity_algorithm.go b/models/ios_vpn_security_association_parameters_security_integrity_algorithm.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/iosik_ev2_vpn_configuration.go b/models/iosik_ev2_vpn_configuration.go index 2ae124f3f5e..c0f57ee587b 100644 --- a/models/iosik_ev2_vpn_configuration.go +++ b/models/iosik_ev2_vpn_configuration.go @@ -77,13 +77,13 @@ func (m *IosikEv2VpnConfiguration) GetClientAuthenticationType()(*VpnClientAuthe return nil } // GetDeadPeerDetectionRate gets the deadPeerDetectionRate property value. Determine how often to check if a peer connection is still active. . Possible values are: medium, none, low, high. -func (m *IosikEv2VpnConfiguration) GetDeadPeerDetectionRate()(*VpnDeadPeerDetectionRate) { +func (m *IosikEv2VpnConfiguration) GetDeadPeerDetectionRate()(*IosikEv2VpnConfiguration_deadPeerDetectionRate) { val, err := m.GetBackingStore().Get("deadPeerDetectionRate") if err != nil { panic(err) } if val != nil { - return val.(*VpnDeadPeerDetectionRate) + return val.(*IosikEv2VpnConfiguration_deadPeerDetectionRate) } return nil } @@ -218,12 +218,12 @@ func (m *IosikEv2VpnConfiguration) GetFieldDeserializers()(map[string]func(i878a return nil } res["deadPeerDetectionRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnDeadPeerDetectionRate) + val, err := n.GetEnumValue(ParseIosikEv2VpnConfiguration_deadPeerDetectionRate) if err != nil { return err } if val != nil { - m.SetDeadPeerDetectionRate(val.(*VpnDeadPeerDetectionRate)) + m.SetDeadPeerDetectionRate(val.(*IosikEv2VpnConfiguration_deadPeerDetectionRate)) } return nil } @@ -358,12 +358,12 @@ func (m *IosikEv2VpnConfiguration) GetFieldDeserializers()(map[string]func(i878a return nil } res["serverCertificateType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVpnServerCertificateType) + val, err := n.GetEnumValue(ParseIosikEv2VpnConfiguration_serverCertificateType) if err != nil { return err } if val != nil { - m.SetServerCertificateType(val.(*VpnServerCertificateType)) + m.SetServerCertificateType(val.(*IosikEv2VpnConfiguration_serverCertificateType)) } return nil } @@ -466,13 +466,13 @@ func (m *IosikEv2VpnConfiguration) GetServerCertificateIssuerCommonName()(*strin return nil } // GetServerCertificateType gets the serverCertificateType property value. The type of certificate the VPN server will present to the VPN client for authentication. Possible values are: rsa, ecdsa256, ecdsa384, ecdsa521. -func (m *IosikEv2VpnConfiguration) GetServerCertificateType()(*VpnServerCertificateType) { +func (m *IosikEv2VpnConfiguration) GetServerCertificateType()(*IosikEv2VpnConfiguration_serverCertificateType) { val, err := m.GetBackingStore().Get("serverCertificateType") if err != nil { panic(err) } if val != nil { - return val.(*VpnServerCertificateType) + return val.(*IosikEv2VpnConfiguration_serverCertificateType) } return nil } @@ -695,7 +695,7 @@ func (m *IosikEv2VpnConfiguration) SetClientAuthenticationType(value *VpnClientA } } // SetDeadPeerDetectionRate sets the deadPeerDetectionRate property value. Determine how often to check if a peer connection is still active. . Possible values are: medium, none, low, high. -func (m *IosikEv2VpnConfiguration) SetDeadPeerDetectionRate(value *VpnDeadPeerDetectionRate)() { +func (m *IosikEv2VpnConfiguration) SetDeadPeerDetectionRate(value *IosikEv2VpnConfiguration_deadPeerDetectionRate)() { err := m.GetBackingStore().Set("deadPeerDetectionRate", value) if err != nil { panic(err) @@ -793,7 +793,7 @@ func (m *IosikEv2VpnConfiguration) SetServerCertificateIssuerCommonName(value *s } } // SetServerCertificateType sets the serverCertificateType property value. The type of certificate the VPN server will present to the VPN client for authentication. Possible values are: rsa, ecdsa256, ecdsa384, ecdsa521. -func (m *IosikEv2VpnConfiguration) SetServerCertificateType(value *VpnServerCertificateType)() { +func (m *IosikEv2VpnConfiguration) SetServerCertificateType(value *IosikEv2VpnConfiguration_serverCertificateType)() { err := m.GetBackingStore().Set("serverCertificateType", value) if err != nil { panic(err) @@ -829,7 +829,7 @@ type IosikEv2VpnConfigurationable interface { GetAlwaysOnConfiguration()(AppleVpnAlwaysOnConfigurationable) GetChildSecurityAssociationParameters()(IosVpnSecurityAssociationParametersable) GetClientAuthenticationType()(*VpnClientAuthenticationType) - GetDeadPeerDetectionRate()(*VpnDeadPeerDetectionRate) + GetDeadPeerDetectionRate()(*IosikEv2VpnConfiguration_deadPeerDetectionRate) GetDisableMobilityAndMultihoming()(*bool) GetDisableRedirect()(*bool) GetEnableAlwaysOnConfiguration()(*bool) @@ -843,7 +843,7 @@ type IosikEv2VpnConfigurationable interface { GetSecurityAssociationParameters()(IosVpnSecurityAssociationParametersable) GetServerCertificateCommonName()(*string) GetServerCertificateIssuerCommonName()(*string) - GetServerCertificateType()(*VpnServerCertificateType) + GetServerCertificateType()(*IosikEv2VpnConfiguration_serverCertificateType) GetSharedSecret()(*string) GetTlsMaximumVersion()(*string) GetTlsMinimumVersion()(*string) @@ -852,7 +852,7 @@ type IosikEv2VpnConfigurationable interface { SetAlwaysOnConfiguration(value AppleVpnAlwaysOnConfigurationable)() SetChildSecurityAssociationParameters(value IosVpnSecurityAssociationParametersable)() SetClientAuthenticationType(value *VpnClientAuthenticationType)() - SetDeadPeerDetectionRate(value *VpnDeadPeerDetectionRate)() + SetDeadPeerDetectionRate(value *IosikEv2VpnConfiguration_deadPeerDetectionRate)() SetDisableMobilityAndMultihoming(value *bool)() SetDisableRedirect(value *bool)() SetEnableAlwaysOnConfiguration(value *bool)() @@ -866,7 +866,7 @@ type IosikEv2VpnConfigurationable interface { SetSecurityAssociationParameters(value IosVpnSecurityAssociationParametersable)() SetServerCertificateCommonName(value *string)() SetServerCertificateIssuerCommonName(value *string)() - SetServerCertificateType(value *VpnServerCertificateType)() + SetServerCertificateType(value *IosikEv2VpnConfiguration_serverCertificateType)() SetSharedSecret(value *string)() SetTlsMaximumVersion(value *string)() SetTlsMinimumVersion(value *string)() diff --git a/models/iosik_ev2_vpn_configuration_dead_peer_detection_rate.go b/models/iosik_ev2_vpn_configuration_dead_peer_detection_rate.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/iosik_ev2_vpn_configuration_server_certificate_type.go b/models/iosik_ev2_vpn_configuration_server_certificate_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ip_application_segment.go b/models/ip_application_segment.go index 84efba0c937..476e3749d0b 100644 --- a/models/ip_application_segment.go +++ b/models/ip_application_segment.go @@ -33,13 +33,13 @@ func (m *IpApplicationSegment) GetDestinationHost()(*string) { return nil } // GetDestinationType gets the destinationType property value. The destinationType property -func (m *IpApplicationSegment) GetDestinationType()(*PrivateNetworkDestinationType) { +func (m *IpApplicationSegment) GetDestinationType()(*IpApplicationSegment_destinationType) { val, err := m.GetBackingStore().Get("destinationType") if err != nil { panic(err) } if val != nil { - return val.(*PrivateNetworkDestinationType) + return val.(*IpApplicationSegment_destinationType) } return nil } @@ -57,12 +57,12 @@ func (m *IpApplicationSegment) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["destinationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivateNetworkDestinationType) + val, err := n.GetEnumValue(ParseIpApplicationSegment_destinationType) if err != nil { return err } if val != nil { - m.SetDestinationType(val.(*PrivateNetworkDestinationType)) + m.SetDestinationType(val.(*IpApplicationSegment_destinationType)) } return nil } @@ -93,12 +93,12 @@ func (m *IpApplicationSegment) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["protocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivateNetworkProtocol) + val, err := n.GetEnumValue(ParseIpApplicationSegment_protocol) if err != nil { return err } if val != nil { - m.SetProtocol(val.(*PrivateNetworkProtocol)) + m.SetProtocol(val.(*IpApplicationSegment_protocol)) } return nil } @@ -127,13 +127,13 @@ func (m *IpApplicationSegment) GetPorts()([]string) { return nil } // GetProtocol gets the protocol property value. The protocol property -func (m *IpApplicationSegment) GetProtocol()(*PrivateNetworkProtocol) { +func (m *IpApplicationSegment) GetProtocol()(*IpApplicationSegment_protocol) { val, err := m.GetBackingStore().Get("protocol") if err != nil { panic(err) } if val != nil { - return val.(*PrivateNetworkProtocol) + return val.(*IpApplicationSegment_protocol) } return nil } @@ -185,7 +185,7 @@ func (m *IpApplicationSegment) SetDestinationHost(value *string)() { } } // SetDestinationType sets the destinationType property value. The destinationType property -func (m *IpApplicationSegment) SetDestinationType(value *PrivateNetworkDestinationType)() { +func (m *IpApplicationSegment) SetDestinationType(value *IpApplicationSegment_destinationType)() { err := m.GetBackingStore().Set("destinationType", value) if err != nil { panic(err) @@ -206,7 +206,7 @@ func (m *IpApplicationSegment) SetPorts(value []string)() { } } // SetProtocol sets the protocol property value. The protocol property -func (m *IpApplicationSegment) SetProtocol(value *PrivateNetworkProtocol)() { +func (m *IpApplicationSegment) SetProtocol(value *IpApplicationSegment_protocol)() { err := m.GetBackingStore().Set("protocol", value) if err != nil { panic(err) @@ -217,13 +217,13 @@ type IpApplicationSegmentable interface { ApplicationSegmentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDestinationHost()(*string) - GetDestinationType()(*PrivateNetworkDestinationType) + GetDestinationType()(*IpApplicationSegment_destinationType) GetPort()(*int32) GetPorts()([]string) - GetProtocol()(*PrivateNetworkProtocol) + GetProtocol()(*IpApplicationSegment_protocol) SetDestinationHost(value *string)() - SetDestinationType(value *PrivateNetworkDestinationType)() + SetDestinationType(value *IpApplicationSegment_destinationType)() SetPort(value *int32)() SetPorts(value []string)() - SetProtocol(value *PrivateNetworkProtocol)() + SetProtocol(value *IpApplicationSegment_protocol)() } diff --git a/models/ip_application_segment_destination_type.go b/models/ip_application_segment_destination_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ip_application_segment_protocol.go b/models/ip_application_segment_protocol.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/item_body.go b/models/item_body.go index 898b3e80124..af9e0526a72 100644 --- a/models/item_body.go +++ b/models/item_body.go @@ -50,13 +50,13 @@ func (m *ItemBody) GetContent()(*string) { return nil } // GetContentType gets the contentType property value. The type of the content. Possible values are text and html. -func (m *ItemBody) GetContentType()(*BodyType) { +func (m *ItemBody) GetContentType()(*ItemBody_contentType) { val, err := m.GetBackingStore().Get("contentType") if err != nil { panic(err) } if val != nil { - return val.(*BodyType) + return val.(*ItemBody_contentType) } return nil } @@ -74,12 +74,12 @@ func (m *ItemBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["contentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBodyType) + val, err := n.GetEnumValue(ParseItemBody_contentType) if err != nil { return err } if val != nil { - m.SetContentType(val.(*BodyType)) + m.SetContentType(val.(*ItemBody_contentType)) } return nil } @@ -154,7 +154,7 @@ func (m *ItemBody) SetContent(value *string)() { } } // SetContentType sets the contentType property value. The type of the content. Possible values are text and html. -func (m *ItemBody) SetContentType(value *BodyType)() { +func (m *ItemBody) SetContentType(value *ItemBody_contentType)() { err := m.GetBackingStore().Set("contentType", value) if err != nil { panic(err) @@ -174,10 +174,10 @@ type ItemBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContent()(*string) - GetContentType()(*BodyType) + GetContentType()(*ItemBody_contentType) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContent(value *string)() - SetContentType(value *BodyType)() + SetContentType(value *ItemBody_contentType)() SetOdataType(value *string)() } diff --git a/models/item_body_content_type.go b/models/item_body_content_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/item_facet.go b/models/item_facet.go index 0c8a58d1ce0..2baf350a2aa 100644 --- a/models/item_facet.go +++ b/models/item_facet.go @@ -77,13 +77,13 @@ func CreateItemFacetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewItemFacet(), nil } // GetAllowedAudiences gets the allowedAudiences property value. The audiences that are able to see the values contained within the associated entity. Possible values are: me, family, contacts, groupMembers, organization, federatedOrganizations, everyone, unknownFutureValue. -func (m *ItemFacet) GetAllowedAudiences()(*AllowedAudiences) { +func (m *ItemFacet) GetAllowedAudiences()(*ItemFacet_allowedAudiences) { val, err := m.GetBackingStore().Get("allowedAudiences") if err != nil { panic(err) } if val != nil { - return val.(*AllowedAudiences) + return val.(*ItemFacet_allowedAudiences) } return nil } @@ -113,12 +113,12 @@ func (m *ItemFacet) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f30 func (m *ItemFacet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["allowedAudiences"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAllowedAudiences) + val, err := n.GetEnumValue(ParseItemFacet_allowedAudiences) if err != nil { return err } if val != nil { - m.SetAllowedAudiences(val.(*AllowedAudiences)) + m.SetAllowedAudiences(val.(*ItemFacet_allowedAudiences)) } return nil } @@ -307,7 +307,7 @@ func (m *ItemFacet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return nil } // SetAllowedAudiences sets the allowedAudiences property value. The audiences that are able to see the values contained within the associated entity. Possible values are: me, family, contacts, groupMembers, organization, federatedOrganizations, everyone, unknownFutureValue. -func (m *ItemFacet) SetAllowedAudiences(value *AllowedAudiences)() { +func (m *ItemFacet) SetAllowedAudiences(value *ItemFacet_allowedAudiences)() { err := m.GetBackingStore().Set("allowedAudiences", value) if err != nil { panic(err) @@ -366,7 +366,7 @@ func (m *ItemFacet) SetSource(value PersonDataSourcesable)() { type ItemFacetable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedAudiences()(*AllowedAudiences) + GetAllowedAudiences()(*ItemFacet_allowedAudiences) GetCreatedBy()(IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetInference()(InferenceDataable) @@ -374,7 +374,7 @@ type ItemFacetable interface { GetLastModifiedBy()(IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSource()(PersonDataSourcesable) - SetAllowedAudiences(value *AllowedAudiences)() + SetAllowedAudiences(value *ItemFacet_allowedAudiences)() SetCreatedBy(value IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetInference(value InferenceDataable)() diff --git a/models/item_facet_allowed_audiences.go b/models/item_facet_allowed_audiences.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/kerberos_sign_on_mapping_attribute_type.go b/models/kerberos_sign_on_mapping_attribute_type.go deleted file mode 100644 index d86a018448d..00000000000 --- a/models/kerberos_sign_on_mapping_attribute_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type KerberosSignOnMappingAttributeType int - -const ( - USERPRINCIPALNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE KerberosSignOnMappingAttributeType = iota - ONPREMISESUSERPRINCIPALNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - USERPRINCIPALUSERNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - ONPREMISESUSERPRINCIPALUSERNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - ONPREMISESSAMACCOUNTNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE -) - -func (i KerberosSignOnMappingAttributeType) String() string { - return []string{"userPrincipalName", "onPremisesUserPrincipalName", "userPrincipalUsername", "onPremisesUserPrincipalUsername", "onPremisesSAMAccountName"}[i] -} -func ParseKerberosSignOnMappingAttributeType(v string) (any, error) { - result := USERPRINCIPALNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - switch v { - case "userPrincipalName": - result = USERPRINCIPALNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - case "onPremisesUserPrincipalName": - result = ONPREMISESUSERPRINCIPALNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - case "userPrincipalUsername": - result = USERPRINCIPALUSERNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - case "onPremisesUserPrincipalUsername": - result = ONPREMISESUSERPRINCIPALUSERNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - case "onPremisesSAMAccountName": - result = ONPREMISESSAMACCOUNTNAME_KERBEROSSIGNONMAPPINGATTRIBUTETYPE - default: - return 0, errors.New("Unknown KerberosSignOnMappingAttributeType value: " + v) - } - return &result, nil -} -func SerializeKerberosSignOnMappingAttributeType(values []KerberosSignOnMappingAttributeType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i KerberosSignOnMappingAttributeType) isMultiValue() bool { - return false -} diff --git a/models/kerberos_sign_on_settings.go b/models/kerberos_sign_on_settings.go index 5057cbe45dd..e186ae69d05 100644 --- a/models/kerberos_sign_on_settings.go +++ b/models/kerberos_sign_on_settings.go @@ -52,12 +52,12 @@ func (m *KerberosSignOnSettings) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["kerberosSignOnMappingAttributeType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseKerberosSignOnMappingAttributeType) + val, err := n.GetEnumValue(ParseKerberosSignOnSettings_kerberosSignOnMappingAttributeType) if err != nil { return err } if val != nil { - m.SetKerberosSignOnMappingAttributeType(val.(*KerberosSignOnMappingAttributeType)) + m.SetKerberosSignOnMappingAttributeType(val.(*KerberosSignOnSettings_kerberosSignOnMappingAttributeType)) } return nil } @@ -85,13 +85,13 @@ func (m *KerberosSignOnSettings) GetKerberosServicePrincipalName()(*string) { return nil } // GetKerberosSignOnMappingAttributeType gets the kerberosSignOnMappingAttributeType property value. The Delegated Login Identity for the connector to use on behalf of your users. For more information, see Working with different on-premises and cloud identities . Possible values are: userPrincipalName, onPremisesUserPrincipalName, userPrincipalUsername, onPremisesUserPrincipalUsername, onPremisesSAMAccountName. -func (m *KerberosSignOnSettings) GetKerberosSignOnMappingAttributeType()(*KerberosSignOnMappingAttributeType) { +func (m *KerberosSignOnSettings) GetKerberosSignOnMappingAttributeType()(*KerberosSignOnSettings_kerberosSignOnMappingAttributeType) { val, err := m.GetBackingStore().Get("kerberosSignOnMappingAttributeType") if err != nil { panic(err) } if val != nil { - return val.(*KerberosSignOnMappingAttributeType) + return val.(*KerberosSignOnSettings_kerberosSignOnMappingAttributeType) } return nil } @@ -154,7 +154,7 @@ func (m *KerberosSignOnSettings) SetKerberosServicePrincipalName(value *string)( } } // SetKerberosSignOnMappingAttributeType sets the kerberosSignOnMappingAttributeType property value. The Delegated Login Identity for the connector to use on behalf of your users. For more information, see Working with different on-premises and cloud identities . Possible values are: userPrincipalName, onPremisesUserPrincipalName, userPrincipalUsername, onPremisesUserPrincipalUsername, onPremisesSAMAccountName. -func (m *KerberosSignOnSettings) SetKerberosSignOnMappingAttributeType(value *KerberosSignOnMappingAttributeType)() { +func (m *KerberosSignOnSettings) SetKerberosSignOnMappingAttributeType(value *KerberosSignOnSettings_kerberosSignOnMappingAttributeType)() { err := m.GetBackingStore().Set("kerberosSignOnMappingAttributeType", value) if err != nil { panic(err) @@ -174,10 +174,10 @@ type KerberosSignOnSettingsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetKerberosServicePrincipalName()(*string) - GetKerberosSignOnMappingAttributeType()(*KerberosSignOnMappingAttributeType) + GetKerberosSignOnMappingAttributeType()(*KerberosSignOnSettings_kerberosSignOnMappingAttributeType) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetKerberosServicePrincipalName(value *string)() - SetKerberosSignOnMappingAttributeType(value *KerberosSignOnMappingAttributeType)() + SetKerberosSignOnMappingAttributeType(value *KerberosSignOnSettings_kerberosSignOnMappingAttributeType)() SetOdataType(value *string)() } diff --git a/models/kerberos_sign_on_settings_kerberos_sign_on_mapping_attribute_type.go b/models/kerberos_sign_on_settings_kerberos_sign_on_mapping_attribute_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/key_credential_configuration.go b/models/key_credential_configuration.go index 7acd944b9ff..2b88b165733 100644 --- a/models/key_credential_configuration.go +++ b/models/key_credential_configuration.go @@ -100,12 +100,12 @@ func (m *KeyCredentialConfiguration) GetFieldDeserializers()(map[string]func(i87 return nil } res["restrictionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAppKeyCredentialRestrictionType) + val, err := n.GetEnumValue(ParseKeyCredentialConfiguration_restrictionType) if err != nil { return err } if val != nil { - m.SetRestrictionType(val.(*AppKeyCredentialRestrictionType)) + m.SetRestrictionType(val.(*KeyCredentialConfiguration_restrictionType)) } return nil } @@ -145,13 +145,13 @@ func (m *KeyCredentialConfiguration) GetRestrictForAppsCreatedAfterDateTime()(*i return nil } // GetRestrictionType gets the restrictionType property value. The type of restriction being applied. Possible values are asymmetricKeyLifetime, unknownFutureValue. Each value of restrictionType can be used only once per policy. -func (m *KeyCredentialConfiguration) GetRestrictionType()(*AppKeyCredentialRestrictionType) { +func (m *KeyCredentialConfiguration) GetRestrictionType()(*KeyCredentialConfiguration_restrictionType) { val, err := m.GetBackingStore().Get("restrictionType") if err != nil { panic(err) } if val != nil { - return val.(*AppKeyCredentialRestrictionType) + return val.(*KeyCredentialConfiguration_restrictionType) } return nil } @@ -236,7 +236,7 @@ func (m *KeyCredentialConfiguration) SetRestrictForAppsCreatedAfterDateTime(valu } } // SetRestrictionType sets the restrictionType property value. The type of restriction being applied. Possible values are asymmetricKeyLifetime, unknownFutureValue. Each value of restrictionType can be used only once per policy. -func (m *KeyCredentialConfiguration) SetRestrictionType(value *AppKeyCredentialRestrictionType)() { +func (m *KeyCredentialConfiguration) SetRestrictionType(value *KeyCredentialConfiguration_restrictionType)() { err := m.GetBackingStore().Set("restrictionType", value) if err != nil { panic(err) @@ -252,11 +252,11 @@ type KeyCredentialConfigurationable interface { GetMaxLifetime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetOdataType()(*string) GetRestrictForAppsCreatedAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetRestrictionType()(*AppKeyCredentialRestrictionType) + GetRestrictionType()(*KeyCredentialConfiguration_restrictionType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCertificateBasedApplicationConfigurationIds(value []string)() SetMaxLifetime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetOdataType(value *string)() SetRestrictForAppsCreatedAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetRestrictionType(value *AppKeyCredentialRestrictionType)() + SetRestrictionType(value *KeyCredentialConfiguration_restrictionType)() } diff --git a/models/key_credential_configuration_restriction_type.go b/models/key_credential_configuration_restriction_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/kiosk_mode_managed_home_screen_pin_complexity.go b/models/kiosk_mode_managed_home_screen_pin_complexity.go deleted file mode 100644 index b9dff819454..00000000000 --- a/models/kiosk_mode_managed_home_screen_pin_complexity.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Complexity of PIN for Managed Home Screen sign-in session. -type KioskModeManagedHomeScreenPinComplexity int - -const ( - // Not configured. - NOTCONFIGURED_KIOSKMODEMANAGEDHOMESCREENPINCOMPLEXITY KioskModeManagedHomeScreenPinComplexity = iota - // Numeric values only. - SIMPLE_KIOSKMODEMANAGEDHOMESCREENPINCOMPLEXITY - // Alphanumerical value. - COMPLEX_KIOSKMODEMANAGEDHOMESCREENPINCOMPLEXITY -) - -func (i KioskModeManagedHomeScreenPinComplexity) String() string { - return []string{"notConfigured", "simple", "complex"}[i] -} -func ParseKioskModeManagedHomeScreenPinComplexity(v string) (any, error) { - result := NOTCONFIGURED_KIOSKMODEMANAGEDHOMESCREENPINCOMPLEXITY - switch v { - case "notConfigured": - result = NOTCONFIGURED_KIOSKMODEMANAGEDHOMESCREENPINCOMPLEXITY - case "simple": - result = SIMPLE_KIOSKMODEMANAGEDHOMESCREENPINCOMPLEXITY - case "complex": - result = COMPLEX_KIOSKMODEMANAGEDHOMESCREENPINCOMPLEXITY - default: - return 0, errors.New("Unknown KioskModeManagedHomeScreenPinComplexity value: " + v) - } - return &result, nil -} -func SerializeKioskModeManagedHomeScreenPinComplexity(values []KioskModeManagedHomeScreenPinComplexity) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i KioskModeManagedHomeScreenPinComplexity) isMultiValue() bool { - return false -} diff --git a/models/kiosk_mode_type.go b/models/kiosk_mode_type.go deleted file mode 100644 index ef26504ae6e..00000000000 --- a/models/kiosk_mode_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Possible values of Android Kiosk Mode. -type KioskModeType int - -const ( - // Not configured - NOTCONFIGURED_KIOSKMODETYPE KioskModeType = iota - // Run in single-app mode - SINGLEAPPMODE_KIOSKMODETYPE - // Run in multi-app mode - MULTIAPPMODE_KIOSKMODETYPE -) - -func (i KioskModeType) String() string { - return []string{"notConfigured", "singleAppMode", "multiAppMode"}[i] -} -func ParseKioskModeType(v string) (any, error) { - result := NOTCONFIGURED_KIOSKMODETYPE - switch v { - case "notConfigured": - result = NOTCONFIGURED_KIOSKMODETYPE - case "singleAppMode": - result = SINGLEAPPMODE_KIOSKMODETYPE - case "multiAppMode": - result = MULTIAPPMODE_KIOSKMODETYPE - default: - return 0, errors.New("Unknown KioskModeType value: " + v) - } - return &result, nil -} -func SerializeKioskModeType(values []KioskModeType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i KioskModeType) isMultiValue() bool { - return false -} diff --git a/models/label.go b/models/label.go deleted file mode 100644 index 1d75f7c59a6..00000000000 --- a/models/label.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type Label int - -const ( - TITLE_LABEL Label = iota - URL_LABEL - CREATEDBY_LABEL - LASTMODIFIEDBY_LABEL - AUTHORS_LABEL - CREATEDDATETIME_LABEL - LASTMODIFIEDDATETIME_LABEL - FILENAME_LABEL - FILEEXTENSION_LABEL -) - -func (i Label) String() string { - return []string{"title", "url", "createdBy", "lastModifiedBy", "authors", "createdDateTime", "lastModifiedDateTime", "fileName", "fileExtension"}[i] -} -func ParseLabel(v string) (any, error) { - result := TITLE_LABEL - switch v { - case "title": - result = TITLE_LABEL - case "url": - result = URL_LABEL - case "createdBy": - result = CREATEDBY_LABEL - case "lastModifiedBy": - result = LASTMODIFIEDBY_LABEL - case "authors": - result = AUTHORS_LABEL - case "createdDateTime": - result = CREATEDDATETIME_LABEL - case "lastModifiedDateTime": - result = LASTMODIFIEDDATETIME_LABEL - case "fileName": - result = FILENAME_LABEL - case "fileExtension": - result = FILEEXTENSION_LABEL - default: - return 0, errors.New("Unknown Label value: " + v) - } - return &result, nil -} -func SerializeLabel(values []Label) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Label) isMultiValue() bool { - return false -} diff --git a/models/landing_page.go b/models/landing_page.go index b1815f027df..a377ea938bc 100644 --- a/models/landing_page.go +++ b/models/landing_page.go @@ -165,22 +165,22 @@ func (m *LandingPage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationContentSource) + val, err := n.GetEnumValue(ParseLandingPage_source) if err != nil { return err } if val != nil { - m.SetSource(val.(*SimulationContentSource)) + m.SetSource(val.(*LandingPage_source)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationContentStatus) + val, err := n.GetEnumValue(ParseLandingPage_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SimulationContentStatus)) + m.SetStatus(val.(*LandingPage_status)) } return nil } @@ -236,24 +236,24 @@ func (m *LandingPage) GetLocale()(*string) { return nil } // GetSource gets the source property value. The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. -func (m *LandingPage) GetSource()(*SimulationContentSource) { +func (m *LandingPage) GetSource()(*LandingPage_source) { val, err := m.GetBackingStore().Get("source") if err != nil { panic(err) } if val != nil { - return val.(*SimulationContentSource) + return val.(*LandingPage_source) } return nil } // GetStatus gets the status property value. The status of the simulation. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. -func (m *LandingPage) GetStatus()(*SimulationContentStatus) { +func (m *LandingPage) GetStatus()(*LandingPage_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SimulationContentStatus) + return val.(*LandingPage_status) } return nil } @@ -407,14 +407,14 @@ func (m *LandingPage) SetLocale(value *string)() { } } // SetSource sets the source property value. The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. -func (m *LandingPage) SetSource(value *SimulationContentSource)() { +func (m *LandingPage) SetSource(value *LandingPage_source)() { err := m.GetBackingStore().Set("source", value) if err != nil { panic(err) } } // SetStatus sets the status property value. The status of the simulation. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. -func (m *LandingPage) SetStatus(value *SimulationContentStatus)() { +func (m *LandingPage) SetStatus(value *LandingPage_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -439,8 +439,8 @@ type LandingPageable interface { GetLastModifiedBy()(EmailIdentityable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLocale()(*string) - GetSource()(*SimulationContentSource) - GetStatus()(*SimulationContentStatus) + GetSource()(*LandingPage_source) + GetStatus()(*LandingPage_status) GetSupportedLocales()([]string) SetCreatedBy(value EmailIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -450,7 +450,7 @@ type LandingPageable interface { SetLastModifiedBy(value EmailIdentityable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLocale(value *string)() - SetSource(value *SimulationContentSource)() - SetStatus(value *SimulationContentStatus)() + SetSource(value *LandingPage_source)() + SetStatus(value *LandingPage_status)() SetSupportedLocales(value []string)() } diff --git a/models/landing_page_source.go b/models/landing_page_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/landing_page_status.go b/models/landing_page_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/language_proficiency.go b/models/language_proficiency.go index 4654df38cf0..888e4923940 100644 --- a/models/language_proficiency.go +++ b/models/language_proficiency.go @@ -46,32 +46,32 @@ func (m *LanguageProficiency) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["proficiency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLanguageProficiencyLevel) + val, err := n.GetEnumValue(ParseLanguageProficiency_proficiency) if err != nil { return err } if val != nil { - m.SetProficiency(val.(*LanguageProficiencyLevel)) + m.SetProficiency(val.(*LanguageProficiency_proficiency)) } return nil } res["reading"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLanguageProficiencyLevel) + val, err := n.GetEnumValue(ParseLanguageProficiency_reading) if err != nil { return err } if val != nil { - m.SetReading(val.(*LanguageProficiencyLevel)) + m.SetReading(val.(*LanguageProficiency_reading)) } return nil } res["spoken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLanguageProficiencyLevel) + val, err := n.GetEnumValue(ParseLanguageProficiency_spoken) if err != nil { return err } if val != nil { - m.SetSpoken(val.(*LanguageProficiencyLevel)) + m.SetSpoken(val.(*LanguageProficiency_spoken)) } return nil } @@ -96,47 +96,47 @@ func (m *LanguageProficiency) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["written"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLanguageProficiencyLevel) + val, err := n.GetEnumValue(ParseLanguageProficiency_written) if err != nil { return err } if val != nil { - m.SetWritten(val.(*LanguageProficiencyLevel)) + m.SetWritten(val.(*LanguageProficiency_written)) } return nil } return res } // GetProficiency gets the proficiency property value. The proficiency property -func (m *LanguageProficiency) GetProficiency()(*LanguageProficiencyLevel) { +func (m *LanguageProficiency) GetProficiency()(*LanguageProficiency_proficiency) { val, err := m.GetBackingStore().Get("proficiency") if err != nil { panic(err) } if val != nil { - return val.(*LanguageProficiencyLevel) + return val.(*LanguageProficiency_proficiency) } return nil } // GetReading gets the reading property value. Represents the users reading comprehension for the language represented by the object. Possible values are: elementary, conversational, limitedWorking, professionalWorking, fullProfessional, nativeOrBilingual, unknownFutureValue. -func (m *LanguageProficiency) GetReading()(*LanguageProficiencyLevel) { +func (m *LanguageProficiency) GetReading()(*LanguageProficiency_reading) { val, err := m.GetBackingStore().Get("reading") if err != nil { panic(err) } if val != nil { - return val.(*LanguageProficiencyLevel) + return val.(*LanguageProficiency_reading) } return nil } // GetSpoken gets the spoken property value. Represents the users spoken proficiency for the language represented by the object. Possible values are: elementary, conversational, limitedWorking, professionalWorking, fullProfessional, nativeOrBilingual, unknownFutureValue. -func (m *LanguageProficiency) GetSpoken()(*LanguageProficiencyLevel) { +func (m *LanguageProficiency) GetSpoken()(*LanguageProficiency_spoken) { val, err := m.GetBackingStore().Get("spoken") if err != nil { panic(err) } if val != nil { - return val.(*LanguageProficiencyLevel) + return val.(*LanguageProficiency_spoken) } return nil } @@ -163,13 +163,13 @@ func (m *LanguageProficiency) GetThumbnailUrl()(*string) { return nil } // GetWritten gets the written property value. Represents the users written proficiency for the language represented by the object. Possible values are: elementary, conversational, limitedWorking, professionalWorking, fullProfessional, nativeOrBilingual, unknownFutureValue. -func (m *LanguageProficiency) GetWritten()(*LanguageProficiencyLevel) { +func (m *LanguageProficiency) GetWritten()(*LanguageProficiency_written) { val, err := m.GetBackingStore().Get("written") if err != nil { panic(err) } if val != nil { - return val.(*LanguageProficiencyLevel) + return val.(*LanguageProficiency_written) } return nil } @@ -235,21 +235,21 @@ func (m *LanguageProficiency) SetDisplayName(value *string)() { } } // SetProficiency sets the proficiency property value. The proficiency property -func (m *LanguageProficiency) SetProficiency(value *LanguageProficiencyLevel)() { +func (m *LanguageProficiency) SetProficiency(value *LanguageProficiency_proficiency)() { err := m.GetBackingStore().Set("proficiency", value) if err != nil { panic(err) } } // SetReading sets the reading property value. Represents the users reading comprehension for the language represented by the object. Possible values are: elementary, conversational, limitedWorking, professionalWorking, fullProfessional, nativeOrBilingual, unknownFutureValue. -func (m *LanguageProficiency) SetReading(value *LanguageProficiencyLevel)() { +func (m *LanguageProficiency) SetReading(value *LanguageProficiency_reading)() { err := m.GetBackingStore().Set("reading", value) if err != nil { panic(err) } } // SetSpoken sets the spoken property value. Represents the users spoken proficiency for the language represented by the object. Possible values are: elementary, conversational, limitedWorking, professionalWorking, fullProfessional, nativeOrBilingual, unknownFutureValue. -func (m *LanguageProficiency) SetSpoken(value *LanguageProficiencyLevel)() { +func (m *LanguageProficiency) SetSpoken(value *LanguageProficiency_spoken)() { err := m.GetBackingStore().Set("spoken", value) if err != nil { panic(err) @@ -270,7 +270,7 @@ func (m *LanguageProficiency) SetThumbnailUrl(value *string)() { } } // SetWritten sets the written property value. Represents the users written proficiency for the language represented by the object. Possible values are: elementary, conversational, limitedWorking, professionalWorking, fullProfessional, nativeOrBilingual, unknownFutureValue. -func (m *LanguageProficiency) SetWritten(value *LanguageProficiencyLevel)() { +func (m *LanguageProficiency) SetWritten(value *LanguageProficiency_written)() { err := m.GetBackingStore().Set("written", value) if err != nil { panic(err) @@ -281,17 +281,17 @@ type LanguageProficiencyable interface { ItemFacetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) - GetProficiency()(*LanguageProficiencyLevel) - GetReading()(*LanguageProficiencyLevel) - GetSpoken()(*LanguageProficiencyLevel) + GetProficiency()(*LanguageProficiency_proficiency) + GetReading()(*LanguageProficiency_reading) + GetSpoken()(*LanguageProficiency_spoken) GetTag()(*string) GetThumbnailUrl()(*string) - GetWritten()(*LanguageProficiencyLevel) + GetWritten()(*LanguageProficiency_written) SetDisplayName(value *string)() - SetProficiency(value *LanguageProficiencyLevel)() - SetReading(value *LanguageProficiencyLevel)() - SetSpoken(value *LanguageProficiencyLevel)() + SetProficiency(value *LanguageProficiency_proficiency)() + SetReading(value *LanguageProficiency_reading)() + SetSpoken(value *LanguageProficiency_spoken)() SetTag(value *string)() SetThumbnailUrl(value *string)() - SetWritten(value *LanguageProficiencyLevel)() + SetWritten(value *LanguageProficiency_written)() } diff --git a/models/language_proficiency_level.go b/models/language_proficiency_level.go deleted file mode 100644 index bc74497787d..00000000000 --- a/models/language_proficiency_level.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type LanguageProficiencyLevel int - -const ( - ELEMENTARY_LANGUAGEPROFICIENCYLEVEL LanguageProficiencyLevel = iota - CONVERSATIONAL_LANGUAGEPROFICIENCYLEVEL - LIMITEDWORKING_LANGUAGEPROFICIENCYLEVEL - PROFESSIONALWORKING_LANGUAGEPROFICIENCYLEVEL - FULLPROFESSIONAL_LANGUAGEPROFICIENCYLEVEL - NATIVEORBILINGUAL_LANGUAGEPROFICIENCYLEVEL - UNKNOWNFUTUREVALUE_LANGUAGEPROFICIENCYLEVEL -) - -func (i LanguageProficiencyLevel) String() string { - return []string{"elementary", "conversational", "limitedWorking", "professionalWorking", "fullProfessional", "nativeOrBilingual", "unknownFutureValue"}[i] -} -func ParseLanguageProficiencyLevel(v string) (any, error) { - result := ELEMENTARY_LANGUAGEPROFICIENCYLEVEL - switch v { - case "elementary": - result = ELEMENTARY_LANGUAGEPROFICIENCYLEVEL - case "conversational": - result = CONVERSATIONAL_LANGUAGEPROFICIENCYLEVEL - case "limitedWorking": - result = LIMITEDWORKING_LANGUAGEPROFICIENCYLEVEL - case "professionalWorking": - result = PROFESSIONALWORKING_LANGUAGEPROFICIENCYLEVEL - case "fullProfessional": - result = FULLPROFESSIONAL_LANGUAGEPROFICIENCYLEVEL - case "nativeOrBilingual": - result = NATIVEORBILINGUAL_LANGUAGEPROFICIENCYLEVEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_LANGUAGEPROFICIENCYLEVEL - default: - return 0, errors.New("Unknown LanguageProficiencyLevel value: " + v) - } - return &result, nil -} -func SerializeLanguageProficiencyLevel(values []LanguageProficiencyLevel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i LanguageProficiencyLevel) isMultiValue() bool { - return false -} diff --git a/models/language_proficiency_proficiency.go b/models/language_proficiency_proficiency.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/language_proficiency_reading.go b/models/language_proficiency_reading.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/language_proficiency_spoken.go b/models/language_proficiency_spoken.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/language_proficiency_written.go b/models/language_proficiency_written.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/layout_template_type.go b/models/layout_template_type.go deleted file mode 100644 index 55a2562d06c..00000000000 --- a/models/layout_template_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type LayoutTemplateType int - -const ( - DEFAULTESCAPED_LAYOUTTEMPLATETYPE LayoutTemplateType = iota - VERTICALSPLIT_LAYOUTTEMPLATETYPE - UNKNOWNFUTUREVALUE_LAYOUTTEMPLATETYPE -) - -func (i LayoutTemplateType) String() string { - return []string{"default", "verticalSplit", "unknownFutureValue"}[i] -} -func ParseLayoutTemplateType(v string) (any, error) { - result := DEFAULTESCAPED_LAYOUTTEMPLATETYPE - switch v { - case "default": - result = DEFAULTESCAPED_LAYOUTTEMPLATETYPE - case "verticalSplit": - result = VERTICALSPLIT_LAYOUTTEMPLATETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_LAYOUTTEMPLATETYPE - default: - return 0, errors.New("Unknown LayoutTemplateType value: " + v) - } - return &result, nil -} -func SerializeLayoutTemplateType(values []LayoutTemplateType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i LayoutTemplateType) isMultiValue() bool { - return false -} diff --git a/models/learning_course_activity.go b/models/learning_course_activity.go index 7922224a829..fa87ed72f55 100644 --- a/models/learning_course_activity.go +++ b/models/learning_course_activity.go @@ -137,12 +137,12 @@ func (m *LearningCourseActivity) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCourseStatus) + val, err := n.GetEnumValue(ParseLearningCourseActivity_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CourseStatus)) + m.SetStatus(val.(*LearningCourseActivity_status)) } return nil } @@ -182,13 +182,13 @@ func (m *LearningCourseActivity) GetLearningProviderId()(*string) { return nil } // GetStatus gets the status property value. The status of the course activity. Possible values are: notStarted, inProgress, completed. Required. -func (m *LearningCourseActivity) GetStatus()(*CourseStatus) { +func (m *LearningCourseActivity) GetStatus()(*LearningCourseActivity_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CourseStatus) + return val.(*LearningCourseActivity_status) } return nil } @@ -286,7 +286,7 @@ func (m *LearningCourseActivity) SetLearningProviderId(value *string)() { } } // SetStatus sets the status property value. The status of the course activity. Possible values are: notStarted, inProgress, completed. Required. -func (m *LearningCourseActivity) SetStatus(value *CourseStatus)() { +func (m *LearningCourseActivity) SetStatus(value *LearningCourseActivity_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -302,12 +302,12 @@ type LearningCourseActivityable interface { GetLearnerUserId()(*string) GetLearningContentId()(*string) GetLearningProviderId()(*string) - GetStatus()(*CourseStatus) + GetStatus()(*LearningCourseActivity_status) SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCompletionPercentage(value *int32)() SetExternalcourseActivityId(value *string)() SetLearnerUserId(value *string)() SetLearningContentId(value *string)() SetLearningProviderId(value *string)() - SetStatus(value *CourseStatus)() + SetStatus(value *LearningCourseActivity_status)() } diff --git a/models/learning_course_activity_status.go b/models/learning_course_activity_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/lobby_bypass_scope.go b/models/lobby_bypass_scope.go deleted file mode 100644 index d0be1f95ed3..00000000000 --- a/models/lobby_bypass_scope.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type LobbyBypassScope int - -const ( - ORGANIZER_LOBBYBYPASSSCOPE LobbyBypassScope = iota - ORGANIZATION_LOBBYBYPASSSCOPE - ORGANIZATIONANDFEDERATED_LOBBYBYPASSSCOPE - EVERYONE_LOBBYBYPASSSCOPE - UNKNOWNFUTUREVALUE_LOBBYBYPASSSCOPE - INVITED_LOBBYBYPASSSCOPE - ORGANIZATIONEXCLUDINGGUESTS_LOBBYBYPASSSCOPE -) - -func (i LobbyBypassScope) String() string { - return []string{"organizer", "organization", "organizationAndFederated", "everyone", "unknownFutureValue", "invited", "organizationExcludingGuests"}[i] -} -func ParseLobbyBypassScope(v string) (any, error) { - result := ORGANIZER_LOBBYBYPASSSCOPE - switch v { - case "organizer": - result = ORGANIZER_LOBBYBYPASSSCOPE - case "organization": - result = ORGANIZATION_LOBBYBYPASSSCOPE - case "organizationAndFederated": - result = ORGANIZATIONANDFEDERATED_LOBBYBYPASSSCOPE - case "everyone": - result = EVERYONE_LOBBYBYPASSSCOPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_LOBBYBYPASSSCOPE - case "invited": - result = INVITED_LOBBYBYPASSSCOPE - case "organizationExcludingGuests": - result = ORGANIZATIONEXCLUDINGGUESTS_LOBBYBYPASSSCOPE - default: - return 0, errors.New("Unknown LobbyBypassScope value: " + v) - } - return &result, nil -} -func SerializeLobbyBypassScope(values []LobbyBypassScope) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i LobbyBypassScope) isMultiValue() bool { - return false -} diff --git a/models/lobby_bypass_settings.go b/models/lobby_bypass_settings.go index edd9c318943..445bf8237f9 100644 --- a/models/lobby_bypass_settings.go +++ b/models/lobby_bypass_settings.go @@ -62,12 +62,12 @@ func (m *LobbyBypassSettings) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLobbyBypassScope) + val, err := n.GetEnumValue(ParseLobbyBypassSettings_scope) if err != nil { return err } if val != nil { - m.SetScope(val.(*LobbyBypassScope)) + m.SetScope(val.(*LobbyBypassSettings_scope)) } return nil } @@ -96,13 +96,13 @@ func (m *LobbyBypassSettings) GetOdataType()(*string) { return nil } // GetScope gets the scope property value. Specifies the type of participants that are automatically admitted into a meeting, bypassing the lobby. Optional. -func (m *LobbyBypassSettings) GetScope()(*LobbyBypassScope) { +func (m *LobbyBypassSettings) GetScope()(*LobbyBypassSettings_scope) { val, err := m.GetBackingStore().Get("scope") if err != nil { panic(err) } if val != nil { - return val.(*LobbyBypassScope) + return val.(*LobbyBypassSettings_scope) } return nil } @@ -161,7 +161,7 @@ func (m *LobbyBypassSettings) SetOdataType(value *string)() { } } // SetScope sets the scope property value. Specifies the type of participants that are automatically admitted into a meeting, bypassing the lobby. Optional. -func (m *LobbyBypassSettings) SetScope(value *LobbyBypassScope)() { +func (m *LobbyBypassSettings) SetScope(value *LobbyBypassSettings_scope)() { err := m.GetBackingStore().Set("scope", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type LobbyBypassSettingsable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetIsDialInBypassEnabled()(*bool) GetOdataType()(*string) - GetScope()(*LobbyBypassScope) + GetScope()(*LobbyBypassSettings_scope) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetIsDialInBypassEnabled(value *bool)() SetOdataType(value *string)() - SetScope(value *LobbyBypassScope)() + SetScope(value *LobbyBypassSettings_scope)() } diff --git a/models/lobby_bypass_settings_scope.go b/models/lobby_bypass_settings_scope.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/location.go b/models/location.go index 443a9438a27..e2b76d71599 100644 --- a/models/location.go +++ b/models/location.go @@ -133,12 +133,12 @@ func (m *Location) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["locationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLocationType) + val, err := n.GetEnumValue(ParseLocation_locationType) if err != nil { return err } if val != nil { - m.SetLocationType(val.(*LocationType)) + m.SetLocationType(val.(*Location_locationType)) } return nil } @@ -173,12 +173,12 @@ func (m *Location) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["uniqueIdType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLocationUniqueIdType) + val, err := n.GetEnumValue(ParseLocation_uniqueIdType) if err != nil { return err } if val != nil { - m.SetUniqueIdType(val.(*LocationUniqueIdType)) + m.SetUniqueIdType(val.(*Location_uniqueIdType)) } return nil } @@ -196,13 +196,13 @@ func (m *Location) GetLocationEmailAddress()(*string) { return nil } // GetLocationType gets the locationType property value. The type of location. Possible values are: default, conferenceRoom, homeAddress, businessAddress,geoCoordinates, streetAddress, hotel, restaurant, localBusiness, postalAddress. Read-only. -func (m *Location) GetLocationType()(*LocationType) { +func (m *Location) GetLocationType()(*Location_locationType) { val, err := m.GetBackingStore().Get("locationType") if err != nil { panic(err) } if val != nil { - return val.(*LocationType) + return val.(*Location_locationType) } return nil } @@ -240,13 +240,13 @@ func (m *Location) GetUniqueId()(*string) { return nil } // GetUniqueIdType gets the uniqueIdType property value. For internal use only. -func (m *Location) GetUniqueIdType()(*LocationUniqueIdType) { +func (m *Location) GetUniqueIdType()(*Location_uniqueIdType) { val, err := m.GetBackingStore().Get("uniqueIdType") if err != nil { panic(err) } if val != nil { - return val.(*LocationUniqueIdType) + return val.(*Location_uniqueIdType) } return nil } @@ -356,7 +356,7 @@ func (m *Location) SetLocationEmailAddress(value *string)() { } } // SetLocationType sets the locationType property value. The type of location. Possible values are: default, conferenceRoom, homeAddress, businessAddress,geoCoordinates, streetAddress, hotel, restaurant, localBusiness, postalAddress. Read-only. -func (m *Location) SetLocationType(value *LocationType)() { +func (m *Location) SetLocationType(value *Location_locationType)() { err := m.GetBackingStore().Set("locationType", value) if err != nil { panic(err) @@ -384,7 +384,7 @@ func (m *Location) SetUniqueId(value *string)() { } } // SetUniqueIdType sets the uniqueIdType property value. For internal use only. -func (m *Location) SetUniqueIdType(value *LocationUniqueIdType)() { +func (m *Location) SetUniqueIdType(value *Location_uniqueIdType)() { err := m.GetBackingStore().Set("uniqueIdType", value) if err != nil { panic(err) @@ -400,19 +400,19 @@ type Locationable interface { GetCoordinates()(OutlookGeoCoordinatesable) GetDisplayName()(*string) GetLocationEmailAddress()(*string) - GetLocationType()(*LocationType) + GetLocationType()(*Location_locationType) GetLocationUri()(*string) GetOdataType()(*string) GetUniqueId()(*string) - GetUniqueIdType()(*LocationUniqueIdType) + GetUniqueIdType()(*Location_uniqueIdType) SetAddress(value PhysicalAddressable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCoordinates(value OutlookGeoCoordinatesable)() SetDisplayName(value *string)() SetLocationEmailAddress(value *string)() - SetLocationType(value *LocationType)() + SetLocationType(value *Location_locationType)() SetLocationUri(value *string)() SetOdataType(value *string)() SetUniqueId(value *string)() - SetUniqueIdType(value *LocationUniqueIdType)() + SetUniqueIdType(value *Location_uniqueIdType)() } diff --git a/models/location_location_type.go b/models/location_location_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/location_type.go b/models/location_type.go deleted file mode 100644 index 556f4ad9dfb..00000000000 --- a/models/location_type.go +++ /dev/null @@ -1,61 +0,0 @@ -package models -import ( - "errors" -) -// -type LocationType int - -const ( - DEFAULTESCAPED_LOCATIONTYPE LocationType = iota - CONFERENCEROOM_LOCATIONTYPE - HOMEADDRESS_LOCATIONTYPE - BUSINESSADDRESS_LOCATIONTYPE - GEOCOORDINATES_LOCATIONTYPE - STREETADDRESS_LOCATIONTYPE - HOTEL_LOCATIONTYPE - RESTAURANT_LOCATIONTYPE - LOCALBUSINESS_LOCATIONTYPE - POSTALADDRESS_LOCATIONTYPE -) - -func (i LocationType) String() string { - return []string{"default", "conferenceRoom", "homeAddress", "businessAddress", "geoCoordinates", "streetAddress", "hotel", "restaurant", "localBusiness", "postalAddress"}[i] -} -func ParseLocationType(v string) (any, error) { - result := DEFAULTESCAPED_LOCATIONTYPE - switch v { - case "default": - result = DEFAULTESCAPED_LOCATIONTYPE - case "conferenceRoom": - result = CONFERENCEROOM_LOCATIONTYPE - case "homeAddress": - result = HOMEADDRESS_LOCATIONTYPE - case "businessAddress": - result = BUSINESSADDRESS_LOCATIONTYPE - case "geoCoordinates": - result = GEOCOORDINATES_LOCATIONTYPE - case "streetAddress": - result = STREETADDRESS_LOCATIONTYPE - case "hotel": - result = HOTEL_LOCATIONTYPE - case "restaurant": - result = RESTAURANT_LOCATIONTYPE - case "localBusiness": - result = LOCALBUSINESS_LOCATIONTYPE - case "postalAddress": - result = POSTALADDRESS_LOCATIONTYPE - default: - return 0, errors.New("Unknown LocationType value: " + v) - } - return &result, nil -} -func SerializeLocationType(values []LocationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i LocationType) isMultiValue() bool { - return false -} diff --git a/models/location_unique_id_type.go b/models/location_unique_id_type.go index 43a056895da..e69de29bb2d 100644 --- a/models/location_unique_id_type.go +++ b/models/location_unique_id_type.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type LocationUniqueIdType int - -const ( - UNKNOWN_LOCATIONUNIQUEIDTYPE LocationUniqueIdType = iota - LOCATIONSTORE_LOCATIONUNIQUEIDTYPE - DIRECTORY_LOCATIONUNIQUEIDTYPE - PRIVATE_LOCATIONUNIQUEIDTYPE - BING_LOCATIONUNIQUEIDTYPE -) - -func (i LocationUniqueIdType) String() string { - return []string{"unknown", "locationStore", "directory", "private", "bing"}[i] -} -func ParseLocationUniqueIdType(v string) (any, error) { - result := UNKNOWN_LOCATIONUNIQUEIDTYPE - switch v { - case "unknown": - result = UNKNOWN_LOCATIONUNIQUEIDTYPE - case "locationStore": - result = LOCATIONSTORE_LOCATIONUNIQUEIDTYPE - case "directory": - result = DIRECTORY_LOCATIONUNIQUEIDTYPE - case "private": - result = PRIVATE_LOCATIONUNIQUEIDTYPE - case "bing": - result = BING_LOCATIONUNIQUEIDTYPE - default: - return 0, errors.New("Unknown LocationUniqueIdType value: " + v) - } - return &result, nil -} -func SerializeLocationUniqueIdType(values []LocationUniqueIdType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i LocationUniqueIdType) isMultiValue() bool { - return false -} diff --git a/models/login_page.go b/models/login_page.go index 2716ed9f26c..a249f5184c7 100644 --- a/models/login_page.go +++ b/models/login_page.go @@ -159,22 +159,22 @@ func (m *LoginPage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationContentSource) + val, err := n.GetEnumValue(ParseLoginPage_source) if err != nil { return err } if val != nil { - m.SetSource(val.(*SimulationContentSource)) + m.SetSource(val.(*LoginPage_source)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationContentStatus) + val, err := n.GetEnumValue(ParseLoginPage_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SimulationContentStatus)) + m.SetStatus(val.(*LoginPage_status)) } return nil } @@ -214,24 +214,24 @@ func (m *LoginPage) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6 return nil } // GetSource gets the source property value. The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. -func (m *LoginPage) GetSource()(*SimulationContentSource) { +func (m *LoginPage) GetSource()(*LoginPage_source) { val, err := m.GetBackingStore().Get("source") if err != nil { panic(err) } if val != nil { - return val.(*SimulationContentSource) + return val.(*LoginPage_source) } return nil } // GetStatus gets the status property value. The login page status. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. -func (m *LoginPage) GetStatus()(*SimulationContentStatus) { +func (m *LoginPage) GetStatus()(*LoginPage_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SimulationContentStatus) + return val.(*LoginPage_status) } return nil } @@ -362,14 +362,14 @@ func (m *LoginPage) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad } } // SetSource sets the source property value. The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. -func (m *LoginPage) SetSource(value *SimulationContentSource)() { +func (m *LoginPage) SetSource(value *LoginPage_source)() { err := m.GetBackingStore().Set("source", value) if err != nil { panic(err) } } // SetStatus sets the status property value. The login page status. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. -func (m *LoginPage) SetStatus(value *SimulationContentStatus)() { +func (m *LoginPage) SetStatus(value *LoginPage_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -387,8 +387,8 @@ type LoginPageable interface { GetLanguage()(*string) GetLastModifiedBy()(EmailIdentityable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetSource()(*SimulationContentSource) - GetStatus()(*SimulationContentStatus) + GetSource()(*LoginPage_source) + GetStatus()(*LoginPage_status) SetContent(value *string)() SetCreatedBy(value EmailIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -397,6 +397,6 @@ type LoginPageable interface { SetLanguage(value *string)() SetLastModifiedBy(value EmailIdentityable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetSource(value *SimulationContentSource)() - SetStatus(value *SimulationContentStatus)() + SetSource(value *LoginPage_source)() + SetStatus(value *LoginPage_status)() } diff --git a/models/login_page_layout_configuration.go b/models/login_page_layout_configuration.go index d521a271202..19958b40a92 100644 --- a/models/login_page_layout_configuration.go +++ b/models/login_page_layout_configuration.go @@ -62,12 +62,12 @@ func (m *LoginPageLayoutConfiguration) GetFieldDeserializers()(map[string]func(i return nil } res["layoutTemplateType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLayoutTemplateType) + val, err := n.GetEnumValue(ParseLoginPageLayoutConfiguration_layoutTemplateType) if err != nil { return err } if val != nil { - m.SetLayoutTemplateType(val.(*LayoutTemplateType)) + m.SetLayoutTemplateType(val.(*LoginPageLayoutConfiguration_layoutTemplateType)) } return nil } @@ -106,13 +106,13 @@ func (m *LoginPageLayoutConfiguration) GetIsHeaderShown()(*bool) { return nil } // GetLayoutTemplateType gets the layoutTemplateType property value. Represents the layout template to be displayed on the login page for a tenant. The possible values are default - Represents the default Microsoft layout with a centered lightbox. verticalSplit - Represents a layout with a background on the left side and a full-height lightbox to the right. unknownFutureValue - Evolvable enumeration sentinel value. Don't use. -func (m *LoginPageLayoutConfiguration) GetLayoutTemplateType()(*LayoutTemplateType) { +func (m *LoginPageLayoutConfiguration) GetLayoutTemplateType()(*LoginPageLayoutConfiguration_layoutTemplateType) { val, err := m.GetBackingStore().Get("layoutTemplateType") if err != nil { panic(err) } if val != nil { - return val.(*LayoutTemplateType) + return val.(*LoginPageLayoutConfiguration_layoutTemplateType) } return nil } @@ -188,7 +188,7 @@ func (m *LoginPageLayoutConfiguration) SetIsHeaderShown(value *bool)() { } } // SetLayoutTemplateType sets the layoutTemplateType property value. Represents the layout template to be displayed on the login page for a tenant. The possible values are default - Represents the default Microsoft layout with a centered lightbox. verticalSplit - Represents a layout with a background on the left side and a full-height lightbox to the right. unknownFutureValue - Evolvable enumeration sentinel value. Don't use. -func (m *LoginPageLayoutConfiguration) SetLayoutTemplateType(value *LayoutTemplateType)() { +func (m *LoginPageLayoutConfiguration) SetLayoutTemplateType(value *LoginPageLayoutConfiguration_layoutTemplateType)() { err := m.GetBackingStore().Set("layoutTemplateType", value) if err != nil { panic(err) @@ -209,11 +209,11 @@ type LoginPageLayoutConfigurationable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetIsFooterShown()(*bool) GetIsHeaderShown()(*bool) - GetLayoutTemplateType()(*LayoutTemplateType) + GetLayoutTemplateType()(*LoginPageLayoutConfiguration_layoutTemplateType) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetIsFooterShown(value *bool)() SetIsHeaderShown(value *bool)() - SetLayoutTemplateType(value *LayoutTemplateType)() + SetLayoutTemplateType(value *LoginPageLayoutConfiguration_layoutTemplateType)() SetOdataType(value *string)() } diff --git a/models/login_page_layout_configuration_layout_template_type.go b/models/login_page_layout_configuration_layout_template_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/login_page_source.go b/models/login_page_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/login_page_status.go b/models/login_page_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/logon_type.go b/models/logon_type.go deleted file mode 100644 index 05cbda1fcb0..00000000000 --- a/models/logon_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type LogonType int - -const ( - UNKNOWN_LOGONTYPE LogonType = iota - INTERACTIVE_LOGONTYPE - REMOTEINTERACTIVE_LOGONTYPE - NETWORK_LOGONTYPE - BATCH_LOGONTYPE - SERVICE_LOGONTYPE - UNKNOWNFUTUREVALUE_LOGONTYPE -) - -func (i LogonType) String() string { - return []string{"unknown", "interactive", "remoteInteractive", "network", "batch", "service", "unknownFutureValue"}[i] -} -func ParseLogonType(v string) (any, error) { - result := UNKNOWN_LOGONTYPE - switch v { - case "unknown": - result = UNKNOWN_LOGONTYPE - case "interactive": - result = INTERACTIVE_LOGONTYPE - case "remoteInteractive": - result = REMOTEINTERACTIVE_LOGONTYPE - case "network": - result = NETWORK_LOGONTYPE - case "batch": - result = BATCH_LOGONTYPE - case "service": - result = SERVICE_LOGONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_LOGONTYPE - default: - return 0, errors.New("Unknown LogonType value: " + v) - } - return &result, nil -} -func SerializeLogonType(values []LogonType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i LogonType) isMultiValue() bool { - return false -} diff --git a/models/logon_user.go b/models/logon_user.go index 59c817ce7bf..12d8484338a 100644 --- a/models/logon_user.go +++ b/models/logon_user.go @@ -46,13 +46,13 @@ func (m *LogonUser) GetAccountName()(*string) { return nil } // GetAccountType gets the accountType property value. User Account type, per Windows definition. Possible values are: unknown, standard, power, administrator. -func (m *LogonUser) GetAccountType()(*UserAccountSecurityType) { +func (m *LogonUser) GetAccountType()(*LogonUser_accountType) { val, err := m.GetBackingStore().Get("accountType") if err != nil { panic(err) } if val != nil { - return val.(*UserAccountSecurityType) + return val.(*LogonUser_accountType) } return nil } @@ -96,12 +96,12 @@ func (m *LogonUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["accountType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserAccountSecurityType) + val, err := n.GetEnumValue(ParseLogonUser_accountType) if err != nil { return err } if val != nil { - m.SetAccountType(val.(*UserAccountSecurityType)) + m.SetAccountType(val.(*LogonUser_accountType)) } return nil } @@ -136,15 +136,15 @@ func (m *LogonUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["logonTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseLogonType) + val, err := n.GetCollectionOfEnumValues(ParseLogonUser_logonTypes) if err != nil { return err } if val != nil { - res := make([]LogonType, len(val)) + res := make([]LogonUser_logonTypes, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*LogonType)) + res[i] = *(v.(*LogonUser_logonTypes)) } } m.SetLogonTypes(res) @@ -197,13 +197,13 @@ func (m *LogonUser) GetLogonId()(*string) { return nil } // GetLogonTypes gets the logonTypes property value. Collection of the logon types observed for the logged on user from when first to last seen. Possible values are: unknown, interactive, remoteInteractive, network, batch, service. -func (m *LogonUser) GetLogonTypes()([]LogonType) { +func (m *LogonUser) GetLogonTypes()([]LogonUser_logonTypes) { val, err := m.GetBackingStore().Get("logonTypes") if err != nil { panic(err) } if val != nil { - return val.([]LogonType) + return val.([]LogonUser_logonTypes) } return nil } @@ -258,7 +258,7 @@ func (m *LogonUser) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 } } if m.GetLogonTypes() != nil { - err := writer.WriteCollectionOfStringValues("logonTypes", SerializeLogonType(m.GetLogonTypes())) + err := writer.WriteCollectionOfStringValues("logonTypes", SerializeLogonUser_logonTypes(m.GetLogonTypes())) if err != nil { return err } @@ -292,7 +292,7 @@ func (m *LogonUser) SetAccountName(value *string)() { } } // SetAccountType sets the accountType property value. User Account type, per Windows definition. Possible values are: unknown, standard, power, administrator. -func (m *LogonUser) SetAccountType(value *UserAccountSecurityType)() { +func (m *LogonUser) SetAccountType(value *LogonUser_accountType)() { err := m.GetBackingStore().Set("accountType", value) if err != nil { panic(err) @@ -331,7 +331,7 @@ func (m *LogonUser) SetLogonId(value *string)() { } } // SetLogonTypes sets the logonTypes property value. Collection of the logon types observed for the logged on user from when first to last seen. Possible values are: unknown, interactive, remoteInteractive, network, batch, service. -func (m *LogonUser) SetLogonTypes(value []LogonType)() { +func (m *LogonUser) SetLogonTypes(value []LogonUser_logonTypes)() { err := m.GetBackingStore().Set("logonTypes", value) if err != nil { panic(err) @@ -351,20 +351,20 @@ type LogonUserable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccountDomain()(*string) GetAccountName()(*string) - GetAccountType()(*UserAccountSecurityType) + GetAccountType()(*LogonUser_accountType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLogonId()(*string) - GetLogonTypes()([]LogonType) + GetLogonTypes()([]LogonUser_logonTypes) GetOdataType()(*string) SetAccountDomain(value *string)() SetAccountName(value *string)() - SetAccountType(value *UserAccountSecurityType)() + SetAccountType(value *LogonUser_accountType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLogonId(value *string)() - SetLogonTypes(value []LogonType)() + SetLogonTypes(value []LogonUser_logonTypes)() SetOdataType(value *string)() } diff --git a/models/logon_user_account_type.go b/models/logon_user_account_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/logon_user_logon_types.go b/models/logon_user_logon_types.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/long_running_operation.go b/models/long_running_operation.go index 9faf07d84e4..da0f6dc4996 100644 --- a/models/long_running_operation.go +++ b/models/long_running_operation.go @@ -32,6 +32,8 @@ func CreateLongRunningOperationFromDiscriminatorValue(parseNode i878a80d2330e89d switch *mappingValue { case "#microsoft.graph.attackSimulationOperation": return NewAttackSimulationOperation(), nil + case "#microsoft.graph.engagementAsyncOperation": + return NewEngagementAsyncOperation(), nil case "#microsoft.graph.goalsExportJob": return NewGoalsExportJob(), nil case "#microsoft.graph.richLongRunningOperation": @@ -87,12 +89,12 @@ func (m *LongRunningOperation) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLongRunningOperationStatus) + val, err := n.GetEnumValue(ParseLongRunningOperation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*LongRunningOperationStatus)) + m.SetStatus(val.(*LongRunningOperation_status)) } return nil } @@ -131,13 +133,13 @@ func (m *LongRunningOperation) GetResourceLocation()(*string) { return nil } // GetStatus gets the status property value. The status of the operation. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. -func (m *LongRunningOperation) GetStatus()(*LongRunningOperationStatus) { +func (m *LongRunningOperation) GetStatus()(*LongRunningOperation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*LongRunningOperationStatus) + return val.(*LongRunningOperation_status) } return nil } @@ -213,7 +215,7 @@ func (m *LongRunningOperation) SetResourceLocation(value *string)() { } } // SetStatus sets the status property value. The status of the operation. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. -func (m *LongRunningOperation) SetStatus(value *LongRunningOperationStatus)() { +func (m *LongRunningOperation) SetStatus(value *LongRunningOperation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -233,11 +235,11 @@ type LongRunningOperationable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastActionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetResourceLocation()(*string) - GetStatus()(*LongRunningOperationStatus) + GetStatus()(*LongRunningOperation_status) GetStatusDetail()(*string) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastActionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetResourceLocation(value *string)() - SetStatus(value *LongRunningOperationStatus)() + SetStatus(value *LongRunningOperation_status)() SetStatusDetail(value *string)() } diff --git a/models/m365_apps_installation_options.go b/models/m365_apps_installation_options.go new file mode 100644 index 00000000000..4771ea6954f --- /dev/null +++ b/models/m365_apps_installation_options.go @@ -0,0 +1,148 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// M365AppsInstallationOptions +type M365AppsInstallationOptions struct { + Entity +} +// NewM365AppsInstallationOptions instantiates a new m365AppsInstallationOptions and sets the default values. +func NewM365AppsInstallationOptions()(*M365AppsInstallationOptions) { + m := &M365AppsInstallationOptions{ + Entity: *NewEntity(), + } + return m +} +// CreateM365AppsInstallationOptionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateM365AppsInstallationOptionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewM365AppsInstallationOptions(), nil +} +// GetAppsForMac gets the appsForMac property value. The appsForMac property +func (m *M365AppsInstallationOptions) GetAppsForMac()(AppsInstallationOptionsForMacable) { + val, err := m.GetBackingStore().Get("appsForMac") + if err != nil { + panic(err) + } + if val != nil { + return val.(AppsInstallationOptionsForMacable) + } + return nil +} +// GetAppsForWindows gets the appsForWindows property value. The appsForWindows property +func (m *M365AppsInstallationOptions) GetAppsForWindows()(AppsInstallationOptionsForWindowsable) { + val, err := m.GetBackingStore().Get("appsForWindows") + if err != nil { + panic(err) + } + if val != nil { + return val.(AppsInstallationOptionsForWindowsable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *M365AppsInstallationOptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["appsForMac"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAppsInstallationOptionsForMacFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppsForMac(val.(AppsInstallationOptionsForMacable)) + } + return nil + } + res["appsForWindows"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAppsInstallationOptionsForWindowsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppsForWindows(val.(AppsInstallationOptionsForWindowsable)) + } + return nil + } + res["updateChannel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAppsUpdateChannelType) + if err != nil { + return err + } + if val != nil { + m.SetUpdateChannel(val.(*AppsUpdateChannelType)) + } + return nil + } + return res +} +// GetUpdateChannel gets the updateChannel property value. The updateChannel property +func (m *M365AppsInstallationOptions) GetUpdateChannel()(*AppsUpdateChannelType) { + val, err := m.GetBackingStore().Get("updateChannel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AppsUpdateChannelType) + } + return nil +} +// Serialize serializes information the current object +func (m *M365AppsInstallationOptions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("appsForMac", m.GetAppsForMac()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("appsForWindows", m.GetAppsForWindows()) + if err != nil { + return err + } + } + if m.GetUpdateChannel() != nil { + cast := (*m.GetUpdateChannel()).String() + err = writer.WriteStringValue("updateChannel", &cast) + if err != nil { + return err + } + } + return nil +} +// SetAppsForMac sets the appsForMac property value. The appsForMac property +func (m *M365AppsInstallationOptions) SetAppsForMac(value AppsInstallationOptionsForMacable)() { + err := m.GetBackingStore().Set("appsForMac", value) + if err != nil { + panic(err) + } +} +// SetAppsForWindows sets the appsForWindows property value. The appsForWindows property +func (m *M365AppsInstallationOptions) SetAppsForWindows(value AppsInstallationOptionsForWindowsable)() { + err := m.GetBackingStore().Set("appsForWindows", value) + if err != nil { + panic(err) + } +} +// SetUpdateChannel sets the updateChannel property value. The updateChannel property +func (m *M365AppsInstallationOptions) SetUpdateChannel(value *AppsUpdateChannelType)() { + err := m.GetBackingStore().Set("updateChannel", value) + if err != nil { + panic(err) + } +} +// M365AppsInstallationOptionsable +type M365AppsInstallationOptionsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppsForMac()(AppsInstallationOptionsForMacable) + GetAppsForWindows()(AppsInstallationOptionsForWindowsable) + GetUpdateChannel()(*AppsUpdateChannelType) + SetAppsForMac(value AppsInstallationOptionsForMacable)() + SetAppsForWindows(value AppsInstallationOptionsForWindowsable)() + SetUpdateChannel(value *AppsUpdateChannelType)() +} diff --git a/models/mac_o_s_certificate_profile_base.go b/models/mac_o_s_certificate_profile_base.go index 96ee0563ef3..8adfdecc592 100644 --- a/models/mac_o_s_certificate_profile_base.go +++ b/models/mac_o_s_certificate_profile_base.go @@ -99,12 +99,12 @@ func (m *MacOSCertificateProfileBase) GetFieldDeserializers()(map[string]func(i8 return nil } res["subjectAlternativeNameType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectAlternativeNameType) + val, err := n.GetEnumValue(ParseMacOSCertificateProfileBase_subjectAlternativeNameType) if err != nil { return err } if val != nil { - m.SetSubjectAlternativeNameType(val.(*SubjectAlternativeNameType)) + m.SetSubjectAlternativeNameType(val.(*MacOSCertificateProfileBase_subjectAlternativeNameType)) } return nil } @@ -132,13 +132,13 @@ func (m *MacOSCertificateProfileBase) GetRenewalThresholdPercentage()(*int32) { return nil } // GetSubjectAlternativeNameType gets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *MacOSCertificateProfileBase) GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) { +func (m *MacOSCertificateProfileBase) GetSubjectAlternativeNameType()(*MacOSCertificateProfileBase_subjectAlternativeNameType) { val, err := m.GetBackingStore().Get("subjectAlternativeNameType") if err != nil { panic(err) } if val != nil { - return val.(*SubjectAlternativeNameType) + return val.(*MacOSCertificateProfileBase_subjectAlternativeNameType) } return nil } @@ -216,7 +216,7 @@ func (m *MacOSCertificateProfileBase) SetRenewalThresholdPercentage(value *int32 } } // SetSubjectAlternativeNameType sets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *MacOSCertificateProfileBase) SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() { +func (m *MacOSCertificateProfileBase) SetSubjectAlternativeNameType(value *MacOSCertificateProfileBase_subjectAlternativeNameType)() { err := m.GetBackingStore().Set("subjectAlternativeNameType", value) if err != nil { panic(err) @@ -236,11 +236,11 @@ type MacOSCertificateProfileBaseable interface { GetCertificateValidityPeriodScale()(*CertificateValidityPeriodScale) GetCertificateValidityPeriodValue()(*int32) GetRenewalThresholdPercentage()(*int32) - GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) + GetSubjectAlternativeNameType()(*MacOSCertificateProfileBase_subjectAlternativeNameType) GetSubjectNameFormat()(*AppleSubjectNameFormat) SetCertificateValidityPeriodScale(value *CertificateValidityPeriodScale)() SetCertificateValidityPeriodValue(value *int32)() SetRenewalThresholdPercentage(value *int32)() - SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() + SetSubjectAlternativeNameType(value *MacOSCertificateProfileBase_subjectAlternativeNameType)() SetSubjectNameFormat(value *AppleSubjectNameFormat)() } diff --git a/models/mac_o_s_certificate_profile_base_subject_alternative_name_type.go b/models/mac_o_s_certificate_profile_base_subject_alternative_name_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_enterprise_wi_fi_configuration.go b/models/mac_o_s_enterprise_wi_fi_configuration.go index ed6f968c4a9..701c130701c 100644 --- a/models/mac_o_s_enterprise_wi_fi_configuration.go +++ b/models/mac_o_s_enterprise_wi_fi_configuration.go @@ -22,24 +22,24 @@ func CreateMacOSEnterpriseWiFiConfigurationFromDiscriminatorValue(parseNode i878 return NewMacOSEnterpriseWiFiConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *MacOSEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *MacOSEnterpriseWiFiConfiguration) GetAuthenticationMethod()(*MacOSEnterpriseWiFiConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*MacOSEnterpriseWiFiConfiguration_authenticationMethod) } return nil } // GetEapFastConfiguration gets the eapFastConfiguration property value. EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. -func (m *MacOSEnterpriseWiFiConfiguration) GetEapFastConfiguration()(*EapFastConfiguration) { +func (m *MacOSEnterpriseWiFiConfiguration) GetEapFastConfiguration()(*MacOSEnterpriseWiFiConfiguration_eapFastConfiguration) { val, err := m.GetBackingStore().Get("eapFastConfiguration") if err != nil { panic(err) } if val != nil { - return val.(*EapFastConfiguration) + return val.(*MacOSEnterpriseWiFiConfiguration_eapFastConfiguration) } return nil } @@ -58,22 +58,22 @@ func (m *MacOSEnterpriseWiFiConfiguration) GetEapType()(*EapType) { func (m *MacOSEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MacOSWiFiConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseMacOSEnterpriseWiFiConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*MacOSEnterpriseWiFiConfiguration_authenticationMethod)) } return nil } res["eapFastConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEapFastConfiguration) + val, err := n.GetEnumValue(ParseMacOSEnterpriseWiFiConfiguration_eapFastConfiguration) if err != nil { return err } if val != nil { - m.SetEapFastConfiguration(val.(*EapFastConfiguration)) + m.SetEapFastConfiguration(val.(*MacOSEnterpriseWiFiConfiguration_eapFastConfiguration)) } return nil } @@ -98,12 +98,12 @@ func (m *MacOSEnterpriseWiFiConfiguration) GetFieldDeserializers()(map[string]fu return nil } res["innerAuthenticationProtocolForEapTtls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseMacOSEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEapTtls(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEapTtls(val.(*MacOSEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)) } return nil } @@ -173,13 +173,13 @@ func (m *MacOSEnterpriseWiFiConfiguration) GetIdentityCertificateForClientAuthen return nil } // GetInnerAuthenticationProtocolForEapTtls gets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *MacOSEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *MacOSEnterpriseWiFiConfiguration) GetInnerAuthenticationProtocolForEapTtls()(*MacOSEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEapTtls") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*MacOSEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) } return nil } @@ -300,14 +300,14 @@ func (m *MacOSEnterpriseWiFiConfiguration) Serialize(writer i878a80d2330e89d2689 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *MacOSEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *MacOSEnterpriseWiFiConfiguration) SetAuthenticationMethod(value *MacOSEnterpriseWiFiConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) } } // SetEapFastConfiguration sets the eapFastConfiguration property value. EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. -func (m *MacOSEnterpriseWiFiConfiguration) SetEapFastConfiguration(value *EapFastConfiguration)() { +func (m *MacOSEnterpriseWiFiConfiguration) SetEapFastConfiguration(value *MacOSEnterpriseWiFiConfiguration_eapFastConfiguration)() { err := m.GetBackingStore().Set("eapFastConfiguration", value) if err != nil { panic(err) @@ -328,7 +328,7 @@ func (m *MacOSEnterpriseWiFiConfiguration) SetIdentityCertificateForClientAuthen } } // SetInnerAuthenticationProtocolForEapTtls sets the innerAuthenticationProtocolForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *MacOSEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *MacOSEnterpriseWiFiConfiguration) SetInnerAuthenticationProtocolForEapTtls(value *MacOSEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEapTtls", value) if err != nil { panic(err) @@ -366,20 +366,20 @@ func (m *MacOSEnterpriseWiFiConfiguration) SetTrustedServerCertificateNames(valu type MacOSEnterpriseWiFiConfigurationable interface { MacOSWiFiConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) - GetEapFastConfiguration()(*EapFastConfiguration) + GetAuthenticationMethod()(*MacOSEnterpriseWiFiConfiguration_authenticationMethod) + GetEapFastConfiguration()(*MacOSEnterpriseWiFiConfiguration_eapFastConfiguration) GetEapType()(*EapType) GetIdentityCertificateForClientAuthentication()(MacOSCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) + GetInnerAuthenticationProtocolForEapTtls()(*MacOSEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls) GetOuterIdentityPrivacyTemporaryValue()(*string) GetRootCertificateForServerValidation()(MacOSTrustedRootCertificateable) GetRootCertificatesForServerValidation()([]MacOSTrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() - SetEapFastConfiguration(value *EapFastConfiguration)() + SetAuthenticationMethod(value *MacOSEnterpriseWiFiConfiguration_authenticationMethod)() + SetEapFastConfiguration(value *MacOSEnterpriseWiFiConfiguration_eapFastConfiguration)() SetEapType(value *EapType)() SetIdentityCertificateForClientAuthentication(value MacOSCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() + SetInnerAuthenticationProtocolForEapTtls(value *MacOSEnterpriseWiFiConfiguration_innerAuthenticationProtocolForEapTtls)() SetOuterIdentityPrivacyTemporaryValue(value *string)() SetRootCertificateForServerValidation(value MacOSTrustedRootCertificateable)() SetRootCertificatesForServerValidation(value []MacOSTrustedRootCertificateable)() diff --git a/models/mac_o_s_enterprise_wi_fi_configuration_authentication_method.go b/models/mac_o_s_enterprise_wi_fi_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_enterprise_wi_fi_configuration_eap_fast_configuration.go b/models/mac_o_s_enterprise_wi_fi_configuration_eap_fast_configuration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go b/models/mac_o_s_enterprise_wi_fi_configuration_inner_authentication_protocol_for_eap_ttls.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_general_device_configuration.go b/models/mac_o_s_general_device_configuration.go index 380d189f2d0..1e9766e4e96 100644 --- a/models/mac_o_s_general_device_configuration.go +++ b/models/mac_o_s_general_device_configuration.go @@ -799,12 +799,12 @@ func (m *MacOSGeneralDeviceConfiguration) GetFieldDeserializers()(map[string]fun return nil } res["updateDelayPolicy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMacOSSoftwareUpdateDelayPolicy) + val, err := n.GetEnumValue(ParseMacOSGeneralDeviceConfiguration_updateDelayPolicy) if err != nil { return err } if val != nil { - m.SetUpdateDelayPolicy(val.(*MacOSSoftwareUpdateDelayPolicy)) + m.SetUpdateDelayPolicy(val.(*MacOSGeneralDeviceConfiguration_updateDelayPolicy)) } return nil } @@ -1283,13 +1283,13 @@ func (m *MacOSGeneralDeviceConfiguration) GetTouchIdTimeoutInHours()(*int32) { return nil } // GetUpdateDelayPolicy gets the updateDelayPolicy property value. Determines whether to delay OS and/or app updates for macOS. Possible values are: none, delayOSUpdateVisibility, delayAppUpdateVisibility, unknownFutureValue, delayMajorOsUpdateVisibility. -func (m *MacOSGeneralDeviceConfiguration) GetUpdateDelayPolicy()(*MacOSSoftwareUpdateDelayPolicy) { +func (m *MacOSGeneralDeviceConfiguration) GetUpdateDelayPolicy()(*MacOSGeneralDeviceConfiguration_updateDelayPolicy) { val, err := m.GetBackingStore().Get("updateDelayPolicy") if err != nil { panic(err) } if val != nil { - return val.(*MacOSSoftwareUpdateDelayPolicy) + return val.(*MacOSGeneralDeviceConfiguration_updateDelayPolicy) } return nil } @@ -2094,7 +2094,7 @@ func (m *MacOSGeneralDeviceConfiguration) SetTouchIdTimeoutInHours(value *int32) } } // SetUpdateDelayPolicy sets the updateDelayPolicy property value. Determines whether to delay OS and/or app updates for macOS. Possible values are: none, delayOSUpdateVisibility, delayAppUpdateVisibility, unknownFutureValue, delayMajorOsUpdateVisibility. -func (m *MacOSGeneralDeviceConfiguration) SetUpdateDelayPolicy(value *MacOSSoftwareUpdateDelayPolicy)() { +func (m *MacOSGeneralDeviceConfiguration) SetUpdateDelayPolicy(value *MacOSGeneralDeviceConfiguration_updateDelayPolicy)() { err := m.GetBackingStore().Set("updateDelayPolicy", value) if err != nil { panic(err) @@ -2169,7 +2169,7 @@ type MacOSGeneralDeviceConfigurationable interface { GetSoftwareUpdatesEnforcedDelayInDays()(*int32) GetSpotlightBlockInternetResults()(*bool) GetTouchIdTimeoutInHours()(*int32) - GetUpdateDelayPolicy()(*MacOSSoftwareUpdateDelayPolicy) + GetUpdateDelayPolicy()(*MacOSGeneralDeviceConfiguration_updateDelayPolicy) GetWallpaperModificationBlocked()(*bool) SetActivationLockWhenSupervisedAllowed(value *bool)() SetAddingGameCenterFriendsBlocked(value *bool)() @@ -2229,6 +2229,6 @@ type MacOSGeneralDeviceConfigurationable interface { SetSoftwareUpdatesEnforcedDelayInDays(value *int32)() SetSpotlightBlockInternetResults(value *bool)() SetTouchIdTimeoutInHours(value *int32)() - SetUpdateDelayPolicy(value *MacOSSoftwareUpdateDelayPolicy)() + SetUpdateDelayPolicy(value *MacOSGeneralDeviceConfiguration_updateDelayPolicy)() SetWallpaperModificationBlocked(value *bool)() } diff --git a/models/mac_o_s_general_device_configuration_update_delay_policy.go b/models/mac_o_s_general_device_configuration_update_delay_policy.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_pkcs_certificate_profile.go b/models/mac_o_s_pkcs_certificate_profile.go index ce9c152c039..9ecb694670b 100644 --- a/models/mac_o_s_pkcs_certificate_profile.go +++ b/models/mac_o_s_pkcs_certificate_profile.go @@ -33,13 +33,13 @@ func (m *MacOSPkcsCertificateProfile) GetAllowAllAppsAccess()(*bool) { return nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *MacOSPkcsCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *MacOSPkcsCertificateProfile) GetCertificateStore()(*MacOSPkcsCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*MacOSPkcsCertificateProfile_certificateStore) } return nil } @@ -101,12 +101,12 @@ func (m *MacOSPkcsCertificateProfile) GetFieldDeserializers()(map[string]func(i8 return nil } res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseMacOSPkcsCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*MacOSPkcsCertificateProfile_certificateStore)) } return nil } @@ -310,7 +310,7 @@ func (m *MacOSPkcsCertificateProfile) SetAllowAllAppsAccess(value *bool)() { } } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *MacOSPkcsCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *MacOSPkcsCertificateProfile) SetCertificateStore(value *MacOSPkcsCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -370,7 +370,7 @@ type MacOSPkcsCertificateProfileable interface { MacOSCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowAllAppsAccess()(*bool) - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*MacOSPkcsCertificateProfile_certificateStore) GetCertificateTemplateName()(*string) GetCertificationAuthority()(*string) GetCertificationAuthorityName()(*string) @@ -379,7 +379,7 @@ type MacOSPkcsCertificateProfileable interface { GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) SetAllowAllAppsAccess(value *bool)() - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *MacOSPkcsCertificateProfile_certificateStore)() SetCertificateTemplateName(value *string)() SetCertificationAuthority(value *string)() SetCertificationAuthorityName(value *string)() diff --git a/models/mac_o_s_pkcs_certificate_profile_certificate_store.go b/models/mac_o_s_pkcs_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_priority.go b/models/mac_o_s_priority.go deleted file mode 100644 index 20066acc836..00000000000 --- a/models/mac_o_s_priority.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// The scheduling priority options for downloading and preparing the requested mac OS update -type MacOSPriority int - -const ( - // Indicates low scheduling priority for downloading and preparing the requested update - LOW_MACOSPRIORITY MacOSPriority = iota - // Indicates high scheduling priority for downloading and preparing the requested update - HIGH_MACOSPRIORITY - // Evolvable enumeration sentinel value. Do not use. - UNKNOWNFUTUREVALUE_MACOSPRIORITY -) - -func (i MacOSPriority) String() string { - return []string{"low", "high", "unknownFutureValue"}[i] -} -func ParseMacOSPriority(v string) (any, error) { - result := LOW_MACOSPRIORITY - switch v { - case "low": - result = LOW_MACOSPRIORITY - case "high": - result = HIGH_MACOSPRIORITY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MACOSPRIORITY - default: - return 0, errors.New("Unknown MacOSPriority value: " + v) - } - return &result, nil -} -func SerializeMacOSPriority(values []MacOSPriority) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MacOSPriority) isMultiValue() bool { - return false -} diff --git a/models/mac_o_s_scep_certificate_profile.go b/models/mac_o_s_scep_certificate_profile.go index 1bf71602bc9..e7d02d9b073 100644 --- a/models/mac_o_s_scep_certificate_profile.go +++ b/models/mac_o_s_scep_certificate_profile.go @@ -33,13 +33,13 @@ func (m *MacOSScepCertificateProfile) GetAllowAllAppsAccess()(*bool) { return nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *MacOSScepCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *MacOSScepCertificateProfile) GetCertificateStore()(*MacOSScepCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*MacOSScepCertificateProfile_certificateStore) } return nil } @@ -79,12 +79,12 @@ func (m *MacOSScepCertificateProfile) GetFieldDeserializers()(map[string]func(i8 return nil } res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseMacOSScepCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*MacOSScepCertificateProfile_certificateStore)) } return nil } @@ -121,12 +121,12 @@ func (m *MacOSScepCertificateProfile) GetFieldDeserializers()(map[string]func(i8 return nil } res["hashAlgorithm"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseHashAlgorithms) + val, err := n.GetEnumValue(ParseMacOSScepCertificateProfile_hashAlgorithm) if err != nil { return err } if val != nil { - m.SetHashAlgorithm(val.(*HashAlgorithms)) + m.SetHashAlgorithm(val.(*MacOSScepCertificateProfile_hashAlgorithm)) } return nil } @@ -215,13 +215,13 @@ func (m *MacOSScepCertificateProfile) GetFieldDeserializers()(map[string]func(i8 return res } // GetHashAlgorithm gets the hashAlgorithm property value. SCEP Hash Algorithm. Possible values are: sha1, sha2. -func (m *MacOSScepCertificateProfile) GetHashAlgorithm()(*HashAlgorithms) { +func (m *MacOSScepCertificateProfile) GetHashAlgorithm()(*MacOSScepCertificateProfile_hashAlgorithm) { val, err := m.GetBackingStore().Get("hashAlgorithm") if err != nil { panic(err) } if val != nil { - return val.(*HashAlgorithms) + return val.(*MacOSScepCertificateProfile_hashAlgorithm) } return nil } @@ -412,7 +412,7 @@ func (m *MacOSScepCertificateProfile) SetAllowAllAppsAccess(value *bool)() { } } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *MacOSScepCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *MacOSScepCertificateProfile) SetCertificateStore(value *MacOSScepCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -433,7 +433,7 @@ func (m *MacOSScepCertificateProfile) SetExtendedKeyUsages(value []ExtendedKeyUs } } // SetHashAlgorithm sets the hashAlgorithm property value. SCEP Hash Algorithm. Possible values are: sha1, sha2. -func (m *MacOSScepCertificateProfile) SetHashAlgorithm(value *HashAlgorithms)() { +func (m *MacOSScepCertificateProfile) SetHashAlgorithm(value *MacOSScepCertificateProfile_hashAlgorithm)() { err := m.GetBackingStore().Set("hashAlgorithm", value) if err != nil { panic(err) @@ -493,10 +493,10 @@ type MacOSScepCertificateProfileable interface { MacOSCertificateProfileBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowAllAppsAccess()(*bool) - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*MacOSScepCertificateProfile_certificateStore) GetCustomSubjectAlternativeNames()([]CustomSubjectAlternativeNameable) GetExtendedKeyUsages()([]ExtendedKeyUsageable) - GetHashAlgorithm()(*HashAlgorithms) + GetHashAlgorithm()(*MacOSScepCertificateProfile_hashAlgorithm) GetKeySize()(*KeySize) GetKeyUsage()(*KeyUsages) GetManagedDeviceCertificateStates()([]ManagedDeviceCertificateStateable) @@ -505,10 +505,10 @@ type MacOSScepCertificateProfileable interface { GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) SetAllowAllAppsAccess(value *bool)() - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *MacOSScepCertificateProfile_certificateStore)() SetCustomSubjectAlternativeNames(value []CustomSubjectAlternativeNameable)() SetExtendedKeyUsages(value []ExtendedKeyUsageable)() - SetHashAlgorithm(value *HashAlgorithms)() + SetHashAlgorithm(value *MacOSScepCertificateProfile_hashAlgorithm)() SetKeySize(value *KeySize)() SetKeyUsage(value *KeyUsages)() SetManagedDeviceCertificateStates(value []ManagedDeviceCertificateStateable)() diff --git a/models/mac_o_s_scep_certificate_profile_certificate_store.go b/models/mac_o_s_scep_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_scep_certificate_profile_hash_algorithm.go b/models/mac_o_s_scep_certificate_profile_hash_algorithm.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_software_update_configuration.go b/models/mac_o_s_software_update_configuration.go index 3ad41a23813..11a1bb55c66 100644 --- a/models/mac_o_s_software_update_configuration.go +++ b/models/mac_o_s_software_update_configuration.go @@ -135,12 +135,12 @@ func (m *MacOSSoftwareUpdateConfiguration) GetFieldDeserializers()(map[string]fu return nil } res["priority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMacOSPriority) + val, err := n.GetEnumValue(ParseMacOSSoftwareUpdateConfiguration_priority) if err != nil { return err } if val != nil { - m.SetPriority(val.(*MacOSPriority)) + m.SetPriority(val.(*MacOSSoftwareUpdateConfiguration_priority)) } return nil } @@ -189,13 +189,13 @@ func (m *MacOSSoftwareUpdateConfiguration) GetMaxUserDeferralsCount()(*int32) { return nil } // GetPriority gets the priority property value. The scheduling priority for downloading and preparing the requested update. Default: Low. Possible values: Null, Low, High. Possible values are: low, high, unknownFutureValue. -func (m *MacOSSoftwareUpdateConfiguration) GetPriority()(*MacOSPriority) { +func (m *MacOSSoftwareUpdateConfiguration) GetPriority()(*MacOSSoftwareUpdateConfiguration_priority) { val, err := m.GetBackingStore().Get("priority") if err != nil { panic(err) } if val != nil { - return val.(*MacOSPriority) + return val.(*MacOSSoftwareUpdateConfiguration_priority) } return nil } @@ -338,7 +338,7 @@ func (m *MacOSSoftwareUpdateConfiguration) SetMaxUserDeferralsCount(value *int32 } } // SetPriority sets the priority property value. The scheduling priority for downloading and preparing the requested update. Default: Low. Possible values: Null, Low, High. Possible values are: low, high, unknownFutureValue. -func (m *MacOSSoftwareUpdateConfiguration) SetPriority(value *MacOSPriority)() { +func (m *MacOSSoftwareUpdateConfiguration) SetPriority(value *MacOSSoftwareUpdateConfiguration_priority)() { err := m.GetBackingStore().Set("priority", value) if err != nil { panic(err) @@ -368,7 +368,7 @@ type MacOSSoftwareUpdateConfigurationable interface { GetCustomUpdateTimeWindows()([]CustomUpdateTimeWindowable) GetFirmwareUpdateBehavior()(*MacOSSoftwareUpdateBehavior) GetMaxUserDeferralsCount()(*int32) - GetPriority()(*MacOSPriority) + GetPriority()(*MacOSSoftwareUpdateConfiguration_priority) GetUpdateScheduleType()(*MacOSSoftwareUpdateScheduleType) GetUpdateTimeWindowUtcOffsetInMinutes()(*int32) SetAllOtherUpdateBehavior(value *MacOSSoftwareUpdateBehavior)() @@ -377,7 +377,7 @@ type MacOSSoftwareUpdateConfigurationable interface { SetCustomUpdateTimeWindows(value []CustomUpdateTimeWindowable)() SetFirmwareUpdateBehavior(value *MacOSSoftwareUpdateBehavior)() SetMaxUserDeferralsCount(value *int32)() - SetPriority(value *MacOSPriority)() + SetPriority(value *MacOSSoftwareUpdateConfiguration_priority)() SetUpdateScheduleType(value *MacOSSoftwareUpdateScheduleType)() SetUpdateTimeWindowUtcOffsetInMinutes(value *int32)() } diff --git a/models/mac_o_s_software_update_configuration_priority.go b/models/mac_o_s_software_update_configuration_priority.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_software_update_delay_policy.go b/models/mac_o_s_software_update_delay_policy.go deleted file mode 100644 index 00a4c2e21ea..00000000000 --- a/models/mac_o_s_software_update_delay_policy.go +++ /dev/null @@ -1,61 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// Flag enum to determine whether to delay software updates for macOS. -type MacOSSoftwareUpdateDelayPolicy int - -const ( - // Software update delays will not be enforced. - NONE_MACOSSOFTWAREUPDATEDELAYPOLICY MacOSSoftwareUpdateDelayPolicy = iota - // Force delays for OS software updates. - DELAYOSUPDATEVISIBILITY_MACOSSOFTWAREUPDATEDELAYPOLICY - // Force delays for app software updates. - DELAYAPPUPDATEVISIBILITY_MACOSSOFTWAREUPDATEDELAYPOLICY - // Sentinel member for cases where the client cannot handle the new enum values. - UNKNOWNFUTUREVALUE_MACOSSOFTWAREUPDATEDELAYPOLICY - // Force delays for major OS software updates. - DELAYMAJOROSUPDATEVISIBILITY_MACOSSOFTWAREUPDATEDELAYPOLICY -) - -func (i MacOSSoftwareUpdateDelayPolicy) String() string { - var values []string - for p := MacOSSoftwareUpdateDelayPolicy(1); p <= DELAYMAJOROSUPDATEVISIBILITY_MACOSSOFTWAREUPDATEDELAYPOLICY; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "delayOSUpdateVisibility", "delayAppUpdateVisibility", "unknownFutureValue", "delayMajorOsUpdateVisibility"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseMacOSSoftwareUpdateDelayPolicy(v string) (any, error) { - var result MacOSSoftwareUpdateDelayPolicy - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_MACOSSOFTWAREUPDATEDELAYPOLICY - case "delayOSUpdateVisibility": - result |= DELAYOSUPDATEVISIBILITY_MACOSSOFTWAREUPDATEDELAYPOLICY - case "delayAppUpdateVisibility": - result |= DELAYAPPUPDATEVISIBILITY_MACOSSOFTWAREUPDATEDELAYPOLICY - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_MACOSSOFTWAREUPDATEDELAYPOLICY - case "delayMajorOsUpdateVisibility": - result |= DELAYMAJOROSUPDATEVISIBILITY_MACOSSOFTWAREUPDATEDELAYPOLICY - default: - return 0, errors.New("Unknown MacOSSoftwareUpdateDelayPolicy value: " + v) - } - } - return &result, nil -} -func SerializeMacOSSoftwareUpdateDelayPolicy(values []MacOSSoftwareUpdateDelayPolicy) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MacOSSoftwareUpdateDelayPolicy) isMultiValue() bool { - return true -} diff --git a/models/mac_o_s_wired_network_configuration.go b/models/mac_o_s_wired_network_configuration.go index 07d52feaefd..37d88fe77b0 100644 --- a/models/mac_o_s_wired_network_configuration.go +++ b/models/mac_o_s_wired_network_configuration.go @@ -22,24 +22,24 @@ func CreateMacOSWiredNetworkConfigurationFromDiscriminatorValue(parseNode i878a8 return NewMacOSWiredNetworkConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *MacOSWiredNetworkConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *MacOSWiredNetworkConfiguration) GetAuthenticationMethod()(*MacOSWiredNetworkConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*MacOSWiredNetworkConfiguration_authenticationMethod) } return nil } // GetEapFastConfiguration gets the eapFastConfiguration property value. EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. -func (m *MacOSWiredNetworkConfiguration) GetEapFastConfiguration()(*EapFastConfiguration) { +func (m *MacOSWiredNetworkConfiguration) GetEapFastConfiguration()(*MacOSWiredNetworkConfiguration_eapFastConfiguration) { val, err := m.GetBackingStore().Get("eapFastConfiguration") if err != nil { panic(err) } if val != nil { - return val.(*EapFastConfiguration) + return val.(*MacOSWiredNetworkConfiguration_eapFastConfiguration) } return nil } @@ -69,22 +69,22 @@ func (m *MacOSWiredNetworkConfiguration) GetEnableOuterIdentityPrivacy()(*string func (m *MacOSWiredNetworkConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseMacOSWiredNetworkConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*MacOSWiredNetworkConfiguration_authenticationMethod)) } return nil } res["eapFastConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEapFastConfiguration) + val, err := n.GetEnumValue(ParseMacOSWiredNetworkConfiguration_eapFastConfiguration) if err != nil { return err } if val != nil { - m.SetEapFastConfiguration(val.(*EapFastConfiguration)) + m.SetEapFastConfiguration(val.(*MacOSWiredNetworkConfiguration_eapFastConfiguration)) } return nil } @@ -139,12 +139,12 @@ func (m *MacOSWiredNetworkConfiguration) GetFieldDeserializers()(map[string]func return nil } res["nonEapAuthenticationMethodForEapTtls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseMacOSWiredNetworkConfiguration_nonEapAuthenticationMethodForEapTtls) if err != nil { return err } if val != nil { - m.SetNonEapAuthenticationMethodForEapTtls(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetNonEapAuthenticationMethodForEapTtls(val.(*MacOSWiredNetworkConfiguration_nonEapAuthenticationMethodForEapTtls)) } return nil } @@ -210,13 +210,13 @@ func (m *MacOSWiredNetworkConfiguration) GetNetworkName()(*string) { return nil } // GetNonEapAuthenticationMethodForEapTtls gets the nonEapAuthenticationMethodForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *MacOSWiredNetworkConfiguration) GetNonEapAuthenticationMethodForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *MacOSWiredNetworkConfiguration) GetNonEapAuthenticationMethodForEapTtls()(*MacOSWiredNetworkConfiguration_nonEapAuthenticationMethodForEapTtls) { val, err := m.GetBackingStore().Get("nonEapAuthenticationMethodForEapTtls") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*MacOSWiredNetworkConfiguration_nonEapAuthenticationMethodForEapTtls) } return nil } @@ -316,14 +316,14 @@ func (m *MacOSWiredNetworkConfiguration) Serialize(writer i878a80d2330e89d268963 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *MacOSWiredNetworkConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *MacOSWiredNetworkConfiguration) SetAuthenticationMethod(value *MacOSWiredNetworkConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) } } // SetEapFastConfiguration sets the eapFastConfiguration property value. EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. -func (m *MacOSWiredNetworkConfiguration) SetEapFastConfiguration(value *EapFastConfiguration)() { +func (m *MacOSWiredNetworkConfiguration) SetEapFastConfiguration(value *MacOSWiredNetworkConfiguration_eapFastConfiguration)() { err := m.GetBackingStore().Set("eapFastConfiguration", value) if err != nil { panic(err) @@ -365,7 +365,7 @@ func (m *MacOSWiredNetworkConfiguration) SetNetworkName(value *string)() { } } // SetNonEapAuthenticationMethodForEapTtls sets the nonEapAuthenticationMethodForEapTtls property value. Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *MacOSWiredNetworkConfiguration) SetNonEapAuthenticationMethodForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *MacOSWiredNetworkConfiguration) SetNonEapAuthenticationMethodForEapTtls(value *MacOSWiredNetworkConfiguration_nonEapAuthenticationMethodForEapTtls)() { err := m.GetBackingStore().Set("nonEapAuthenticationMethodForEapTtls", value) if err != nil { panic(err) @@ -389,24 +389,24 @@ func (m *MacOSWiredNetworkConfiguration) SetTrustedServerCertificateNames(value type MacOSWiredNetworkConfigurationable interface { DeviceConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) - GetEapFastConfiguration()(*EapFastConfiguration) + GetAuthenticationMethod()(*MacOSWiredNetworkConfiguration_authenticationMethod) + GetEapFastConfiguration()(*MacOSWiredNetworkConfiguration_eapFastConfiguration) GetEapType()(*EapType) GetEnableOuterIdentityPrivacy()(*string) GetIdentityCertificateForClientAuthentication()(MacOSCertificateProfileBaseable) GetNetworkInterface()(*WiredNetworkInterface) GetNetworkName()(*string) - GetNonEapAuthenticationMethodForEapTtls()(*NonEapAuthenticationMethodForEapTtlsType) + GetNonEapAuthenticationMethodForEapTtls()(*MacOSWiredNetworkConfiguration_nonEapAuthenticationMethodForEapTtls) GetRootCertificateForServerValidation()(MacOSTrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() - SetEapFastConfiguration(value *EapFastConfiguration)() + SetAuthenticationMethod(value *MacOSWiredNetworkConfiguration_authenticationMethod)() + SetEapFastConfiguration(value *MacOSWiredNetworkConfiguration_eapFastConfiguration)() SetEapType(value *EapType)() SetEnableOuterIdentityPrivacy(value *string)() SetIdentityCertificateForClientAuthentication(value MacOSCertificateProfileBaseable)() SetNetworkInterface(value *WiredNetworkInterface)() SetNetworkName(value *string)() - SetNonEapAuthenticationMethodForEapTtls(value *NonEapAuthenticationMethodForEapTtlsType)() + SetNonEapAuthenticationMethodForEapTtls(value *MacOSWiredNetworkConfiguration_nonEapAuthenticationMethodForEapTtls)() SetRootCertificateForServerValidation(value MacOSTrustedRootCertificateable)() SetTrustedServerCertificateNames(value []string)() } diff --git a/models/mac_o_s_wired_network_configuration_authentication_method.go b/models/mac_o_s_wired_network_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_wired_network_configuration_eap_fast_configuration.go b/models/mac_o_s_wired_network_configuration_eap_fast_configuration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mac_o_s_wired_network_configuration_non_eap_authentication_method_for_eap_ttls.go b/models/mac_o_s_wired_network_configuration_non_eap_authentication_method_for_eap_ttls.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/machine_learning_detected_sensitive_content.go b/models/machine_learning_detected_sensitive_content.go index b25293cd43e..c867276c345 100644 --- a/models/machine_learning_detected_sensitive_content.go +++ b/models/machine_learning_detected_sensitive_content.go @@ -23,12 +23,12 @@ func CreateMachineLearningDetectedSensitiveContentFromDiscriminatorValue(parseNo func (m *MachineLearningDetectedSensitiveContent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DetectedSensitiveContent.GetFieldDeserializers() res["matchTolerance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMlClassificationMatchTolerance) + val, err := n.GetEnumValue(ParseMachineLearningDetectedSensitiveContent_matchTolerance) if err != nil { return err } if val != nil { - m.SetMatchTolerance(val.(*MlClassificationMatchTolerance)) + m.SetMatchTolerance(val.(*MachineLearningDetectedSensitiveContent_matchTolerance)) } return nil } @@ -45,13 +45,13 @@ func (m *MachineLearningDetectedSensitiveContent) GetFieldDeserializers()(map[st return res } // GetMatchTolerance gets the matchTolerance property value. The matchTolerance property -func (m *MachineLearningDetectedSensitiveContent) GetMatchTolerance()(*MlClassificationMatchTolerance) { +func (m *MachineLearningDetectedSensitiveContent) GetMatchTolerance()(*MachineLearningDetectedSensitiveContent_matchTolerance) { val, err := m.GetBackingStore().Get("matchTolerance") if err != nil { panic(err) } if val != nil { - return val.(*MlClassificationMatchTolerance) + return val.(*MachineLearningDetectedSensitiveContent_matchTolerance) } return nil } @@ -88,7 +88,7 @@ func (m *MachineLearningDetectedSensitiveContent) Serialize(writer i878a80d2330e return nil } // SetMatchTolerance sets the matchTolerance property value. The matchTolerance property -func (m *MachineLearningDetectedSensitiveContent) SetMatchTolerance(value *MlClassificationMatchTolerance)() { +func (m *MachineLearningDetectedSensitiveContent) SetMatchTolerance(value *MachineLearningDetectedSensitiveContent_matchTolerance)() { err := m.GetBackingStore().Set("matchTolerance", value) if err != nil { panic(err) @@ -105,8 +105,8 @@ func (m *MachineLearningDetectedSensitiveContent) SetModelVersion(value *string) type MachineLearningDetectedSensitiveContentable interface { DetectedSensitiveContentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetMatchTolerance()(*MlClassificationMatchTolerance) + GetMatchTolerance()(*MachineLearningDetectedSensitiveContent_matchTolerance) GetModelVersion()(*string) - SetMatchTolerance(value *MlClassificationMatchTolerance)() + SetMatchTolerance(value *MachineLearningDetectedSensitiveContent_matchTolerance)() SetModelVersion(value *string)() } diff --git a/models/machine_learning_detected_sensitive_content_match_tolerance.go b/models/machine_learning_detected_sensitive_content_match_tolerance.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mail_assessment_request.go b/models/mail_assessment_request.go index ad21e95f576..283852b6545 100644 --- a/models/mail_assessment_request.go +++ b/models/mail_assessment_request.go @@ -22,13 +22,13 @@ func CreateMailAssessmentRequestFromDiscriminatorValue(parseNode i878a80d2330e89 return NewMailAssessmentRequest(), nil } // GetDestinationRoutingReason gets the destinationRoutingReason property value. The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk. -func (m *MailAssessmentRequest) GetDestinationRoutingReason()(*MailDestinationRoutingReason) { +func (m *MailAssessmentRequest) GetDestinationRoutingReason()(*MailAssessmentRequest_destinationRoutingReason) { val, err := m.GetBackingStore().Get("destinationRoutingReason") if err != nil { panic(err) } if val != nil { - return val.(*MailDestinationRoutingReason) + return val.(*MailAssessmentRequest_destinationRoutingReason) } return nil } @@ -36,12 +36,12 @@ func (m *MailAssessmentRequest) GetDestinationRoutingReason()(*MailDestinationRo func (m *MailAssessmentRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ThreatAssessmentRequest.GetFieldDeserializers() res["destinationRoutingReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMailDestinationRoutingReason) + val, err := n.GetEnumValue(ParseMailAssessmentRequest_destinationRoutingReason) if err != nil { return err } if val != nil { - m.SetDestinationRoutingReason(val.(*MailDestinationRoutingReason)) + m.SetDestinationRoutingReason(val.(*MailAssessmentRequest_destinationRoutingReason)) } return nil } @@ -117,7 +117,7 @@ func (m *MailAssessmentRequest) Serialize(writer i878a80d2330e89d26896388a3f487e return nil } // SetDestinationRoutingReason sets the destinationRoutingReason property value. The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk. -func (m *MailAssessmentRequest) SetDestinationRoutingReason(value *MailDestinationRoutingReason)() { +func (m *MailAssessmentRequest) SetDestinationRoutingReason(value *MailAssessmentRequest_destinationRoutingReason)() { err := m.GetBackingStore().Set("destinationRoutingReason", value) if err != nil { panic(err) @@ -141,10 +141,10 @@ func (m *MailAssessmentRequest) SetRecipientEmail(value *string)() { type MailAssessmentRequestable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ThreatAssessmentRequestable - GetDestinationRoutingReason()(*MailDestinationRoutingReason) + GetDestinationRoutingReason()(*MailAssessmentRequest_destinationRoutingReason) GetMessageUri()(*string) GetRecipientEmail()(*string) - SetDestinationRoutingReason(value *MailDestinationRoutingReason)() + SetDestinationRoutingReason(value *MailAssessmentRequest_destinationRoutingReason)() SetMessageUri(value *string)() SetRecipientEmail(value *string)() } diff --git a/models/mail_assessment_request_destination_routing_reason.go b/models/mail_assessment_request_destination_routing_reason.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mail_destination_routing_reason.go b/models/mail_destination_routing_reason.go deleted file mode 100644 index 06de03cef22..00000000000 --- a/models/mail_destination_routing_reason.go +++ /dev/null @@ -1,79 +0,0 @@ -package models -import ( - "errors" -) -// -type MailDestinationRoutingReason int - -const ( - NONE_MAILDESTINATIONROUTINGREASON MailDestinationRoutingReason = iota - MAILFLOWRULE_MAILDESTINATIONROUTINGREASON - SAFESENDER_MAILDESTINATIONROUTINGREASON - BLOCKEDSENDER_MAILDESTINATIONROUTINGREASON - ADVANCEDSPAMFILTERING_MAILDESTINATIONROUTINGREASON - DOMAINALLOWLIST_MAILDESTINATIONROUTINGREASON - DOMAINBLOCKLIST_MAILDESTINATIONROUTINGREASON - NOTINADDRESSBOOK_MAILDESTINATIONROUTINGREASON - FIRSTTIMESENDER_MAILDESTINATIONROUTINGREASON - AUTOPURGETOINBOX_MAILDESTINATIONROUTINGREASON - AUTOPURGETOJUNK_MAILDESTINATIONROUTINGREASON - AUTOPURGETODELETED_MAILDESTINATIONROUTINGREASON - OUTBOUND_MAILDESTINATIONROUTINGREASON - NOTJUNK_MAILDESTINATIONROUTINGREASON - JUNK_MAILDESTINATIONROUTINGREASON - UNKNOWNFUTUREVALUE_MAILDESTINATIONROUTINGREASON -) - -func (i MailDestinationRoutingReason) String() string { - return []string{"none", "mailFlowRule", "safeSender", "blockedSender", "advancedSpamFiltering", "domainAllowList", "domainBlockList", "notInAddressBook", "firstTimeSender", "autoPurgeToInbox", "autoPurgeToJunk", "autoPurgeToDeleted", "outbound", "notJunk", "junk", "unknownFutureValue"}[i] -} -func ParseMailDestinationRoutingReason(v string) (any, error) { - result := NONE_MAILDESTINATIONROUTINGREASON - switch v { - case "none": - result = NONE_MAILDESTINATIONROUTINGREASON - case "mailFlowRule": - result = MAILFLOWRULE_MAILDESTINATIONROUTINGREASON - case "safeSender": - result = SAFESENDER_MAILDESTINATIONROUTINGREASON - case "blockedSender": - result = BLOCKEDSENDER_MAILDESTINATIONROUTINGREASON - case "advancedSpamFiltering": - result = ADVANCEDSPAMFILTERING_MAILDESTINATIONROUTINGREASON - case "domainAllowList": - result = DOMAINALLOWLIST_MAILDESTINATIONROUTINGREASON - case "domainBlockList": - result = DOMAINBLOCKLIST_MAILDESTINATIONROUTINGREASON - case "notInAddressBook": - result = NOTINADDRESSBOOK_MAILDESTINATIONROUTINGREASON - case "firstTimeSender": - result = FIRSTTIMESENDER_MAILDESTINATIONROUTINGREASON - case "autoPurgeToInbox": - result = AUTOPURGETOINBOX_MAILDESTINATIONROUTINGREASON - case "autoPurgeToJunk": - result = AUTOPURGETOJUNK_MAILDESTINATIONROUTINGREASON - case "autoPurgeToDeleted": - result = AUTOPURGETODELETED_MAILDESTINATIONROUTINGREASON - case "outbound": - result = OUTBOUND_MAILDESTINATIONROUTINGREASON - case "notJunk": - result = NOTJUNK_MAILDESTINATIONROUTINGREASON - case "junk": - result = JUNK_MAILDESTINATIONROUTINGREASON - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MAILDESTINATIONROUTINGREASON - default: - return 0, errors.New("Unknown MailDestinationRoutingReason value: " + v) - } - return &result, nil -} -func SerializeMailDestinationRoutingReason(values []MailDestinationRoutingReason) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MailDestinationRoutingReason) isMultiValue() bool { - return false -} diff --git a/models/mail_tips.go b/models/mail_tips.go index f53af094cda..feb45baf6e0 100644 --- a/models/mail_tips.go +++ b/models/mail_tips.go @@ -208,12 +208,12 @@ func (m *MailTips) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["recipientScope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRecipientScopeType) + val, err := n.GetEnumValue(ParseMailTips_recipientScope) if err != nil { return err } if val != nil { - m.SetRecipientScope(val.(*RecipientScopeType)) + m.SetRecipientScope(val.(*MailTips_recipientScope)) } return nil } @@ -290,13 +290,13 @@ func (m *MailTips) GetOdataType()(*string) { return nil } // GetRecipientScope gets the recipientScope property value. The scope of the recipient. Possible values are: none, internal, external, externalPartner, externalNonParther. For example, an administrator can set another organization to be its 'partner'. The scope is useful if an administrator wants certain mailtips to be accessible to certain scopes. It's also useful to senders to inform them that their message may leave the organization, helping them make the correct decisions about wording, tone and content. -func (m *MailTips) GetRecipientScope()(*RecipientScopeType) { +func (m *MailTips) GetRecipientScope()(*MailTips_recipientScope) { val, err := m.GetBackingStore().Get("recipientScope") if err != nil { panic(err) } if val != nil { - return val.(*RecipientScopeType) + return val.(*MailTips_recipientScope) } return nil } @@ -499,7 +499,7 @@ func (m *MailTips) SetOdataType(value *string)() { } } // SetRecipientScope sets the recipientScope property value. The scope of the recipient. Possible values are: none, internal, external, externalPartner, externalNonParther. For example, an administrator can set another organization to be its 'partner'. The scope is useful if an administrator wants certain mailtips to be accessible to certain scopes. It's also useful to senders to inform them that their message may leave the organization, helping them make the correct decisions about wording, tone and content. -func (m *MailTips) SetRecipientScope(value *RecipientScopeType)() { +func (m *MailTips) SetRecipientScope(value *MailTips_recipientScope)() { err := m.GetBackingStore().Set("recipientScope", value) if err != nil { panic(err) @@ -535,7 +535,7 @@ type MailTipsable interface { GetMailboxFull()(*bool) GetMaxMessageSize()(*int32) GetOdataType()(*string) - GetRecipientScope()(*RecipientScopeType) + GetRecipientScope()(*MailTips_recipientScope) GetRecipientSuggestions()([]Recipientable) GetTotalMemberCount()(*int32) SetAutomaticReplies(value AutomaticRepliesMailTipsable)() @@ -549,7 +549,7 @@ type MailTipsable interface { SetMailboxFull(value *bool)() SetMaxMessageSize(value *int32)() SetOdataType(value *string)() - SetRecipientScope(value *RecipientScopeType)() + SetRecipientScope(value *MailTips_recipientScope)() SetRecipientSuggestions(value []Recipientable)() SetTotalMemberCount(value *int32)() } diff --git a/models/mail_tips_recipient_scope.go b/models/mail_tips_recipient_scope.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mail_tips_type.go b/models/mail_tips_type.go deleted file mode 100644 index 28f2db3288d..00000000000 --- a/models/mail_tips_type.go +++ /dev/null @@ -1,71 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type MailTipsType int - -const ( - AUTOMATICREPLIES_MAILTIPSTYPE MailTipsType = iota - MAILBOXFULLSTATUS_MAILTIPSTYPE - CUSTOMMAILTIP_MAILTIPSTYPE - EXTERNALMEMBERCOUNT_MAILTIPSTYPE - TOTALMEMBERCOUNT_MAILTIPSTYPE - MAXMESSAGESIZE_MAILTIPSTYPE - DELIVERYRESTRICTION_MAILTIPSTYPE - MODERATIONSTATUS_MAILTIPSTYPE - RECIPIENTSCOPE_MAILTIPSTYPE - RECIPIENTSUGGESTIONS_MAILTIPSTYPE -) - -func (i MailTipsType) String() string { - var values []string - for p := MailTipsType(1); p <= RECIPIENTSUGGESTIONS_MAILTIPSTYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"automaticReplies", "mailboxFullStatus", "customMailTip", "externalMemberCount", "totalMemberCount", "maxMessageSize", "deliveryRestriction", "moderationStatus", "recipientScope", "recipientSuggestions"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseMailTipsType(v string) (any, error) { - var result MailTipsType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "automaticReplies": - result |= AUTOMATICREPLIES_MAILTIPSTYPE - case "mailboxFullStatus": - result |= MAILBOXFULLSTATUS_MAILTIPSTYPE - case "customMailTip": - result |= CUSTOMMAILTIP_MAILTIPSTYPE - case "externalMemberCount": - result |= EXTERNALMEMBERCOUNT_MAILTIPSTYPE - case "totalMemberCount": - result |= TOTALMEMBERCOUNT_MAILTIPSTYPE - case "maxMessageSize": - result |= MAXMESSAGESIZE_MAILTIPSTYPE - case "deliveryRestriction": - result |= DELIVERYRESTRICTION_MAILTIPSTYPE - case "moderationStatus": - result |= MODERATIONSTATUS_MAILTIPSTYPE - case "recipientScope": - result |= RECIPIENTSCOPE_MAILTIPSTYPE - case "recipientSuggestions": - result |= RECIPIENTSUGGESTIONS_MAILTIPSTYPE - default: - return 0, errors.New("Unknown MailTipsType value: " + v) - } - } - return &result, nil -} -func SerializeMailTipsType(values []MailTipsType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MailTipsType) isMultiValue() bool { - return true -} diff --git a/models/mailbox_recipient_type.go b/models/mailbox_recipient_type.go deleted file mode 100644 index 0a0d12c0361..00000000000 --- a/models/mailbox_recipient_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type MailboxRecipientType int - -const ( - UNKNOWN_MAILBOXRECIPIENTTYPE MailboxRecipientType = iota - USER_MAILBOXRECIPIENTTYPE - LINKED_MAILBOXRECIPIENTTYPE - SHARED_MAILBOXRECIPIENTTYPE - ROOM_MAILBOXRECIPIENTTYPE - EQUIPMENT_MAILBOXRECIPIENTTYPE - OTHERS_MAILBOXRECIPIENTTYPE -) - -func (i MailboxRecipientType) String() string { - return []string{"unknown", "user", "linked", "shared", "room", "equipment", "others"}[i] -} -func ParseMailboxRecipientType(v string) (any, error) { - result := UNKNOWN_MAILBOXRECIPIENTTYPE - switch v { - case "unknown": - result = UNKNOWN_MAILBOXRECIPIENTTYPE - case "user": - result = USER_MAILBOXRECIPIENTTYPE - case "linked": - result = LINKED_MAILBOXRECIPIENTTYPE - case "shared": - result = SHARED_MAILBOXRECIPIENTTYPE - case "room": - result = ROOM_MAILBOXRECIPIENTTYPE - case "equipment": - result = EQUIPMENT_MAILBOXRECIPIENTTYPE - case "others": - result = OTHERS_MAILBOXRECIPIENTTYPE - default: - return 0, errors.New("Unknown MailboxRecipientType value: " + v) - } - return &result, nil -} -func SerializeMailboxRecipientType(values []MailboxRecipientType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MailboxRecipientType) isMultiValue() bool { - return false -} diff --git a/models/mailbox_settings.go b/models/mailbox_settings.go index f2c6d00a031..30e25dab6cc 100644 --- a/models/mailbox_settings.go +++ b/models/mailbox_settings.go @@ -72,13 +72,13 @@ func (m *MailboxSettings) GetDateFormat()(*string) { return nil } // GetDelegateMeetingMessageDeliveryOptions gets the delegateMeetingMessageDeliveryOptions property value. If the user has a calendar delegate, this specifies whether the delegate, mailbox owner, or both receive meeting messages and meeting responses. Possible values are: sendToDelegateAndInformationToPrincipal, sendToDelegateAndPrincipal, sendToDelegateOnly. The default is sendToDelegateOnly. -func (m *MailboxSettings) GetDelegateMeetingMessageDeliveryOptions()(*DelegateMeetingMessageDeliveryOptions) { +func (m *MailboxSettings) GetDelegateMeetingMessageDeliveryOptions()(*MailboxSettings_delegateMeetingMessageDeliveryOptions) { val, err := m.GetBackingStore().Get("delegateMeetingMessageDeliveryOptions") if err != nil { panic(err) } if val != nil { - return val.(*DelegateMeetingMessageDeliveryOptions) + return val.(*MailboxSettings_delegateMeetingMessageDeliveryOptions) } return nil } @@ -116,12 +116,12 @@ func (m *MailboxSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["delegateMeetingMessageDeliveryOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDelegateMeetingMessageDeliveryOptions) + val, err := n.GetEnumValue(ParseMailboxSettings_delegateMeetingMessageDeliveryOptions) if err != nil { return err } if val != nil { - m.SetDelegateMeetingMessageDeliveryOptions(val.(*DelegateMeetingMessageDeliveryOptions)) + m.SetDelegateMeetingMessageDeliveryOptions(val.(*MailboxSettings_delegateMeetingMessageDeliveryOptions)) } return nil } @@ -166,22 +166,22 @@ func (m *MailboxSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["userPurpose"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserPurpose) + val, err := n.GetEnumValue(ParseMailboxSettings_userPurpose) if err != nil { return err } if val != nil { - m.SetUserPurpose(val.(*UserPurpose)) + m.SetUserPurpose(val.(*MailboxSettings_userPurpose)) } return nil } res["userPurposeV2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMailboxRecipientType) + val, err := n.GetEnumValue(ParseMailboxSettings_userPurposeV2) if err != nil { return err } if val != nil { - m.SetUserPurposeV2(val.(*MailboxRecipientType)) + m.SetUserPurposeV2(val.(*MailboxSettings_userPurposeV2)) } return nil } @@ -242,24 +242,24 @@ func (m *MailboxSettings) GetTimeZone()(*string) { return nil } // GetUserPurpose gets the userPurpose property value. The purpose of the mailbox. Differentiates a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online. Possible values are: user, linked, shared, room, equipment, others, unknownFutureValue. Read-only. -func (m *MailboxSettings) GetUserPurpose()(*UserPurpose) { +func (m *MailboxSettings) GetUserPurpose()(*MailboxSettings_userPurpose) { val, err := m.GetBackingStore().Get("userPurpose") if err != nil { panic(err) } if val != nil { - return val.(*UserPurpose) + return val.(*MailboxSettings_userPurpose) } return nil } // GetUserPurposeV2 gets the userPurposeV2 property value. The userPurposeV2 property -func (m *MailboxSettings) GetUserPurposeV2()(*MailboxRecipientType) { +func (m *MailboxSettings) GetUserPurposeV2()(*MailboxSettings_userPurposeV2) { val, err := m.GetBackingStore().Get("userPurposeV2") if err != nil { panic(err) } if val != nil { - return val.(*MailboxRecipientType) + return val.(*MailboxSettings_userPurposeV2) } return nil } @@ -386,7 +386,7 @@ func (m *MailboxSettings) SetDateFormat(value *string)() { } } // SetDelegateMeetingMessageDeliveryOptions sets the delegateMeetingMessageDeliveryOptions property value. If the user has a calendar delegate, this specifies whether the delegate, mailbox owner, or both receive meeting messages and meeting responses. Possible values are: sendToDelegateAndInformationToPrincipal, sendToDelegateAndPrincipal, sendToDelegateOnly. The default is sendToDelegateOnly. -func (m *MailboxSettings) SetDelegateMeetingMessageDeliveryOptions(value *DelegateMeetingMessageDeliveryOptions)() { +func (m *MailboxSettings) SetDelegateMeetingMessageDeliveryOptions(value *MailboxSettings_delegateMeetingMessageDeliveryOptions)() { err := m.GetBackingStore().Set("delegateMeetingMessageDeliveryOptions", value) if err != nil { panic(err) @@ -421,14 +421,14 @@ func (m *MailboxSettings) SetTimeZone(value *string)() { } } // SetUserPurpose sets the userPurpose property value. The purpose of the mailbox. Differentiates a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online. Possible values are: user, linked, shared, room, equipment, others, unknownFutureValue. Read-only. -func (m *MailboxSettings) SetUserPurpose(value *UserPurpose)() { +func (m *MailboxSettings) SetUserPurpose(value *MailboxSettings_userPurpose)() { err := m.GetBackingStore().Set("userPurpose", value) if err != nil { panic(err) } } // SetUserPurposeV2 sets the userPurposeV2 property value. The userPurposeV2 property -func (m *MailboxSettings) SetUserPurposeV2(value *MailboxRecipientType)() { +func (m *MailboxSettings) SetUserPurposeV2(value *MailboxSettings_userPurposeV2)() { err := m.GetBackingStore().Set("userPurposeV2", value) if err != nil { panic(err) @@ -450,24 +450,24 @@ type MailboxSettingsable interface { GetAutomaticRepliesSetting()(AutomaticRepliesSettingable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDateFormat()(*string) - GetDelegateMeetingMessageDeliveryOptions()(*DelegateMeetingMessageDeliveryOptions) + GetDelegateMeetingMessageDeliveryOptions()(*MailboxSettings_delegateMeetingMessageDeliveryOptions) GetLanguage()(LocaleInfoable) GetOdataType()(*string) GetTimeFormat()(*string) GetTimeZone()(*string) - GetUserPurpose()(*UserPurpose) - GetUserPurposeV2()(*MailboxRecipientType) + GetUserPurpose()(*MailboxSettings_userPurpose) + GetUserPurposeV2()(*MailboxSettings_userPurposeV2) GetWorkingHours()(WorkingHoursable) SetArchiveFolder(value *string)() SetAutomaticRepliesSetting(value AutomaticRepliesSettingable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDateFormat(value *string)() - SetDelegateMeetingMessageDeliveryOptions(value *DelegateMeetingMessageDeliveryOptions)() + SetDelegateMeetingMessageDeliveryOptions(value *MailboxSettings_delegateMeetingMessageDeliveryOptions)() SetLanguage(value LocaleInfoable)() SetOdataType(value *string)() SetTimeFormat(value *string)() SetTimeZone(value *string)() - SetUserPurpose(value *UserPurpose)() - SetUserPurposeV2(value *MailboxRecipientType)() + SetUserPurpose(value *MailboxSettings_userPurpose)() + SetUserPurposeV2(value *MailboxSettings_userPurposeV2)() SetWorkingHours(value WorkingHoursable)() } diff --git a/models/mailbox_settings_delegate_meeting_message_delivery_options.go b/models/mailbox_settings_delegate_meeting_message_delivery_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mailbox_settings_user_purpose.go b/models/mailbox_settings_user_purpose.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/mailbox_settings_user_purpose_v2.go b/models/mailbox_settings_user_purpose_v2.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/malware_state_for_windows_device.go b/models/malware_state_for_windows_device.go index 5bfdde19ed5..60dabac7785 100644 --- a/models/malware_state_for_windows_device.go +++ b/models/malware_state_for_windows_device.go @@ -43,13 +43,13 @@ func (m *MalwareStateForWindowsDevice) GetDeviceName()(*string) { return nil } // GetExecutionState gets the executionState property value. Indicates execution status of the malware. Possible values are: unknown, blocked, allowed, running, notRunning. Defaults to unknown. Possible values are: unknown, blocked, allowed, running, notRunning. -func (m *MalwareStateForWindowsDevice) GetExecutionState()(*WindowsMalwareExecutionState) { +func (m *MalwareStateForWindowsDevice) GetExecutionState()(*MalwareStateForWindowsDevice_executionState) { val, err := m.GetBackingStore().Get("executionState") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareExecutionState) + return val.(*MalwareStateForWindowsDevice_executionState) } return nil } @@ -77,12 +77,12 @@ func (m *MalwareStateForWindowsDevice) GetFieldDeserializers()(map[string]func(i return nil } res["executionState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareExecutionState) + val, err := n.GetEnumValue(ParseMalwareStateForWindowsDevice_executionState) if err != nil { return err } if val != nil { - m.SetExecutionState(val.(*WindowsMalwareExecutionState)) + m.SetExecutionState(val.(*MalwareStateForWindowsDevice_executionState)) } return nil } @@ -107,12 +107,12 @@ func (m *MalwareStateForWindowsDevice) GetFieldDeserializers()(map[string]func(i return nil } res["threatState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareThreatState) + val, err := n.GetEnumValue(ParseMalwareStateForWindowsDevice_threatState) if err != nil { return err } if val != nil { - m.SetThreatState(val.(*WindowsMalwareThreatState)) + m.SetThreatState(val.(*MalwareStateForWindowsDevice_threatState)) } return nil } @@ -141,13 +141,13 @@ func (m *MalwareStateForWindowsDevice) GetLastStateChangeDateTime()(*i336074805f return nil } // GetThreatState gets the threatState property value. Indicates threat status of the malware. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. defaults to noStatusCleared. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. -func (m *MalwareStateForWindowsDevice) GetThreatState()(*WindowsMalwareThreatState) { +func (m *MalwareStateForWindowsDevice) GetThreatState()(*MalwareStateForWindowsDevice_threatState) { val, err := m.GetBackingStore().Get("threatState") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareThreatState) + return val.(*MalwareStateForWindowsDevice_threatState) } return nil } @@ -212,7 +212,7 @@ func (m *MalwareStateForWindowsDevice) SetDeviceName(value *string)() { } } // SetExecutionState sets the executionState property value. Indicates execution status of the malware. Possible values are: unknown, blocked, allowed, running, notRunning. Defaults to unknown. Possible values are: unknown, blocked, allowed, running, notRunning. -func (m *MalwareStateForWindowsDevice) SetExecutionState(value *WindowsMalwareExecutionState)() { +func (m *MalwareStateForWindowsDevice) SetExecutionState(value *MalwareStateForWindowsDevice_executionState)() { err := m.GetBackingStore().Set("executionState", value) if err != nil { panic(err) @@ -233,7 +233,7 @@ func (m *MalwareStateForWindowsDevice) SetLastStateChangeDateTime(value *i336074 } } // SetThreatState sets the threatState property value. Indicates threat status of the malware. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. defaults to noStatusCleared. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. -func (m *MalwareStateForWindowsDevice) SetThreatState(value *WindowsMalwareThreatState)() { +func (m *MalwareStateForWindowsDevice) SetThreatState(value *MalwareStateForWindowsDevice_threatState)() { err := m.GetBackingStore().Set("threatState", value) if err != nil { panic(err) @@ -245,14 +245,14 @@ type MalwareStateForWindowsDeviceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDetectionCount()(*int32) GetDeviceName()(*string) - GetExecutionState()(*WindowsMalwareExecutionState) + GetExecutionState()(*MalwareStateForWindowsDevice_executionState) GetInitialDetectionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastStateChangeDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetThreatState()(*WindowsMalwareThreatState) + GetThreatState()(*MalwareStateForWindowsDevice_threatState) SetDetectionCount(value *int32)() SetDeviceName(value *string)() - SetExecutionState(value *WindowsMalwareExecutionState)() + SetExecutionState(value *MalwareStateForWindowsDevice_executionState)() SetInitialDetectionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastStateChangeDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetThreatState(value *WindowsMalwareThreatState)() + SetThreatState(value *MalwareStateForWindowsDevice_threatState)() } diff --git a/models/malware_state_for_windows_device_execution_state.go b/models/malware_state_for_windows_device_execution_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/malware_state_for_windows_device_threat_state.go b/models/malware_state_for_windows_device_threat_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managed_app_protection.go b/models/managed_app_protection.go index 78025e2d261..938fdce78e3 100644 --- a/models/managed_app_protection.go +++ b/models/managed_app_protection.go @@ -134,13 +134,13 @@ func (m *ManagedAppProtection) GetAppActionIfMaximumPinRetriesExceeded()(*Manage return nil } // GetAppActionIfUnableToAuthenticateUser gets the appActionIfUnableToAuthenticateUser property value. If set, it will specify what action to take in the case where the user is unable to checkin because their authentication token is invalid. This happens when the user is deleted or disabled in AAD. Possible values are: block, wipe, warn. -func (m *ManagedAppProtection) GetAppActionIfUnableToAuthenticateUser()(*ManagedAppRemediationAction) { +func (m *ManagedAppProtection) GetAppActionIfUnableToAuthenticateUser()(*ManagedAppProtection_appActionIfUnableToAuthenticateUser) { val, err := m.GetBackingStore().Get("appActionIfUnableToAuthenticateUser") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*ManagedAppProtection_appActionIfUnableToAuthenticateUser) } return nil } @@ -306,12 +306,12 @@ func (m *ManagedAppProtection) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["appActionIfUnableToAuthenticateUser"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseManagedAppProtection_appActionIfUnableToAuthenticateUser) if err != nil { return err } if val != nil { - m.SetAppActionIfUnableToAuthenticateUser(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfUnableToAuthenticateUser(val.(*ManagedAppProtection_appActionIfUnableToAuthenticateUser)) } return nil } @@ -536,12 +536,12 @@ func (m *ManagedAppProtection) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["mobileThreatDefensePartnerPriority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMobileThreatDefensePartnerPriority) + val, err := n.GetEnumValue(ParseManagedAppProtection_mobileThreatDefensePartnerPriority) if err != nil { return err } if val != nil { - m.SetMobileThreatDefensePartnerPriority(val.(*MobileThreatDefensePartnerPriority)) + m.SetMobileThreatDefensePartnerPriority(val.(*ManagedAppProtection_mobileThreatDefensePartnerPriority)) } return nil } @@ -874,13 +874,13 @@ func (m *ManagedAppProtection) GetMinimumWipeOsVersion()(*string) { return nil } // GetMobileThreatDefensePartnerPriority gets the mobileThreatDefensePartnerPriority property value. Indicates how to prioritize which Mobile Threat Defense (MTD) partner is enabled for a given platform, when more than one is enabled. An app can only be actively using a single Mobile Threat Defense partner. When NULL, Microsoft Defender will be given preference. Otherwise setting the value to defenderOverThirdPartyPartner or thirdPartyPartnerOverDefender will make explicit which partner to prioritize. Possible values are: null, defenderOverThirdPartyPartner, thirdPartyPartnerOverDefender and unknownFutureValue. Default value is null. Possible values are: defenderOverThirdPartyPartner, thirdPartyPartnerOverDefender, unknownFutureValue. -func (m *ManagedAppProtection) GetMobileThreatDefensePartnerPriority()(*MobileThreatDefensePartnerPriority) { +func (m *ManagedAppProtection) GetMobileThreatDefensePartnerPriority()(*ManagedAppProtection_mobileThreatDefensePartnerPriority) { val, err := m.GetBackingStore().Get("mobileThreatDefensePartnerPriority") if err != nil { panic(err) } if val != nil { - return val.(*MobileThreatDefensePartnerPriority) + return val.(*ManagedAppProtection_mobileThreatDefensePartnerPriority) } return nil } @@ -1410,7 +1410,7 @@ func (m *ManagedAppProtection) SetAppActionIfMaximumPinRetriesExceeded(value *Ma } } // SetAppActionIfUnableToAuthenticateUser sets the appActionIfUnableToAuthenticateUser property value. If set, it will specify what action to take in the case where the user is unable to checkin because their authentication token is invalid. This happens when the user is deleted or disabled in AAD. Possible values are: block, wipe, warn. -func (m *ManagedAppProtection) SetAppActionIfUnableToAuthenticateUser(value *ManagedAppRemediationAction)() { +func (m *ManagedAppProtection) SetAppActionIfUnableToAuthenticateUser(value *ManagedAppProtection_appActionIfUnableToAuthenticateUser)() { err := m.GetBackingStore().Set("appActionIfUnableToAuthenticateUser", value) if err != nil { panic(err) @@ -1571,7 +1571,7 @@ func (m *ManagedAppProtection) SetMinimumWipeOsVersion(value *string)() { } } // SetMobileThreatDefensePartnerPriority sets the mobileThreatDefensePartnerPriority property value. Indicates how to prioritize which Mobile Threat Defense (MTD) partner is enabled for a given platform, when more than one is enabled. An app can only be actively using a single Mobile Threat Defense partner. When NULL, Microsoft Defender will be given preference. Otherwise setting the value to defenderOverThirdPartyPartner or thirdPartyPartnerOverDefender will make explicit which partner to prioritize. Possible values are: null, defenderOverThirdPartyPartner, thirdPartyPartnerOverDefender and unknownFutureValue. Default value is null. Possible values are: defenderOverThirdPartyPartner, thirdPartyPartnerOverDefender, unknownFutureValue. -func (m *ManagedAppProtection) SetMobileThreatDefensePartnerPriority(value *MobileThreatDefensePartnerPriority)() { +func (m *ManagedAppProtection) SetMobileThreatDefensePartnerPriority(value *ManagedAppProtection_mobileThreatDefensePartnerPriority)() { err := m.GetBackingStore().Set("mobileThreatDefensePartnerPriority", value) if err != nil { panic(err) @@ -1694,7 +1694,7 @@ type ManagedAppProtectionable interface { GetAllowedOutboundDataTransferDestinations()(*ManagedAppDataTransferLevel) GetAppActionIfDeviceComplianceRequired()(*ManagedAppRemediationAction) GetAppActionIfMaximumPinRetriesExceeded()(*ManagedAppRemediationAction) - GetAppActionIfUnableToAuthenticateUser()(*ManagedAppRemediationAction) + GetAppActionIfUnableToAuthenticateUser()(*ManagedAppProtection_appActionIfUnableToAuthenticateUser) GetBlockDataIngestionIntoOrganizationDocuments()(*bool) GetContactSyncBlocked()(*bool) GetDataBackupBlocked()(*bool) @@ -1717,7 +1717,7 @@ type ManagedAppProtectionable interface { GetMinimumWarningOsVersion()(*string) GetMinimumWipeAppVersion()(*string) GetMinimumWipeOsVersion()(*string) - GetMobileThreatDefensePartnerPriority()(*MobileThreatDefensePartnerPriority) + GetMobileThreatDefensePartnerPriority()(*ManagedAppProtection_mobileThreatDefensePartnerPriority) GetMobileThreatDefenseRemediationAction()(*ManagedAppRemediationAction) GetNotificationRestriction()(*ManagedAppNotificationRestriction) GetOrganizationalCredentialsRequired()(*bool) @@ -1741,7 +1741,7 @@ type ManagedAppProtectionable interface { SetAllowedOutboundDataTransferDestinations(value *ManagedAppDataTransferLevel)() SetAppActionIfDeviceComplianceRequired(value *ManagedAppRemediationAction)() SetAppActionIfMaximumPinRetriesExceeded(value *ManagedAppRemediationAction)() - SetAppActionIfUnableToAuthenticateUser(value *ManagedAppRemediationAction)() + SetAppActionIfUnableToAuthenticateUser(value *ManagedAppProtection_appActionIfUnableToAuthenticateUser)() SetBlockDataIngestionIntoOrganizationDocuments(value *bool)() SetContactSyncBlocked(value *bool)() SetDataBackupBlocked(value *bool)() @@ -1764,7 +1764,7 @@ type ManagedAppProtectionable interface { SetMinimumWarningOsVersion(value *string)() SetMinimumWipeAppVersion(value *string)() SetMinimumWipeOsVersion(value *string)() - SetMobileThreatDefensePartnerPriority(value *MobileThreatDefensePartnerPriority)() + SetMobileThreatDefensePartnerPriority(value *ManagedAppProtection_mobileThreatDefensePartnerPriority)() SetMobileThreatDefenseRemediationAction(value *ManagedAppRemediationAction)() SetNotificationRestriction(value *ManagedAppNotificationRestriction)() SetOrganizationalCredentialsRequired(value *bool)() diff --git a/models/managed_app_protection_app_action_if_unable_to_authenticate_user.go b/models/managed_app_protection_app_action_if_unable_to_authenticate_user.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managed_app_protection_mobile_threat_defense_partner_priority.go b/models/managed_app_protection_mobile_threat_defense_partner_priority.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managed_device_encryption_state.go b/models/managed_device_encryption_state.go index dbf8eea5514..fb646d0b7f5 100644 --- a/models/managed_device_encryption_state.go +++ b/models/managed_device_encryption_state.go @@ -20,13 +20,13 @@ func CreateManagedDeviceEncryptionStateFromDiscriminatorValue(parseNode i878a80d return NewManagedDeviceEncryptionState(), nil } // GetAdvancedBitLockerStates gets the advancedBitLockerStates property value. Advanced BitLocker State. Possible values are: success, noUserConsent, osVolumeUnprotected, osVolumeTpmRequired, osVolumeTpmOnlyRequired, osVolumeTpmPinRequired, osVolumeTpmStartupKeyRequired, osVolumeTpmPinStartupKeyRequired, osVolumeEncryptionMethodMismatch, recoveryKeyBackupFailed, fixedDriveNotEncrypted, fixedDriveEncryptionMethodMismatch, loggedOnUserNonAdmin, windowsRecoveryEnvironmentNotConfigured, tpmNotAvailable, tpmNotReady, networkError. -func (m *ManagedDeviceEncryptionState) GetAdvancedBitLockerStates()(*AdvancedBitLockerState) { +func (m *ManagedDeviceEncryptionState) GetAdvancedBitLockerStates()(*ManagedDeviceEncryptionState_advancedBitLockerStates) { val, err := m.GetBackingStore().Get("advancedBitLockerStates") if err != nil { panic(err) } if val != nil { - return val.(*AdvancedBitLockerState) + return val.(*ManagedDeviceEncryptionState_advancedBitLockerStates) } return nil } @@ -89,12 +89,12 @@ func (m *ManagedDeviceEncryptionState) GetEncryptionState()(*EncryptionState) { func (m *ManagedDeviceEncryptionState) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["advancedBitLockerStates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAdvancedBitLockerState) + val, err := n.GetEnumValue(ParseManagedDeviceEncryptionState_advancedBitLockerStates) if err != nil { return err } if val != nil { - m.SetAdvancedBitLockerStates(val.(*AdvancedBitLockerState)) + m.SetAdvancedBitLockerStates(val.(*ManagedDeviceEncryptionState_advancedBitLockerStates)) } return nil } @@ -149,12 +149,12 @@ func (m *ManagedDeviceEncryptionState) GetFieldDeserializers()(map[string]func(i return nil } res["fileVaultStates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFileVaultState) + val, err := n.GetEnumValue(ParseManagedDeviceEncryptionState_fileVaultStates) if err != nil { return err } if val != nil { - m.SetFileVaultStates(val.(*FileVaultState)) + m.SetFileVaultStates(val.(*ManagedDeviceEncryptionState_fileVaultStates)) } return nil } @@ -207,13 +207,13 @@ func (m *ManagedDeviceEncryptionState) GetFieldDeserializers()(map[string]func(i return res } // GetFileVaultStates gets the fileVaultStates property value. FileVault State. Possible values are: success, driveEncryptedByUser, userDeferredEncryption, escrowNotEnabled. -func (m *ManagedDeviceEncryptionState) GetFileVaultStates()(*FileVaultState) { +func (m *ManagedDeviceEncryptionState) GetFileVaultStates()(*ManagedDeviceEncryptionState_fileVaultStates) { val, err := m.GetBackingStore().Get("fileVaultStates") if err != nil { panic(err) } if val != nil { - return val.(*FileVaultState) + return val.(*ManagedDeviceEncryptionState_fileVaultStates) } return nil } @@ -348,7 +348,7 @@ func (m *ManagedDeviceEncryptionState) Serialize(writer i878a80d2330e89d26896388 return nil } // SetAdvancedBitLockerStates sets the advancedBitLockerStates property value. Advanced BitLocker State. Possible values are: success, noUserConsent, osVolumeUnprotected, osVolumeTpmRequired, osVolumeTpmOnlyRequired, osVolumeTpmPinRequired, osVolumeTpmStartupKeyRequired, osVolumeTpmPinStartupKeyRequired, osVolumeEncryptionMethodMismatch, recoveryKeyBackupFailed, fixedDriveNotEncrypted, fixedDriveEncryptionMethodMismatch, loggedOnUserNonAdmin, windowsRecoveryEnvironmentNotConfigured, tpmNotAvailable, tpmNotReady, networkError. -func (m *ManagedDeviceEncryptionState) SetAdvancedBitLockerStates(value *AdvancedBitLockerState)() { +func (m *ManagedDeviceEncryptionState) SetAdvancedBitLockerStates(value *ManagedDeviceEncryptionState_advancedBitLockerStates)() { err := m.GetBackingStore().Set("advancedBitLockerStates", value) if err != nil { panic(err) @@ -390,7 +390,7 @@ func (m *ManagedDeviceEncryptionState) SetEncryptionState(value *EncryptionState } } // SetFileVaultStates sets the fileVaultStates property value. FileVault State. Possible values are: success, driveEncryptedByUser, userDeferredEncryption, escrowNotEnabled. -func (m *ManagedDeviceEncryptionState) SetFileVaultStates(value *FileVaultState)() { +func (m *ManagedDeviceEncryptionState) SetFileVaultStates(value *ManagedDeviceEncryptionState_fileVaultStates)() { err := m.GetBackingStore().Set("fileVaultStates", value) if err != nil { panic(err) @@ -428,24 +428,24 @@ func (m *ManagedDeviceEncryptionState) SetUserPrincipalName(value *string)() { type ManagedDeviceEncryptionStateable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdvancedBitLockerStates()(*AdvancedBitLockerState) + GetAdvancedBitLockerStates()(*ManagedDeviceEncryptionState_advancedBitLockerStates) GetDeviceName()(*string) GetDeviceType()(*DeviceTypes) GetEncryptionPolicySettingState()(*ComplianceStatus) GetEncryptionReadinessState()(*EncryptionReadinessState) GetEncryptionState()(*EncryptionState) - GetFileVaultStates()(*FileVaultState) + GetFileVaultStates()(*ManagedDeviceEncryptionState_fileVaultStates) GetOsVersion()(*string) GetPolicyDetails()([]EncryptionReportPolicyDetailsable) GetTpmSpecificationVersion()(*string) GetUserPrincipalName()(*string) - SetAdvancedBitLockerStates(value *AdvancedBitLockerState)() + SetAdvancedBitLockerStates(value *ManagedDeviceEncryptionState_advancedBitLockerStates)() SetDeviceName(value *string)() SetDeviceType(value *DeviceTypes)() SetEncryptionPolicySettingState(value *ComplianceStatus)() SetEncryptionReadinessState(value *EncryptionReadinessState)() SetEncryptionState(value *EncryptionState)() - SetFileVaultStates(value *FileVaultState)() + SetFileVaultStates(value *ManagedDeviceEncryptionState_fileVaultStates)() SetOsVersion(value *string)() SetPolicyDetails(value []EncryptionReportPolicyDetailsable)() SetTpmSpecificationVersion(value *string)() diff --git a/models/managed_device_encryption_state_advanced_bit_locker_states.go b/models/managed_device_encryption_state_advanced_bit_locker_states.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managed_device_encryption_state_file_vault_states.go b/models/managed_device_encryption_state_file_vault_states.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managed_identity.go b/models/managed_identity.go index bd0f66d8afd..01cdadced88 100644 --- a/models/managed_identity.go +++ b/models/managed_identity.go @@ -105,12 +105,12 @@ func (m *ManagedIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["msiType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMsiType) + val, err := n.GetEnumValue(ParseManagedIdentity_msiType) if err != nil { return err } if val != nil { - m.SetMsiType(val.(*MsiType)) + m.SetMsiType(val.(*ManagedIdentity_msiType)) } return nil } @@ -127,13 +127,13 @@ func (m *ManagedIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return res } // GetMsiType gets the msiType property value. The possible values are: none, userAssigned, systemAssigned, unknownFutureValue. -func (m *ManagedIdentity) GetMsiType()(*MsiType) { +func (m *ManagedIdentity) GetMsiType()(*ManagedIdentity_msiType) { val, err := m.GetBackingStore().Get("msiType") if err != nil { panic(err) } if val != nil { - return val.(*MsiType) + return val.(*ManagedIdentity_msiType) } return nil } @@ -222,7 +222,7 @@ func (m *ManagedIdentity) SetFederatedTokenIssuer(value *string)() { } } // SetMsiType sets the msiType property value. The possible values are: none, userAssigned, systemAssigned, unknownFutureValue. -func (m *ManagedIdentity) SetMsiType(value *MsiType)() { +func (m *ManagedIdentity) SetMsiType(value *ManagedIdentity_msiType)() { err := m.GetBackingStore().Set("msiType", value) if err != nil { panic(err) @@ -244,12 +244,12 @@ type ManagedIdentityable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetFederatedTokenId()(*string) GetFederatedTokenIssuer()(*string) - GetMsiType()(*MsiType) + GetMsiType()(*ManagedIdentity_msiType) GetOdataType()(*string) SetAssociatedResourceId(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetFederatedTokenId(value *string)() SetFederatedTokenIssuer(value *string)() - SetMsiType(value *MsiType)() + SetMsiType(value *ManagedIdentity_msiType)() SetOdataType(value *string)() } diff --git a/models/managed_identity_msi_type.go b/models/managed_identity_msi_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/alert_rule_definition_template.go b/models/managedtenants/alert_rule_definition_template.go index 44a381e1e0a..da810e5cae3 100644 --- a/models/managedtenants/alert_rule_definition_template.go +++ b/models/managedtenants/alert_rule_definition_template.go @@ -39,13 +39,13 @@ func (m *AlertRuleDefinitionTemplate) GetBackingStore()(ie8677ce2c7e1b4c22e9c382 return m.backingStore } // GetDefaultSeverity gets the defaultSeverity property value. The defaultSeverity property -func (m *AlertRuleDefinitionTemplate) GetDefaultSeverity()(*AlertSeverity) { +func (m *AlertRuleDefinitionTemplate) GetDefaultSeverity()(*AlertRuleDefinitionTemplate_defaultSeverity) { val, err := m.GetBackingStore().Get("defaultSeverity") if err != nil { panic(err) } if val != nil { - return val.(*AlertSeverity) + return val.(*AlertRuleDefinitionTemplate_defaultSeverity) } return nil } @@ -53,12 +53,12 @@ func (m *AlertRuleDefinitionTemplate) GetDefaultSeverity()(*AlertSeverity) { func (m *AlertRuleDefinitionTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["defaultSeverity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertSeverity) + val, err := n.GetEnumValue(ParseAlertRuleDefinitionTemplate_defaultSeverity) if err != nil { return err } if val != nil { - m.SetDefaultSeverity(val.(*AlertSeverity)) + m.SetDefaultSeverity(val.(*AlertRuleDefinitionTemplate_defaultSeverity)) } return nil } @@ -120,7 +120,7 @@ func (m *AlertRuleDefinitionTemplate) SetBackingStore(value ie8677ce2c7e1b4c22e9 m.backingStore = value } // SetDefaultSeverity sets the defaultSeverity property value. The defaultSeverity property -func (m *AlertRuleDefinitionTemplate) SetDefaultSeverity(value *AlertSeverity)() { +func (m *AlertRuleDefinitionTemplate) SetDefaultSeverity(value *AlertRuleDefinitionTemplate_defaultSeverity)() { err := m.GetBackingStore().Set("defaultSeverity", value) if err != nil { panic(err) @@ -139,9 +139,9 @@ type AlertRuleDefinitionTemplateable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDefaultSeverity()(*AlertSeverity) + GetDefaultSeverity()(*AlertRuleDefinitionTemplate_defaultSeverity) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDefaultSeverity(value *AlertSeverity)() + SetDefaultSeverity(value *AlertRuleDefinitionTemplate_defaultSeverity)() SetOdataType(value *string)() } diff --git a/models/managedtenants/alert_rule_definition_template_default_severity.go b/models/managedtenants/alert_rule_definition_template_default_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/alert_severity.go b/models/managedtenants/alert_severity.go deleted file mode 100644 index 7a9979e5a9c..00000000000 --- a/models/managedtenants/alert_severity.go +++ /dev/null @@ -1,49 +0,0 @@ -package managedtenants -import ( - "errors" -) -// -type AlertSeverity int - -const ( - UNKNOWN_ALERTSEVERITY AlertSeverity = iota - INFORMATIONAL_ALERTSEVERITY - LOW_ALERTSEVERITY - MEDIUM_ALERTSEVERITY - HIGH_ALERTSEVERITY - UNKNOWNFUTUREVALUE_ALERTSEVERITY -) - -func (i AlertSeverity) String() string { - return []string{"unknown", "informational", "low", "medium", "high", "unknownFutureValue"}[i] -} -func ParseAlertSeverity(v string) (any, error) { - result := UNKNOWN_ALERTSEVERITY - switch v { - case "unknown": - result = UNKNOWN_ALERTSEVERITY - case "informational": - result = INFORMATIONAL_ALERTSEVERITY - case "low": - result = LOW_ALERTSEVERITY - case "medium": - result = MEDIUM_ALERTSEVERITY - case "high": - result = HIGH_ALERTSEVERITY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ALERTSEVERITY - default: - return 0, errors.New("Unknown AlertSeverity value: " + v) - } - return &result, nil -} -func SerializeAlertSeverity(values []AlertSeverity) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AlertSeverity) isMultiValue() bool { - return false -} diff --git a/models/managedtenants/alert_status.go b/models/managedtenants/alert_status.go deleted file mode 100644 index 5e0bbf4f2de..00000000000 --- a/models/managedtenants/alert_status.go +++ /dev/null @@ -1,49 +0,0 @@ -package managedtenants -import ( - "errors" -) -// -type AlertStatus int - -const ( - UNKNOWN_ALERTSTATUS AlertStatus = iota - NEWALERT_ALERTSTATUS - INPROGRESS_ALERTSTATUS - RESOLVED_ALERTSTATUS - DISMISSED_ALERTSTATUS - UNKNOWNFUTUREVALUE_ALERTSTATUS -) - -func (i AlertStatus) String() string { - return []string{"unknown", "newAlert", "inProgress", "resolved", "dismissed", "unknownFutureValue"}[i] -} -func ParseAlertStatus(v string) (any, error) { - result := UNKNOWN_ALERTSTATUS - switch v { - case "unknown": - result = UNKNOWN_ALERTSTATUS - case "newAlert": - result = NEWALERT_ALERTSTATUS - case "inProgress": - result = INPROGRESS_ALERTSTATUS - case "resolved": - result = RESOLVED_ALERTSTATUS - case "dismissed": - result = DISMISSED_ALERTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ALERTSTATUS - default: - return 0, errors.New("Unknown AlertStatus value: " + v) - } - return &result, nil -} -func SerializeAlertStatus(values []AlertStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AlertStatus) isMultiValue() bool { - return false -} diff --git a/models/managedtenants/delegated_privilege_status.go b/models/managedtenants/delegated_privilege_status.go deleted file mode 100644 index bd711208161..00000000000 --- a/models/managedtenants/delegated_privilege_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package managedtenants -import ( - "errors" -) -// -type DelegatedPrivilegeStatus int - -const ( - NONE_DELEGATEDPRIVILEGESTATUS DelegatedPrivilegeStatus = iota - DELEGATEDADMINPRIVILEGES_DELEGATEDPRIVILEGESTATUS - UNKNOWNFUTUREVALUE_DELEGATEDPRIVILEGESTATUS - GRANULARDELEGATEDADMINPRIVILEGES_DELEGATEDPRIVILEGESTATUS - DELEGATEDANDGRANULARDELEGETEDADMINPRIVILEGES_DELEGATEDPRIVILEGESTATUS -) - -func (i DelegatedPrivilegeStatus) String() string { - return []string{"none", "delegatedAdminPrivileges", "unknownFutureValue", "granularDelegatedAdminPrivileges", "delegatedAndGranularDelegetedAdminPrivileges"}[i] -} -func ParseDelegatedPrivilegeStatus(v string) (any, error) { - result := NONE_DELEGATEDPRIVILEGESTATUS - switch v { - case "none": - result = NONE_DELEGATEDPRIVILEGESTATUS - case "delegatedAdminPrivileges": - result = DELEGATEDADMINPRIVILEGES_DELEGATEDPRIVILEGESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DELEGATEDPRIVILEGESTATUS - case "granularDelegatedAdminPrivileges": - result = GRANULARDELEGATEDADMINPRIVILEGES_DELEGATEDPRIVILEGESTATUS - case "delegatedAndGranularDelegetedAdminPrivileges": - result = DELEGATEDANDGRANULARDELEGETEDADMINPRIVILEGES_DELEGATEDPRIVILEGESTATUS - default: - return 0, errors.New("Unknown DelegatedPrivilegeStatus value: " + v) - } - return &result, nil -} -func SerializeDelegatedPrivilegeStatus(values []DelegatedPrivilegeStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DelegatedPrivilegeStatus) isMultiValue() bool { - return false -} diff --git a/models/managedtenants/managed_tenant_alert.go b/models/managedtenants/managed_tenant_alert.go index b1050324941..5184ffb571a 100644 --- a/models/managedtenants/managed_tenant_alert.go +++ b/models/managedtenants/managed_tenant_alert.go @@ -331,22 +331,22 @@ func (m *ManagedTenantAlert) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertSeverity) + val, err := n.GetEnumValue(ParseManagedTenantAlert_severity) if err != nil { return err } if val != nil { - m.SetSeverity(val.(*AlertSeverity)) + m.SetSeverity(val.(*ManagedTenantAlert_severity)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertStatus) + val, err := n.GetEnumValue(ParseManagedTenantAlert_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AlertStatus)) + m.SetStatus(val.(*ManagedTenantAlert_status)) } return nil } @@ -406,24 +406,24 @@ func (m *ManagedTenantAlert) GetMessage()(*string) { return nil } // GetSeverity gets the severity property value. The severity property -func (m *ManagedTenantAlert) GetSeverity()(*AlertSeverity) { +func (m *ManagedTenantAlert) GetSeverity()(*ManagedTenantAlert_severity) { val, err := m.GetBackingStore().Get("severity") if err != nil { panic(err) } if val != nil { - return val.(*AlertSeverity) + return val.(*ManagedTenantAlert_severity) } return nil } // GetStatus gets the status property value. The status property -func (m *ManagedTenantAlert) GetStatus()(*AlertStatus) { +func (m *ManagedTenantAlert) GetStatus()(*ManagedTenantAlert_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AlertStatus) + return val.(*ManagedTenantAlert_status) } return nil } @@ -703,14 +703,14 @@ func (m *ManagedTenantAlert) SetMessage(value *string)() { } } // SetSeverity sets the severity property value. The severity property -func (m *ManagedTenantAlert) SetSeverity(value *AlertSeverity)() { +func (m *ManagedTenantAlert) SetSeverity(value *ManagedTenantAlert_severity)() { err := m.GetBackingStore().Set("severity", value) if err != nil { panic(err) } } // SetStatus sets the status property value. The status property -func (m *ManagedTenantAlert) SetStatus(value *AlertStatus)() { +func (m *ManagedTenantAlert) SetStatus(value *ManagedTenantAlert_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -749,8 +749,8 @@ type ManagedTenantAlertable interface { GetLastActionByUserId()(*string) GetLastActionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMessage()(*string) - GetSeverity()(*AlertSeverity) - GetStatus()(*AlertStatus) + GetSeverity()(*ManagedTenantAlert_severity) + GetStatus()(*ManagedTenantAlert_status) GetTenantId()(*string) GetTitle()(*string) SetAlertData(value AlertDataable)() @@ -768,8 +768,8 @@ type ManagedTenantAlertable interface { SetLastActionByUserId(value *string)() SetLastActionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMessage(value *string)() - SetSeverity(value *AlertSeverity)() - SetStatus(value *AlertStatus)() + SetSeverity(value *ManagedTenantAlert_severity)() + SetStatus(value *ManagedTenantAlert_status)() SetTenantId(value *string)() SetTitle(value *string)() } diff --git a/models/managedtenants/managed_tenant_alert_rule.go b/models/managedtenants/managed_tenant_alert_rule.go index e4a8d6142f1..3f010700761 100644 --- a/models/managedtenants/managed_tenant_alert_rule.go +++ b/models/managedtenants/managed_tenant_alert_rule.go @@ -208,12 +208,12 @@ func (m *ManagedTenantAlertRule) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["notificationFinalDestinations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNotificationDestination) + val, err := n.GetEnumValue(ParseManagedTenantAlertRule_notificationFinalDestinations) if err != nil { return err } if val != nil { - m.SetNotificationFinalDestinations(val.(*NotificationDestination)) + m.SetNotificationFinalDestinations(val.(*ManagedTenantAlertRule_notificationFinalDestinations)) } return nil } @@ -228,12 +228,12 @@ func (m *ManagedTenantAlertRule) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertSeverity) + val, err := n.GetEnumValue(ParseManagedTenantAlertRule_severity) if err != nil { return err } if val != nil { - m.SetSeverity(val.(*AlertSeverity)) + m.SetSeverity(val.(*ManagedTenantAlertRule_severity)) } return nil } @@ -305,13 +305,13 @@ func (m *ManagedTenantAlertRule) GetLastRunDateTime()(*i336074805fc853987abe6f7f return nil } // GetNotificationFinalDestinations gets the notificationFinalDestinations property value. The notificationFinalDestinations property -func (m *ManagedTenantAlertRule) GetNotificationFinalDestinations()(*NotificationDestination) { +func (m *ManagedTenantAlertRule) GetNotificationFinalDestinations()(*ManagedTenantAlertRule_notificationFinalDestinations) { val, err := m.GetBackingStore().Get("notificationFinalDestinations") if err != nil { panic(err) } if val != nil { - return val.(*NotificationDestination) + return val.(*ManagedTenantAlertRule_notificationFinalDestinations) } return nil } @@ -327,13 +327,13 @@ func (m *ManagedTenantAlertRule) GetRuleDefinition()(ManagedTenantAlertRuleDefin return nil } // GetSeverity gets the severity property value. The severity property -func (m *ManagedTenantAlertRule) GetSeverity()(*AlertSeverity) { +func (m *ManagedTenantAlertRule) GetSeverity()(*ManagedTenantAlertRule_severity) { val, err := m.GetBackingStore().Get("severity") if err != nil { panic(err) } if val != nil { - return val.(*AlertSeverity) + return val.(*ManagedTenantAlertRule_severity) } return nil } @@ -548,7 +548,7 @@ func (m *ManagedTenantAlertRule) SetLastRunDateTime(value *i336074805fc853987abe } } // SetNotificationFinalDestinations sets the notificationFinalDestinations property value. The notificationFinalDestinations property -func (m *ManagedTenantAlertRule) SetNotificationFinalDestinations(value *NotificationDestination)() { +func (m *ManagedTenantAlertRule) SetNotificationFinalDestinations(value *ManagedTenantAlertRule_notificationFinalDestinations)() { err := m.GetBackingStore().Set("notificationFinalDestinations", value) if err != nil { panic(err) @@ -562,7 +562,7 @@ func (m *ManagedTenantAlertRule) SetRuleDefinition(value ManagedTenantAlertRuleD } } // SetSeverity sets the severity property value. The severity property -func (m *ManagedTenantAlertRule) SetSeverity(value *AlertSeverity)() { +func (m *ManagedTenantAlertRule) SetSeverity(value *ManagedTenantAlertRule_severity)() { err := m.GetBackingStore().Set("severity", value) if err != nil { panic(err) @@ -596,9 +596,9 @@ type ManagedTenantAlertRuleable interface { GetLastActionByUserId()(*string) GetLastActionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetNotificationFinalDestinations()(*NotificationDestination) + GetNotificationFinalDestinations()(*ManagedTenantAlertRule_notificationFinalDestinations) GetRuleDefinition()(ManagedTenantAlertRuleDefinitionable) - GetSeverity()(*AlertSeverity) + GetSeverity()(*ManagedTenantAlertRule_severity) GetTargets()([]NotificationTargetable) GetTenantIds()([]TenantInfoable) SetAlertDisplayName(value *string)() @@ -611,9 +611,9 @@ type ManagedTenantAlertRuleable interface { SetLastActionByUserId(value *string)() SetLastActionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetNotificationFinalDestinations(value *NotificationDestination)() + SetNotificationFinalDestinations(value *ManagedTenantAlertRule_notificationFinalDestinations)() SetRuleDefinition(value ManagedTenantAlertRuleDefinitionable)() - SetSeverity(value *AlertSeverity)() + SetSeverity(value *ManagedTenantAlertRule_severity)() SetTargets(value []NotificationTargetable)() SetTenantIds(value []TenantInfoable)() } diff --git a/models/managedtenants/managed_tenant_alert_rule_notification_final_destinations.go b/models/managedtenants/managed_tenant_alert_rule_notification_final_destinations.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/managed_tenant_alert_rule_severity.go b/models/managedtenants/managed_tenant_alert_rule_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/managed_tenant_alert_severity.go b/models/managedtenants/managed_tenant_alert_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/managed_tenant_alert_status.go b/models/managedtenants/managed_tenant_alert_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/management_template.go b/models/managedtenants/management_template.go index 563f28f1e55..8ed4df27047 100644 --- a/models/managedtenants/management_template.go +++ b/models/managedtenants/management_template.go @@ -22,13 +22,13 @@ func CreateManagementTemplateFromDiscriminatorValue(parseNode i878a80d2330e89d26 return NewManagementTemplate(), nil } // GetCategory gets the category property value. The management category for the management template. Possible values are: custom, devices, identity, unknownFutureValue. Required. Read-only. -func (m *ManagementTemplate) GetCategory()(*ManagementCategory) { +func (m *ManagementTemplate) GetCategory()(*ManagementTemplate_category) { val, err := m.GetBackingStore().Get("category") if err != nil { panic(err) } if val != nil { - return val.(*ManagementCategory) + return val.(*ManagementTemplate_category) } return nil } @@ -80,12 +80,12 @@ func (m *ManagementTemplate) GetDisplayName()(*string) { func (m *ManagementTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagementCategory) + val, err := n.GetEnumValue(ParseManagementTemplate_category) if err != nil { return err } if val != nil { - m.SetCategory(val.(*ManagementCategory)) + m.SetCategory(val.(*ManagementTemplate_category)) } return nil } @@ -529,7 +529,7 @@ func (m *ManagementTemplate) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return nil } // SetCategory sets the category property value. The management category for the management template. Possible values are: custom, devices, identity, unknownFutureValue. Required. Read-only. -func (m *ManagementTemplate) SetCategory(value *ManagementCategory)() { +func (m *ManagementTemplate) SetCategory(value *ManagementTemplate_category)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) @@ -644,7 +644,7 @@ func (m *ManagementTemplate) SetWorkloadActions(value []WorkloadActionable)() { type ManagementTemplateable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCategory()(*ManagementCategory) + GetCategory()(*ManagementTemplate_category) GetCreatedByUserId()(*string) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDescription()(*string) @@ -660,7 +660,7 @@ type ManagementTemplateable interface { GetUserImpact()(*string) GetVersion()(*int32) GetWorkloadActions()([]WorkloadActionable) - SetCategory(value *ManagementCategory)() + SetCategory(value *ManagementTemplate_category)() SetCreatedByUserId(value *string)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() diff --git a/models/managedtenants/management_template_category.go b/models/managedtenants/management_template_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/management_template_step.go b/models/managedtenants/management_template_step.go index 1a1a8ee5a69..9616b2009a4 100644 --- a/models/managedtenants/management_template_step.go +++ b/models/managedtenants/management_template_step.go @@ -33,13 +33,13 @@ func (m *ManagementTemplateStep) GetAcceptedVersion()(ManagementTemplateStepVers return nil } // GetCategory gets the category property value. The category property -func (m *ManagementTemplateStep) GetCategory()(*ManagementCategory) { +func (m *ManagementTemplateStep) GetCategory()(*ManagementTemplateStep_category) { val, err := m.GetBackingStore().Get("category") if err != nil { panic(err) } if val != nil { - return val.(*ManagementCategory) + return val.(*ManagementTemplateStep_category) } return nil } @@ -101,12 +101,12 @@ func (m *ManagementTemplateStep) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagementCategory) + val, err := n.GetEnumValue(ParseManagementTemplateStep_category) if err != nil { return err } if val != nil { - m.SetCategory(val.(*ManagementCategory)) + m.SetCategory(val.(*ManagementTemplateStep_category)) } return nil } @@ -379,7 +379,7 @@ func (m *ManagementTemplateStep) SetAcceptedVersion(value ManagementTemplateStep } } // SetCategory sets the category property value. The category property -func (m *ManagementTemplateStep) SetCategory(value *ManagementCategory)() { +func (m *ManagementTemplateStep) SetCategory(value *ManagementTemplateStep_category)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) @@ -460,7 +460,7 @@ type ManagementTemplateStepable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAcceptedVersion()(ManagementTemplateStepVersionable) - GetCategory()(*ManagementCategory) + GetCategory()(*ManagementTemplateStep_category) GetCreatedByUserId()(*string) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDescription()(*string) @@ -472,7 +472,7 @@ type ManagementTemplateStepable interface { GetPriority()(*int32) GetVersions()([]ManagementTemplateStepVersionable) SetAcceptedVersion(value ManagementTemplateStepVersionable)() - SetCategory(value *ManagementCategory)() + SetCategory(value *ManagementTemplateStep_category)() SetCreatedByUserId(value *string)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() diff --git a/models/managedtenants/management_template_step_category.go b/models/managedtenants/management_template_step_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/notification_destination.go b/models/managedtenants/notification_destination.go deleted file mode 100644 index d21c22f545a..00000000000 --- a/models/managedtenants/notification_destination.go +++ /dev/null @@ -1,56 +0,0 @@ -package managedtenants -import ( - "errors" - "strings" -) -// -type NotificationDestination int - -const ( - NONE_NOTIFICATIONDESTINATION NotificationDestination = iota - API_NOTIFICATIONDESTINATION - EMAIL_NOTIFICATIONDESTINATION - SMS_NOTIFICATIONDESTINATION - UNKNOWNFUTUREVALUE_NOTIFICATIONDESTINATION -) - -func (i NotificationDestination) String() string { - var values []string - for p := NotificationDestination(1); p <= UNKNOWNFUTUREVALUE_NOTIFICATIONDESTINATION; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "api", "email", "sms", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseNotificationDestination(v string) (any, error) { - var result NotificationDestination - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_NOTIFICATIONDESTINATION - case "api": - result |= API_NOTIFICATIONDESTINATION - case "email": - result |= EMAIL_NOTIFICATIONDESTINATION - case "sms": - result |= SMS_NOTIFICATIONDESTINATION - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_NOTIFICATIONDESTINATION - default: - return 0, errors.New("Unknown NotificationDestination value: " + v) - } - } - return &result, nil -} -func SerializeNotificationDestination(values []NotificationDestination) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NotificationDestination) isMultiValue() bool { - return true -} diff --git a/models/managedtenants/role_assignment.go b/models/managedtenants/role_assignment.go index 738ea60c7b5..5c508f17157 100644 --- a/models/managedtenants/role_assignment.go +++ b/models/managedtenants/role_assignment.go @@ -35,13 +35,13 @@ func (m *RoleAssignment) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAssignmentType gets the assignmentType property value. The type of the admin relationship(s) associated with the role assignment. Possible values are: none, delegatedAdminPrivileges, unknownFutureValue, granularDelegatedAdminPrivileges, delegatedAndGranularDelegetedAdminPrivileges. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: granularDelegatedAdminPrivileges , delegatedAndGranularDelegetedAdminPrivileges. -func (m *RoleAssignment) GetAssignmentType()(*DelegatedPrivilegeStatus) { +func (m *RoleAssignment) GetAssignmentType()(*RoleAssignment_assignmentType) { val, err := m.GetBackingStore().Get("assignmentType") if err != nil { panic(err) } if val != nil { - return val.(*DelegatedPrivilegeStatus) + return val.(*RoleAssignment_assignmentType) } return nil } @@ -53,12 +53,12 @@ func (m *RoleAssignment) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185 func (m *RoleAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["assignmentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDelegatedPrivilegeStatus) + val, err := n.GetEnumValue(ParseRoleAssignment_assignmentType) if err != nil { return err } if val != nil { - m.SetAssignmentType(val.(*DelegatedPrivilegeStatus)) + m.SetAssignmentType(val.(*RoleAssignment_assignmentType)) } return nil } @@ -155,7 +155,7 @@ func (m *RoleAssignment) SetAdditionalData(value map[string]any)() { } } // SetAssignmentType sets the assignmentType property value. The type of the admin relationship(s) associated with the role assignment. Possible values are: none, delegatedAdminPrivileges, unknownFutureValue, granularDelegatedAdminPrivileges, delegatedAndGranularDelegetedAdminPrivileges. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: granularDelegatedAdminPrivileges , delegatedAndGranularDelegetedAdminPrivileges. -func (m *RoleAssignment) SetAssignmentType(value *DelegatedPrivilegeStatus)() { +func (m *RoleAssignment) SetAssignmentType(value *RoleAssignment_assignmentType)() { err := m.GetBackingStore().Set("assignmentType", value) if err != nil { panic(err) @@ -184,11 +184,11 @@ type RoleAssignmentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAssignmentType()(*DelegatedPrivilegeStatus) + GetAssignmentType()(*RoleAssignment_assignmentType) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetRoles()([]RoleDefinitionable) - SetAssignmentType(value *DelegatedPrivilegeStatus)() + SetAssignmentType(value *RoleAssignment_assignmentType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetRoles(value []RoleDefinitionable)() diff --git a/models/managedtenants/role_assignment_assignment_type.go b/models/managedtenants/role_assignment_assignment_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/tenant_onboarding_eligibility_reason.go b/models/managedtenants/tenant_onboarding_eligibility_reason.go deleted file mode 100644 index b0d173fa85b..00000000000 --- a/models/managedtenants/tenant_onboarding_eligibility_reason.go +++ /dev/null @@ -1,49 +0,0 @@ -package managedtenants -import ( - "errors" -) -// -type TenantOnboardingEligibilityReason int - -const ( - NONE_TENANTONBOARDINGELIGIBILITYREASON TenantOnboardingEligibilityReason = iota - CONTRACTTYPE_TENANTONBOARDINGELIGIBILITYREASON - DELEGATEDADMINPRIVILEGES_TENANTONBOARDINGELIGIBILITYREASON - USERSCOUNT_TENANTONBOARDINGELIGIBILITYREASON - LICENSE_TENANTONBOARDINGELIGIBILITYREASON - UNKNOWNFUTUREVALUE_TENANTONBOARDINGELIGIBILITYREASON -) - -func (i TenantOnboardingEligibilityReason) String() string { - return []string{"none", "contractType", "delegatedAdminPrivileges", "usersCount", "license", "unknownFutureValue"}[i] -} -func ParseTenantOnboardingEligibilityReason(v string) (any, error) { - result := NONE_TENANTONBOARDINGELIGIBILITYREASON - switch v { - case "none": - result = NONE_TENANTONBOARDINGELIGIBILITYREASON - case "contractType": - result = CONTRACTTYPE_TENANTONBOARDINGELIGIBILITYREASON - case "delegatedAdminPrivileges": - result = DELEGATEDADMINPRIVILEGES_TENANTONBOARDINGELIGIBILITYREASON - case "usersCount": - result = USERSCOUNT_TENANTONBOARDINGELIGIBILITYREASON - case "license": - result = LICENSE_TENANTONBOARDINGELIGIBILITYREASON - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TENANTONBOARDINGELIGIBILITYREASON - default: - return 0, errors.New("Unknown TenantOnboardingEligibilityReason value: " + v) - } - return &result, nil -} -func SerializeTenantOnboardingEligibilityReason(values []TenantOnboardingEligibilityReason) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TenantOnboardingEligibilityReason) isMultiValue() bool { - return false -} diff --git a/models/managedtenants/tenant_onboarding_status.go b/models/managedtenants/tenant_onboarding_status.go deleted file mode 100644 index 0e27fef1dd1..00000000000 --- a/models/managedtenants/tenant_onboarding_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package managedtenants -import ( - "errors" -) -// -type TenantOnboardingStatus int - -const ( - INELIGIBLE_TENANTONBOARDINGSTATUS TenantOnboardingStatus = iota - INPROCESS_TENANTONBOARDINGSTATUS - ACTIVE_TENANTONBOARDINGSTATUS - INACTIVE_TENANTONBOARDINGSTATUS - UNKNOWNFUTUREVALUE_TENANTONBOARDINGSTATUS -) - -func (i TenantOnboardingStatus) String() string { - return []string{"ineligible", "inProcess", "active", "inactive", "unknownFutureValue"}[i] -} -func ParseTenantOnboardingStatus(v string) (any, error) { - result := INELIGIBLE_TENANTONBOARDINGSTATUS - switch v { - case "ineligible": - result = INELIGIBLE_TENANTONBOARDINGSTATUS - case "inProcess": - result = INPROCESS_TENANTONBOARDINGSTATUS - case "active": - result = ACTIVE_TENANTONBOARDINGSTATUS - case "inactive": - result = INACTIVE_TENANTONBOARDINGSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TENANTONBOARDINGSTATUS - default: - return 0, errors.New("Unknown TenantOnboardingStatus value: " + v) - } - return &result, nil -} -func SerializeTenantOnboardingStatus(values []TenantOnboardingStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TenantOnboardingStatus) isMultiValue() bool { - return false -} diff --git a/models/managedtenants/tenant_status_information.go b/models/managedtenants/tenant_status_information.go index 67b750adb78..0cc969b38c6 100644 --- a/models/managedtenants/tenant_status_information.go +++ b/models/managedtenants/tenant_status_information.go @@ -40,13 +40,13 @@ func (m *TenantStatusInformation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd return m.backingStore } // GetDelegatedPrivilegeStatus gets the delegatedPrivilegeStatus property value. The status of the delegated admin privilege relationship between the managing entity and the managed tenant. Possible values are: none, delegatedAdminPrivileges, unknownFutureValue, granularDelegatedAdminPrivileges, delegatedAndGranularDelegetedAdminPrivileges. You must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: granularDelegatedAdminPrivileges , delegatedAndGranularDelegetedAdminPrivileges. Optional. Read-only. -func (m *TenantStatusInformation) GetDelegatedPrivilegeStatus()(*DelegatedPrivilegeStatus) { +func (m *TenantStatusInformation) GetDelegatedPrivilegeStatus()(*TenantStatusInformation_delegatedPrivilegeStatus) { val, err := m.GetBackingStore().Get("delegatedPrivilegeStatus") if err != nil { panic(err) } if val != nil { - return val.(*DelegatedPrivilegeStatus) + return val.(*TenantStatusInformation_delegatedPrivilegeStatus) } return nil } @@ -54,12 +54,12 @@ func (m *TenantStatusInformation) GetDelegatedPrivilegeStatus()(*DelegatedPrivil func (m *TenantStatusInformation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["delegatedPrivilegeStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDelegatedPrivilegeStatus) + val, err := n.GetEnumValue(ParseTenantStatusInformation_delegatedPrivilegeStatus) if err != nil { return err } if val != nil { - m.SetDelegatedPrivilegeStatus(val.(*DelegatedPrivilegeStatus)) + m.SetDelegatedPrivilegeStatus(val.(*TenantStatusInformation_delegatedPrivilegeStatus)) } return nil } @@ -124,22 +124,22 @@ func (m *TenantStatusInformation) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["onboardingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTenantOnboardingStatus) + val, err := n.GetEnumValue(ParseTenantStatusInformation_onboardingStatus) if err != nil { return err } if val != nil { - m.SetOnboardingStatus(val.(*TenantOnboardingStatus)) + m.SetOnboardingStatus(val.(*TenantStatusInformation_onboardingStatus)) } return nil } res["tenantOnboardingEligibilityReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTenantOnboardingEligibilityReason) + val, err := n.GetEnumValue(ParseTenantStatusInformation_tenantOnboardingEligibilityReason) if err != nil { return err } if val != nil { - m.SetTenantOnboardingEligibilityReason(val.(*TenantOnboardingEligibilityReason)) + m.SetTenantOnboardingEligibilityReason(val.(*TenantStatusInformation_tenantOnboardingEligibilityReason)) } return nil } @@ -228,24 +228,24 @@ func (m *TenantStatusInformation) GetOnboardedDateTime()(*i336074805fc853987abe6 return nil } // GetOnboardingStatus gets the onboardingStatus property value. The onboarding status for the managed tenant.. Possible values are: ineligible, inProcess, active, inactive, unknownFutureValue. Optional. Read-only. -func (m *TenantStatusInformation) GetOnboardingStatus()(*TenantOnboardingStatus) { +func (m *TenantStatusInformation) GetOnboardingStatus()(*TenantStatusInformation_onboardingStatus) { val, err := m.GetBackingStore().Get("onboardingStatus") if err != nil { panic(err) } if val != nil { - return val.(*TenantOnboardingStatus) + return val.(*TenantStatusInformation_onboardingStatus) } return nil } // GetTenantOnboardingEligibilityReason gets the tenantOnboardingEligibilityReason property value. Organization's onboarding eligibility reason in Microsoft 365 Lighthouse.. Possible values are: none, contractType, delegatedAdminPrivileges,usersCount,license and unknownFutureValue. Optional. Read-only. -func (m *TenantStatusInformation) GetTenantOnboardingEligibilityReason()(*TenantOnboardingEligibilityReason) { +func (m *TenantStatusInformation) GetTenantOnboardingEligibilityReason()(*TenantStatusInformation_tenantOnboardingEligibilityReason) { val, err := m.GetBackingStore().Get("tenantOnboardingEligibilityReason") if err != nil { panic(err) } if val != nil { - return val.(*TenantOnboardingEligibilityReason) + return val.(*TenantStatusInformation_tenantOnboardingEligibilityReason) } return nil } @@ -351,7 +351,7 @@ func (m *TenantStatusInformation) SetBackingStore(value ie8677ce2c7e1b4c22e9c382 m.backingStore = value } // SetDelegatedPrivilegeStatus sets the delegatedPrivilegeStatus property value. The status of the delegated admin privilege relationship between the managing entity and the managed tenant. Possible values are: none, delegatedAdminPrivileges, unknownFutureValue, granularDelegatedAdminPrivileges, delegatedAndGranularDelegetedAdminPrivileges. You must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: granularDelegatedAdminPrivileges , delegatedAndGranularDelegetedAdminPrivileges. Optional. Read-only. -func (m *TenantStatusInformation) SetDelegatedPrivilegeStatus(value *DelegatedPrivilegeStatus)() { +func (m *TenantStatusInformation) SetDelegatedPrivilegeStatus(value *TenantStatusInformation_delegatedPrivilegeStatus)() { err := m.GetBackingStore().Set("delegatedPrivilegeStatus", value) if err != nil { panic(err) @@ -400,14 +400,14 @@ func (m *TenantStatusInformation) SetOnboardedDateTime(value *i336074805fc853987 } } // SetOnboardingStatus sets the onboardingStatus property value. The onboarding status for the managed tenant.. Possible values are: ineligible, inProcess, active, inactive, unknownFutureValue. Optional. Read-only. -func (m *TenantStatusInformation) SetOnboardingStatus(value *TenantOnboardingStatus)() { +func (m *TenantStatusInformation) SetOnboardingStatus(value *TenantStatusInformation_onboardingStatus)() { err := m.GetBackingStore().Set("onboardingStatus", value) if err != nil { panic(err) } } // SetTenantOnboardingEligibilityReason sets the tenantOnboardingEligibilityReason property value. Organization's onboarding eligibility reason in Microsoft 365 Lighthouse.. Possible values are: none, contractType, delegatedAdminPrivileges,usersCount,license and unknownFutureValue. Optional. Read-only. -func (m *TenantStatusInformation) SetTenantOnboardingEligibilityReason(value *TenantOnboardingEligibilityReason)() { +func (m *TenantStatusInformation) SetTenantOnboardingEligibilityReason(value *TenantStatusInformation_tenantOnboardingEligibilityReason)() { err := m.GetBackingStore().Set("tenantOnboardingEligibilityReason", value) if err != nil { panic(err) @@ -426,25 +426,25 @@ type TenantStatusInformationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDelegatedPrivilegeStatus()(*DelegatedPrivilegeStatus) + GetDelegatedPrivilegeStatus()(*TenantStatusInformation_delegatedPrivilegeStatus) GetLastDelegatedPrivilegeRefreshDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOdataType()(*string) GetOffboardedByUserId()(*string) GetOffboardedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOnboardedByUserId()(*string) GetOnboardedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetOnboardingStatus()(*TenantOnboardingStatus) - GetTenantOnboardingEligibilityReason()(*TenantOnboardingEligibilityReason) + GetOnboardingStatus()(*TenantStatusInformation_onboardingStatus) + GetTenantOnboardingEligibilityReason()(*TenantStatusInformation_tenantOnboardingEligibilityReason) GetWorkloadStatuses()([]WorkloadStatusable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDelegatedPrivilegeStatus(value *DelegatedPrivilegeStatus)() + SetDelegatedPrivilegeStatus(value *TenantStatusInformation_delegatedPrivilegeStatus)() SetLastDelegatedPrivilegeRefreshDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOdataType(value *string)() SetOffboardedByUserId(value *string)() SetOffboardedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOnboardedByUserId(value *string)() SetOnboardedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetOnboardingStatus(value *TenantOnboardingStatus)() - SetTenantOnboardingEligibilityReason(value *TenantOnboardingEligibilityReason)() + SetOnboardingStatus(value *TenantStatusInformation_onboardingStatus)() + SetTenantOnboardingEligibilityReason(value *TenantStatusInformation_tenantOnboardingEligibilityReason)() SetWorkloadStatuses(value []WorkloadStatusable)() } diff --git a/models/managedtenants/tenant_status_information_delegated_privilege_status.go b/models/managedtenants/tenant_status_information_delegated_privilege_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/tenant_status_information_onboarding_status.go b/models/managedtenants/tenant_status_information_onboarding_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/tenant_status_information_tenant_onboarding_eligibility_reason.go b/models/managedtenants/tenant_status_information_tenant_onboarding_eligibility_reason.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/managedtenants/workload_action.go b/models/managedtenants/workload_action.go index dabc6f3688c..7ba947cee76 100644 --- a/models/managedtenants/workload_action.go +++ b/models/managedtenants/workload_action.go @@ -50,13 +50,13 @@ func (m *WorkloadAction) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185 return m.backingStore } // GetCategory gets the category property value. The category for the workload action. Possible values are: automated, manual, unknownFutureValue. Optional. Read-only. -func (m *WorkloadAction) GetCategory()(*WorkloadActionCategory) { +func (m *WorkloadAction) GetCategory()(*WorkloadAction_category) { val, err := m.GetBackingStore().Get("category") if err != nil { panic(err) } if val != nil { - return val.(*WorkloadActionCategory) + return val.(*WorkloadAction_category) } return nil } @@ -96,12 +96,12 @@ func (m *WorkloadAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWorkloadActionCategory) + val, err := n.GetEnumValue(ParseWorkloadAction_category) if err != nil { return err } if val != nil { - m.SetCategory(val.(*WorkloadActionCategory)) + m.SetCategory(val.(*WorkloadAction_category)) } return nil } @@ -307,7 +307,7 @@ func (m *WorkloadAction) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d4 m.backingStore = value } // SetCategory sets the category property value. The category for the workload action. Possible values are: automated, manual, unknownFutureValue. Optional. Read-only. -func (m *WorkloadAction) SetCategory(value *WorkloadActionCategory)() { +func (m *WorkloadAction) SetCategory(value *WorkloadAction_category)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) @@ -362,7 +362,7 @@ type WorkloadActionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActionId()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCategory()(*WorkloadActionCategory) + GetCategory()(*WorkloadAction_category) GetDescription()(*string) GetDisplayName()(*string) GetLicenses()([]string) @@ -371,7 +371,7 @@ type WorkloadActionable interface { GetSettings()([]Settingable) SetActionId(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCategory(value *WorkloadActionCategory)() + SetCategory(value *WorkloadAction_category)() SetDescription(value *string)() SetDisplayName(value *string)() SetLicenses(value []string)() diff --git a/models/managedtenants/workload_action_category.go b/models/managedtenants/workload_action_category.go index a0f9fd01cc9..e69de29bb2d 100644 --- a/models/managedtenants/workload_action_category.go +++ b/models/managedtenants/workload_action_category.go @@ -1,40 +0,0 @@ -package managedtenants -import ( - "errors" -) -// -type WorkloadActionCategory int - -const ( - AUTOMATED_WORKLOADACTIONCATEGORY WorkloadActionCategory = iota - MANUAL_WORKLOADACTIONCATEGORY - UNKNOWNFUTUREVALUE_WORKLOADACTIONCATEGORY -) - -func (i WorkloadActionCategory) String() string { - return []string{"automated", "manual", "unknownFutureValue"}[i] -} -func ParseWorkloadActionCategory(v string) (any, error) { - result := AUTOMATED_WORKLOADACTIONCATEGORY - switch v { - case "automated": - result = AUTOMATED_WORKLOADACTIONCATEGORY - case "manual": - result = MANUAL_WORKLOADACTIONCATEGORY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_WORKLOADACTIONCATEGORY - default: - return 0, errors.New("Unknown WorkloadActionCategory value: " + v) - } - return &result, nil -} -func SerializeWorkloadActionCategory(values []WorkloadActionCategory) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WorkloadActionCategory) isMultiValue() bool { - return false -} diff --git a/models/matching_dlp_rule.go b/models/matching_dlp_rule.go index 2395847edfb..5935948c362 100644 --- a/models/matching_dlp_rule.go +++ b/models/matching_dlp_rule.go @@ -129,12 +129,12 @@ func (m *MatchingDlpRule) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["ruleMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRuleMode) + val, err := n.GetEnumValue(ParseMatchingDlpRule_ruleMode) if err != nil { return err } if val != nil { - m.SetRuleMode(val.(*RuleMode)) + m.SetRuleMode(val.(*MatchingDlpRule_ruleMode)) } return nil } @@ -217,13 +217,13 @@ func (m *MatchingDlpRule) GetRuleId()(*string) { return nil } // GetRuleMode gets the ruleMode property value. The ruleMode property -func (m *MatchingDlpRule) GetRuleMode()(*RuleMode) { +func (m *MatchingDlpRule) GetRuleMode()(*MatchingDlpRule_ruleMode) { val, err := m.GetBackingStore().Get("ruleMode") if err != nil { panic(err) } if val != nil { - return val.(*RuleMode) + return val.(*MatchingDlpRule_ruleMode) } return nil } @@ -370,7 +370,7 @@ func (m *MatchingDlpRule) SetRuleId(value *string)() { } } // SetRuleMode sets the ruleMode property value. The ruleMode property -func (m *MatchingDlpRule) SetRuleMode(value *RuleMode)() { +func (m *MatchingDlpRule) SetRuleMode(value *MatchingDlpRule_ruleMode)() { err := m.GetBackingStore().Set("ruleMode", value) if err != nil { panic(err) @@ -396,7 +396,7 @@ type MatchingDlpRuleable interface { GetPolicyName()(*string) GetPriority()(*int32) GetRuleId()(*string) - GetRuleMode()(*RuleMode) + GetRuleMode()(*MatchingDlpRule_ruleMode) GetRuleName()(*string) SetActions(value []DlpActionInfoable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() @@ -406,6 +406,6 @@ type MatchingDlpRuleable interface { SetPolicyName(value *string)() SetPriority(value *int32)() SetRuleId(value *string)() - SetRuleMode(value *RuleMode)() + SetRuleMode(value *MatchingDlpRule_ruleMode)() SetRuleName(value *string)() } diff --git a/models/matching_dlp_rule_rule_mode.go b/models/matching_dlp_rule_rule_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/matching_label.go b/models/matching_label.go index fe622964c94..c5e06067706 100644 --- a/models/matching_label.go +++ b/models/matching_label.go @@ -35,13 +35,13 @@ func (m *MatchingLabel) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetApplicationMode gets the applicationMode property value. The applicationMode property -func (m *MatchingLabel) GetApplicationMode()(*ApplicationMode) { +func (m *MatchingLabel) GetApplicationMode()(*MatchingLabel_applicationMode) { val, err := m.GetBackingStore().Get("applicationMode") if err != nil { panic(err) } if val != nil { - return val.(*ApplicationMode) + return val.(*MatchingLabel_applicationMode) } return nil } @@ -75,12 +75,12 @@ func (m *MatchingLabel) GetDisplayName()(*string) { func (m *MatchingLabel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["applicationMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseApplicationMode) + val, err := n.GetEnumValue(ParseMatchingLabel_applicationMode) if err != nil { return err } if val != nil { - m.SetApplicationMode(val.(*ApplicationMode)) + m.SetApplicationMode(val.(*MatchingLabel_applicationMode)) } return nil } @@ -371,7 +371,7 @@ func (m *MatchingLabel) SetAdditionalData(value map[string]any)() { } } // SetApplicationMode sets the applicationMode property value. The applicationMode property -func (m *MatchingLabel) SetApplicationMode(value *ApplicationMode)() { +func (m *MatchingLabel) SetApplicationMode(value *MatchingLabel_applicationMode)() { err := m.GetBackingStore().Set("applicationMode", value) if err != nil { panic(err) @@ -456,7 +456,7 @@ type MatchingLabelable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetApplicationMode()(*ApplicationMode) + GetApplicationMode()(*MatchingLabel_applicationMode) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDescription()(*string) GetDisplayName()(*string) @@ -468,7 +468,7 @@ type MatchingLabelable interface { GetPolicyTip()(*string) GetPriority()(*int32) GetToolTip()(*string) - SetApplicationMode(value *ApplicationMode)() + SetApplicationMode(value *MatchingLabel_applicationMode)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDescription(value *string)() SetDisplayName(value *string)() diff --git a/models/matching_label_application_mode.go b/models/matching_label_application_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/media_source.go b/models/media_source.go index e1805384be1..b3d0d6fe98d 100644 --- a/models/media_source.go +++ b/models/media_source.go @@ -39,13 +39,13 @@ func (m *MediaSource) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424 return m.backingStore } // GetContentCategory gets the contentCategory property value. Enumeration value that indicates the media content category. -func (m *MediaSource) GetContentCategory()(*MediaSourceContentCategory) { +func (m *MediaSource) GetContentCategory()(*MediaSource_contentCategory) { val, err := m.GetBackingStore().Get("contentCategory") if err != nil { panic(err) } if val != nil { - return val.(*MediaSourceContentCategory) + return val.(*MediaSource_contentCategory) } return nil } @@ -53,12 +53,12 @@ func (m *MediaSource) GetContentCategory()(*MediaSourceContentCategory) { func (m *MediaSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["contentCategory"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMediaSourceContentCategory) + val, err := n.GetEnumValue(ParseMediaSource_contentCategory) if err != nil { return err } if val != nil { - m.SetContentCategory(val.(*MediaSourceContentCategory)) + m.SetContentCategory(val.(*MediaSource_contentCategory)) } return nil } @@ -120,7 +120,7 @@ func (m *MediaSource) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d4118 m.backingStore = value } // SetContentCategory sets the contentCategory property value. Enumeration value that indicates the media content category. -func (m *MediaSource) SetContentCategory(value *MediaSourceContentCategory)() { +func (m *MediaSource) SetContentCategory(value *MediaSource_contentCategory)() { err := m.GetBackingStore().Set("contentCategory", value) if err != nil { panic(err) @@ -139,9 +139,9 @@ type MediaSourceable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetContentCategory()(*MediaSourceContentCategory) + GetContentCategory()(*MediaSource_contentCategory) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetContentCategory(value *MediaSourceContentCategory)() + SetContentCategory(value *MediaSource_contentCategory)() SetOdataType(value *string)() } diff --git a/models/media_source_content_category.go b/models/media_source_content_category.go index 1866cda55dc..e69de29bb2d 100644 --- a/models/media_source_content_category.go +++ b/models/media_source_content_category.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type MediaSourceContentCategory int - -const ( - MEETING_MEDIASOURCECONTENTCATEGORY MediaSourceContentCategory = iota - LIVESTREAM_MEDIASOURCECONTENTCATEGORY - PRESENTATION_MEDIASOURCECONTENTCATEGORY - SCREENRECORDING_MEDIASOURCECONTENTCATEGORY - UNKNOWNFUTUREVALUE_MEDIASOURCECONTENTCATEGORY -) - -func (i MediaSourceContentCategory) String() string { - return []string{"meeting", "liveStream", "presentation", "screenRecording", "unknownFutureValue"}[i] -} -func ParseMediaSourceContentCategory(v string) (any, error) { - result := MEETING_MEDIASOURCECONTENTCATEGORY - switch v { - case "meeting": - result = MEETING_MEDIASOURCECONTENTCATEGORY - case "liveStream": - result = LIVESTREAM_MEDIASOURCECONTENTCATEGORY - case "presentation": - result = PRESENTATION_MEDIASOURCECONTENTCATEGORY - case "screenRecording": - result = SCREENRECORDING_MEDIASOURCECONTENTCATEGORY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MEDIASOURCECONTENTCATEGORY - default: - return 0, errors.New("Unknown MediaSourceContentCategory value: " + v) - } - return &result, nil -} -func SerializeMediaSourceContentCategory(values []MediaSourceContentCategory) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MediaSourceContentCategory) isMultiValue() bool { - return false -} diff --git a/models/media_state.go b/models/media_state.go deleted file mode 100644 index 862b6cefc25..00000000000 --- a/models/media_state.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type MediaState int - -const ( - ACTIVE_MEDIASTATE MediaState = iota - INACTIVE_MEDIASTATE - UNKNOWNFUTUREVALUE_MEDIASTATE -) - -func (i MediaState) String() string { - return []string{"active", "inactive", "unknownFutureValue"}[i] -} -func ParseMediaState(v string) (any, error) { - result := ACTIVE_MEDIASTATE - switch v { - case "active": - result = ACTIVE_MEDIASTATE - case "inactive": - result = INACTIVE_MEDIASTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MEDIASTATE - default: - return 0, errors.New("Unknown MediaState value: " + v) - } - return &result, nil -} -func SerializeMediaState(values []MediaState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MediaState) isMultiValue() bool { - return false -} diff --git a/models/meeting_audience.go b/models/meeting_audience.go deleted file mode 100644 index fb86e54dc2d..00000000000 --- a/models/meeting_audience.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type MeetingAudience int - -const ( - EVERYONE_MEETINGAUDIENCE MeetingAudience = iota - ORGANIZATION_MEETINGAUDIENCE - UNKNOWNFUTUREVALUE_MEETINGAUDIENCE -) - -func (i MeetingAudience) String() string { - return []string{"everyone", "organization", "unknownFutureValue"}[i] -} -func ParseMeetingAudience(v string) (any, error) { - result := EVERYONE_MEETINGAUDIENCE - switch v { - case "everyone": - result = EVERYONE_MEETINGAUDIENCE - case "organization": - result = ORGANIZATION_MEETINGAUDIENCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MEETINGAUDIENCE - default: - return 0, errors.New("Unknown MeetingAudience value: " + v) - } - return &result, nil -} -func SerializeMeetingAudience(values []MeetingAudience) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MeetingAudience) isMultiValue() bool { - return false -} diff --git a/models/meeting_capabilities.go b/models/meeting_capabilities.go deleted file mode 100644 index ce59e519548..00000000000 --- a/models/meeting_capabilities.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type MeetingCapabilities int - -const ( - QUESTIONANDANSWER_MEETINGCAPABILITIES MeetingCapabilities = iota - UNKNOWNFUTUREVALUE_MEETINGCAPABILITIES -) - -func (i MeetingCapabilities) String() string { - return []string{"questionAndAnswer", "unknownFutureValue"}[i] -} -func ParseMeetingCapabilities(v string) (any, error) { - result := QUESTIONANDANSWER_MEETINGCAPABILITIES - switch v { - case "questionAndAnswer": - result = QUESTIONANDANSWER_MEETINGCAPABILITIES - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MEETINGCAPABILITIES - default: - return 0, errors.New("Unknown MeetingCapabilities value: " + v) - } - return &result, nil -} -func SerializeMeetingCapabilities(values []MeetingCapabilities) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MeetingCapabilities) isMultiValue() bool { - return false -} diff --git a/models/meeting_chat_history_default_mode.go b/models/meeting_chat_history_default_mode.go deleted file mode 100644 index a1f37ebd622..00000000000 --- a/models/meeting_chat_history_default_mode.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type MeetingChatHistoryDefaultMode int - -const ( - NONE_MEETINGCHATHISTORYDEFAULTMODE MeetingChatHistoryDefaultMode = iota - ALL_MEETINGCHATHISTORYDEFAULTMODE - UNKNOWNFUTUREVALUE_MEETINGCHATHISTORYDEFAULTMODE -) - -func (i MeetingChatHistoryDefaultMode) String() string { - return []string{"none", "all", "unknownFutureValue"}[i] -} -func ParseMeetingChatHistoryDefaultMode(v string) (any, error) { - result := NONE_MEETINGCHATHISTORYDEFAULTMODE - switch v { - case "none": - result = NONE_MEETINGCHATHISTORYDEFAULTMODE - case "all": - result = ALL_MEETINGCHATHISTORYDEFAULTMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MEETINGCHATHISTORYDEFAULTMODE - default: - return 0, errors.New("Unknown MeetingChatHistoryDefaultMode value: " + v) - } - return &result, nil -} -func SerializeMeetingChatHistoryDefaultMode(values []MeetingChatHistoryDefaultMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MeetingChatHistoryDefaultMode) isMultiValue() bool { - return false -} diff --git a/models/meeting_chat_mode.go b/models/meeting_chat_mode.go deleted file mode 100644 index 70f5af62fe9..00000000000 --- a/models/meeting_chat_mode.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type MeetingChatMode int - -const ( - ENABLED_MEETINGCHATMODE MeetingChatMode = iota - DISABLED_MEETINGCHATMODE - LIMITED_MEETINGCHATMODE - UNKNOWNFUTUREVALUE_MEETINGCHATMODE -) - -func (i MeetingChatMode) String() string { - return []string{"enabled", "disabled", "limited", "unknownFutureValue"}[i] -} -func ParseMeetingChatMode(v string) (any, error) { - result := ENABLED_MEETINGCHATMODE - switch v { - case "enabled": - result = ENABLED_MEETINGCHATMODE - case "disabled": - result = DISABLED_MEETINGCHATMODE - case "limited": - result = LIMITED_MEETINGCHATMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MEETINGCHATMODE - default: - return 0, errors.New("Unknown MeetingChatMode value: " + v) - } - return &result, nil -} -func SerializeMeetingChatMode(values []MeetingChatMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MeetingChatMode) isMultiValue() bool { - return false -} diff --git a/models/meeting_message_type.go b/models/meeting_message_type.go deleted file mode 100644 index cafd76ee704..00000000000 --- a/models/meeting_message_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type MeetingMessageType int - -const ( - NONE_MEETINGMESSAGETYPE MeetingMessageType = iota - MEETINGREQUEST_MEETINGMESSAGETYPE - MEETINGCANCELLED_MEETINGMESSAGETYPE - MEETINGACCEPTED_MEETINGMESSAGETYPE - MEETINGTENTATIVELYACCEPTED_MEETINGMESSAGETYPE - MEETINGDECLINED_MEETINGMESSAGETYPE -) - -func (i MeetingMessageType) String() string { - return []string{"none", "meetingRequest", "meetingCancelled", "meetingAccepted", "meetingTentativelyAccepted", "meetingDeclined"}[i] -} -func ParseMeetingMessageType(v string) (any, error) { - result := NONE_MEETINGMESSAGETYPE - switch v { - case "none": - result = NONE_MEETINGMESSAGETYPE - case "meetingRequest": - result = MEETINGREQUEST_MEETINGMESSAGETYPE - case "meetingCancelled": - result = MEETINGCANCELLED_MEETINGMESSAGETYPE - case "meetingAccepted": - result = MEETINGACCEPTED_MEETINGMESSAGETYPE - case "meetingTentativelyAccepted": - result = MEETINGTENTATIVELYACCEPTED_MEETINGMESSAGETYPE - case "meetingDeclined": - result = MEETINGDECLINED_MEETINGMESSAGETYPE - default: - return 0, errors.New("Unknown MeetingMessageType value: " + v) - } - return &result, nil -} -func SerializeMeetingMessageType(values []MeetingMessageType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MeetingMessageType) isMultiValue() bool { - return false -} diff --git a/models/meeting_participant_info.go b/models/meeting_participant_info.go index 969b6fff64c..ea972a6a4ad 100644 --- a/models/meeting_participant_info.go +++ b/models/meeting_participant_info.go @@ -80,12 +80,12 @@ func (m *MeetingParticipantInfo) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnlineMeetingRole) + val, err := n.GetEnumValue(ParseMeetingParticipantInfo_role) if err != nil { return err } if val != nil { - m.SetRole(val.(*OnlineMeetingRole)) + m.SetRole(val.(*MeetingParticipantInfo_role)) } return nil } @@ -124,13 +124,13 @@ func (m *MeetingParticipantInfo) GetOdataType()(*string) { return nil } // GetRole gets the role property value. Specifies the participant's role in the meeting. -func (m *MeetingParticipantInfo) GetRole()(*OnlineMeetingRole) { +func (m *MeetingParticipantInfo) GetRole()(*MeetingParticipantInfo_role) { val, err := m.GetBackingStore().Get("role") if err != nil { panic(err) } if val != nil { - return val.(*OnlineMeetingRole) + return val.(*MeetingParticipantInfo_role) } return nil } @@ -206,7 +206,7 @@ func (m *MeetingParticipantInfo) SetOdataType(value *string)() { } } // SetRole sets the role property value. Specifies the participant's role in the meeting. -func (m *MeetingParticipantInfo) SetRole(value *OnlineMeetingRole)() { +func (m *MeetingParticipantInfo) SetRole(value *MeetingParticipantInfo_role)() { err := m.GetBackingStore().Set("role", value) if err != nil { panic(err) @@ -227,11 +227,11 @@ type MeetingParticipantInfoable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetIdentity()(IdentitySetable) GetOdataType()(*string) - GetRole()(*OnlineMeetingRole) + GetRole()(*MeetingParticipantInfo_role) GetUpn()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetIdentity(value IdentitySetable)() SetOdataType(value *string)() - SetRole(value *OnlineMeetingRole)() + SetRole(value *MeetingParticipantInfo_role)() SetUpn(value *string)() } diff --git a/models/meeting_participant_info_role.go b/models/meeting_participant_info_role.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/meeting_registrant.go b/models/meeting_registrant.go index 280f00bbd58..25cc9b448c7 100644 --- a/models/meeting_registrant.go +++ b/models/meeting_registrant.go @@ -104,12 +104,12 @@ func (m *MeetingRegistrant) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMeetingRegistrantStatus) + val, err := n.GetEnumValue(ParseMeetingRegistrant_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*MeetingRegistrantStatus)) + m.SetStatus(val.(*MeetingRegistrant_status)) } return nil } @@ -149,13 +149,13 @@ func (m *MeetingRegistrant) GetRegistrationDateTime()(*i336074805fc853987abe6f7f return nil } // GetStatus gets the status property value. The registration status of the registrant. Read-only. -func (m *MeetingRegistrant) GetStatus()(*MeetingRegistrantStatus) { +func (m *MeetingRegistrant) GetStatus()(*MeetingRegistrant_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*MeetingRegistrantStatus) + return val.(*MeetingRegistrant_status) } return nil } @@ -246,7 +246,7 @@ func (m *MeetingRegistrant) SetRegistrationDateTime(value *i336074805fc853987abe } } // SetStatus sets the status property value. The registration status of the registrant. Read-only. -func (m *MeetingRegistrant) SetStatus(value *MeetingRegistrantStatus)() { +func (m *MeetingRegistrant) SetStatus(value *MeetingRegistrant_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -261,11 +261,11 @@ type MeetingRegistrantable interface { GetFirstName()(*string) GetLastName()(*string) GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*MeetingRegistrantStatus) + GetStatus()(*MeetingRegistrant_status) SetCustomQuestionAnswers(value []CustomQuestionAnswerable)() SetEmail(value *string)() SetFirstName(value *string)() SetLastName(value *string)() SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *MeetingRegistrantStatus)() + SetStatus(value *MeetingRegistrant_status)() } diff --git a/models/meeting_registrant_status.go b/models/meeting_registrant_status.go index 9633582de97..e69de29bb2d 100644 --- a/models/meeting_registrant_status.go +++ b/models/meeting_registrant_status.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type MeetingRegistrantStatus int - -const ( - REGISTERED_MEETINGREGISTRANTSTATUS MeetingRegistrantStatus = iota - CANCELED_MEETINGREGISTRANTSTATUS - PROCESSING_MEETINGREGISTRANTSTATUS - UNKNOWNFUTUREVALUE_MEETINGREGISTRANTSTATUS -) - -func (i MeetingRegistrantStatus) String() string { - return []string{"registered", "canceled", "processing", "unknownFutureValue"}[i] -} -func ParseMeetingRegistrantStatus(v string) (any, error) { - result := REGISTERED_MEETINGREGISTRANTSTATUS - switch v { - case "registered": - result = REGISTERED_MEETINGREGISTRANTSTATUS - case "canceled": - result = CANCELED_MEETINGREGISTRANTSTATUS - case "processing": - result = PROCESSING_MEETINGREGISTRANTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MEETINGREGISTRANTSTATUS - default: - return 0, errors.New("Unknown MeetingRegistrantStatus value: " + v) - } - return &result, nil -} -func SerializeMeetingRegistrantStatus(values []MeetingRegistrantStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MeetingRegistrantStatus) isMultiValue() bool { - return false -} diff --git a/models/meeting_registration_base.go b/models/meeting_registration_base.go index 8a138795137..46af9779b64 100644 --- a/models/meeting_registration_base.go +++ b/models/meeting_registration_base.go @@ -40,13 +40,13 @@ func CreateMeetingRegistrationBaseFromDiscriminatorValue(parseNode i878a80d2330e return NewMeetingRegistrationBase(), nil } // GetAllowedRegistrant gets the allowedRegistrant property value. Specifies who can register for the meeting. -func (m *MeetingRegistrationBase) GetAllowedRegistrant()(*MeetingAudience) { +func (m *MeetingRegistrationBase) GetAllowedRegistrant()(*MeetingRegistrationBase_allowedRegistrant) { val, err := m.GetBackingStore().Get("allowedRegistrant") if err != nil { panic(err) } if val != nil { - return val.(*MeetingAudience) + return val.(*MeetingRegistrationBase_allowedRegistrant) } return nil } @@ -54,12 +54,12 @@ func (m *MeetingRegistrationBase) GetAllowedRegistrant()(*MeetingAudience) { func (m *MeetingRegistrationBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["allowedRegistrant"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMeetingAudience) + val, err := n.GetEnumValue(ParseMeetingRegistrationBase_allowedRegistrant) if err != nil { return err } if val != nil { - m.SetAllowedRegistrant(val.(*MeetingAudience)) + m.SetAllowedRegistrant(val.(*MeetingRegistrationBase_allowedRegistrant)) } return nil } @@ -120,7 +120,7 @@ func (m *MeetingRegistrationBase) Serialize(writer i878a80d2330e89d26896388a3f48 return nil } // SetAllowedRegistrant sets the allowedRegistrant property value. Specifies who can register for the meeting. -func (m *MeetingRegistrationBase) SetAllowedRegistrant(value *MeetingAudience)() { +func (m *MeetingRegistrationBase) SetAllowedRegistrant(value *MeetingRegistrationBase_allowedRegistrant)() { err := m.GetBackingStore().Set("allowedRegistrant", value) if err != nil { panic(err) @@ -137,8 +137,8 @@ func (m *MeetingRegistrationBase) SetRegistrants(value []MeetingRegistrantBaseab type MeetingRegistrationBaseable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedRegistrant()(*MeetingAudience) + GetAllowedRegistrant()(*MeetingRegistrationBase_allowedRegistrant) GetRegistrants()([]MeetingRegistrantBaseable) - SetAllowedRegistrant(value *MeetingAudience)() + SetAllowedRegistrant(value *MeetingRegistrationBase_allowedRegistrant)() SetRegistrants(value []MeetingRegistrantBaseable)() } diff --git a/models/meeting_registration_base_allowed_registrant.go b/models/meeting_registration_base_allowed_registrant.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/meeting_registration_question.go b/models/meeting_registration_question.go index 3c44c347422..8ea0d9c8fa4 100644 --- a/models/meeting_registration_question.go +++ b/models/meeting_registration_question.go @@ -20,13 +20,13 @@ func CreateMeetingRegistrationQuestionFromDiscriminatorValue(parseNode i878a80d2 return NewMeetingRegistrationQuestion(), nil } // GetAnswerInputType gets the answerInputType property value. Answer input type of the custom registration question. -func (m *MeetingRegistrationQuestion) GetAnswerInputType()(*AnswerInputType) { +func (m *MeetingRegistrationQuestion) GetAnswerInputType()(*MeetingRegistrationQuestion_answerInputType) { val, err := m.GetBackingStore().Get("answerInputType") if err != nil { panic(err) } if val != nil { - return val.(*AnswerInputType) + return val.(*MeetingRegistrationQuestion_answerInputType) } return nil } @@ -56,12 +56,12 @@ func (m *MeetingRegistrationQuestion) GetDisplayName()(*string) { func (m *MeetingRegistrationQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["answerInputType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAnswerInputType) + val, err := n.GetEnumValue(ParseMeetingRegistrationQuestion_answerInputType) if err != nil { return err } if val != nil { - m.SetAnswerInputType(val.(*AnswerInputType)) + m.SetAnswerInputType(val.(*MeetingRegistrationQuestion_answerInputType)) } return nil } @@ -148,7 +148,7 @@ func (m *MeetingRegistrationQuestion) Serialize(writer i878a80d2330e89d26896388a return nil } // SetAnswerInputType sets the answerInputType property value. Answer input type of the custom registration question. -func (m *MeetingRegistrationQuestion) SetAnswerInputType(value *AnswerInputType)() { +func (m *MeetingRegistrationQuestion) SetAnswerInputType(value *MeetingRegistrationQuestion_answerInputType)() { err := m.GetBackingStore().Set("answerInputType", value) if err != nil { panic(err) @@ -179,11 +179,11 @@ func (m *MeetingRegistrationQuestion) SetIsRequired(value *bool)() { type MeetingRegistrationQuestionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAnswerInputType()(*AnswerInputType) + GetAnswerInputType()(*MeetingRegistrationQuestion_answerInputType) GetAnswerOptions()([]string) GetDisplayName()(*string) GetIsRequired()(*bool) - SetAnswerInputType(value *AnswerInputType)() + SetAnswerInputType(value *MeetingRegistrationQuestion_answerInputType)() SetAnswerOptions(value []string)() SetDisplayName(value *string)() SetIsRequired(value *bool)() diff --git a/models/meeting_registration_question_answer_input_type.go b/models/meeting_registration_question_answer_input_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/meeting_time_suggestion.go b/models/meeting_time_suggestion.go index 3422206ddba..0a423d32ff0 100644 --- a/models/meeting_time_suggestion.go +++ b/models/meeting_time_suggestion.go @@ -136,12 +136,12 @@ func (m *MeetingTimeSuggestion) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["organizerAvailability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFreeBusyStatus) + val, err := n.GetEnumValue(ParseMeetingTimeSuggestion_organizerAvailability) if err != nil { return err } if val != nil { - m.SetOrganizerAvailability(val.(*FreeBusyStatus)) + m.SetOrganizerAvailability(val.(*MeetingTimeSuggestion_organizerAvailability)) } return nil } @@ -202,13 +202,13 @@ func (m *MeetingTimeSuggestion) GetOrder()(*int32) { return nil } // GetOrganizerAvailability gets the organizerAvailability property value. Availability of the meeting organizer for this meeting suggestion. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown. -func (m *MeetingTimeSuggestion) GetOrganizerAvailability()(*FreeBusyStatus) { +func (m *MeetingTimeSuggestion) GetOrganizerAvailability()(*MeetingTimeSuggestion_organizerAvailability) { val, err := m.GetBackingStore().Get("organizerAvailability") if err != nil { panic(err) } if val != nil { - return val.(*FreeBusyStatus) + return val.(*MeetingTimeSuggestion_organizerAvailability) } return nil } @@ -348,7 +348,7 @@ func (m *MeetingTimeSuggestion) SetOrder(value *int32)() { } } // SetOrganizerAvailability sets the organizerAvailability property value. Availability of the meeting organizer for this meeting suggestion. Possible values are: free, tentative, busy, oof, workingElsewhere, unknown. -func (m *MeetingTimeSuggestion) SetOrganizerAvailability(value *FreeBusyStatus)() { +func (m *MeetingTimeSuggestion) SetOrganizerAvailability(value *MeetingTimeSuggestion_organizerAvailability)() { err := m.GetBackingStore().Set("organizerAvailability", value) if err != nil { panic(err) @@ -373,7 +373,7 @@ type MeetingTimeSuggestionable interface { GetMeetingTimeSlot()(TimeSlotable) GetOdataType()(*string) GetOrder()(*int32) - GetOrganizerAvailability()(*FreeBusyStatus) + GetOrganizerAvailability()(*MeetingTimeSuggestion_organizerAvailability) GetSuggestionReason()(*string) SetAttendeeAvailability(value []AttendeeAvailabilityable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() @@ -382,6 +382,6 @@ type MeetingTimeSuggestionable interface { SetMeetingTimeSlot(value TimeSlotable)() SetOdataType(value *string)() SetOrder(value *int32)() - SetOrganizerAvailability(value *FreeBusyStatus)() + SetOrganizerAvailability(value *MeetingTimeSuggestion_organizerAvailability)() SetSuggestionReason(value *string)() } diff --git a/models/meeting_time_suggestion_organizer_availability.go b/models/meeting_time_suggestion_organizer_availability.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/membership_rule_processing_status.go b/models/membership_rule_processing_status.go index 58f5265a23c..346b468d0b5 100644 --- a/models/membership_rule_processing_status.go +++ b/models/membership_rule_processing_status.go @@ -84,12 +84,12 @@ func (m *MembershipRuleProcessingStatus) GetFieldDeserializers()(map[string]func return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMembershipRuleProcessingStatusDetails) + val, err := n.GetEnumValue(ParseMembershipRuleProcessingStatus_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*MembershipRuleProcessingStatusDetails)) + m.SetStatus(val.(*MembershipRuleProcessingStatus_status)) } return nil } @@ -118,13 +118,13 @@ func (m *MembershipRuleProcessingStatus) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. Current status of a dynamic group processing. Possible values are: NotStarted, Running, Succeeded, Failed, and UnknownFutureValue. Required. Read-only. -func (m *MembershipRuleProcessingStatus) GetStatus()(*MembershipRuleProcessingStatusDetails) { +func (m *MembershipRuleProcessingStatus) GetStatus()(*MembershipRuleProcessingStatus_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*MembershipRuleProcessingStatusDetails) + return val.(*MembershipRuleProcessingStatus_status) } return nil } @@ -196,7 +196,7 @@ func (m *MembershipRuleProcessingStatus) SetOdataType(value *string)() { } } // SetStatus sets the status property value. Current status of a dynamic group processing. Possible values are: NotStarted, Running, Succeeded, Failed, and UnknownFutureValue. Required. Read-only. -func (m *MembershipRuleProcessingStatus) SetStatus(value *MembershipRuleProcessingStatusDetails)() { +func (m *MembershipRuleProcessingStatus) SetStatus(value *MembershipRuleProcessingStatus_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -211,10 +211,10 @@ type MembershipRuleProcessingStatusable interface { GetErrorMessage()(*string) GetLastMembershipUpdated()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOdataType()(*string) - GetStatus()(*MembershipRuleProcessingStatusDetails) + GetStatus()(*MembershipRuleProcessingStatus_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetErrorMessage(value *string)() SetLastMembershipUpdated(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOdataType(value *string)() - SetStatus(value *MembershipRuleProcessingStatusDetails)() + SetStatus(value *MembershipRuleProcessingStatus_status)() } diff --git a/models/membership_rule_processing_status_details.go b/models/membership_rule_processing_status_details.go deleted file mode 100644 index 3fb5be74439..00000000000 --- a/models/membership_rule_processing_status_details.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type MembershipRuleProcessingStatusDetails int - -const ( - NOTSTARTED_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS MembershipRuleProcessingStatusDetails = iota - RUNNING_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - FAILED_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - SUCCEEDED_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - UNSUPPORTEDFUTUREVALUE_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS -) - -func (i MembershipRuleProcessingStatusDetails) String() string { - return []string{"NotStarted", "Running", "Failed", "Succeeded", "UnsupportedFutureValue"}[i] -} -func ParseMembershipRuleProcessingStatusDetails(v string) (any, error) { - result := NOTSTARTED_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - switch v { - case "NotStarted": - result = NOTSTARTED_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - case "Running": - result = RUNNING_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - case "Failed": - result = FAILED_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - case "Succeeded": - result = SUCCEEDED_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - case "UnsupportedFutureValue": - result = UNSUPPORTEDFUTUREVALUE_MEMBERSHIPRULEPROCESSINGSTATUSDETAILS - default: - return 0, errors.New("Unknown MembershipRuleProcessingStatusDetails value: " + v) - } - return &result, nil -} -func SerializeMembershipRuleProcessingStatusDetails(values []MembershipRuleProcessingStatusDetails) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MembershipRuleProcessingStatusDetails) isMultiValue() bool { - return false -} diff --git a/models/membership_rule_processing_status_status.go b/models/membership_rule_processing_status_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/message.go b/models/message.go index d2760928981..6fedcb0e475 100644 --- a/models/message.go +++ b/models/message.go @@ -272,22 +272,22 @@ func (m *Message) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["importance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseImportance) + val, err := n.GetEnumValue(ParseMessage_importance) if err != nil { return err } if val != nil { - m.SetImportance(val.(*Importance)) + m.SetImportance(val.(*Message_importance)) } return nil } res["inferenceClassification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseInferenceClassificationType) + val, err := n.GetEnumValue(ParseMessage_inferenceClassification) if err != nil { return err } if val != nil { - m.SetInferenceClassification(val.(*InferenceClassificationType)) + m.SetInferenceClassification(val.(*Message_inferenceClassification)) } return nil } @@ -579,24 +579,24 @@ func (m *Message) GetHasAttachments()(*bool) { return nil } // GetImportance gets the importance property value. The importance property -func (m *Message) GetImportance()(*Importance) { +func (m *Message) GetImportance()(*Message_importance) { val, err := m.GetBackingStore().Get("importance") if err != nil { panic(err) } if val != nil { - return val.(*Importance) + return val.(*Message_importance) } return nil } // GetInferenceClassification gets the inferenceClassification property value. The inferenceClassification property -func (m *Message) GetInferenceClassification()(*InferenceClassificationType) { +func (m *Message) GetInferenceClassification()(*Message_inferenceClassification) { val, err := m.GetBackingStore().Get("inferenceClassification") if err != nil { panic(err) } if val != nil { - return val.(*InferenceClassificationType) + return val.(*Message_inferenceClassification) } return nil } @@ -1183,14 +1183,14 @@ func (m *Message) SetHasAttachments(value *bool)() { } } // SetImportance sets the importance property value. The importance property -func (m *Message) SetImportance(value *Importance)() { +func (m *Message) SetImportance(value *Message_importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) } } // SetInferenceClassification sets the inferenceClassification property value. The inferenceClassification property -func (m *Message) SetInferenceClassification(value *InferenceClassificationType)() { +func (m *Message) SetInferenceClassification(value *Message_inferenceClassification)() { err := m.GetBackingStore().Set("inferenceClassification", value) if err != nil { panic(err) @@ -1358,8 +1358,8 @@ type Messageable interface { GetFlag()(FollowupFlagable) GetFrom()(Recipientable) GetHasAttachments()(*bool) - GetImportance()(*Importance) - GetInferenceClassification()(*InferenceClassificationType) + GetImportance()(*Message_importance) + GetInferenceClassification()(*Message_inferenceClassification) GetInternetMessageHeaders()([]InternetMessageHeaderable) GetInternetMessageId()(*string) GetIsDeliveryReceiptRequested()(*bool) @@ -1392,8 +1392,8 @@ type Messageable interface { SetFlag(value FollowupFlagable)() SetFrom(value Recipientable)() SetHasAttachments(value *bool)() - SetImportance(value *Importance)() - SetInferenceClassification(value *InferenceClassificationType)() + SetImportance(value *Message_importance)() + SetInferenceClassification(value *Message_inferenceClassification)() SetInternetMessageHeaders(value []InternetMessageHeaderable)() SetInternetMessageId(value *string)() SetIsDeliveryReceiptRequested(value *bool)() diff --git a/models/message_action_flag.go b/models/message_action_flag.go deleted file mode 100644 index c82f5fdeba3..00000000000 --- a/models/message_action_flag.go +++ /dev/null @@ -1,64 +0,0 @@ -package models -import ( - "errors" -) -// -type MessageActionFlag int - -const ( - ANY_MESSAGEACTIONFLAG MessageActionFlag = iota - CALL_MESSAGEACTIONFLAG - DONOTFORWARD_MESSAGEACTIONFLAG - FOLLOWUP_MESSAGEACTIONFLAG - FYI_MESSAGEACTIONFLAG - FORWARD_MESSAGEACTIONFLAG - NORESPONSENECESSARY_MESSAGEACTIONFLAG - READ_MESSAGEACTIONFLAG - REPLY_MESSAGEACTIONFLAG - REPLYTOALL_MESSAGEACTIONFLAG - REVIEW_MESSAGEACTIONFLAG -) - -func (i MessageActionFlag) String() string { - return []string{"any", "call", "doNotForward", "followUp", "fyi", "forward", "noResponseNecessary", "read", "reply", "replyToAll", "review"}[i] -} -func ParseMessageActionFlag(v string) (any, error) { - result := ANY_MESSAGEACTIONFLAG - switch v { - case "any": - result = ANY_MESSAGEACTIONFLAG - case "call": - result = CALL_MESSAGEACTIONFLAG - case "doNotForward": - result = DONOTFORWARD_MESSAGEACTIONFLAG - case "followUp": - result = FOLLOWUP_MESSAGEACTIONFLAG - case "fyi": - result = FYI_MESSAGEACTIONFLAG - case "forward": - result = FORWARD_MESSAGEACTIONFLAG - case "noResponseNecessary": - result = NORESPONSENECESSARY_MESSAGEACTIONFLAG - case "read": - result = READ_MESSAGEACTIONFLAG - case "reply": - result = REPLY_MESSAGEACTIONFLAG - case "replyToAll": - result = REPLYTOALL_MESSAGEACTIONFLAG - case "review": - result = REVIEW_MESSAGEACTIONFLAG - default: - return 0, errors.New("Unknown MessageActionFlag value: " + v) - } - return &result, nil -} -func SerializeMessageActionFlag(values []MessageActionFlag) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MessageActionFlag) isMultiValue() bool { - return false -} diff --git a/models/message_importance.go b/models/message_importance.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/message_inference_classification.go b/models/message_inference_classification.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/message_rule_actions.go b/models/message_rule_actions.go index deb036bdfbd..80e612fc94b 100644 --- a/models/message_rule_actions.go +++ b/models/message_rule_actions.go @@ -153,12 +153,12 @@ func (m *MessageRuleActions) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["markImportance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseImportance) + val, err := n.GetEnumValue(ParseMessageRuleActions_markImportance) if err != nil { return err } if val != nil { - m.SetMarkImportance(val.(*Importance)) + m.SetMarkImportance(val.(*MessageRuleActions_markImportance)) } return nil } @@ -254,13 +254,13 @@ func (m *MessageRuleActions) GetMarkAsRead()(*bool) { return nil } // GetMarkImportance gets the markImportance property value. Sets the importance of the message, which can be: low, normal, high. -func (m *MessageRuleActions) GetMarkImportance()(*Importance) { +func (m *MessageRuleActions) GetMarkImportance()(*MessageRuleActions_markImportance) { val, err := m.GetBackingStore().Get("markImportance") if err != nil { panic(err) } if val != nil { - return val.(*Importance) + return val.(*MessageRuleActions_markImportance) } return nil } @@ -474,7 +474,7 @@ func (m *MessageRuleActions) SetMarkAsRead(value *bool)() { } } // SetMarkImportance sets the markImportance property value. Sets the importance of the message, which can be: low, normal, high. -func (m *MessageRuleActions) SetMarkImportance(value *Importance)() { +func (m *MessageRuleActions) SetMarkImportance(value *MessageRuleActions_markImportance)() { err := m.GetBackingStore().Set("markImportance", value) if err != nil { panic(err) @@ -527,7 +527,7 @@ type MessageRuleActionsable interface { GetForwardAsAttachmentTo()([]Recipientable) GetForwardTo()([]Recipientable) GetMarkAsRead()(*bool) - GetMarkImportance()(*Importance) + GetMarkImportance()(*MessageRuleActions_markImportance) GetMoveToFolder()(*string) GetOdataType()(*string) GetPermanentDelete()(*bool) @@ -540,7 +540,7 @@ type MessageRuleActionsable interface { SetForwardAsAttachmentTo(value []Recipientable)() SetForwardTo(value []Recipientable)() SetMarkAsRead(value *bool)() - SetMarkImportance(value *Importance)() + SetMarkImportance(value *MessageRuleActions_markImportance)() SetMoveToFolder(value *string)() SetOdataType(value *string)() SetPermanentDelete(value *bool)() diff --git a/models/message_rule_actions_mark_importance.go b/models/message_rule_actions_mark_importance.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/message_rule_predicates.go b/models/message_rule_predicates.go index a92a5871c05..4b1ca484d45 100644 --- a/models/message_rule_predicates.go +++ b/models/message_rule_predicates.go @@ -165,12 +165,12 @@ func (m *MessageRulePredicates) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["importance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseImportance) + val, err := n.GetEnumValue(ParseMessageRulePredicates_importance) if err != nil { return err } if val != nil { - m.SetImportance(val.(*Importance)) + m.SetImportance(val.(*MessageRulePredicates_importance)) } return nil } @@ -285,12 +285,12 @@ func (m *MessageRulePredicates) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["messageActionFlag"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMessageActionFlag) + val, err := n.GetEnumValue(ParseMessageRulePredicates_messageActionFlag) if err != nil { return err } if val != nil { - m.SetMessageActionFlag(val.(*MessageActionFlag)) + m.SetMessageActionFlag(val.(*MessageRulePredicates_messageActionFlag)) } return nil } @@ -347,12 +347,12 @@ func (m *MessageRulePredicates) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["sensitivity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitivity) + val, err := n.GetEnumValue(ParseMessageRulePredicates_sensitivity) if err != nil { return err } if val != nil { - m.SetSensitivity(val.(*Sensitivity)) + m.SetSensitivity(val.(*MessageRulePredicates_sensitivity)) } return nil } @@ -474,13 +474,13 @@ func (m *MessageRulePredicates) GetHeaderContains()([]string) { return nil } // GetImportance gets the importance property value. The importance that is stamped on an incoming message in order for the condition or exception to apply: low, normal, high. -func (m *MessageRulePredicates) GetImportance()(*Importance) { +func (m *MessageRulePredicates) GetImportance()(*MessageRulePredicates_importance) { val, err := m.GetBackingStore().Get("importance") if err != nil { panic(err) } if val != nil { - return val.(*Importance) + return val.(*MessageRulePredicates_importance) } return nil } @@ -606,13 +606,13 @@ func (m *MessageRulePredicates) GetIsVoicemail()(*bool) { return nil } // GetMessageActionFlag gets the messageActionFlag property value. Represents the flag-for-action value that appears on an incoming message in order for the condition or exception to apply. The possible values are: any, call, doNotForward, followUp, fyi, forward, noResponseNecessary, read, reply, replyToAll, review. -func (m *MessageRulePredicates) GetMessageActionFlag()(*MessageActionFlag) { +func (m *MessageRulePredicates) GetMessageActionFlag()(*MessageRulePredicates_messageActionFlag) { val, err := m.GetBackingStore().Get("messageActionFlag") if err != nil { panic(err) } if val != nil { - return val.(*MessageActionFlag) + return val.(*MessageRulePredicates_messageActionFlag) } return nil } @@ -661,13 +661,13 @@ func (m *MessageRulePredicates) GetSenderContains()([]string) { return nil } // GetSensitivity gets the sensitivity property value. Represents the sensitivity level that must be stamped on an incoming message in order for the condition or exception to apply. The possible values are: normal, personal, private, confidential. -func (m *MessageRulePredicates) GetSensitivity()(*Sensitivity) { +func (m *MessageRulePredicates) GetSensitivity()(*MessageRulePredicates_sensitivity) { val, err := m.GetBackingStore().Get("sensitivity") if err != nil { panic(err) } if val != nil { - return val.(*Sensitivity) + return val.(*MessageRulePredicates_sensitivity) } return nil } @@ -1013,7 +1013,7 @@ func (m *MessageRulePredicates) SetHeaderContains(value []string)() { } } // SetImportance sets the importance property value. The importance that is stamped on an incoming message in order for the condition or exception to apply: low, normal, high. -func (m *MessageRulePredicates) SetImportance(value *Importance)() { +func (m *MessageRulePredicates) SetImportance(value *MessageRulePredicates_importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) @@ -1097,7 +1097,7 @@ func (m *MessageRulePredicates) SetIsVoicemail(value *bool)() { } } // SetMessageActionFlag sets the messageActionFlag property value. Represents the flag-for-action value that appears on an incoming message in order for the condition or exception to apply. The possible values are: any, call, doNotForward, followUp, fyi, forward, noResponseNecessary, read, reply, replyToAll, review. -func (m *MessageRulePredicates) SetMessageActionFlag(value *MessageActionFlag)() { +func (m *MessageRulePredicates) SetMessageActionFlag(value *MessageRulePredicates_messageActionFlag)() { err := m.GetBackingStore().Set("messageActionFlag", value) if err != nil { panic(err) @@ -1132,7 +1132,7 @@ func (m *MessageRulePredicates) SetSenderContains(value []string)() { } } // SetSensitivity sets the sensitivity property value. Represents the sensitivity level that must be stamped on an incoming message in order for the condition or exception to apply. The possible values are: normal, personal, private, confidential. -func (m *MessageRulePredicates) SetSensitivity(value *Sensitivity)() { +func (m *MessageRulePredicates) SetSensitivity(value *MessageRulePredicates_sensitivity)() { err := m.GetBackingStore().Set("sensitivity", value) if err != nil { panic(err) @@ -1199,7 +1199,7 @@ type MessageRulePredicatesable interface { GetFromAddresses()([]Recipientable) GetHasAttachments()(*bool) GetHeaderContains()([]string) - GetImportance()(*Importance) + GetImportance()(*MessageRulePredicates_importance) GetIsApprovalRequest()(*bool) GetIsAutomaticForward()(*bool) GetIsAutomaticReply()(*bool) @@ -1211,12 +1211,12 @@ type MessageRulePredicatesable interface { GetIsReadReceipt()(*bool) GetIsSigned()(*bool) GetIsVoicemail()(*bool) - GetMessageActionFlag()(*MessageActionFlag) + GetMessageActionFlag()(*MessageRulePredicates_messageActionFlag) GetNotSentToMe()(*bool) GetOdataType()(*string) GetRecipientContains()([]string) GetSenderContains()([]string) - GetSensitivity()(*Sensitivity) + GetSensitivity()(*MessageRulePredicates_sensitivity) GetSentCcMe()(*bool) GetSentOnlyToMe()(*bool) GetSentToAddresses()([]Recipientable) @@ -1231,7 +1231,7 @@ type MessageRulePredicatesable interface { SetFromAddresses(value []Recipientable)() SetHasAttachments(value *bool)() SetHeaderContains(value []string)() - SetImportance(value *Importance)() + SetImportance(value *MessageRulePredicates_importance)() SetIsApprovalRequest(value *bool)() SetIsAutomaticForward(value *bool)() SetIsAutomaticReply(value *bool)() @@ -1243,12 +1243,12 @@ type MessageRulePredicatesable interface { SetIsReadReceipt(value *bool)() SetIsSigned(value *bool)() SetIsVoicemail(value *bool)() - SetMessageActionFlag(value *MessageActionFlag)() + SetMessageActionFlag(value *MessageRulePredicates_messageActionFlag)() SetNotSentToMe(value *bool)() SetOdataType(value *string)() SetRecipientContains(value []string)() SetSenderContains(value []string)() - SetSensitivity(value *Sensitivity)() + SetSensitivity(value *MessageRulePredicates_sensitivity)() SetSentCcMe(value *bool)() SetSentOnlyToMe(value *bool)() SetSentToAddresses(value []Recipientable)() diff --git a/models/message_rule_predicates_importance.go b/models/message_rule_predicates_importance.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/message_rule_predicates_message_action_flag.go b/models/message_rule_predicates_message_action_flag.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/message_rule_predicates_sensitivity.go b/models/message_rule_predicates_sensitivity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/metered_connection_limit_type.go b/models/metered_connection_limit_type.go deleted file mode 100644 index dc89acd1dc6..00000000000 --- a/models/metered_connection_limit_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Metered Connection Limit Settings. -type MeteredConnectionLimitType int - -const ( - // Unrestricted - UNRESTRICTED_METEREDCONNECTIONLIMITTYPE MeteredConnectionLimitType = iota - // Fixed - FIXED_METEREDCONNECTIONLIMITTYPE - // Variable - VARIABLE_METEREDCONNECTIONLIMITTYPE -) - -func (i MeteredConnectionLimitType) String() string { - return []string{"unrestricted", "fixed", "variable"}[i] -} -func ParseMeteredConnectionLimitType(v string) (any, error) { - result := UNRESTRICTED_METEREDCONNECTIONLIMITTYPE - switch v { - case "unrestricted": - result = UNRESTRICTED_METEREDCONNECTIONLIMITTYPE - case "fixed": - result = FIXED_METEREDCONNECTIONLIMITTYPE - case "variable": - result = VARIABLE_METEREDCONNECTIONLIMITTYPE - default: - return 0, errors.New("Unknown MeteredConnectionLimitType value: " + v) - } - return &result, nil -} -func SerializeMeteredConnectionLimitType(values []MeteredConnectionLimitType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MeteredConnectionLimitType) isMultiValue() bool { - return false -} diff --git a/models/microsoft_authenticator_authentication_method.go b/models/microsoft_authenticator_authentication_method.go index c4c96ec12cc..c33297fb2ec 100644 --- a/models/microsoft_authenticator_authentication_method.go +++ b/models/microsoft_authenticator_authentication_method.go @@ -23,13 +23,13 @@ func CreateMicrosoftAuthenticatorAuthenticationMethodFromDiscriminatorValue(pars return NewMicrosoftAuthenticatorAuthenticationMethod(), nil } // GetClientAppName gets the clientAppName property value. The app that the user has registered to use to approve push notifications. The possible values are: microsoftAuthenticator, outlookMobile, unknownFutureValue. -func (m *MicrosoftAuthenticatorAuthenticationMethod) GetClientAppName()(*MicrosoftAuthenticatorAuthenticationMethodClientAppName) { +func (m *MicrosoftAuthenticatorAuthenticationMethod) GetClientAppName()(*MicrosoftAuthenticatorAuthenticationMethod_clientAppName) { val, err := m.GetBackingStore().Get("clientAppName") if err != nil { panic(err) } if val != nil { - return val.(*MicrosoftAuthenticatorAuthenticationMethodClientAppName) + return val.(*MicrosoftAuthenticatorAuthenticationMethod_clientAppName) } return nil } @@ -81,12 +81,12 @@ func (m *MicrosoftAuthenticatorAuthenticationMethod) GetDisplayName()(*string) { func (m *MicrosoftAuthenticatorAuthenticationMethod) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AuthenticationMethod.GetFieldDeserializers() res["clientAppName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMicrosoftAuthenticatorAuthenticationMethodClientAppName) + val, err := n.GetEnumValue(ParseMicrosoftAuthenticatorAuthenticationMethod_clientAppName) if err != nil { return err } if val != nil { - m.SetClientAppName(val.(*MicrosoftAuthenticatorAuthenticationMethodClientAppName)) + m.SetClientAppName(val.(*MicrosoftAuthenticatorAuthenticationMethod_clientAppName)) } return nil } @@ -199,7 +199,7 @@ func (m *MicrosoftAuthenticatorAuthenticationMethod) Serialize(writer i878a80d23 return nil } // SetClientAppName sets the clientAppName property value. The app that the user has registered to use to approve push notifications. The possible values are: microsoftAuthenticator, outlookMobile, unknownFutureValue. -func (m *MicrosoftAuthenticatorAuthenticationMethod) SetClientAppName(value *MicrosoftAuthenticatorAuthenticationMethodClientAppName)() { +func (m *MicrosoftAuthenticatorAuthenticationMethod) SetClientAppName(value *MicrosoftAuthenticatorAuthenticationMethod_clientAppName)() { err := m.GetBackingStore().Set("clientAppName", value) if err != nil { panic(err) @@ -244,13 +244,13 @@ func (m *MicrosoftAuthenticatorAuthenticationMethod) SetPhoneAppVersion(value *s type MicrosoftAuthenticatorAuthenticationMethodable interface { AuthenticationMethodable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetClientAppName()(*MicrosoftAuthenticatorAuthenticationMethodClientAppName) + GetClientAppName()(*MicrosoftAuthenticatorAuthenticationMethod_clientAppName) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDevice()(Deviceable) GetDeviceTag()(*string) GetDisplayName()(*string) GetPhoneAppVersion()(*string) - SetClientAppName(value *MicrosoftAuthenticatorAuthenticationMethodClientAppName)() + SetClientAppName(value *MicrosoftAuthenticatorAuthenticationMethod_clientAppName)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDevice(value Deviceable)() SetDeviceTag(value *string)() diff --git a/models/microsoft_authenticator_authentication_method_client_app_name.go b/models/microsoft_authenticator_authentication_method_client_app_name.go index 1a21da24253..e69de29bb2d 100644 --- a/models/microsoft_authenticator_authentication_method_client_app_name.go +++ b/models/microsoft_authenticator_authentication_method_client_app_name.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type MicrosoftAuthenticatorAuthenticationMethodClientAppName int - -const ( - MICROSOFTAUTHENTICATOR_MICROSOFTAUTHENTICATORAUTHENTICATIONMETHODCLIENTAPPNAME MicrosoftAuthenticatorAuthenticationMethodClientAppName = iota - OUTLOOKMOBILE_MICROSOFTAUTHENTICATORAUTHENTICATIONMETHODCLIENTAPPNAME - UNKNOWNFUTUREVALUE_MICROSOFTAUTHENTICATORAUTHENTICATIONMETHODCLIENTAPPNAME -) - -func (i MicrosoftAuthenticatorAuthenticationMethodClientAppName) String() string { - return []string{"microsoftAuthenticator", "outlookMobile", "unknownFutureValue"}[i] -} -func ParseMicrosoftAuthenticatorAuthenticationMethodClientAppName(v string) (any, error) { - result := MICROSOFTAUTHENTICATOR_MICROSOFTAUTHENTICATORAUTHENTICATIONMETHODCLIENTAPPNAME - switch v { - case "microsoftAuthenticator": - result = MICROSOFTAUTHENTICATOR_MICROSOFTAUTHENTICATORAUTHENTICATIONMETHODCLIENTAPPNAME - case "outlookMobile": - result = OUTLOOKMOBILE_MICROSOFTAUTHENTICATORAUTHENTICATIONMETHODCLIENTAPPNAME - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MICROSOFTAUTHENTICATORAUTHENTICATIONMETHODCLIENTAPPNAME - default: - return 0, errors.New("Unknown MicrosoftAuthenticatorAuthenticationMethodClientAppName value: " + v) - } - return &result, nil -} -func SerializeMicrosoftAuthenticatorAuthenticationMethodClientAppName(values []MicrosoftAuthenticatorAuthenticationMethodClientAppName) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MicrosoftAuthenticatorAuthenticationMethodClientAppName) isMultiValue() bool { - return false -} diff --git a/models/microsoft_custom_training_setting.go b/models/microsoft_custom_training_setting.go index f8032de0c17..18e09c90ef3 100644 --- a/models/microsoft_custom_training_setting.go +++ b/models/microsoft_custom_training_setting.go @@ -63,12 +63,12 @@ func (m *MicrosoftCustomTrainingSetting) GetFieldDeserializers()(map[string]func return nil } res["trainingCompletionDuration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTrainingCompletionDuration) + val, err := n.GetEnumValue(ParseMicrosoftCustomTrainingSetting_trainingCompletionDuration) if err != nil { return err } if val != nil { - m.SetTrainingCompletionDuration(val.(*TrainingCompletionDuration)) + m.SetTrainingCompletionDuration(val.(*MicrosoftCustomTrainingSetting_trainingCompletionDuration)) } return nil } @@ -86,13 +86,13 @@ func (m *MicrosoftCustomTrainingSetting) GetTrainingAssignmentMappings()([]Micro return nil } // GetTrainingCompletionDuration gets the trainingCompletionDuration property value. The training completion duration that needs to be provided before scheduling the training. Possible values are: week, fortnite, month, unknownFutureValue. -func (m *MicrosoftCustomTrainingSetting) GetTrainingCompletionDuration()(*TrainingCompletionDuration) { +func (m *MicrosoftCustomTrainingSetting) GetTrainingCompletionDuration()(*MicrosoftCustomTrainingSetting_trainingCompletionDuration) { val, err := m.GetBackingStore().Get("trainingCompletionDuration") if err != nil { panic(err) } if val != nil { - return val.(*TrainingCompletionDuration) + return val.(*MicrosoftCustomTrainingSetting_trainingCompletionDuration) } return nil } @@ -144,7 +144,7 @@ func (m *MicrosoftCustomTrainingSetting) SetTrainingAssignmentMappings(value []M } } // SetTrainingCompletionDuration sets the trainingCompletionDuration property value. The training completion duration that needs to be provided before scheduling the training. Possible values are: week, fortnite, month, unknownFutureValue. -func (m *MicrosoftCustomTrainingSetting) SetTrainingCompletionDuration(value *TrainingCompletionDuration)() { +func (m *MicrosoftCustomTrainingSetting) SetTrainingCompletionDuration(value *MicrosoftCustomTrainingSetting_trainingCompletionDuration)() { err := m.GetBackingStore().Set("trainingCompletionDuration", value) if err != nil { panic(err) @@ -156,8 +156,8 @@ type MicrosoftCustomTrainingSettingable interface { TrainingSettingable GetCompletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetTrainingAssignmentMappings()([]MicrosoftTrainingAssignmentMappingable) - GetTrainingCompletionDuration()(*TrainingCompletionDuration) + GetTrainingCompletionDuration()(*MicrosoftCustomTrainingSetting_trainingCompletionDuration) SetCompletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetTrainingAssignmentMappings(value []MicrosoftTrainingAssignmentMappingable)() - SetTrainingCompletionDuration(value *TrainingCompletionDuration)() + SetTrainingCompletionDuration(value *MicrosoftCustomTrainingSetting_trainingCompletionDuration)() } diff --git a/models/microsoft_custom_training_setting_training_completion_duration.go b/models/microsoft_custom_training_setting_training_completion_duration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/microsoft_launcher_dock_presence.go b/models/microsoft_launcher_dock_presence.go deleted file mode 100644 index 8a672949ba7..00000000000 --- a/models/microsoft_launcher_dock_presence.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Microsoft Launcher Dock Presence selection. -type MicrosoftLauncherDockPresence int - -const ( - // Not configured; this value is ignored. - NOTCONFIGURED_MICROSOFTLAUNCHERDOCKPRESENCE MicrosoftLauncherDockPresence = iota - // Indicates the device's dock will be displayed on the device. - SHOW_MICROSOFTLAUNCHERDOCKPRESENCE - // Indicates the device's dock will be hidden on the device, but the user can access the dock by dragging the handler on the bottom of the screen. - HIDE_MICROSOFTLAUNCHERDOCKPRESENCE - // Indicates the device's dock will be disabled on the device. - DISABLED_MICROSOFTLAUNCHERDOCKPRESENCE -) - -func (i MicrosoftLauncherDockPresence) String() string { - return []string{"notConfigured", "show", "hide", "disabled"}[i] -} -func ParseMicrosoftLauncherDockPresence(v string) (any, error) { - result := NOTCONFIGURED_MICROSOFTLAUNCHERDOCKPRESENCE - switch v { - case "notConfigured": - result = NOTCONFIGURED_MICROSOFTLAUNCHERDOCKPRESENCE - case "show": - result = SHOW_MICROSOFTLAUNCHERDOCKPRESENCE - case "hide": - result = HIDE_MICROSOFTLAUNCHERDOCKPRESENCE - case "disabled": - result = DISABLED_MICROSOFTLAUNCHERDOCKPRESENCE - default: - return 0, errors.New("Unknown MicrosoftLauncherDockPresence value: " + v) - } - return &result, nil -} -func SerializeMicrosoftLauncherDockPresence(values []MicrosoftLauncherDockPresence) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MicrosoftLauncherDockPresence) isMultiValue() bool { - return false -} diff --git a/models/microsoft_launcher_search_bar_placement.go b/models/microsoft_launcher_search_bar_placement.go deleted file mode 100644 index 724422cd33d..00000000000 --- a/models/microsoft_launcher_search_bar_placement.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Microsoft Launcher Search Bar Placement selection. -type MicrosoftLauncherSearchBarPlacement int - -const ( - // Not configured; this value is ignored. - NOTCONFIGURED_MICROSOFTLAUNCHERSEARCHBARPLACEMENT MicrosoftLauncherSearchBarPlacement = iota - // Indicates that the search bar will be displayed on the top of the device. - TOP_MICROSOFTLAUNCHERSEARCHBARPLACEMENT - // Indicates that the search bar will be displayed on the bottom of the device. - BOTTOM_MICROSOFTLAUNCHERSEARCHBARPLACEMENT - // Indicates that the search bar will be hidden on the device. - HIDE_MICROSOFTLAUNCHERSEARCHBARPLACEMENT -) - -func (i MicrosoftLauncherSearchBarPlacement) String() string { - return []string{"notConfigured", "top", "bottom", "hide"}[i] -} -func ParseMicrosoftLauncherSearchBarPlacement(v string) (any, error) { - result := NOTCONFIGURED_MICROSOFTLAUNCHERSEARCHBARPLACEMENT - switch v { - case "notConfigured": - result = NOTCONFIGURED_MICROSOFTLAUNCHERSEARCHBARPLACEMENT - case "top": - result = TOP_MICROSOFTLAUNCHERSEARCHBARPLACEMENT - case "bottom": - result = BOTTOM_MICROSOFTLAUNCHERSEARCHBARPLACEMENT - case "hide": - result = HIDE_MICROSOFTLAUNCHERSEARCHBARPLACEMENT - default: - return 0, errors.New("Unknown MicrosoftLauncherSearchBarPlacement value: " + v) - } - return &result, nil -} -func SerializeMicrosoftLauncherSearchBarPlacement(values []MicrosoftLauncherSearchBarPlacement) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MicrosoftLauncherSearchBarPlacement) isMultiValue() bool { - return false -} diff --git a/models/microsoft_managed_desktop.go b/models/microsoft_managed_desktop.go index 4066815c311..86a5417915d 100644 --- a/models/microsoft_managed_desktop.go +++ b/models/microsoft_managed_desktop.go @@ -41,6 +41,16 @@ func (m *MicrosoftManagedDesktop) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd // GetFieldDeserializers the deserialization information for the current model func (m *MicrosoftManagedDesktop) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["managedType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMicrosoftManagedDesktop_managedType) + if err != nil { + return err + } + if val != nil { + m.SetManagedType(val.(*MicrosoftManagedDesktop_managedType)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -62,17 +72,28 @@ func (m *MicrosoftManagedDesktop) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMicrosoftManagedDesktopType) + val, err := n.GetEnumValue(ParseMicrosoftManagedDesktop_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*MicrosoftManagedDesktopType)) + m.SetTypeEscaped(val.(*MicrosoftManagedDesktop_type)) } return nil } return res } +// GetManagedType gets the managedType property value. The managedType property +func (m *MicrosoftManagedDesktop) GetManagedType()(*MicrosoftManagedDesktop_managedType) { + val, err := m.GetBackingStore().Get("managedType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MicrosoftManagedDesktop_managedType) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *MicrosoftManagedDesktop) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -96,18 +117,25 @@ func (m *MicrosoftManagedDesktop) GetProfile()(*string) { return nil } // GetTypeEscaped gets the type property value. Indicates whether the provisioning policy enables Microsoft Managed Desktop. It indicates the type of plan under which the device is managed if the provisioning policy is enabled. Possible values are: notManaged, premiumManaged, standardManaged, starterManaged, unknownFutureValue. -func (m *MicrosoftManagedDesktop) GetTypeEscaped()(*MicrosoftManagedDesktopType) { +func (m *MicrosoftManagedDesktop) GetTypeEscaped()(*MicrosoftManagedDesktop_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*MicrosoftManagedDesktopType) + return val.(*MicrosoftManagedDesktop_type) } return nil } // Serialize serializes information the current object func (m *MicrosoftManagedDesktop) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetManagedType() != nil { + cast := (*m.GetManagedType()).String() + err := writer.WriteStringValue("managedType", &cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -146,6 +174,13 @@ func (m *MicrosoftManagedDesktop) SetAdditionalData(value map[string]any)() { func (m *MicrosoftManagedDesktop) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetManagedType sets the managedType property value. The managedType property +func (m *MicrosoftManagedDesktop) SetManagedType(value *MicrosoftManagedDesktop_managedType)() { + err := m.GetBackingStore().Set("managedType", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *MicrosoftManagedDesktop) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -161,7 +196,7 @@ func (m *MicrosoftManagedDesktop) SetProfile(value *string)() { } } // SetTypeEscaped sets the type property value. Indicates whether the provisioning policy enables Microsoft Managed Desktop. It indicates the type of plan under which the device is managed if the provisioning policy is enabled. Possible values are: notManaged, premiumManaged, standardManaged, starterManaged, unknownFutureValue. -func (m *MicrosoftManagedDesktop) SetTypeEscaped(value *MicrosoftManagedDesktopType)() { +func (m *MicrosoftManagedDesktop) SetTypeEscaped(value *MicrosoftManagedDesktop_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -173,11 +208,13 @@ type MicrosoftManagedDesktopable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetManagedType()(*MicrosoftManagedDesktop_managedType) GetOdataType()(*string) GetProfile()(*string) - GetTypeEscaped()(*MicrosoftManagedDesktopType) + GetTypeEscaped()(*MicrosoftManagedDesktop_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetManagedType(value *MicrosoftManagedDesktop_managedType)() SetOdataType(value *string)() SetProfile(value *string)() - SetTypeEscaped(value *MicrosoftManagedDesktopType)() + SetTypeEscaped(value *MicrosoftManagedDesktop_type)() } diff --git a/models/microsoft_managed_desktop_managed_type.go b/models/microsoft_managed_desktop_managed_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/microsoft_managed_desktop_type.go b/models/microsoft_managed_desktop_type.go index 228659024cf..e69de29bb2d 100644 --- a/models/microsoft_managed_desktop_type.go +++ b/models/microsoft_managed_desktop_type.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type MicrosoftManagedDesktopType int - -const ( - NOTMANAGED_MICROSOFTMANAGEDDESKTOPTYPE MicrosoftManagedDesktopType = iota - PREMIUMMANAGED_MICROSOFTMANAGEDDESKTOPTYPE - STANDARDMANAGED_MICROSOFTMANAGEDDESKTOPTYPE - STARTERMANAGED_MICROSOFTMANAGEDDESKTOPTYPE - UNKNOWNFUTUREVALUE_MICROSOFTMANAGEDDESKTOPTYPE -) - -func (i MicrosoftManagedDesktopType) String() string { - return []string{"notManaged", "premiumManaged", "standardManaged", "starterManaged", "unknownFutureValue"}[i] -} -func ParseMicrosoftManagedDesktopType(v string) (any, error) { - result := NOTMANAGED_MICROSOFTMANAGEDDESKTOPTYPE - switch v { - case "notManaged": - result = NOTMANAGED_MICROSOFTMANAGEDDESKTOPTYPE - case "premiumManaged": - result = PREMIUMMANAGED_MICROSOFTMANAGEDDESKTOPTYPE - case "standardManaged": - result = STANDARDMANAGED_MICROSOFTMANAGEDDESKTOPTYPE - case "starterManaged": - result = STARTERMANAGED_MICROSOFTMANAGEDDESKTOPTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MICROSOFTMANAGEDDESKTOPTYPE - default: - return 0, errors.New("Unknown MicrosoftManagedDesktopType value: " + v) - } - return &result, nil -} -func SerializeMicrosoftManagedDesktopType(values []MicrosoftManagedDesktopType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MicrosoftManagedDesktopType) isMultiValue() bool { - return false -} diff --git a/models/microsoft_managed_training_setting.go b/models/microsoft_managed_training_setting.go index f5dcea786ae..4eabf014b3d 100644 --- a/models/microsoft_managed_training_setting.go +++ b/models/microsoft_managed_training_setting.go @@ -47,25 +47,25 @@ func (m *MicrosoftManagedTrainingSetting) GetFieldDeserializers()(map[string]fun return nil } res["trainingCompletionDuration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTrainingCompletionDuration) + val, err := n.GetEnumValue(ParseMicrosoftManagedTrainingSetting_trainingCompletionDuration) if err != nil { return err } if val != nil { - m.SetTrainingCompletionDuration(val.(*TrainingCompletionDuration)) + m.SetTrainingCompletionDuration(val.(*MicrosoftManagedTrainingSetting_trainingCompletionDuration)) } return nil } return res } // GetTrainingCompletionDuration gets the trainingCompletionDuration property value. The training completion duration that needs to be provided before scheduling the training. The possible values are: week, fortnite, month, unknownFutureValue. -func (m *MicrosoftManagedTrainingSetting) GetTrainingCompletionDuration()(*TrainingCompletionDuration) { +func (m *MicrosoftManagedTrainingSetting) GetTrainingCompletionDuration()(*MicrosoftManagedTrainingSetting_trainingCompletionDuration) { val, err := m.GetBackingStore().Get("trainingCompletionDuration") if err != nil { panic(err) } if val != nil { - return val.(*TrainingCompletionDuration) + return val.(*MicrosoftManagedTrainingSetting_trainingCompletionDuration) } return nil } @@ -98,7 +98,7 @@ func (m *MicrosoftManagedTrainingSetting) SetCompletionDateTime(value *i33607480 } } // SetTrainingCompletionDuration sets the trainingCompletionDuration property value. The training completion duration that needs to be provided before scheduling the training. The possible values are: week, fortnite, month, unknownFutureValue. -func (m *MicrosoftManagedTrainingSetting) SetTrainingCompletionDuration(value *TrainingCompletionDuration)() { +func (m *MicrosoftManagedTrainingSetting) SetTrainingCompletionDuration(value *MicrosoftManagedTrainingSetting_trainingCompletionDuration)() { err := m.GetBackingStore().Set("trainingCompletionDuration", value) if err != nil { panic(err) @@ -109,7 +109,7 @@ type MicrosoftManagedTrainingSettingable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable TrainingSettingable GetCompletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetTrainingCompletionDuration()(*TrainingCompletionDuration) + GetTrainingCompletionDuration()(*MicrosoftManagedTrainingSetting_trainingCompletionDuration) SetCompletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetTrainingCompletionDuration(value *TrainingCompletionDuration)() + SetTrainingCompletionDuration(value *MicrosoftManagedTrainingSetting_trainingCompletionDuration)() } diff --git a/models/microsoft_managed_training_setting_training_completion_duration.go b/models/microsoft_managed_training_setting_training_completion_duration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/microsoft_training_assignment_mapping.go b/models/microsoft_training_assignment_mapping.go index d7545842fe8..8034ba34e1c 100644 --- a/models/microsoft_training_assignment_mapping.go +++ b/models/microsoft_training_assignment_mapping.go @@ -22,13 +22,13 @@ func CreateMicrosoftTrainingAssignmentMappingFromDiscriminatorValue(parseNode i8 return NewMicrosoftTrainingAssignmentMapping(), nil } // GetAssignedTo gets the assignedTo property value. A user collection that specifies to whom the training should be assigned. Possible values are: none, allUsers, clickedPayload, compromised, reportedPhish, readButNotClicked, didNothing, unknownFutureValue. -func (m *MicrosoftTrainingAssignmentMapping) GetAssignedTo()([]TrainingAssignedTo) { +func (m *MicrosoftTrainingAssignmentMapping) GetAssignedTo()([]MicrosoftTrainingAssignmentMapping_assignedTo) { val, err := m.GetBackingStore().Get("assignedTo") if err != nil { panic(err) } if val != nil { - return val.([]TrainingAssignedTo) + return val.([]MicrosoftTrainingAssignmentMapping_assignedTo) } return nil } @@ -36,15 +36,15 @@ func (m *MicrosoftTrainingAssignmentMapping) GetAssignedTo()([]TrainingAssignedT func (m *MicrosoftTrainingAssignmentMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.TrainingSetting.GetFieldDeserializers() res["assignedTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseTrainingAssignedTo) + val, err := n.GetCollectionOfEnumValues(ParseMicrosoftTrainingAssignmentMapping_assignedTo) if err != nil { return err } if val != nil { - res := make([]TrainingAssignedTo, len(val)) + res := make([]MicrosoftTrainingAssignmentMapping_assignedTo, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*TrainingAssignedTo)) + res[i] = *(v.(*MicrosoftTrainingAssignmentMapping_assignedTo)) } } m.SetAssignedTo(res) @@ -81,7 +81,7 @@ func (m *MicrosoftTrainingAssignmentMapping) Serialize(writer i878a80d2330e89d26 return err } if m.GetAssignedTo() != nil { - err = writer.WriteCollectionOfStringValues("assignedTo", SerializeTrainingAssignedTo(m.GetAssignedTo())) + err = writer.WriteCollectionOfStringValues("assignedTo", SerializeMicrosoftTrainingAssignmentMapping_assignedTo(m.GetAssignedTo())) if err != nil { return err } @@ -95,7 +95,7 @@ func (m *MicrosoftTrainingAssignmentMapping) Serialize(writer i878a80d2330e89d26 return nil } // SetAssignedTo sets the assignedTo property value. A user collection that specifies to whom the training should be assigned. Possible values are: none, allUsers, clickedPayload, compromised, reportedPhish, readButNotClicked, didNothing, unknownFutureValue. -func (m *MicrosoftTrainingAssignmentMapping) SetAssignedTo(value []TrainingAssignedTo)() { +func (m *MicrosoftTrainingAssignmentMapping) SetAssignedTo(value []MicrosoftTrainingAssignmentMapping_assignedTo)() { err := m.GetBackingStore().Set("assignedTo", value) if err != nil { panic(err) @@ -112,8 +112,8 @@ func (m *MicrosoftTrainingAssignmentMapping) SetTraining(value Trainingable)() { type MicrosoftTrainingAssignmentMappingable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable TrainingSettingable - GetAssignedTo()([]TrainingAssignedTo) + GetAssignedTo()([]MicrosoftTrainingAssignmentMapping_assignedTo) GetTraining()(Trainingable) - SetAssignedTo(value []TrainingAssignedTo)() + SetAssignedTo(value []MicrosoftTrainingAssignmentMapping_assignedTo)() SetTraining(value Trainingable)() } diff --git a/models/microsoft_training_assignment_mapping_assigned_to.go b/models/microsoft_training_assignment_mapping_assigned_to.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ml_classification_match_tolerance.go b/models/ml_classification_match_tolerance.go deleted file mode 100644 index e5fc4759ec9..00000000000 --- a/models/ml_classification_match_tolerance.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type MlClassificationMatchTolerance int - -const ( - EXACT_MLCLASSIFICATIONMATCHTOLERANCE MlClassificationMatchTolerance = iota - NEAR_MLCLASSIFICATIONMATCHTOLERANCE -) - -func (i MlClassificationMatchTolerance) String() string { - var values []string - for p := MlClassificationMatchTolerance(1); p <= NEAR_MLCLASSIFICATIONMATCHTOLERANCE; p <<= 1 { - if i&p == p { - values = append(values, []string{"exact", "near"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseMlClassificationMatchTolerance(v string) (any, error) { - var result MlClassificationMatchTolerance - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "exact": - result |= EXACT_MLCLASSIFICATIONMATCHTOLERANCE - case "near": - result |= NEAR_MLCLASSIFICATIONMATCHTOLERANCE - default: - return 0, errors.New("Unknown MlClassificationMatchTolerance value: " + v) - } - } - return &result, nil -} -func SerializeMlClassificationMatchTolerance(values []MlClassificationMatchTolerance) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MlClassificationMatchTolerance) isMultiValue() bool { - return true -} diff --git a/models/mobile_threat_defense_partner_priority.go b/models/mobile_threat_defense_partner_priority.go deleted file mode 100644 index 4949ca30631..00000000000 --- a/models/mobile_threat_defense_partner_priority.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Determines the conflict resolution strategy, when more than one Mobile Threat Defense provider is enabled. -type MobileThreatDefensePartnerPriority int - -const ( - // Indicates use of Microsoft Defender Endpoint over 3rd party MTD connectors - DEFENDEROVERTHIRDPARTYPARTNER_MOBILETHREATDEFENSEPARTNERPRIORITY MobileThreatDefensePartnerPriority = iota - // Indicates use of a 3rd party MTD connector over Microsoft Defender Endpoint - THIRDPARTYPARTNEROVERDEFENDER_MOBILETHREATDEFENSEPARTNERPRIORITY - // Evolvable enumeration sentinel value. Do not use. - UNKNOWNFUTUREVALUE_MOBILETHREATDEFENSEPARTNERPRIORITY -) - -func (i MobileThreatDefensePartnerPriority) String() string { - return []string{"defenderOverThirdPartyPartner", "thirdPartyPartnerOverDefender", "unknownFutureValue"}[i] -} -func ParseMobileThreatDefensePartnerPriority(v string) (any, error) { - result := DEFENDEROVERTHIRDPARTYPARTNER_MOBILETHREATDEFENSEPARTNERPRIORITY - switch v { - case "defenderOverThirdPartyPartner": - result = DEFENDEROVERTHIRDPARTYPARTNER_MOBILETHREATDEFENSEPARTNERPRIORITY - case "thirdPartyPartnerOverDefender": - result = THIRDPARTYPARTNEROVERDEFENDER_MOBILETHREATDEFENSEPARTNERPRIORITY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MOBILETHREATDEFENSEPARTNERPRIORITY - default: - return 0, errors.New("Unknown MobileThreatDefensePartnerPriority value: " + v) - } - return &result, nil -} -func SerializeMobileThreatDefensePartnerPriority(values []MobileThreatDefensePartnerPriority) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MobileThreatDefensePartnerPriority) isMultiValue() bool { - return false -} diff --git a/models/mobility_management_policy.go b/models/mobility_management_policy.go index 7b9ffdde2c5..c8f5da6b6cd 100644 --- a/models/mobility_management_policy.go +++ b/models/mobility_management_policy.go @@ -20,13 +20,13 @@ func CreateMobilityManagementPolicyFromDiscriminatorValue(parseNode i878a80d2330 return NewMobilityManagementPolicy(), nil } // GetAppliesTo gets the appliesTo property value. Indicates the user scope of the mobility management policy. Possible values are: none, all, selected. -func (m *MobilityManagementPolicy) GetAppliesTo()(*PolicyScope) { +func (m *MobilityManagementPolicy) GetAppliesTo()(*MobilityManagementPolicy_appliesTo) { val, err := m.GetBackingStore().Get("appliesTo") if err != nil { panic(err) } if val != nil { - return val.(*PolicyScope) + return val.(*MobilityManagementPolicy_appliesTo) } return nil } @@ -78,12 +78,12 @@ func (m *MobilityManagementPolicy) GetDisplayName()(*string) { func (m *MobilityManagementPolicy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["appliesTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePolicyScope) + val, err := n.GetEnumValue(ParseMobilityManagementPolicy_appliesTo) if err != nil { return err } if val != nil { - m.SetAppliesTo(val.(*PolicyScope)) + m.SetAppliesTo(val.(*MobilityManagementPolicy_appliesTo)) } return nil } @@ -262,7 +262,7 @@ func (m *MobilityManagementPolicy) Serialize(writer i878a80d2330e89d26896388a3f4 return nil } // SetAppliesTo sets the appliesTo property value. Indicates the user scope of the mobility management policy. Possible values are: none, all, selected. -func (m *MobilityManagementPolicy) SetAppliesTo(value *PolicyScope)() { +func (m *MobilityManagementPolicy) SetAppliesTo(value *MobilityManagementPolicy_appliesTo)() { err := m.GetBackingStore().Set("appliesTo", value) if err != nil { panic(err) @@ -321,7 +321,7 @@ func (m *MobilityManagementPolicy) SetTermsOfUseUrl(value *string)() { type MobilityManagementPolicyable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAppliesTo()(*PolicyScope) + GetAppliesTo()(*MobilityManagementPolicy_appliesTo) GetComplianceUrl()(*string) GetDescription()(*string) GetDiscoveryUrl()(*string) @@ -329,7 +329,7 @@ type MobilityManagementPolicyable interface { GetIncludedGroups()([]Groupable) GetIsValid()(*bool) GetTermsOfUseUrl()(*string) - SetAppliesTo(value *PolicyScope)() + SetAppliesTo(value *MobilityManagementPolicy_appliesTo)() SetComplianceUrl(value *string)() SetDescription(value *string)() SetDiscoveryUrl(value *string)() diff --git a/models/mobility_management_policy_applies_to.go b/models/mobility_management_policy_applies_to.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/msi_type.go b/models/msi_type.go deleted file mode 100644 index 1a920f05296..00000000000 --- a/models/msi_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type MsiType int - -const ( - NONE_MSITYPE MsiType = iota - USERASSIGNED_MSITYPE - SYSTEMASSIGNED_MSITYPE - UNKNOWNFUTUREVALUE_MSITYPE -) - -func (i MsiType) String() string { - return []string{"none", "userAssigned", "systemAssigned", "unknownFutureValue"}[i] -} -func ParseMsiType(v string) (any, error) { - result := NONE_MSITYPE - switch v { - case "none": - result = NONE_MSITYPE - case "userAssigned": - result = USERASSIGNED_MSITYPE - case "systemAssigned": - result = SYSTEMASSIGNED_MSITYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MSITYPE - default: - return 0, errors.New("Unknown MsiType value: " + v) - } - return &result, nil -} -func SerializeMsiType(values []MsiType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MsiType) isMultiValue() bool { - return false -} diff --git a/models/multi_tenant_organization.go b/models/multi_tenant_organization.go index 2767fd48088..2d02a4fa033 100644 --- a/models/multi_tenant_organization.go +++ b/models/multi_tenant_organization.go @@ -97,12 +97,12 @@ func (m *MultiTenantOrganization) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationState) + val, err := n.GetEnumValue(ParseMultiTenantOrganization_state) if err != nil { return err } if val != nil { - m.SetState(val.(*MultiTenantOrganizationState)) + m.SetState(val.(*MultiTenantOrganization_state)) } return nil } @@ -136,13 +136,13 @@ func (m *MultiTenantOrganization) GetJoinRequest()(MultiTenantOrganizationJoinRe return nil } // GetState gets the state property value. State of the multitenant organization. The possible values are: active, inactive, unknownFutureValue. active indicates the multitenant organization is created. inactive indicates the multitenant organization isn't created. Read-only. -func (m *MultiTenantOrganization) GetState()(*MultiTenantOrganizationState) { +func (m *MultiTenantOrganization) GetState()(*MultiTenantOrganization_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationState) + return val.(*MultiTenantOrganization_state) } return nil } @@ -237,7 +237,7 @@ func (m *MultiTenantOrganization) SetJoinRequest(value MultiTenantOrganizationJo } } // SetState sets the state property value. State of the multitenant organization. The possible values are: active, inactive, unknownFutureValue. active indicates the multitenant organization is created. inactive indicates the multitenant organization isn't created. Read-only. -func (m *MultiTenantOrganization) SetState(value *MultiTenantOrganizationState)() { +func (m *MultiTenantOrganization) SetState(value *MultiTenantOrganization_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -258,12 +258,12 @@ type MultiTenantOrganizationable interface { GetDescription()(*string) GetDisplayName()(*string) GetJoinRequest()(MultiTenantOrganizationJoinRequestRecordable) - GetState()(*MultiTenantOrganizationState) + GetState()(*MultiTenantOrganization_state) GetTenants()([]MultiTenantOrganizationMemberable) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() SetDisplayName(value *string)() SetJoinRequest(value MultiTenantOrganizationJoinRequestRecordable)() - SetState(value *MultiTenantOrganizationState)() + SetState(value *MultiTenantOrganization_state)() SetTenants(value []MultiTenantOrganizationMemberable)() } diff --git a/models/multi_tenant_organization_join_request_record.go b/models/multi_tenant_organization_join_request_record.go index 56f16775548..b7febd5a81b 100644 --- a/models/multi_tenant_organization_join_request_record.go +++ b/models/multi_tenant_organization_join_request_record.go @@ -44,22 +44,22 @@ func (m *MultiTenantOrganizationJoinRequestRecord) GetFieldDeserializers()(map[s return nil } res["memberState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberState) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationJoinRequestRecord_memberState) if err != nil { return err } if val != nil { - m.SetMemberState(val.(*MultiTenantOrganizationMemberState)) + m.SetMemberState(val.(*MultiTenantOrganizationJoinRequestRecord_memberState)) } return nil } res["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberRole) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationJoinRequestRecord_role) if err != nil { return err } if val != nil { - m.SetRole(val.(*MultiTenantOrganizationMemberRole)) + m.SetRole(val.(*MultiTenantOrganizationJoinRequestRecord_role)) } return nil } @@ -76,24 +76,24 @@ func (m *MultiTenantOrganizationJoinRequestRecord) GetFieldDeserializers()(map[s return res } // GetMemberState gets the memberState property value. State of the tenant in the multi-tenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multi-tenant organization to participate in the multi-tenant organization. Tenants in the active state can participate in the multi-tenant organization. Tenants in the removed state are in the process of being removed from the multi-tenant organization. Read-only. -func (m *MultiTenantOrganizationJoinRequestRecord) GetMemberState()(*MultiTenantOrganizationMemberState) { +func (m *MultiTenantOrganizationJoinRequestRecord) GetMemberState()(*MultiTenantOrganizationJoinRequestRecord_memberState) { val, err := m.GetBackingStore().Get("memberState") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberState) + return val.(*MultiTenantOrganizationJoinRequestRecord_memberState) } return nil } // GetRole gets the role property value. Role of the tenant in the multi-tenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multi-tenant organization. There can be multiple tenants with the owner role in a multi-tenant organization. Tenants with the member role can participate in a multi-tenant organization. -func (m *MultiTenantOrganizationJoinRequestRecord) GetRole()(*MultiTenantOrganizationMemberRole) { +func (m *MultiTenantOrganizationJoinRequestRecord) GetRole()(*MultiTenantOrganizationJoinRequestRecord_role) { val, err := m.GetBackingStore().Get("role") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberRole) + return val.(*MultiTenantOrganizationJoinRequestRecord_role) } return nil } @@ -150,14 +150,14 @@ func (m *MultiTenantOrganizationJoinRequestRecord) SetAddedByTenantId(value *str } } // SetMemberState sets the memberState property value. State of the tenant in the multi-tenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multi-tenant organization to participate in the multi-tenant organization. Tenants in the active state can participate in the multi-tenant organization. Tenants in the removed state are in the process of being removed from the multi-tenant organization. Read-only. -func (m *MultiTenantOrganizationJoinRequestRecord) SetMemberState(value *MultiTenantOrganizationMemberState)() { +func (m *MultiTenantOrganizationJoinRequestRecord) SetMemberState(value *MultiTenantOrganizationJoinRequestRecord_memberState)() { err := m.GetBackingStore().Set("memberState", value) if err != nil { panic(err) } } // SetRole sets the role property value. Role of the tenant in the multi-tenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multi-tenant organization. There can be multiple tenants with the owner role in a multi-tenant organization. Tenants with the member role can participate in a multi-tenant organization. -func (m *MultiTenantOrganizationJoinRequestRecord) SetRole(value *MultiTenantOrganizationMemberRole)() { +func (m *MultiTenantOrganizationJoinRequestRecord) SetRole(value *MultiTenantOrganizationJoinRequestRecord_role)() { err := m.GetBackingStore().Set("role", value) if err != nil { panic(err) @@ -175,11 +175,11 @@ type MultiTenantOrganizationJoinRequestRecordable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAddedByTenantId()(*string) - GetMemberState()(*MultiTenantOrganizationMemberState) - GetRole()(*MultiTenantOrganizationMemberRole) + GetMemberState()(*MultiTenantOrganizationJoinRequestRecord_memberState) + GetRole()(*MultiTenantOrganizationJoinRequestRecord_role) GetTransitionDetails()(MultiTenantOrganizationJoinRequestTransitionDetailsable) SetAddedByTenantId(value *string)() - SetMemberState(value *MultiTenantOrganizationMemberState)() - SetRole(value *MultiTenantOrganizationMemberRole)() + SetMemberState(value *MultiTenantOrganizationJoinRequestRecord_memberState)() + SetRole(value *MultiTenantOrganizationJoinRequestRecord_role)() SetTransitionDetails(value MultiTenantOrganizationJoinRequestTransitionDetailsable)() } diff --git a/models/multi_tenant_organization_join_request_record_member_state.go b/models/multi_tenant_organization_join_request_record_member_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/multi_tenant_organization_join_request_record_role.go b/models/multi_tenant_organization_join_request_record_role.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/multi_tenant_organization_join_request_transition_details.go b/models/multi_tenant_organization_join_request_transition_details.go index cd41a836c4c..dfe3928d946 100644 --- a/models/multi_tenant_organization_join_request_transition_details.go +++ b/models/multi_tenant_organization_join_request_transition_details.go @@ -39,13 +39,13 @@ func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetBackingStore()( return m.backingStore } // GetDesiredMemberState gets the desiredMemberState property value. State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. -func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetDesiredMemberState()(*MultiTenantOrganizationMemberState) { +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetDesiredMemberState()(*MultiTenantOrganizationJoinRequestTransitionDetails_desiredMemberState) { val, err := m.GetBackingStore().Get("desiredMemberState") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberState) + return val.(*MultiTenantOrganizationJoinRequestTransitionDetails_desiredMemberState) } return nil } @@ -64,12 +64,12 @@ func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetDetails()(*stri func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["desiredMemberState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberState) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationJoinRequestTransitionDetails_desiredMemberState) if err != nil { return err } if val != nil { - m.SetDesiredMemberState(val.(*MultiTenantOrganizationMemberState)) + m.SetDesiredMemberState(val.(*MultiTenantOrganizationJoinRequestTransitionDetails_desiredMemberState)) } return nil } @@ -94,12 +94,12 @@ func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetFieldDeserializ return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberProcessingStatus) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationJoinRequestTransitionDetails_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*MultiTenantOrganizationMemberProcessingStatus)) + m.SetStatus(val.(*MultiTenantOrganizationJoinRequestTransitionDetails_status)) } return nil } @@ -117,13 +117,13 @@ func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetOdataType()(*st return nil } // GetStatus gets the status property value. Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. -func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetStatus()(*MultiTenantOrganizationMemberProcessingStatus) { +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) GetStatus()(*MultiTenantOrganizationJoinRequestTransitionDetails_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberProcessingStatus) + return val.(*MultiTenantOrganizationJoinRequestTransitionDetails_status) } return nil } @@ -175,7 +175,7 @@ func (m *MultiTenantOrganizationJoinRequestTransitionDetails) SetBackingStore(va m.backingStore = value } // SetDesiredMemberState sets the desiredMemberState property value. State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. -func (m *MultiTenantOrganizationJoinRequestTransitionDetails) SetDesiredMemberState(value *MultiTenantOrganizationMemberState)() { +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) SetDesiredMemberState(value *MultiTenantOrganizationJoinRequestTransitionDetails_desiredMemberState)() { err := m.GetBackingStore().Set("desiredMemberState", value) if err != nil { panic(err) @@ -196,7 +196,7 @@ func (m *MultiTenantOrganizationJoinRequestTransitionDetails) SetOdataType(value } } // SetStatus sets the status property value. Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. -func (m *MultiTenantOrganizationJoinRequestTransitionDetails) SetStatus(value *MultiTenantOrganizationMemberProcessingStatus)() { +func (m *MultiTenantOrganizationJoinRequestTransitionDetails) SetStatus(value *MultiTenantOrganizationJoinRequestTransitionDetails_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -208,13 +208,13 @@ type MultiTenantOrganizationJoinRequestTransitionDetailsable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDesiredMemberState()(*MultiTenantOrganizationMemberState) + GetDesiredMemberState()(*MultiTenantOrganizationJoinRequestTransitionDetails_desiredMemberState) GetDetails()(*string) GetOdataType()(*string) - GetStatus()(*MultiTenantOrganizationMemberProcessingStatus) + GetStatus()(*MultiTenantOrganizationJoinRequestTransitionDetails_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDesiredMemberState(value *MultiTenantOrganizationMemberState)() + SetDesiredMemberState(value *MultiTenantOrganizationJoinRequestTransitionDetails_desiredMemberState)() SetDetails(value *string)() SetOdataType(value *string)() - SetStatus(value *MultiTenantOrganizationMemberProcessingStatus)() + SetStatus(value *MultiTenantOrganizationJoinRequestTransitionDetails_status)() } diff --git a/models/multi_tenant_organization_join_request_transition_details_desired_member_state.go b/models/multi_tenant_organization_join_request_transition_details_desired_member_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/multi_tenant_organization_join_request_transition_details_status.go b/models/multi_tenant_organization_join_request_transition_details_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/multi_tenant_organization_member.go b/models/multi_tenant_organization_member.go index dbd213b2e8b..6b2bde699ae 100644 --- a/models/multi_tenant_organization_member.go +++ b/models/multi_tenant_organization_member.go @@ -100,22 +100,22 @@ func (m *MultiTenantOrganizationMember) GetFieldDeserializers()(map[string]func( return nil } res["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberRole) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMember_role) if err != nil { return err } if val != nil { - m.SetRole(val.(*MultiTenantOrganizationMemberRole)) + m.SetRole(val.(*MultiTenantOrganizationMember_role)) } return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberState) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMember_state) if err != nil { return err } if val != nil { - m.SetState(val.(*MultiTenantOrganizationMemberState)) + m.SetState(val.(*MultiTenantOrganizationMember_state)) } return nil } @@ -153,24 +153,24 @@ func (m *MultiTenantOrganizationMember) GetJoinedDateTime()(*i336074805fc853987a return nil } // GetRole gets the role property value. Role of the tenant in the multitenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multitenant organization but tenants with the member role can only participate in a multitenant organization. There can be multiple tenants with the owner role in a multitenant organization. -func (m *MultiTenantOrganizationMember) GetRole()(*MultiTenantOrganizationMemberRole) { +func (m *MultiTenantOrganizationMember) GetRole()(*MultiTenantOrganizationMember_role) { val, err := m.GetBackingStore().Get("role") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberRole) + return val.(*MultiTenantOrganizationMember_role) } return nil } // GetState gets the state property value. State of the tenant in the multitenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multitenant organization to participate in the multitenant organization. Tenants in the active state can participate in the multitenant organization. Tenants in the removed state are in the process of being removed from the multitenant organization. Read-only. -func (m *MultiTenantOrganizationMember) GetState()(*MultiTenantOrganizationMemberState) { +func (m *MultiTenantOrganizationMember) GetState()(*MultiTenantOrganizationMember_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberState) + return val.(*MultiTenantOrganizationMember_state) } return nil } @@ -283,14 +283,14 @@ func (m *MultiTenantOrganizationMember) SetJoinedDateTime(value *i336074805fc853 } } // SetRole sets the role property value. Role of the tenant in the multitenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multitenant organization but tenants with the member role can only participate in a multitenant organization. There can be multiple tenants with the owner role in a multitenant organization. -func (m *MultiTenantOrganizationMember) SetRole(value *MultiTenantOrganizationMemberRole)() { +func (m *MultiTenantOrganizationMember) SetRole(value *MultiTenantOrganizationMember_role)() { err := m.GetBackingStore().Set("role", value) if err != nil { panic(err) } } // SetState sets the state property value. State of the tenant in the multitenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multitenant organization to participate in the multitenant organization. Tenants in the active state can participate in the multitenant organization. Tenants in the removed state are in the process of being removed from the multitenant organization. Read-only. -func (m *MultiTenantOrganizationMember) SetState(value *MultiTenantOrganizationMemberState)() { +func (m *MultiTenantOrganizationMember) SetState(value *MultiTenantOrganizationMember_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -318,16 +318,16 @@ type MultiTenantOrganizationMemberable interface { GetAddedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) GetJoinedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetRole()(*MultiTenantOrganizationMemberRole) - GetState()(*MultiTenantOrganizationMemberState) + GetRole()(*MultiTenantOrganizationMember_role) + GetState()(*MultiTenantOrganizationMember_state) GetTenantId()(*string) GetTransitionDetails()(MultiTenantOrganizationMemberTransitionDetailsable) SetAddedByTenantId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() SetAddedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() SetJoinedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetRole(value *MultiTenantOrganizationMemberRole)() - SetState(value *MultiTenantOrganizationMemberState)() + SetRole(value *MultiTenantOrganizationMember_role)() + SetState(value *MultiTenantOrganizationMember_state)() SetTenantId(value *string)() SetTransitionDetails(value MultiTenantOrganizationMemberTransitionDetailsable)() } diff --git a/models/multi_tenant_organization_member_processing_status.go b/models/multi_tenant_organization_member_processing_status.go deleted file mode 100644 index 31acad69242..00000000000 --- a/models/multi_tenant_organization_member_processing_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type MultiTenantOrganizationMemberProcessingStatus int - -const ( - NOTSTARTED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS MultiTenantOrganizationMemberProcessingStatus = iota - RUNNING_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - SUCCEEDED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - FAILED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS -) - -func (i MultiTenantOrganizationMemberProcessingStatus) String() string { - return []string{"notStarted", "running", "succeeded", "failed", "unknownFutureValue"}[i] -} -func ParseMultiTenantOrganizationMemberProcessingStatus(v string) (any, error) { - result := NOTSTARTED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - switch v { - case "notStarted": - result = NOTSTARTED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - case "running": - result = RUNNING_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - case "succeeded": - result = SUCCEEDED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - case "failed": - result = FAILED_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS - default: - return 0, errors.New("Unknown MultiTenantOrganizationMemberProcessingStatus value: " + v) - } - return &result, nil -} -func SerializeMultiTenantOrganizationMemberProcessingStatus(values []MultiTenantOrganizationMemberProcessingStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MultiTenantOrganizationMemberProcessingStatus) isMultiValue() bool { - return false -} diff --git a/models/multi_tenant_organization_member_role.go b/models/multi_tenant_organization_member_role.go index e155dc9deeb..e69de29bb2d 100644 --- a/models/multi_tenant_organization_member_role.go +++ b/models/multi_tenant_organization_member_role.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type MultiTenantOrganizationMemberRole int - -const ( - OWNER_MULTITENANTORGANIZATIONMEMBERROLE MultiTenantOrganizationMemberRole = iota - MEMBER_MULTITENANTORGANIZATIONMEMBERROLE - UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERROLE -) - -func (i MultiTenantOrganizationMemberRole) String() string { - return []string{"owner", "member", "unknownFutureValue"}[i] -} -func ParseMultiTenantOrganizationMemberRole(v string) (any, error) { - result := OWNER_MULTITENANTORGANIZATIONMEMBERROLE - switch v { - case "owner": - result = OWNER_MULTITENANTORGANIZATIONMEMBERROLE - case "member": - result = MEMBER_MULTITENANTORGANIZATIONMEMBERROLE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERROLE - default: - return 0, errors.New("Unknown MultiTenantOrganizationMemberRole value: " + v) - } - return &result, nil -} -func SerializeMultiTenantOrganizationMemberRole(values []MultiTenantOrganizationMemberRole) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MultiTenantOrganizationMemberRole) isMultiValue() bool { - return false -} diff --git a/models/multi_tenant_organization_member_state.go b/models/multi_tenant_organization_member_state.go index f1d044144c3..e69de29bb2d 100644 --- a/models/multi_tenant_organization_member_state.go +++ b/models/multi_tenant_organization_member_state.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type MultiTenantOrganizationMemberState int - -const ( - PENDING_MULTITENANTORGANIZATIONMEMBERSTATE MultiTenantOrganizationMemberState = iota - ACTIVE_MULTITENANTORGANIZATIONMEMBERSTATE - REMOVED_MULTITENANTORGANIZATIONMEMBERSTATE - UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERSTATE -) - -func (i MultiTenantOrganizationMemberState) String() string { - return []string{"pending", "active", "removed", "unknownFutureValue"}[i] -} -func ParseMultiTenantOrganizationMemberState(v string) (any, error) { - result := PENDING_MULTITENANTORGANIZATIONMEMBERSTATE - switch v { - case "pending": - result = PENDING_MULTITENANTORGANIZATIONMEMBERSTATE - case "active": - result = ACTIVE_MULTITENANTORGANIZATIONMEMBERSTATE - case "removed": - result = REMOVED_MULTITENANTORGANIZATIONMEMBERSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERSTATE - default: - return 0, errors.New("Unknown MultiTenantOrganizationMemberState value: " + v) - } - return &result, nil -} -func SerializeMultiTenantOrganizationMemberState(values []MultiTenantOrganizationMemberState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MultiTenantOrganizationMemberState) isMultiValue() bool { - return false -} diff --git a/models/multi_tenant_organization_member_transition_details.go b/models/multi_tenant_organization_member_transition_details.go index 7ba8127d3d5..9c255173a22 100644 --- a/models/multi_tenant_organization_member_transition_details.go +++ b/models/multi_tenant_organization_member_transition_details.go @@ -39,24 +39,24 @@ func (m *MultiTenantOrganizationMemberTransitionDetails) GetBackingStore()(ie867 return m.backingStore } // GetDesiredRole gets the desiredRole property value. Role of the tenant in the multitenant organization. The possible values are: owner, member, unknownFutureValue. -func (m *MultiTenantOrganizationMemberTransitionDetails) GetDesiredRole()(*MultiTenantOrganizationMemberRole) { +func (m *MultiTenantOrganizationMemberTransitionDetails) GetDesiredRole()(*MultiTenantOrganizationMemberTransitionDetails_desiredRole) { val, err := m.GetBackingStore().Get("desiredRole") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberRole) + return val.(*MultiTenantOrganizationMemberTransitionDetails_desiredRole) } return nil } // GetDesiredState gets the desiredState property value. State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. -func (m *MultiTenantOrganizationMemberTransitionDetails) GetDesiredState()(*MultiTenantOrganizationMemberState) { +func (m *MultiTenantOrganizationMemberTransitionDetails) GetDesiredState()(*MultiTenantOrganizationMemberTransitionDetails_desiredState) { val, err := m.GetBackingStore().Get("desiredState") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberState) + return val.(*MultiTenantOrganizationMemberTransitionDetails_desiredState) } return nil } @@ -75,22 +75,22 @@ func (m *MultiTenantOrganizationMemberTransitionDetails) GetDetails()(*string) { func (m *MultiTenantOrganizationMemberTransitionDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["desiredRole"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberRole) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberTransitionDetails_desiredRole) if err != nil { return err } if val != nil { - m.SetDesiredRole(val.(*MultiTenantOrganizationMemberRole)) + m.SetDesiredRole(val.(*MultiTenantOrganizationMemberTransitionDetails_desiredRole)) } return nil } res["desiredState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberState) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberTransitionDetails_desiredState) if err != nil { return err } if val != nil { - m.SetDesiredState(val.(*MultiTenantOrganizationMemberState)) + m.SetDesiredState(val.(*MultiTenantOrganizationMemberTransitionDetails_desiredState)) } return nil } @@ -115,12 +115,12 @@ func (m *MultiTenantOrganizationMemberTransitionDetails) GetFieldDeserializers() return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberProcessingStatus) + val, err := n.GetEnumValue(ParseMultiTenantOrganizationMemberTransitionDetails_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*MultiTenantOrganizationMemberProcessingStatus)) + m.SetStatus(val.(*MultiTenantOrganizationMemberTransitionDetails_status)) } return nil } @@ -138,13 +138,13 @@ func (m *MultiTenantOrganizationMemberTransitionDetails) GetOdataType()(*string) return nil } // GetStatus gets the status property value. Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. -func (m *MultiTenantOrganizationMemberTransitionDetails) GetStatus()(*MultiTenantOrganizationMemberProcessingStatus) { +func (m *MultiTenantOrganizationMemberTransitionDetails) GetStatus()(*MultiTenantOrganizationMemberTransitionDetails_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*MultiTenantOrganizationMemberProcessingStatus) + return val.(*MultiTenantOrganizationMemberTransitionDetails_status) } return nil } @@ -203,14 +203,14 @@ func (m *MultiTenantOrganizationMemberTransitionDetails) SetBackingStore(value i m.backingStore = value } // SetDesiredRole sets the desiredRole property value. Role of the tenant in the multitenant organization. The possible values are: owner, member, unknownFutureValue. -func (m *MultiTenantOrganizationMemberTransitionDetails) SetDesiredRole(value *MultiTenantOrganizationMemberRole)() { +func (m *MultiTenantOrganizationMemberTransitionDetails) SetDesiredRole(value *MultiTenantOrganizationMemberTransitionDetails_desiredRole)() { err := m.GetBackingStore().Set("desiredRole", value) if err != nil { panic(err) } } // SetDesiredState sets the desiredState property value. State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. -func (m *MultiTenantOrganizationMemberTransitionDetails) SetDesiredState(value *MultiTenantOrganizationMemberState)() { +func (m *MultiTenantOrganizationMemberTransitionDetails) SetDesiredState(value *MultiTenantOrganizationMemberTransitionDetails_desiredState)() { err := m.GetBackingStore().Set("desiredState", value) if err != nil { panic(err) @@ -231,7 +231,7 @@ func (m *MultiTenantOrganizationMemberTransitionDetails) SetOdataType(value *str } } // SetStatus sets the status property value. Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. -func (m *MultiTenantOrganizationMemberTransitionDetails) SetStatus(value *MultiTenantOrganizationMemberProcessingStatus)() { +func (m *MultiTenantOrganizationMemberTransitionDetails) SetStatus(value *MultiTenantOrganizationMemberTransitionDetails_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -243,15 +243,15 @@ type MultiTenantOrganizationMemberTransitionDetailsable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDesiredRole()(*MultiTenantOrganizationMemberRole) - GetDesiredState()(*MultiTenantOrganizationMemberState) + GetDesiredRole()(*MultiTenantOrganizationMemberTransitionDetails_desiredRole) + GetDesiredState()(*MultiTenantOrganizationMemberTransitionDetails_desiredState) GetDetails()(*string) GetOdataType()(*string) - GetStatus()(*MultiTenantOrganizationMemberProcessingStatus) + GetStatus()(*MultiTenantOrganizationMemberTransitionDetails_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDesiredRole(value *MultiTenantOrganizationMemberRole)() - SetDesiredState(value *MultiTenantOrganizationMemberState)() + SetDesiredRole(value *MultiTenantOrganizationMemberTransitionDetails_desiredRole)() + SetDesiredState(value *MultiTenantOrganizationMemberTransitionDetails_desiredState)() SetDetails(value *string)() SetOdataType(value *string)() - SetStatus(value *MultiTenantOrganizationMemberProcessingStatus)() + SetStatus(value *MultiTenantOrganizationMemberTransitionDetails_status)() } diff --git a/models/multi_tenant_organization_member_transition_details_desired_role.go b/models/multi_tenant_organization_member_transition_details_desired_role.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/multi_tenant_organization_member_transition_details_desired_state.go b/models/multi_tenant_organization_member_transition_details_desired_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/multi_tenant_organization_member_transition_details_status.go b/models/multi_tenant_organization_member_transition_details_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/multi_tenant_organization_state.go b/models/multi_tenant_organization_state.go index 678ee2e6036..e69de29bb2d 100644 --- a/models/multi_tenant_organization_state.go +++ b/models/multi_tenant_organization_state.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type MultiTenantOrganizationState int - -const ( - ACTIVE_MULTITENANTORGANIZATIONSTATE MultiTenantOrganizationState = iota - INACTIVE_MULTITENANTORGANIZATIONSTATE - UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONSTATE -) - -func (i MultiTenantOrganizationState) String() string { - return []string{"active", "inactive", "unknownFutureValue"}[i] -} -func ParseMultiTenantOrganizationState(v string) (any, error) { - result := ACTIVE_MULTITENANTORGANIZATIONSTATE - switch v { - case "active": - result = ACTIVE_MULTITENANTORGANIZATIONSTATE - case "inactive": - result = INACTIVE_MULTITENANTORGANIZATIONSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONSTATE - default: - return 0, errors.New("Unknown MultiTenantOrganizationState value: " + v) - } - return &result, nil -} -func SerializeMultiTenantOrganizationState(values []MultiTenantOrganizationState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MultiTenantOrganizationState) isMultiValue() bool { - return false -} diff --git a/models/network_connection.go b/models/network_connection.go index a191b127119..4c895d04f8d 100644 --- a/models/network_connection.go +++ b/models/network_connection.go @@ -106,13 +106,13 @@ func (m *NetworkConnection) GetDestinationUrl()(*string) { return nil } // GetDirection gets the direction property value. Network connection direction. Possible values are: unknown, inbound, outbound. -func (m *NetworkConnection) GetDirection()(*ConnectionDirection) { +func (m *NetworkConnection) GetDirection()(*NetworkConnection_direction) { val, err := m.GetBackingStore().Get("direction") if err != nil { panic(err) } if val != nil { - return val.(*ConnectionDirection) + return val.(*NetworkConnection_direction) } return nil } @@ -191,12 +191,12 @@ func (m *NetworkConnection) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["direction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectionDirection) + val, err := n.GetEnumValue(ParseNetworkConnection_direction) if err != nil { return err } if val != nil { - m.SetDirection(val.(*ConnectionDirection)) + m.SetDirection(val.(*NetworkConnection_direction)) } return nil } @@ -271,12 +271,12 @@ func (m *NetworkConnection) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["protocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSecurityNetworkProtocol) + val, err := n.GetEnumValue(ParseNetworkConnection_protocol) if err != nil { return err } if val != nil { - m.SetProtocol(val.(*SecurityNetworkProtocol)) + m.SetProtocol(val.(*NetworkConnection_protocol)) } return nil } @@ -321,12 +321,12 @@ func (m *NetworkConnection) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectionStatus) + val, err := n.GetEnumValue(ParseNetworkConnection_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*ConnectionStatus)) + m.SetStatus(val.(*NetworkConnection_status)) } return nil } @@ -409,13 +409,13 @@ func (m *NetworkConnection) GetOdataType()(*string) { return nil } // GetProtocol gets the protocol property value. Network protocol. Possible values are: unknown, ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII. -func (m *NetworkConnection) GetProtocol()(*SecurityNetworkProtocol) { +func (m *NetworkConnection) GetProtocol()(*NetworkConnection_protocol) { val, err := m.GetBackingStore().Get("protocol") if err != nil { panic(err) } if val != nil { - return val.(*SecurityNetworkProtocol) + return val.(*NetworkConnection_protocol) } return nil } @@ -464,13 +464,13 @@ func (m *NetworkConnection) GetSourcePort()(*string) { return nil } // GetStatus gets the status property value. Network connection status. Possible values are: unknown, attempted, succeeded, blocked, failed. -func (m *NetworkConnection) GetStatus()(*ConnectionStatus) { +func (m *NetworkConnection) GetStatus()(*NetworkConnection_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*ConnectionStatus) + return val.(*NetworkConnection_status) } return nil } @@ -678,7 +678,7 @@ func (m *NetworkConnection) SetDestinationUrl(value *string)() { } } // SetDirection sets the direction property value. Network connection direction. Possible values are: unknown, inbound, outbound. -func (m *NetworkConnection) SetDirection(value *ConnectionDirection)() { +func (m *NetworkConnection) SetDirection(value *NetworkConnection_direction)() { err := m.GetBackingStore().Set("direction", value) if err != nil { panic(err) @@ -734,7 +734,7 @@ func (m *NetworkConnection) SetOdataType(value *string)() { } } // SetProtocol sets the protocol property value. Network protocol. Possible values are: unknown, ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII. -func (m *NetworkConnection) SetProtocol(value *SecurityNetworkProtocol)() { +func (m *NetworkConnection) SetProtocol(value *NetworkConnection_protocol)() { err := m.GetBackingStore().Set("protocol", value) if err != nil { panic(err) @@ -769,7 +769,7 @@ func (m *NetworkConnection) SetSourcePort(value *string)() { } } // SetStatus sets the status property value. Network connection status. Possible values are: unknown, attempted, succeeded, blocked, failed. -func (m *NetworkConnection) SetStatus(value *ConnectionStatus)() { +func (m *NetworkConnection) SetStatus(value *NetworkConnection_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -794,7 +794,7 @@ type NetworkConnectionable interface { GetDestinationLocation()(*string) GetDestinationPort()(*string) GetDestinationUrl()(*string) - GetDirection()(*ConnectionDirection) + GetDirection()(*NetworkConnection_direction) GetDomainRegisteredDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLocalDnsName()(*string) GetNatDestinationAddress()(*string) @@ -802,12 +802,12 @@ type NetworkConnectionable interface { GetNatSourceAddress()(*string) GetNatSourcePort()(*string) GetOdataType()(*string) - GetProtocol()(*SecurityNetworkProtocol) + GetProtocol()(*NetworkConnection_protocol) GetRiskScore()(*string) GetSourceAddress()(*string) GetSourceLocation()(*string) GetSourcePort()(*string) - GetStatus()(*ConnectionStatus) + GetStatus()(*NetworkConnection_status) GetUrlParameters()(*string) SetApplicationName(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() @@ -816,7 +816,7 @@ type NetworkConnectionable interface { SetDestinationLocation(value *string)() SetDestinationPort(value *string)() SetDestinationUrl(value *string)() - SetDirection(value *ConnectionDirection)() + SetDirection(value *NetworkConnection_direction)() SetDomainRegisteredDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLocalDnsName(value *string)() SetNatDestinationAddress(value *string)() @@ -824,11 +824,11 @@ type NetworkConnectionable interface { SetNatSourceAddress(value *string)() SetNatSourcePort(value *string)() SetOdataType(value *string)() - SetProtocol(value *SecurityNetworkProtocol)() + SetProtocol(value *NetworkConnection_protocol)() SetRiskScore(value *string)() SetSourceAddress(value *string)() SetSourceLocation(value *string)() SetSourcePort(value *string)() - SetStatus(value *ConnectionStatus)() + SetStatus(value *NetworkConnection_status)() SetUrlParameters(value *string)() } diff --git a/models/network_connection_direction.go b/models/network_connection_direction.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/network_connection_protocol.go b/models/network_connection_protocol.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/network_connection_status.go b/models/network_connection_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/network_location_detail.go b/models/network_location_detail.go index e7ecfec986d..54bcb0e3c6a 100644 --- a/models/network_location_detail.go +++ b/models/network_location_detail.go @@ -58,12 +58,12 @@ func (m *NetworkLocationDetail) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["networkType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNetworkType) + val, err := n.GetEnumValue(ParseNetworkLocationDetail_networkType) if err != nil { return err } if val != nil { - m.SetNetworkType(val.(*NetworkType)) + m.SetNetworkType(val.(*NetworkLocationDetail_networkType)) } return nil } @@ -91,13 +91,13 @@ func (m *NetworkLocationDetail) GetNetworkNames()([]string) { return nil } // GetNetworkType gets the networkType property value. Provides the type of network used when signing in. Possible values are: intranet, extranet, namedNetwork, trusted, unknownFutureValue. -func (m *NetworkLocationDetail) GetNetworkType()(*NetworkType) { +func (m *NetworkLocationDetail) GetNetworkType()(*NetworkLocationDetail_networkType) { val, err := m.GetBackingStore().Get("networkType") if err != nil { panic(err) } if val != nil { - return val.(*NetworkType) + return val.(*NetworkLocationDetail_networkType) } return nil } @@ -160,7 +160,7 @@ func (m *NetworkLocationDetail) SetNetworkNames(value []string)() { } } // SetNetworkType sets the networkType property value. Provides the type of network used when signing in. Possible values are: intranet, extranet, namedNetwork, trusted, unknownFutureValue. -func (m *NetworkLocationDetail) SetNetworkType(value *NetworkType)() { +func (m *NetworkLocationDetail) SetNetworkType(value *NetworkLocationDetail_networkType)() { err := m.GetBackingStore().Set("networkType", value) if err != nil { panic(err) @@ -180,10 +180,10 @@ type NetworkLocationDetailable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetNetworkNames()([]string) - GetNetworkType()(*NetworkType) + GetNetworkType()(*NetworkLocationDetail_networkType) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetNetworkNames(value []string)() - SetNetworkType(value *NetworkType)() + SetNetworkType(value *NetworkLocationDetail_networkType)() SetOdataType(value *string)() } diff --git a/models/network_location_detail_network_type.go b/models/network_location_detail_network_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/network_single_sign_on_type.go b/models/network_single_sign_on_type.go deleted file mode 100644 index b2daf43b437..00000000000 --- a/models/network_single_sign_on_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Wi-Fi Network Single Sign On Type Settings. -type NetworkSingleSignOnType int - -const ( - // Disabled - DISABLED_NETWORKSINGLESIGNONTYPE NetworkSingleSignOnType = iota - // Pre-Logon - PRELOGON_NETWORKSINGLESIGNONTYPE - // Post-Logon - POSTLOGON_NETWORKSINGLESIGNONTYPE -) - -func (i NetworkSingleSignOnType) String() string { - return []string{"disabled", "prelogon", "postlogon"}[i] -} -func ParseNetworkSingleSignOnType(v string) (any, error) { - result := DISABLED_NETWORKSINGLESIGNONTYPE - switch v { - case "disabled": - result = DISABLED_NETWORKSINGLESIGNONTYPE - case "prelogon": - result = PRELOGON_NETWORKSINGLESIGNONTYPE - case "postlogon": - result = POSTLOGON_NETWORKSINGLESIGNONTYPE - default: - return 0, errors.New("Unknown NetworkSingleSignOnType value: " + v) - } - return &result, nil -} -func SerializeNetworkSingleSignOnType(values []NetworkSingleSignOnType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NetworkSingleSignOnType) isMultiValue() bool { - return false -} diff --git a/models/network_type.go b/models/network_type.go deleted file mode 100644 index bcc95920fe2..00000000000 --- a/models/network_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type NetworkType int - -const ( - INTRANET_NETWORKTYPE NetworkType = iota - EXTRANET_NETWORKTYPE - NAMEDNETWORK_NETWORKTYPE - TRUSTED_NETWORKTYPE - TRUSTEDNAMEDLOCATION_NETWORKTYPE - UNKNOWNFUTUREVALUE_NETWORKTYPE -) - -func (i NetworkType) String() string { - return []string{"intranet", "extranet", "namedNetwork", "trusted", "trustedNamedLocation", "unknownFutureValue"}[i] -} -func ParseNetworkType(v string) (any, error) { - result := INTRANET_NETWORKTYPE - switch v { - case "intranet": - result = INTRANET_NETWORKTYPE - case "extranet": - result = EXTRANET_NETWORKTYPE - case "namedNetwork": - result = NAMEDNETWORK_NETWORKTYPE - case "trusted": - result = TRUSTED_NETWORKTYPE - case "trustedNamedLocation": - result = TRUSTEDNAMEDLOCATION_NETWORKTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_NETWORKTYPE - default: - return 0, errors.New("Unknown NetworkType value: " + v) - } - return &result, nil -} -func SerializeNetworkType(values []NetworkType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NetworkType) isMultiValue() bool { - return false -} diff --git a/models/networkaccess/bandwidth_capacity_in_mbps.go b/models/networkaccess/bandwidth_capacity_in_mbps.go deleted file mode 100644 index 22bc3e4029b..00000000000 --- a/models/networkaccess/bandwidth_capacity_in_mbps.go +++ /dev/null @@ -1,46 +0,0 @@ -package networkaccess -import ( - "errors" -) -// -type BandwidthCapacityInMbps int - -const ( - MBPS250_BANDWIDTHCAPACITYINMBPS BandwidthCapacityInMbps = iota - MBPS500_BANDWIDTHCAPACITYINMBPS - MBPS750_BANDWIDTHCAPACITYINMBPS - MBPS1000_BANDWIDTHCAPACITYINMBPS - UNKNOWNFUTUREVALUE_BANDWIDTHCAPACITYINMBPS -) - -func (i BandwidthCapacityInMbps) String() string { - return []string{"mbps250", "mbps500", "mbps750", "mbps1000", "unknownFutureValue"}[i] -} -func ParseBandwidthCapacityInMbps(v string) (any, error) { - result := MBPS250_BANDWIDTHCAPACITYINMBPS - switch v { - case "mbps250": - result = MBPS250_BANDWIDTHCAPACITYINMBPS - case "mbps500": - result = MBPS500_BANDWIDTHCAPACITYINMBPS - case "mbps750": - result = MBPS750_BANDWIDTHCAPACITYINMBPS - case "mbps1000": - result = MBPS1000_BANDWIDTHCAPACITYINMBPS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_BANDWIDTHCAPACITYINMBPS - default: - return 0, errors.New("Unknown BandwidthCapacityInMbps value: " + v) - } - return &result, nil -} -func SerializeBandwidthCapacityInMbps(values []BandwidthCapacityInMbps) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i BandwidthCapacityInMbps) isMultiValue() bool { - return false -} diff --git a/models/networkaccess/branch_site.go b/models/networkaccess/branch_site.go index f6f0c53444d..4271c7cb62b 100644 --- a/models/networkaccess/branch_site.go +++ b/models/networkaccess/branch_site.go @@ -44,13 +44,13 @@ func (m *BranchSite) GetConnectivityConfiguration()(BranchConnectivityConfigurat return nil } // GetConnectivityState gets the connectivityState property value. Determines the branch site status. The possible values are: pending, connected, inactive, error. -func (m *BranchSite) GetConnectivityState()(*ConnectivityState) { +func (m *BranchSite) GetConnectivityState()(*BranchSite_connectivityState) { val, err := m.GetBackingStore().Get("connectivityState") if err != nil { panic(err) } if val != nil { - return val.(*ConnectivityState) + return val.(*BranchSite_connectivityState) } return nil } @@ -100,12 +100,12 @@ func (m *BranchSite) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["connectivityState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConnectivityState) + val, err := n.GetEnumValue(ParseBranchSite_connectivityState) if err != nil { return err } if val != nil { - m.SetConnectivityState(val.(*ConnectivityState)) + m.SetConnectivityState(val.(*BranchSite_connectivityState)) } return nil } @@ -345,7 +345,7 @@ func (m *BranchSite) SetConnectivityConfiguration(value BranchConnectivityConfig } } // SetConnectivityState sets the connectivityState property value. Determines the branch site status. The possible values are: pending, connected, inactive, error. -func (m *BranchSite) SetConnectivityState(value *ConnectivityState)() { +func (m *BranchSite) SetConnectivityState(value *BranchSite_connectivityState)() { err := m.GetBackingStore().Set("connectivityState", value) if err != nil { panic(err) @@ -406,7 +406,7 @@ type BranchSiteable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBandwidthCapacity()(*int64) GetConnectivityConfiguration()(BranchConnectivityConfigurationable) - GetConnectivityState()(*ConnectivityState) + GetConnectivityState()(*BranchSite_connectivityState) GetCountry()(*string) GetDeviceLinks()([]DeviceLinkable) GetForwardingProfiles()([]ForwardingProfileable) @@ -416,7 +416,7 @@ type BranchSiteable interface { GetVersion()(*string) SetBandwidthCapacity(value *int64)() SetConnectivityConfiguration(value BranchConnectivityConfigurationable)() - SetConnectivityState(value *ConnectivityState)() + SetConnectivityState(value *BranchSite_connectivityState)() SetCountry(value *string)() SetDeviceLinks(value []DeviceLinkable)() SetForwardingProfiles(value []ForwardingProfileable)() diff --git a/models/networkaccess/branch_site_connectivity_state.go b/models/networkaccess/branch_site_connectivity_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/networkaccess/connectivity_state.go b/models/networkaccess/connectivity_state.go deleted file mode 100644 index b9b3c9155ac..00000000000 --- a/models/networkaccess/connectivity_state.go +++ /dev/null @@ -1,46 +0,0 @@ -package networkaccess -import ( - "errors" -) -// -type ConnectivityState int - -const ( - PENDING_CONNECTIVITYSTATE ConnectivityState = iota - CONNECTED_CONNECTIVITYSTATE - INACTIVE_CONNECTIVITYSTATE - ERROR_CONNECTIVITYSTATE - UNKNOWNFUTUREVALUE_CONNECTIVITYSTATE -) - -func (i ConnectivityState) String() string { - return []string{"pending", "connected", "inactive", "error", "unknownFutureValue"}[i] -} -func ParseConnectivityState(v string) (any, error) { - result := PENDING_CONNECTIVITYSTATE - switch v { - case "pending": - result = PENDING_CONNECTIVITYSTATE - case "connected": - result = CONNECTED_CONNECTIVITYSTATE - case "inactive": - result = INACTIVE_CONNECTIVITYSTATE - case "error": - result = ERROR_CONNECTIVITYSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONNECTIVITYSTATE - default: - return 0, errors.New("Unknown ConnectivityState value: " + v) - } - return &result, nil -} -func SerializeConnectivityState(values []ConnectivityState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ConnectivityState) isMultiValue() bool { - return false -} diff --git a/models/networkaccess/destination_summary.go b/models/networkaccess/destination_summary.go index 102b98f3ed9..4094f326223 100644 --- a/models/networkaccess/destination_summary.go +++ b/models/networkaccess/destination_summary.go @@ -94,12 +94,12 @@ func (m *DestinationSummary) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["trafficType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTrafficType) + val, err := n.GetEnumValue(ParseDestinationSummary_trafficType) if err != nil { return err } if val != nil { - m.SetTrafficType(val.(*TrafficType)) + m.SetTrafficType(val.(*DestinationSummary_trafficType)) } return nil } @@ -117,13 +117,13 @@ func (m *DestinationSummary) GetOdataType()(*string) { return nil } // GetTrafficType gets the trafficType property value. The traffic classification. The allowed values are internet, private, microsoft365, all, and unknownFutureValue. -func (m *DestinationSummary) GetTrafficType()(*TrafficType) { +func (m *DestinationSummary) GetTrafficType()(*DestinationSummary_trafficType) { val, err := m.GetBackingStore().Get("trafficType") if err != nil { panic(err) } if val != nil { - return val.(*TrafficType) + return val.(*DestinationSummary_trafficType) } return nil } @@ -195,7 +195,7 @@ func (m *DestinationSummary) SetOdataType(value *string)() { } } // SetTrafficType sets the trafficType property value. The traffic classification. The allowed values are internet, private, microsoft365, all, and unknownFutureValue. -func (m *DestinationSummary) SetTrafficType(value *TrafficType)() { +func (m *DestinationSummary) SetTrafficType(value *DestinationSummary_trafficType)() { err := m.GetBackingStore().Set("trafficType", value) if err != nil { panic(err) @@ -210,10 +210,10 @@ type DestinationSummaryable interface { GetCount()(*int32) GetDestination()(*string) GetOdataType()(*string) - GetTrafficType()(*TrafficType) + GetTrafficType()(*DestinationSummary_trafficType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCount(value *int32)() SetDestination(value *string)() SetOdataType(value *string)() - SetTrafficType(value *TrafficType)() + SetTrafficType(value *DestinationSummary_trafficType)() } diff --git a/models/networkaccess/destination_summary_traffic_type.go b/models/networkaccess/destination_summary_traffic_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/networkaccess/device_category.go b/models/networkaccess/device_category.go deleted file mode 100644 index 264602aac77..00000000000 --- a/models/networkaccess/device_category.go +++ /dev/null @@ -1,40 +0,0 @@ -package networkaccess -import ( - "errors" -) -// -type DeviceCategory int - -const ( - CLIENT_DEVICECATEGORY DeviceCategory = iota - BRANCH_DEVICECATEGORY - UNKNOWNFUTUREVALUE_DEVICECATEGORY -) - -func (i DeviceCategory) String() string { - return []string{"client", "branch", "unknownFutureValue"}[i] -} -func ParseDeviceCategory(v string) (any, error) { - result := CLIENT_DEVICECATEGORY - switch v { - case "client": - result = CLIENT_DEVICECATEGORY - case "branch": - result = BRANCH_DEVICECATEGORY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DEVICECATEGORY - default: - return 0, errors.New("Unknown DeviceCategory value: " + v) - } - return &result, nil -} -func SerializeDeviceCategory(values []DeviceCategory) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DeviceCategory) isMultiValue() bool { - return false -} diff --git a/models/networkaccess/device_link.go b/models/networkaccess/device_link.go index 1bfcb966a00..63c639296c3 100644 --- a/models/networkaccess/device_link.go +++ b/models/networkaccess/device_link.go @@ -22,13 +22,13 @@ func CreateDeviceLinkFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3 return NewDeviceLink(), nil } // GetBandwidthCapacityInMbps gets the bandwidthCapacityInMbps property value. Determines the maximum allowed Mbps (megabits per second) bandwidth from a branch site. The possible values are:250,500,750,1000. -func (m *DeviceLink) GetBandwidthCapacityInMbps()(*BandwidthCapacityInMbps) { +func (m *DeviceLink) GetBandwidthCapacityInMbps()(*DeviceLink_bandwidthCapacityInMbps) { val, err := m.GetBackingStore().Get("bandwidthCapacityInMbps") if err != nil { panic(err) } if val != nil { - return val.(*BandwidthCapacityInMbps) + return val.(*DeviceLink_bandwidthCapacityInMbps) } return nil } @@ -58,12 +58,12 @@ func (m *DeviceLink) GetDeviceVendor()(*DeviceVendor) { func (m *DeviceLink) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["bandwidthCapacityInMbps"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBandwidthCapacityInMbps) + val, err := n.GetEnumValue(ParseDeviceLink_bandwidthCapacityInMbps) if err != nil { return err } if val != nil { - m.SetBandwidthCapacityInMbps(val.(*BandwidthCapacityInMbps)) + m.SetBandwidthCapacityInMbps(val.(*DeviceLink_bandwidthCapacityInMbps)) } return nil } @@ -253,7 +253,7 @@ func (m *DeviceLink) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return nil } // SetBandwidthCapacityInMbps sets the bandwidthCapacityInMbps property value. Determines the maximum allowed Mbps (megabits per second) bandwidth from a branch site. The possible values are:250,500,750,1000. -func (m *DeviceLink) SetBandwidthCapacityInMbps(value *BandwidthCapacityInMbps)() { +func (m *DeviceLink) SetBandwidthCapacityInMbps(value *DeviceLink_bandwidthCapacityInMbps)() { err := m.GetBackingStore().Set("bandwidthCapacityInMbps", value) if err != nil { panic(err) @@ -312,7 +312,7 @@ func (m *DeviceLink) SetTunnelConfiguration(value TunnelConfigurationable)() { type DeviceLinkable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBandwidthCapacityInMbps()(*BandwidthCapacityInMbps) + GetBandwidthCapacityInMbps()(*DeviceLink_bandwidthCapacityInMbps) GetBgpConfiguration()(BgpConfigurationable) GetDeviceVendor()(*DeviceVendor) GetIpAddress()(*string) @@ -320,7 +320,7 @@ type DeviceLinkable interface { GetName()(*string) GetRedundancyConfiguration()(RedundancyConfigurationable) GetTunnelConfiguration()(TunnelConfigurationable) - SetBandwidthCapacityInMbps(value *BandwidthCapacityInMbps)() + SetBandwidthCapacityInMbps(value *DeviceLink_bandwidthCapacityInMbps)() SetBgpConfiguration(value BgpConfigurationable)() SetDeviceVendor(value *DeviceVendor)() SetIpAddress(value *string)() diff --git a/models/networkaccess/device_link_bandwidth_capacity_in_mbps.go b/models/networkaccess/device_link_bandwidth_capacity_in_mbps.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/networkaccess/network_access_traffic.go b/models/networkaccess/network_access_traffic.go index b20b65619a0..61a6717554a 100644 --- a/models/networkaccess/network_access_traffic.go +++ b/models/networkaccess/network_access_traffic.go @@ -24,13 +24,13 @@ func CreateNetworkAccessTrafficFromDiscriminatorValue(parseNode i878a80d2330e89d return NewNetworkAccessTraffic(), nil } // GetAction gets the action property value. The action property -func (m *NetworkAccessTraffic) GetAction()(*FilteringPolicyAction) { +func (m *NetworkAccessTraffic) GetAction()(*NetworkAccessTraffic_action) { val, err := m.GetBackingStore().Get("action") if err != nil { panic(err) } if val != nil { - return val.(*FilteringPolicyAction) + return val.(*NetworkAccessTraffic_action) } return nil } @@ -128,13 +128,13 @@ func (m *NetworkAccessTraffic) GetDestinationWebCategory()(WebCategoryable) { return nil } // GetDeviceCategory gets the deviceCategory property value. Represents the category classification of a device within a network infrastructure. The possible values are: client, branch, unknownFutureValue. Supports $filter (eq) and $orderby. -func (m *NetworkAccessTraffic) GetDeviceCategory()(*DeviceCategory) { +func (m *NetworkAccessTraffic) GetDeviceCategory()(*NetworkAccessTraffic_deviceCategory) { val, err := m.GetBackingStore().Get("deviceCategory") if err != nil { panic(err) } if val != nil { - return val.(*DeviceCategory) + return val.(*NetworkAccessTraffic_deviceCategory) } return nil } @@ -175,12 +175,12 @@ func (m *NetworkAccessTraffic) GetDeviceOperatingSystemVersion()(*string) { func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFilteringPolicyAction) + val, err := n.GetEnumValue(ParseNetworkAccessTraffic_action) if err != nil { return err } if val != nil { - m.SetAction(val.(*FilteringPolicyAction)) + m.SetAction(val.(*NetworkAccessTraffic_action)) } return nil } @@ -255,12 +255,12 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["deviceCategory"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDeviceCategory) + val, err := n.GetEnumValue(ParseNetworkAccessTraffic_deviceCategory) if err != nil { return err } if val != nil { - m.SetDeviceCategory(val.(*DeviceCategory)) + m.SetDeviceCategory(val.(*NetworkAccessTraffic_deviceCategory)) } return nil } @@ -335,12 +335,12 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["networkProtocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNetworkingProtocol) + val, err := n.GetEnumValue(ParseNetworkAccessTraffic_networkProtocol) if err != nil { return err } if val != nil { - m.SetNetworkProtocol(val.(*NetworkingProtocol)) + m.SetNetworkProtocol(val.(*NetworkAccessTraffic_networkProtocol)) } return nil } @@ -485,12 +485,12 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["transportProtocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNetworkingProtocol) + val, err := n.GetEnumValue(ParseNetworkAccessTraffic_transportProtocol) if err != nil { return err } if val != nil { - m.SetTransportProtocol(val.(*NetworkingProtocol)) + m.SetTransportProtocol(val.(*NetworkAccessTraffic_transportProtocol)) } return nil } @@ -561,13 +561,13 @@ func (m *NetworkAccessTraffic) GetInitiatingProcessName()(*string) { return nil } // GetNetworkProtocol gets the networkProtocol property value. Represents the networking protocol used for communication.The possible values are: ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII, unknownFutureValue. Supports $filter (eq) and $orderby. -func (m *NetworkAccessTraffic) GetNetworkProtocol()(*NetworkingProtocol) { +func (m *NetworkAccessTraffic) GetNetworkProtocol()(*NetworkAccessTraffic_networkProtocol) { val, err := m.GetBackingStore().Get("networkProtocol") if err != nil { panic(err) } if val != nil { - return val.(*NetworkingProtocol) + return val.(*NetworkAccessTraffic_networkProtocol) } return nil } @@ -726,13 +726,13 @@ func (m *NetworkAccessTraffic) GetTransactionId()(*string) { return nil } // GetTransportProtocol gets the transportProtocol property value. Represents the transport protocol used for communication.The possible values are: ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII, unknownFutureValue. Supports $filter (eq) and $orderby. -func (m *NetworkAccessTraffic) GetTransportProtocol()(*NetworkingProtocol) { +func (m *NetworkAccessTraffic) GetTransportProtocol()(*NetworkAccessTraffic_transportProtocol) { val, err := m.GetBackingStore().Get("transportProtocol") if err != nil { panic(err) } if val != nil { - return val.(*NetworkingProtocol) + return val.(*NetworkAccessTraffic_transportProtocol) } return nil } @@ -978,7 +978,7 @@ func (m *NetworkAccessTraffic) Serialize(writer i878a80d2330e89d26896388a3f487ee return nil } // SetAction sets the action property value. The action property -func (m *NetworkAccessTraffic) SetAction(value *FilteringPolicyAction)() { +func (m *NetworkAccessTraffic) SetAction(value *NetworkAccessTraffic_action)() { err := m.GetBackingStore().Set("action", value) if err != nil { panic(err) @@ -1045,7 +1045,7 @@ func (m *NetworkAccessTraffic) SetDestinationWebCategory(value WebCategoryable)( } } // SetDeviceCategory sets the deviceCategory property value. Represents the category classification of a device within a network infrastructure. The possible values are: client, branch, unknownFutureValue. Supports $filter (eq) and $orderby. -func (m *NetworkAccessTraffic) SetDeviceCategory(value *DeviceCategory)() { +func (m *NetworkAccessTraffic) SetDeviceCategory(value *NetworkAccessTraffic_deviceCategory)() { err := m.GetBackingStore().Set("deviceCategory", value) if err != nil { panic(err) @@ -1101,7 +1101,7 @@ func (m *NetworkAccessTraffic) SetInitiatingProcessName(value *string)() { } } // SetNetworkProtocol sets the networkProtocol property value. Represents the networking protocol used for communication.The possible values are: ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII, unknownFutureValue. Supports $filter (eq) and $orderby. -func (m *NetworkAccessTraffic) SetNetworkProtocol(value *NetworkingProtocol)() { +func (m *NetworkAccessTraffic) SetNetworkProtocol(value *NetworkAccessTraffic_networkProtocol)() { err := m.GetBackingStore().Set("networkProtocol", value) if err != nil { panic(err) @@ -1206,7 +1206,7 @@ func (m *NetworkAccessTraffic) SetTransactionId(value *string)() { } } // SetTransportProtocol sets the transportProtocol property value. Represents the transport protocol used for communication.The possible values are: ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII, unknownFutureValue. Supports $filter (eq) and $orderby. -func (m *NetworkAccessTraffic) SetTransportProtocol(value *NetworkingProtocol)() { +func (m *NetworkAccessTraffic) SetTransportProtocol(value *NetworkAccessTraffic_transportProtocol)() { err := m.GetBackingStore().Set("transportProtocol", value) if err != nil { panic(err) @@ -1231,7 +1231,7 @@ type NetworkAccessTrafficable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAction()(*FilteringPolicyAction) + GetAction()(*NetworkAccessTraffic_action) GetAgentVersion()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetConnectionId()(*string) @@ -1240,7 +1240,7 @@ type NetworkAccessTrafficable interface { GetDestinationIp()(*string) GetDestinationPort()(*int32) GetDestinationWebCategory()(WebCategoryable) - GetDeviceCategory()(*DeviceCategory) + GetDeviceCategory()(*NetworkAccessTraffic_deviceCategory) GetDeviceId()(*string) GetDeviceOperatingSystem()(*string) GetDeviceOperatingSystemVersion()(*string) @@ -1248,7 +1248,7 @@ type NetworkAccessTrafficable interface { GetFilteringProfileName()(*string) GetHeaders()(Headersable) GetInitiatingProcessName()(*string) - GetNetworkProtocol()(*NetworkingProtocol) + GetNetworkProtocol()(*NetworkAccessTraffic_networkProtocol) GetOdataType()(*string) GetPolicyId()(*string) GetPolicyName()(*string) @@ -1263,10 +1263,10 @@ type NetworkAccessTrafficable interface { GetTenantId()(*string) GetTrafficType()(*TrafficType) GetTransactionId()(*string) - GetTransportProtocol()(*NetworkingProtocol) + GetTransportProtocol()(*NetworkAccessTraffic_transportProtocol) GetUserId()(*string) GetUserPrincipalName()(*string) - SetAction(value *FilteringPolicyAction)() + SetAction(value *NetworkAccessTraffic_action)() SetAgentVersion(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetConnectionId(value *string)() @@ -1275,7 +1275,7 @@ type NetworkAccessTrafficable interface { SetDestinationIp(value *string)() SetDestinationPort(value *int32)() SetDestinationWebCategory(value WebCategoryable)() - SetDeviceCategory(value *DeviceCategory)() + SetDeviceCategory(value *NetworkAccessTraffic_deviceCategory)() SetDeviceId(value *string)() SetDeviceOperatingSystem(value *string)() SetDeviceOperatingSystemVersion(value *string)() @@ -1283,7 +1283,7 @@ type NetworkAccessTrafficable interface { SetFilteringProfileName(value *string)() SetHeaders(value Headersable)() SetInitiatingProcessName(value *string)() - SetNetworkProtocol(value *NetworkingProtocol)() + SetNetworkProtocol(value *NetworkAccessTraffic_networkProtocol)() SetOdataType(value *string)() SetPolicyId(value *string)() SetPolicyName(value *string)() @@ -1298,7 +1298,7 @@ type NetworkAccessTrafficable interface { SetTenantId(value *string)() SetTrafficType(value *TrafficType)() SetTransactionId(value *string)() - SetTransportProtocol(value *NetworkingProtocol)() + SetTransportProtocol(value *NetworkAccessTraffic_transportProtocol)() SetUserId(value *string)() SetUserPrincipalName(value *string)() } diff --git a/models/networkaccess/network_access_traffic_action.go b/models/networkaccess/network_access_traffic_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/networkaccess/network_access_traffic_device_category.go b/models/networkaccess/network_access_traffic_device_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/networkaccess/network_access_traffic_network_protocol.go b/models/networkaccess/network_access_traffic_network_protocol.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/networkaccess/network_access_traffic_transport_protocol.go b/models/networkaccess/network_access_traffic_transport_protocol.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/non_eap_authentication_method_for_eap_ttls_type.go b/models/non_eap_authentication_method_for_eap_ttls_type.go deleted file mode 100644 index 7bfb7a0bdc4..00000000000 --- a/models/non_eap_authentication_method_for_eap_ttls_type.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Non-EAP methods for authentication. -type NonEapAuthenticationMethodForEapTtlsType int - -const ( - // Unencrypted password (PAP). - UNENCRYPTEDPASSWORD_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE NonEapAuthenticationMethodForEapTtlsType = iota - // Challenge Handshake Authentication Protocol (CHAP). - CHALLENGEHANDSHAKEAUTHENTICATIONPROTOCOL_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE - // Microsoft CHAP (MS-CHAP). - MICROSOFTCHAP_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE - // Microsoft CHAP Version 2 (MS-CHAP v2). - MICROSOFTCHAPVERSIONTWO_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE -) - -func (i NonEapAuthenticationMethodForEapTtlsType) String() string { - return []string{"unencryptedPassword", "challengeHandshakeAuthenticationProtocol", "microsoftChap", "microsoftChapVersionTwo"}[i] -} -func ParseNonEapAuthenticationMethodForEapTtlsType(v string) (any, error) { - result := UNENCRYPTEDPASSWORD_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE - switch v { - case "unencryptedPassword": - result = UNENCRYPTEDPASSWORD_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE - case "challengeHandshakeAuthenticationProtocol": - result = CHALLENGEHANDSHAKEAUTHENTICATIONPROTOCOL_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE - case "microsoftChap": - result = MICROSOFTCHAP_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE - case "microsoftChapVersionTwo": - result = MICROSOFTCHAPVERSIONTWO_NONEAPAUTHENTICATIONMETHODFOREAPTTLSTYPE - default: - return 0, errors.New("Unknown NonEapAuthenticationMethodForEapTtlsType value: " + v) - } - return &result, nil -} -func SerializeNonEapAuthenticationMethodForEapTtlsType(values []NonEapAuthenticationMethodForEapTtlsType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NonEapAuthenticationMethodForEapTtlsType) isMultiValue() bool { - return false -} diff --git a/models/non_eap_authentication_method_for_peap.go b/models/non_eap_authentication_method_for_peap.go deleted file mode 100644 index 48e63238d25..00000000000 --- a/models/non_eap_authentication_method_for_peap.go +++ /dev/null @@ -1,39 +0,0 @@ -package models -import ( - "errors" -) -// Non-EAP methods for authentication when PEAP is the selected EAP type. -type NonEapAuthenticationMethodForPeap int - -const ( - // None. - NONE_NONEAPAUTHENTICATIONMETHODFORPEAP NonEapAuthenticationMethodForPeap = iota - // Microsoft CHAP Version 2 (MS-CHAP v2). - MICROSOFTCHAPVERSIONTWO_NONEAPAUTHENTICATIONMETHODFORPEAP -) - -func (i NonEapAuthenticationMethodForPeap) String() string { - return []string{"none", "microsoftChapVersionTwo"}[i] -} -func ParseNonEapAuthenticationMethodForPeap(v string) (any, error) { - result := NONE_NONEAPAUTHENTICATIONMETHODFORPEAP - switch v { - case "none": - result = NONE_NONEAPAUTHENTICATIONMETHODFORPEAP - case "microsoftChapVersionTwo": - result = MICROSOFTCHAPVERSIONTWO_NONEAPAUTHENTICATIONMETHODFORPEAP - default: - return 0, errors.New("Unknown NonEapAuthenticationMethodForPeap value: " + v) - } - return &result, nil -} -func SerializeNonEapAuthenticationMethodForPeap(values []NonEapAuthenticationMethodForPeap) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NonEapAuthenticationMethodForPeap) isMultiValue() bool { - return false -} diff --git a/models/notebook.go b/models/notebook.go index bf956e9c421..490f73d2d11 100644 --- a/models/notebook.go +++ b/models/notebook.go @@ -107,12 +107,12 @@ func (m *Notebook) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["userRole"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnenoteUserRole) + val, err := n.GetEnumValue(ParseNotebook_userRole) if err != nil { return err } if val != nil { - m.SetUserRole(val.(*OnenoteUserRole)) + m.SetUserRole(val.(*Notebook_userRole)) } return nil } @@ -196,13 +196,13 @@ func (m *Notebook) GetSectionsUrl()(*string) { return nil } // GetUserRole gets the userRole property value. Possible values are: Owner, Contributor, Reader, None. Owner represents owner-level access to the notebook. Contributor represents read/write access to the notebook. Reader represents read-only access to the notebook. Read-only. -func (m *Notebook) GetUserRole()(*OnenoteUserRole) { +func (m *Notebook) GetUserRole()(*Notebook_userRole) { val, err := m.GetBackingStore().Get("userRole") if err != nil { panic(err) } if val != nil { - return val.(*OnenoteUserRole) + return val.(*Notebook_userRole) } return nil } @@ -325,7 +325,7 @@ func (m *Notebook) SetSectionsUrl(value *string)() { } } // SetUserRole sets the userRole property value. Possible values are: Owner, Contributor, Reader, None. Owner represents owner-level access to the notebook. Contributor represents read/write access to the notebook. Reader represents read-only access to the notebook. Read-only. -func (m *Notebook) SetUserRole(value *OnenoteUserRole)() { +func (m *Notebook) SetUserRole(value *Notebook_userRole)() { err := m.GetBackingStore().Set("userRole", value) if err != nil { panic(err) @@ -342,7 +342,7 @@ type Notebookable interface { GetSectionGroupsUrl()(*string) GetSections()([]OnenoteSectionable) GetSectionsUrl()(*string) - GetUserRole()(*OnenoteUserRole) + GetUserRole()(*Notebook_userRole) SetIsDefault(value *bool)() SetIsShared(value *bool)() SetLinks(value NotebookLinksable)() @@ -350,5 +350,5 @@ type Notebookable interface { SetSectionGroupsUrl(value *string)() SetSections(value []OnenoteSectionable)() SetSectionsUrl(value *string)() - SetUserRole(value *OnenoteUserRole)() + SetUserRole(value *Notebook_userRole)() } diff --git a/models/notebook_user_role.go b/models/notebook_user_role.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/notification.go b/models/notification.go index 08bd42db41b..3f5b7b5fccc 100644 --- a/models/notification.go +++ b/models/notification.go @@ -86,12 +86,12 @@ func (m *Notification) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["priority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePriority) + val, err := n.GetEnumValue(ParseNotification_priority) if err != nil { return err } if val != nil { - m.SetPriority(val.(*Priority)) + m.SetPriority(val.(*Notification_priority)) } return nil } @@ -140,13 +140,13 @@ func (m *Notification) GetPayload()(PayloadTypesable) { return nil } // GetPriority gets the priority property value. Indicates the priority of a raw user notification. Visual notifications are sent with high priority by default. Valid values are None, High and Low. -func (m *Notification) GetPriority()(*Priority) { +func (m *Notification) GetPriority()(*Notification_priority) { val, err := m.GetBackingStore().Get("priority") if err != nil { panic(err) } if val != nil { - return val.(*Priority) + return val.(*Notification_priority) } return nil } @@ -252,7 +252,7 @@ func (m *Notification) SetPayload(value PayloadTypesable)() { } } // SetPriority sets the priority property value. Indicates the priority of a raw user notification. Visual notifications are sent with high priority by default. Valid values are None, High and Low. -func (m *Notification) SetPriority(value *Priority)() { +func (m *Notification) SetPriority(value *Notification_priority)() { err := m.GetBackingStore().Set("priority", value) if err != nil { panic(err) @@ -280,14 +280,14 @@ type Notificationable interface { GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetGroupName()(*string) GetPayload()(PayloadTypesable) - GetPriority()(*Priority) + GetPriority()(*Notification_priority) GetTargetHostName()(*string) GetTargetPolicy()(TargetPolicyEndpointsable) SetDisplayTimeToLive(value *int32)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetGroupName(value *string)() SetPayload(value PayloadTypesable)() - SetPriority(value *Priority)() + SetPriority(value *Notification_priority)() SetTargetHostName(value *string)() SetTargetPolicy(value TargetPolicyEndpointsable)() } diff --git a/models/notification_delivery_frequency.go b/models/notification_delivery_frequency.go deleted file mode 100644 index c73aa476f5e..00000000000 --- a/models/notification_delivery_frequency.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type NotificationDeliveryFrequency int - -const ( - UNKNOWN_NOTIFICATIONDELIVERYFREQUENCY NotificationDeliveryFrequency = iota - WEEKLY_NOTIFICATIONDELIVERYFREQUENCY - BIWEEKLY_NOTIFICATIONDELIVERYFREQUENCY - UNKNOWNFUTUREVALUE_NOTIFICATIONDELIVERYFREQUENCY -) - -func (i NotificationDeliveryFrequency) String() string { - return []string{"unknown", "weekly", "biWeekly", "unknownFutureValue"}[i] -} -func ParseNotificationDeliveryFrequency(v string) (any, error) { - result := UNKNOWN_NOTIFICATIONDELIVERYFREQUENCY - switch v { - case "unknown": - result = UNKNOWN_NOTIFICATIONDELIVERYFREQUENCY - case "weekly": - result = WEEKLY_NOTIFICATIONDELIVERYFREQUENCY - case "biWeekly": - result = BIWEEKLY_NOTIFICATIONDELIVERYFREQUENCY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_NOTIFICATIONDELIVERYFREQUENCY - default: - return 0, errors.New("Unknown NotificationDeliveryFrequency value: " + v) - } - return &result, nil -} -func SerializeNotificationDeliveryFrequency(values []NotificationDeliveryFrequency) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NotificationDeliveryFrequency) isMultiValue() bool { - return false -} diff --git a/models/notification_delivery_preference.go b/models/notification_delivery_preference.go deleted file mode 100644 index cde50cf7795..00000000000 --- a/models/notification_delivery_preference.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type NotificationDeliveryPreference int - -const ( - UNKNOWN_NOTIFICATIONDELIVERYPREFERENCE NotificationDeliveryPreference = iota - DELIVERIMMEDIETLY_NOTIFICATIONDELIVERYPREFERENCE - DELIVERAFTERCAMPAIGNEND_NOTIFICATIONDELIVERYPREFERENCE - UNKNOWNFUTUREVALUE_NOTIFICATIONDELIVERYPREFERENCE -) - -func (i NotificationDeliveryPreference) String() string { - return []string{"unknown", "deliverImmedietly", "deliverAfterCampaignEnd", "unknownFutureValue"}[i] -} -func ParseNotificationDeliveryPreference(v string) (any, error) { - result := UNKNOWN_NOTIFICATIONDELIVERYPREFERENCE - switch v { - case "unknown": - result = UNKNOWN_NOTIFICATIONDELIVERYPREFERENCE - case "deliverImmedietly": - result = DELIVERIMMEDIETLY_NOTIFICATIONDELIVERYPREFERENCE - case "deliverAfterCampaignEnd": - result = DELIVERAFTERCAMPAIGNEND_NOTIFICATIONDELIVERYPREFERENCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_NOTIFICATIONDELIVERYPREFERENCE - default: - return 0, errors.New("Unknown NotificationDeliveryPreference value: " + v) - } - return &result, nil -} -func SerializeNotificationDeliveryPreference(values []NotificationDeliveryPreference) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i NotificationDeliveryPreference) isMultiValue() bool { - return false -} diff --git a/models/notification_priority.go b/models/notification_priority.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/o_auth_app_scope.go b/models/o_auth_app_scope.go deleted file mode 100644 index f8577cab259..00000000000 --- a/models/o_auth_app_scope.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type OAuthAppScope int - -const ( - UNKNOWN_OAUTHAPPSCOPE OAuthAppScope = iota - READCALENDAR_OAUTHAPPSCOPE - READCONTACT_OAUTHAPPSCOPE - READMAIL_OAUTHAPPSCOPE - READALLCHAT_OAUTHAPPSCOPE - READALLFILE_OAUTHAPPSCOPE - READANDWRITEMAIL_OAUTHAPPSCOPE - SENDMAIL_OAUTHAPPSCOPE - UNKNOWNFUTUREVALUE_OAUTHAPPSCOPE -) - -func (i OAuthAppScope) String() string { - return []string{"unknown", "readCalendar", "readContact", "readMail", "readAllChat", "readAllFile", "readAndWriteMail", "sendMail", "unknownFutureValue"}[i] -} -func ParseOAuthAppScope(v string) (any, error) { - result := UNKNOWN_OAUTHAPPSCOPE - switch v { - case "unknown": - result = UNKNOWN_OAUTHAPPSCOPE - case "readCalendar": - result = READCALENDAR_OAUTHAPPSCOPE - case "readContact": - result = READCONTACT_OAUTHAPPSCOPE - case "readMail": - result = READMAIL_OAUTHAPPSCOPE - case "readAllChat": - result = READALLCHAT_OAUTHAPPSCOPE - case "readAllFile": - result = READALLFILE_OAUTHAPPSCOPE - case "readAndWriteMail": - result = READANDWRITEMAIL_OAUTHAPPSCOPE - case "sendMail": - result = SENDMAIL_OAUTHAPPSCOPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_OAUTHAPPSCOPE - default: - return 0, errors.New("Unknown OAuthAppScope value: " + v) - } - return &result, nil -} -func SerializeOAuthAppScope(values []OAuthAppScope) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OAuthAppScope) isMultiValue() bool { - return false -} diff --git a/models/o_auth_consent_app_detail.go b/models/o_auth_consent_app_detail.go index 462ba7d293b..3dd1c916d8b 100644 --- a/models/o_auth_consent_app_detail.go +++ b/models/o_auth_consent_app_detail.go @@ -35,13 +35,13 @@ func (m *OAuthConsentAppDetail) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAppScope gets the appScope property value. App scope. Possible values are: unknown, readCalendar, readContact, readMail, readAllChat, readAllFile, readAndWriteMail, sendMail, unknownFutureValue. -func (m *OAuthConsentAppDetail) GetAppScope()(*OAuthAppScope) { +func (m *OAuthConsentAppDetail) GetAppScope()(*OAuthConsentAppDetail_appScope) { val, err := m.GetBackingStore().Get("appScope") if err != nil { panic(err) } if val != nil { - return val.(*OAuthAppScope) + return val.(*OAuthConsentAppDetail_appScope) } return nil } @@ -75,12 +75,12 @@ func (m *OAuthConsentAppDetail) GetDisplayName()(*string) { func (m *OAuthConsentAppDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["appScope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOAuthAppScope) + val, err := n.GetEnumValue(ParseOAuthConsentAppDetail_appScope) if err != nil { return err } if val != nil { - m.SetAppScope(val.(*OAuthAppScope)) + m.SetAppScope(val.(*OAuthConsentAppDetail_appScope)) } return nil } @@ -170,7 +170,7 @@ func (m *OAuthConsentAppDetail) SetAdditionalData(value map[string]any)() { } } // SetAppScope sets the appScope property value. App scope. Possible values are: unknown, readCalendar, readContact, readMail, readAllChat, readAllFile, readAndWriteMail, sendMail, unknownFutureValue. -func (m *OAuthConsentAppDetail) SetAppScope(value *OAuthAppScope)() { +func (m *OAuthConsentAppDetail) SetAppScope(value *OAuthConsentAppDetail_appScope)() { err := m.GetBackingStore().Set("appScope", value) if err != nil { panic(err) @@ -206,12 +206,12 @@ type OAuthConsentAppDetailable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAppScope()(*OAuthAppScope) + GetAppScope()(*OAuthConsentAppDetail_appScope) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDisplayLogo()(*string) GetDisplayName()(*string) GetOdataType()(*string) - SetAppScope(value *OAuthAppScope)() + SetAppScope(value *OAuthConsentAppDetail_appScope)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayLogo(value *string)() SetDisplayName(value *string)() diff --git a/models/o_auth_consent_app_detail_app_scope.go b/models/o_auth_consent_app_detail_app_scope.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/object_definition_metadata.go b/models/object_definition_metadata.go deleted file mode 100644 index 26344ab6994..00000000000 --- a/models/object_definition_metadata.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ObjectDefinitionMetadata int - -const ( - PROPERTYNAMEACCOUNTENABLED_OBJECTDEFINITIONMETADATA ObjectDefinitionMetadata = iota - PROPERTYNAMESOFTDELETED_OBJECTDEFINITIONMETADATA - ISSOFTDELETIONSUPPORTED_OBJECTDEFINITIONMETADATA - ISSYNCHRONIZEALLSUPPORTED_OBJECTDEFINITIONMETADATA - CONNECTORDATASTORAGEREQUIRED_OBJECTDEFINITIONMETADATA - EXTENSIONS_OBJECTDEFINITIONMETADATA - BASEOBJECTNAME_OBJECTDEFINITIONMETADATA -) - -func (i ObjectDefinitionMetadata) String() string { - return []string{"PropertyNameAccountEnabled", "PropertyNameSoftDeleted", "IsSoftDeletionSupported", "IsSynchronizeAllSupported", "ConnectorDataStorageRequired", "Extensions", "BaseObjectName"}[i] -} -func ParseObjectDefinitionMetadata(v string) (any, error) { - result := PROPERTYNAMEACCOUNTENABLED_OBJECTDEFINITIONMETADATA - switch v { - case "PropertyNameAccountEnabled": - result = PROPERTYNAMEACCOUNTENABLED_OBJECTDEFINITIONMETADATA - case "PropertyNameSoftDeleted": - result = PROPERTYNAMESOFTDELETED_OBJECTDEFINITIONMETADATA - case "IsSoftDeletionSupported": - result = ISSOFTDELETIONSUPPORTED_OBJECTDEFINITIONMETADATA - case "IsSynchronizeAllSupported": - result = ISSYNCHRONIZEALLSUPPORTED_OBJECTDEFINITIONMETADATA - case "ConnectorDataStorageRequired": - result = CONNECTORDATASTORAGEREQUIRED_OBJECTDEFINITIONMETADATA - case "Extensions": - result = EXTENSIONS_OBJECTDEFINITIONMETADATA - case "BaseObjectName": - result = BASEOBJECTNAME_OBJECTDEFINITIONMETADATA - default: - return 0, errors.New("Unknown ObjectDefinitionMetadata value: " + v) - } - return &result, nil -} -func SerializeObjectDefinitionMetadata(values []ObjectDefinitionMetadata) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ObjectDefinitionMetadata) isMultiValue() bool { - return false -} diff --git a/models/object_definition_metadata_entry.go b/models/object_definition_metadata_entry.go index 4cb7d19f047..da8a957bc3f 100644 --- a/models/object_definition_metadata_entry.go +++ b/models/object_definition_metadata_entry.go @@ -42,12 +42,12 @@ func (m *ObjectDefinitionMetadataEntry) GetBackingStore()(ie8677ce2c7e1b4c22e9c3 func (m *ObjectDefinitionMetadataEntry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseObjectDefinitionMetadata) + val, err := n.GetEnumValue(ParseObjectDefinitionMetadataEntry_key) if err != nil { return err } if val != nil { - m.SetKey(val.(*ObjectDefinitionMetadata)) + m.SetKey(val.(*ObjectDefinitionMetadataEntry_key)) } return nil } @@ -74,13 +74,13 @@ func (m *ObjectDefinitionMetadataEntry) GetFieldDeserializers()(map[string]func( return res } // GetKey gets the key property value. Possible values are: PropertyNameAccountEnabled, PropertyNameSoftDeleted, IsSoftDeletionSupported, IsSynchronizeAllSupported, ConnectorDataStorageRequired, Extensions, LinkTypeName. -func (m *ObjectDefinitionMetadataEntry) GetKey()(*ObjectDefinitionMetadata) { +func (m *ObjectDefinitionMetadataEntry) GetKey()(*ObjectDefinitionMetadataEntry_key) { val, err := m.GetBackingStore().Get("key") if err != nil { panic(err) } if val != nil { - return val.(*ObjectDefinitionMetadata) + return val.(*ObjectDefinitionMetadataEntry_key) } return nil } @@ -147,7 +147,7 @@ func (m *ObjectDefinitionMetadataEntry) SetBackingStore(value ie8677ce2c7e1b4c22 m.backingStore = value } // SetKey sets the key property value. Possible values are: PropertyNameAccountEnabled, PropertyNameSoftDeleted, IsSoftDeletionSupported, IsSynchronizeAllSupported, ConnectorDataStorageRequired, Extensions, LinkTypeName. -func (m *ObjectDefinitionMetadataEntry) SetKey(value *ObjectDefinitionMetadata)() { +func (m *ObjectDefinitionMetadataEntry) SetKey(value *ObjectDefinitionMetadataEntry_key)() { err := m.GetBackingStore().Set("key", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ type ObjectDefinitionMetadataEntryable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetKey()(*ObjectDefinitionMetadata) + GetKey()(*ObjectDefinitionMetadataEntry_key) GetOdataType()(*string) GetValue()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetKey(value *ObjectDefinitionMetadata)() + SetKey(value *ObjectDefinitionMetadataEntry_key)() SetOdataType(value *string)() SetValue(value *string)() } diff --git a/models/object_definition_metadata_entry_key.go b/models/object_definition_metadata_entry_key.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/object_mapping_metadata.go b/models/object_mapping_metadata.go deleted file mode 100644 index 3b982c42a8d..00000000000 --- a/models/object_mapping_metadata.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ObjectMappingMetadata int - -const ( - ESCROWBEHAVIOR_OBJECTMAPPINGMETADATA ObjectMappingMetadata = iota - DISABLEMONITORINGFORCHANGES_OBJECTMAPPINGMETADATA - ORIGINALJOININGPROPERTY_OBJECTMAPPINGMETADATA - DISPOSITION_OBJECTMAPPINGMETADATA - ISCUSTOMERDEFINED_OBJECTMAPPINGMETADATA - EXCLUDEFROMREPORTING_OBJECTMAPPINGMETADATA - UNSYNCHRONIZED_OBJECTMAPPINGMETADATA -) - -func (i ObjectMappingMetadata) String() string { - return []string{"EscrowBehavior", "DisableMonitoringForChanges", "OriginalJoiningProperty", "Disposition", "IsCustomerDefined", "ExcludeFromReporting", "Unsynchronized"}[i] -} -func ParseObjectMappingMetadata(v string) (any, error) { - result := ESCROWBEHAVIOR_OBJECTMAPPINGMETADATA - switch v { - case "EscrowBehavior": - result = ESCROWBEHAVIOR_OBJECTMAPPINGMETADATA - case "DisableMonitoringForChanges": - result = DISABLEMONITORINGFORCHANGES_OBJECTMAPPINGMETADATA - case "OriginalJoiningProperty": - result = ORIGINALJOININGPROPERTY_OBJECTMAPPINGMETADATA - case "Disposition": - result = DISPOSITION_OBJECTMAPPINGMETADATA - case "IsCustomerDefined": - result = ISCUSTOMERDEFINED_OBJECTMAPPINGMETADATA - case "ExcludeFromReporting": - result = EXCLUDEFROMREPORTING_OBJECTMAPPINGMETADATA - case "Unsynchronized": - result = UNSYNCHRONIZED_OBJECTMAPPINGMETADATA - default: - return 0, errors.New("Unknown ObjectMappingMetadata value: " + v) - } - return &result, nil -} -func SerializeObjectMappingMetadata(values []ObjectMappingMetadata) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ObjectMappingMetadata) isMultiValue() bool { - return false -} diff --git a/models/object_mapping_metadata_entry.go b/models/object_mapping_metadata_entry.go index ecf4ea62f68..5f930ffa904 100644 --- a/models/object_mapping_metadata_entry.go +++ b/models/object_mapping_metadata_entry.go @@ -42,12 +42,12 @@ func (m *ObjectMappingMetadataEntry) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827 func (m *ObjectMappingMetadataEntry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseObjectMappingMetadata) + val, err := n.GetEnumValue(ParseObjectMappingMetadataEntry_key) if err != nil { return err } if val != nil { - m.SetKey(val.(*ObjectMappingMetadata)) + m.SetKey(val.(*ObjectMappingMetadataEntry_key)) } return nil } @@ -74,13 +74,13 @@ func (m *ObjectMappingMetadataEntry) GetFieldDeserializers()(map[string]func(i87 return res } // GetKey gets the key property value. Possible values are: EscrowBehavior, DisableMonitoringForChanges, OriginalJoiningProperty, Disposition, IsCustomerDefined, ExcludeFromReporting, Unsynchronized. -func (m *ObjectMappingMetadataEntry) GetKey()(*ObjectMappingMetadata) { +func (m *ObjectMappingMetadataEntry) GetKey()(*ObjectMappingMetadataEntry_key) { val, err := m.GetBackingStore().Get("key") if err != nil { panic(err) } if val != nil { - return val.(*ObjectMappingMetadata) + return val.(*ObjectMappingMetadataEntry_key) } return nil } @@ -147,7 +147,7 @@ func (m *ObjectMappingMetadataEntry) SetBackingStore(value ie8677ce2c7e1b4c22e9c m.backingStore = value } // SetKey sets the key property value. Possible values are: EscrowBehavior, DisableMonitoringForChanges, OriginalJoiningProperty, Disposition, IsCustomerDefined, ExcludeFromReporting, Unsynchronized. -func (m *ObjectMappingMetadataEntry) SetKey(value *ObjectMappingMetadata)() { +func (m *ObjectMappingMetadataEntry) SetKey(value *ObjectMappingMetadataEntry_key)() { err := m.GetBackingStore().Set("key", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ type ObjectMappingMetadataEntryable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetKey()(*ObjectMappingMetadata) + GetKey()(*ObjectMappingMetadataEntry_key) GetOdataType()(*string) GetValue()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetKey(value *ObjectMappingMetadata)() + SetKey(value *ObjectMappingMetadataEntry_key)() SetOdataType(value *string)() SetValue(value *string)() } diff --git a/models/object_mapping_metadata_entry_key.go b/models/object_mapping_metadata_entry_key.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/obliteration_behavior.go b/models/obliteration_behavior.go deleted file mode 100644 index 14d8a2eebbc..00000000000 --- a/models/obliteration_behavior.go +++ /dev/null @@ -1,51 +0,0 @@ -package models -import ( - "errors" -) -// In macOS 12 and later, this command uses Erase All Content and Settings (EACS) on Mac computers with the Apple M1 chip or the Apple T2 Security Chip. On those devices, if EACS can’t run, the device can use obliteration (macOS 11.x behavior). This key has no effect on machines prior to the T2 chip. Upon receiving this command, the device performs preflight checks to determine if the device is in a state that allows EACS. The ObliterationBehavior value defines the device's fallback behavior. -type ObliterationBehavior int - -const ( - // Default. If Erase All Content and Settings (EACS) preflight fails, the device responds to the server with an Error status and then attempts to erase itself. If EACS preflight succeeds but EACS fails, then the device attempts to erase itself. - DEFAULTESCAPED_OBLITERATIONBEHAVIOR ObliterationBehavior = iota - // If Erase All Content and Settings (EACS) preflight fails, the device responds to the server with an Error status and doesn’t attempt to erase itself. If EACS preflight succeeds but EACS fails, then the device doesn’t attempt to erase itself. - DONOTOBLITERATE_OBLITERATIONBEHAVIOR - // If Erase All Content and Settings (EACS) preflight fails, the device responds with an Acknowledged status and then attempts to erase itself. If EACS preflight succeeds but EACS fails, then the device attempts to erase itself. - OBLITERATEWITHWARNING_OBLITERATIONBEHAVIOR - // The system doesn’t attempt Erase All Content and Settings (EACS). T2 and later devices always obliterate. - ALWAYS_OBLITERATIONBEHAVIOR - // Evolvable enumeration sentinel value. Do not use. - UNKNOWNFUTUREVALUE_OBLITERATIONBEHAVIOR -) - -func (i ObliterationBehavior) String() string { - return []string{"default", "doNotObliterate", "obliterateWithWarning", "always", "unknownFutureValue"}[i] -} -func ParseObliterationBehavior(v string) (any, error) { - result := DEFAULTESCAPED_OBLITERATIONBEHAVIOR - switch v { - case "default": - result = DEFAULTESCAPED_OBLITERATIONBEHAVIOR - case "doNotObliterate": - result = DONOTOBLITERATE_OBLITERATIONBEHAVIOR - case "obliterateWithWarning": - result = OBLITERATEWITHWARNING_OBLITERATIONBEHAVIOR - case "always": - result = ALWAYS_OBLITERATIONBEHAVIOR - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_OBLITERATIONBEHAVIOR - default: - return 0, errors.New("Unknown ObliterationBehavior value: " + v) - } - return &result, nil -} -func SerializeObliterationBehavior(values []ObliterationBehavior) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ObliterationBehavior) isMultiValue() bool { - return false -} diff --git a/models/on_attribute_collection_start_custom_extension.go b/models/on_attribute_collection_start_custom_extension.go new file mode 100644 index 00000000000..877882d9f06 --- /dev/null +++ b/models/on_attribute_collection_start_custom_extension.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionStartCustomExtension +type OnAttributeCollectionStartCustomExtension struct { + CustomAuthenticationExtension +} +// NewOnAttributeCollectionStartCustomExtension instantiates a new onAttributeCollectionStartCustomExtension and sets the default values. +func NewOnAttributeCollectionStartCustomExtension()(*OnAttributeCollectionStartCustomExtension) { + m := &OnAttributeCollectionStartCustomExtension{ + CustomAuthenticationExtension: *NewCustomAuthenticationExtension(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionStartCustomExtension" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionStartCustomExtensionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionStartCustomExtensionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionStartCustomExtension(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionStartCustomExtension) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CustomAuthenticationExtension.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionStartCustomExtension) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CustomAuthenticationExtension.Serialize(writer) + if err != nil { + return err + } + return nil +} +// OnAttributeCollectionStartCustomExtensionable +type OnAttributeCollectionStartCustomExtensionable interface { + CustomAuthenticationExtensionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/on_attribute_collection_start_custom_extension_handler.go b/models/on_attribute_collection_start_custom_extension_handler.go new file mode 100644 index 00000000000..9000335fe31 --- /dev/null +++ b/models/on_attribute_collection_start_custom_extension_handler.go @@ -0,0 +1,113 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionStartCustomExtensionHandler +type OnAttributeCollectionStartCustomExtensionHandler struct { + OnAttributeCollectionStartHandler +} +// NewOnAttributeCollectionStartCustomExtensionHandler instantiates a new onAttributeCollectionStartCustomExtensionHandler and sets the default values. +func NewOnAttributeCollectionStartCustomExtensionHandler()(*OnAttributeCollectionStartCustomExtensionHandler) { + m := &OnAttributeCollectionStartCustomExtensionHandler{ + OnAttributeCollectionStartHandler: *NewOnAttributeCollectionStartHandler(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionStartCustomExtensionHandler" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionStartCustomExtensionHandlerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionStartCustomExtensionHandlerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionStartCustomExtensionHandler(), nil +} +// GetConfiguration gets the configuration property value. The configuration property +func (m *OnAttributeCollectionStartCustomExtensionHandler) GetConfiguration()(CustomExtensionOverwriteConfigurationable) { + val, err := m.GetBackingStore().Get("configuration") + if err != nil { + panic(err) + } + if val != nil { + return val.(CustomExtensionOverwriteConfigurationable) + } + return nil +} +// GetCustomExtension gets the customExtension property value. The customExtension property +func (m *OnAttributeCollectionStartCustomExtensionHandler) GetCustomExtension()(OnAttributeCollectionStartCustomExtensionable) { + val, err := m.GetBackingStore().Get("customExtension") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionStartCustomExtensionable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionStartCustomExtensionHandler) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.OnAttributeCollectionStartHandler.GetFieldDeserializers() + res["configuration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCustomExtensionOverwriteConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetConfiguration(val.(CustomExtensionOverwriteConfigurationable)) + } + return nil + } + res["customExtension"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionStartCustomExtensionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCustomExtension(val.(OnAttributeCollectionStartCustomExtensionable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionStartCustomExtensionHandler) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.OnAttributeCollectionStartHandler.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("configuration", m.GetConfiguration()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("customExtension", m.GetCustomExtension()) + if err != nil { + return err + } + } + return nil +} +// SetConfiguration sets the configuration property value. The configuration property +func (m *OnAttributeCollectionStartCustomExtensionHandler) SetConfiguration(value CustomExtensionOverwriteConfigurationable)() { + err := m.GetBackingStore().Set("configuration", value) + if err != nil { + panic(err) + } +} +// SetCustomExtension sets the customExtension property value. The customExtension property +func (m *OnAttributeCollectionStartCustomExtensionHandler) SetCustomExtension(value OnAttributeCollectionStartCustomExtensionable)() { + err := m.GetBackingStore().Set("customExtension", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionStartCustomExtensionHandlerable +type OnAttributeCollectionStartCustomExtensionHandlerable interface { + OnAttributeCollectionStartHandlerable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConfiguration()(CustomExtensionOverwriteConfigurationable) + GetCustomExtension()(OnAttributeCollectionStartCustomExtensionable) + SetConfiguration(value CustomExtensionOverwriteConfigurationable)() + SetCustomExtension(value OnAttributeCollectionStartCustomExtensionable)() +} diff --git a/models/on_attribute_collection_start_handler.go b/models/on_attribute_collection_start_handler.go new file mode 100644 index 00000000000..caf4b3ed518 --- /dev/null +++ b/models/on_attribute_collection_start_handler.go @@ -0,0 +1,128 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// OnAttributeCollectionStartHandler +type OnAttributeCollectionStartHandler struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewOnAttributeCollectionStartHandler instantiates a new onAttributeCollectionStartHandler and sets the default values. +func NewOnAttributeCollectionStartHandler()(*OnAttributeCollectionStartHandler) { + m := &OnAttributeCollectionStartHandler{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOnAttributeCollectionStartHandlerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionStartHandlerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.onAttributeCollectionStartCustomExtensionHandler": + return NewOnAttributeCollectionStartCustomExtensionHandler(), nil + } + } + } + } + return NewOnAttributeCollectionStartHandler(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *OnAttributeCollectionStartHandler) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *OnAttributeCollectionStartHandler) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionStartHandler) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OnAttributeCollectionStartHandler) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionStartHandler) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *OnAttributeCollectionStartHandler) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *OnAttributeCollectionStartHandler) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnAttributeCollectionStartHandler) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionStartHandlerable +type OnAttributeCollectionStartHandlerable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/on_attribute_collection_start_listener.go b/models/on_attribute_collection_start_listener.go new file mode 100644 index 00000000000..d6cbc1f48b5 --- /dev/null +++ b/models/on_attribute_collection_start_listener.go @@ -0,0 +1,77 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionStartListener +type OnAttributeCollectionStartListener struct { + AuthenticationEventListener +} +// NewOnAttributeCollectionStartListener instantiates a new onAttributeCollectionStartListener and sets the default values. +func NewOnAttributeCollectionStartListener()(*OnAttributeCollectionStartListener) { + m := &OnAttributeCollectionStartListener{ + AuthenticationEventListener: *NewAuthenticationEventListener(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionStartListener" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionStartListenerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionStartListenerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionStartListener(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionStartListener) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuthenticationEventListener.GetFieldDeserializers() + res["handler"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionStartHandlerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetHandler(val.(OnAttributeCollectionStartHandlerable)) + } + return nil + } + return res +} +// GetHandler gets the handler property value. The handler property +func (m *OnAttributeCollectionStartListener) GetHandler()(OnAttributeCollectionStartHandlerable) { + val, err := m.GetBackingStore().Get("handler") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionStartHandlerable) + } + return nil +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionStartListener) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuthenticationEventListener.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("handler", m.GetHandler()) + if err != nil { + return err + } + } + return nil +} +// SetHandler sets the handler property value. The handler property +func (m *OnAttributeCollectionStartListener) SetHandler(value OnAttributeCollectionStartHandlerable)() { + err := m.GetBackingStore().Set("handler", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionStartListenerable +type OnAttributeCollectionStartListenerable interface { + AuthenticationEventListenerable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetHandler()(OnAttributeCollectionStartHandlerable) + SetHandler(value OnAttributeCollectionStartHandlerable)() +} diff --git a/models/on_attribute_collection_submit_custom_extension.go b/models/on_attribute_collection_submit_custom_extension.go new file mode 100644 index 00000000000..39052af99d3 --- /dev/null +++ b/models/on_attribute_collection_submit_custom_extension.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionSubmitCustomExtension +type OnAttributeCollectionSubmitCustomExtension struct { + CustomAuthenticationExtension +} +// NewOnAttributeCollectionSubmitCustomExtension instantiates a new onAttributeCollectionSubmitCustomExtension and sets the default values. +func NewOnAttributeCollectionSubmitCustomExtension()(*OnAttributeCollectionSubmitCustomExtension) { + m := &OnAttributeCollectionSubmitCustomExtension{ + CustomAuthenticationExtension: *NewCustomAuthenticationExtension(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionSubmitCustomExtension" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionSubmitCustomExtensionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionSubmitCustomExtensionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionSubmitCustomExtension(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionSubmitCustomExtension) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CustomAuthenticationExtension.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionSubmitCustomExtension) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CustomAuthenticationExtension.Serialize(writer) + if err != nil { + return err + } + return nil +} +// OnAttributeCollectionSubmitCustomExtensionable +type OnAttributeCollectionSubmitCustomExtensionable interface { + CustomAuthenticationExtensionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/on_attribute_collection_submit_custom_extension_handler.go b/models/on_attribute_collection_submit_custom_extension_handler.go new file mode 100644 index 00000000000..b42924431ef --- /dev/null +++ b/models/on_attribute_collection_submit_custom_extension_handler.go @@ -0,0 +1,113 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionSubmitCustomExtensionHandler +type OnAttributeCollectionSubmitCustomExtensionHandler struct { + OnAttributeCollectionSubmitHandler +} +// NewOnAttributeCollectionSubmitCustomExtensionHandler instantiates a new onAttributeCollectionSubmitCustomExtensionHandler and sets the default values. +func NewOnAttributeCollectionSubmitCustomExtensionHandler()(*OnAttributeCollectionSubmitCustomExtensionHandler) { + m := &OnAttributeCollectionSubmitCustomExtensionHandler{ + OnAttributeCollectionSubmitHandler: *NewOnAttributeCollectionSubmitHandler(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionSubmitCustomExtensionHandler" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionSubmitCustomExtensionHandlerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionSubmitCustomExtensionHandlerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionSubmitCustomExtensionHandler(), nil +} +// GetConfiguration gets the configuration property value. The configuration property +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) GetConfiguration()(CustomExtensionOverwriteConfigurationable) { + val, err := m.GetBackingStore().Get("configuration") + if err != nil { + panic(err) + } + if val != nil { + return val.(CustomExtensionOverwriteConfigurationable) + } + return nil +} +// GetCustomExtension gets the customExtension property value. The customExtension property +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) GetCustomExtension()(OnAttributeCollectionSubmitCustomExtensionable) { + val, err := m.GetBackingStore().Get("customExtension") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionSubmitCustomExtensionable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.OnAttributeCollectionSubmitHandler.GetFieldDeserializers() + res["configuration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCustomExtensionOverwriteConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetConfiguration(val.(CustomExtensionOverwriteConfigurationable)) + } + return nil + } + res["customExtension"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionSubmitCustomExtensionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCustomExtension(val.(OnAttributeCollectionSubmitCustomExtensionable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.OnAttributeCollectionSubmitHandler.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("configuration", m.GetConfiguration()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("customExtension", m.GetCustomExtension()) + if err != nil { + return err + } + } + return nil +} +// SetConfiguration sets the configuration property value. The configuration property +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) SetConfiguration(value CustomExtensionOverwriteConfigurationable)() { + err := m.GetBackingStore().Set("configuration", value) + if err != nil { + panic(err) + } +} +// SetCustomExtension sets the customExtension property value. The customExtension property +func (m *OnAttributeCollectionSubmitCustomExtensionHandler) SetCustomExtension(value OnAttributeCollectionSubmitCustomExtensionable)() { + err := m.GetBackingStore().Set("customExtension", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionSubmitCustomExtensionHandlerable +type OnAttributeCollectionSubmitCustomExtensionHandlerable interface { + OnAttributeCollectionSubmitHandlerable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetConfiguration()(CustomExtensionOverwriteConfigurationable) + GetCustomExtension()(OnAttributeCollectionSubmitCustomExtensionable) + SetConfiguration(value CustomExtensionOverwriteConfigurationable)() + SetCustomExtension(value OnAttributeCollectionSubmitCustomExtensionable)() +} diff --git a/models/on_attribute_collection_submit_handler.go b/models/on_attribute_collection_submit_handler.go new file mode 100644 index 00000000000..4d40b45e0ca --- /dev/null +++ b/models/on_attribute_collection_submit_handler.go @@ -0,0 +1,128 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// OnAttributeCollectionSubmitHandler +type OnAttributeCollectionSubmitHandler struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewOnAttributeCollectionSubmitHandler instantiates a new onAttributeCollectionSubmitHandler and sets the default values. +func NewOnAttributeCollectionSubmitHandler()(*OnAttributeCollectionSubmitHandler) { + m := &OnAttributeCollectionSubmitHandler{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateOnAttributeCollectionSubmitHandlerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionSubmitHandlerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.onAttributeCollectionSubmitCustomExtensionHandler": + return NewOnAttributeCollectionSubmitCustomExtensionHandler(), nil + } + } + } + } + return NewOnAttributeCollectionSubmitHandler(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *OnAttributeCollectionSubmitHandler) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *OnAttributeCollectionSubmitHandler) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionSubmitHandler) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OnAttributeCollectionSubmitHandler) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionSubmitHandler) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *OnAttributeCollectionSubmitHandler) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *OnAttributeCollectionSubmitHandler) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnAttributeCollectionSubmitHandler) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionSubmitHandlerable +type OnAttributeCollectionSubmitHandlerable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/on_attribute_collection_submit_listener.go b/models/on_attribute_collection_submit_listener.go new file mode 100644 index 00000000000..97742d0326d --- /dev/null +++ b/models/on_attribute_collection_submit_listener.go @@ -0,0 +1,77 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// OnAttributeCollectionSubmitListener +type OnAttributeCollectionSubmitListener struct { + AuthenticationEventListener +} +// NewOnAttributeCollectionSubmitListener instantiates a new onAttributeCollectionSubmitListener and sets the default values. +func NewOnAttributeCollectionSubmitListener()(*OnAttributeCollectionSubmitListener) { + m := &OnAttributeCollectionSubmitListener{ + AuthenticationEventListener: *NewAuthenticationEventListener(), + } + odataTypeValue := "#microsoft.graph.onAttributeCollectionSubmitListener" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOnAttributeCollectionSubmitListenerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateOnAttributeCollectionSubmitListenerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOnAttributeCollectionSubmitListener(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *OnAttributeCollectionSubmitListener) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuthenticationEventListener.GetFieldDeserializers() + res["handler"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateOnAttributeCollectionSubmitHandlerFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetHandler(val.(OnAttributeCollectionSubmitHandlerable)) + } + return nil + } + return res +} +// GetHandler gets the handler property value. The handler property +func (m *OnAttributeCollectionSubmitListener) GetHandler()(OnAttributeCollectionSubmitHandlerable) { + val, err := m.GetBackingStore().Get("handler") + if err != nil { + panic(err) + } + if val != nil { + return val.(OnAttributeCollectionSubmitHandlerable) + } + return nil +} +// Serialize serializes information the current object +func (m *OnAttributeCollectionSubmitListener) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuthenticationEventListener.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("handler", m.GetHandler()) + if err != nil { + return err + } + } + return nil +} +// SetHandler sets the handler property value. The handler property +func (m *OnAttributeCollectionSubmitListener) SetHandler(value OnAttributeCollectionSubmitHandlerable)() { + err := m.GetBackingStore().Set("handler", value) + if err != nil { + panic(err) + } +} +// OnAttributeCollectionSubmitListenerable +type OnAttributeCollectionSubmitListenerable interface { + AuthenticationEventListenerable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetHandler()(OnAttributeCollectionSubmitHandlerable) + SetHandler(value OnAttributeCollectionSubmitHandlerable)() +} diff --git a/models/on_premises_accidental_deletion_prevention.go b/models/on_premises_accidental_deletion_prevention.go index 6b366ebb153..b8b79ebeb70 100644 --- a/models/on_premises_accidental_deletion_prevention.go +++ b/models/on_premises_accidental_deletion_prevention.go @@ -73,12 +73,12 @@ func (m *OnPremisesAccidentalDeletionPrevention) GetFieldDeserializers()(map[str return nil } res["synchronizationPreventionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnPremisesDirectorySynchronizationDeletionPreventionType) + val, err := n.GetEnumValue(ParseOnPremisesAccidentalDeletionPrevention_synchronizationPreventionType) if err != nil { return err } if val != nil { - m.SetSynchronizationPreventionType(val.(*OnPremisesDirectorySynchronizationDeletionPreventionType)) + m.SetSynchronizationPreventionType(val.(*OnPremisesAccidentalDeletionPrevention_synchronizationPreventionType)) } return nil } @@ -96,13 +96,13 @@ func (m *OnPremisesAccidentalDeletionPrevention) GetOdataType()(*string) { return nil } // GetSynchronizationPreventionType gets the synchronizationPreventionType property value. The status of the accidental deletion prevention feature. The possible values are: disabled, enabledForCount, enabledForPercentage, unknownFutureValue. -func (m *OnPremisesAccidentalDeletionPrevention) GetSynchronizationPreventionType()(*OnPremisesDirectorySynchronizationDeletionPreventionType) { +func (m *OnPremisesAccidentalDeletionPrevention) GetSynchronizationPreventionType()(*OnPremisesAccidentalDeletionPrevention_synchronizationPreventionType) { val, err := m.GetBackingStore().Get("synchronizationPreventionType") if err != nil { panic(err) } if val != nil { - return val.(*OnPremisesDirectorySynchronizationDeletionPreventionType) + return val.(*OnPremisesAccidentalDeletionPrevention_synchronizationPreventionType) } return nil } @@ -161,7 +161,7 @@ func (m *OnPremisesAccidentalDeletionPrevention) SetOdataType(value *string)() { } } // SetSynchronizationPreventionType sets the synchronizationPreventionType property value. The status of the accidental deletion prevention feature. The possible values are: disabled, enabledForCount, enabledForPercentage, unknownFutureValue. -func (m *OnPremisesAccidentalDeletionPrevention) SetSynchronizationPreventionType(value *OnPremisesDirectorySynchronizationDeletionPreventionType)() { +func (m *OnPremisesAccidentalDeletionPrevention) SetSynchronizationPreventionType(value *OnPremisesAccidentalDeletionPrevention_synchronizationPreventionType)() { err := m.GetBackingStore().Set("synchronizationPreventionType", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type OnPremisesAccidentalDeletionPreventionable interface { GetAlertThreshold()(*int32) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetSynchronizationPreventionType()(*OnPremisesDirectorySynchronizationDeletionPreventionType) + GetSynchronizationPreventionType()(*OnPremisesAccidentalDeletionPrevention_synchronizationPreventionType) SetAlertThreshold(value *int32)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetSynchronizationPreventionType(value *OnPremisesDirectorySynchronizationDeletionPreventionType)() + SetSynchronizationPreventionType(value *OnPremisesAccidentalDeletionPrevention_synchronizationPreventionType)() } diff --git a/models/on_premises_accidental_deletion_prevention_synchronization_prevention_type.go b/models/on_premises_accidental_deletion_prevention_synchronization_prevention_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/on_premises_directory_synchronization_deletion_prevention_type.go b/models/on_premises_directory_synchronization_deletion_prevention_type.go deleted file mode 100644 index 4e66359f1d5..00000000000 --- a/models/on_premises_directory_synchronization_deletion_prevention_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type OnPremisesDirectorySynchronizationDeletionPreventionType int - -const ( - DISABLED_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE OnPremisesDirectorySynchronizationDeletionPreventionType = iota - ENABLEDFORCOUNT_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE - ENABLEDFORPERCENTAGE_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE - UNKNOWNFUTUREVALUE_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE -) - -func (i OnPremisesDirectorySynchronizationDeletionPreventionType) String() string { - return []string{"disabled", "enabledForCount", "enabledForPercentage", "unknownFutureValue"}[i] -} -func ParseOnPremisesDirectorySynchronizationDeletionPreventionType(v string) (any, error) { - result := DISABLED_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE - switch v { - case "disabled": - result = DISABLED_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE - case "enabledForCount": - result = ENABLEDFORCOUNT_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE - case "enabledForPercentage": - result = ENABLEDFORPERCENTAGE_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE - default: - return 0, errors.New("Unknown OnPremisesDirectorySynchronizationDeletionPreventionType value: " + v) - } - return &result, nil -} -func SerializeOnPremisesDirectorySynchronizationDeletionPreventionType(values []OnPremisesDirectorySynchronizationDeletionPreventionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnPremisesDirectorySynchronizationDeletionPreventionType) isMultiValue() bool { - return false -} diff --git a/models/on_premises_publishing.go b/models/on_premises_publishing.go index 048c856a66a..a192535631c 100644 --- a/models/on_premises_publishing.go +++ b/models/on_premises_publishing.go @@ -72,13 +72,13 @@ func (m *OnPremisesPublishing) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078 return m.backingStore } // GetExternalAuthenticationType gets the externalAuthenticationType property value. Details the pre-authentication setting for the application. Pre-authentication enforces that users must authenticate before accessing the app. Pass through doesn't require authentication. Possible values are: passthru, aadPreAuthentication. -func (m *OnPremisesPublishing) GetExternalAuthenticationType()(*ExternalAuthenticationType) { +func (m *OnPremisesPublishing) GetExternalAuthenticationType()(*OnPremisesPublishing_externalAuthenticationType) { val, err := m.GetBackingStore().Get("externalAuthenticationType") if err != nil { panic(err) } if val != nil { - return val.(*ExternalAuthenticationType) + return val.(*OnPremisesPublishing_externalAuthenticationType) } return nil } @@ -127,12 +127,12 @@ func (m *OnPremisesPublishing) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["externalAuthenticationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExternalAuthenticationType) + val, err := n.GetEnumValue(ParseOnPremisesPublishing_externalAuthenticationType) if err != nil { return err } if val != nil { - m.SetExternalAuthenticationType(val.(*ExternalAuthenticationType)) + m.SetExternalAuthenticationType(val.(*OnPremisesPublishing_externalAuthenticationType)) } return nil } @@ -747,7 +747,7 @@ func (m *OnPremisesPublishing) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ec m.backingStore = value } // SetExternalAuthenticationType sets the externalAuthenticationType property value. Details the pre-authentication setting for the application. Pre-authentication enforces that users must authenticate before accessing the app. Pass through doesn't require authentication. Possible values are: passthru, aadPreAuthentication. -func (m *OnPremisesPublishing) SetExternalAuthenticationType(value *ExternalAuthenticationType)() { +func (m *OnPremisesPublishing) SetExternalAuthenticationType(value *OnPremisesPublishing_externalAuthenticationType)() { err := m.GetBackingStore().Set("externalAuthenticationType", value) if err != nil { panic(err) @@ -902,7 +902,7 @@ type OnPremisesPublishingable interface { GetApplicationServerTimeout()(*string) GetApplicationType()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetExternalAuthenticationType()(*ExternalAuthenticationType) + GetExternalAuthenticationType()(*OnPremisesPublishing_externalAuthenticationType) GetExternalUrl()(*string) GetInternalUrl()(*string) GetIsAccessibleViaZTNAClient()(*bool) @@ -927,7 +927,7 @@ type OnPremisesPublishingable interface { SetApplicationServerTimeout(value *string)() SetApplicationType(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetExternalAuthenticationType(value *ExternalAuthenticationType)() + SetExternalAuthenticationType(value *OnPremisesPublishing_externalAuthenticationType)() SetExternalUrl(value *string)() SetInternalUrl(value *string)() SetIsAccessibleViaZTNAClient(value *bool)() diff --git a/models/on_premises_publishing_external_authentication_type.go b/models/on_premises_publishing_external_authentication_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/on_premises_publishing_single_sign_on.go b/models/on_premises_publishing_single_sign_on.go index 3edb0cf650f..4eb3d564b89 100644 --- a/models/on_premises_publishing_single_sign_on.go +++ b/models/on_premises_publishing_single_sign_on.go @@ -62,12 +62,12 @@ func (m *OnPremisesPublishingSingleSignOn) GetFieldDeserializers()(map[string]fu return nil } res["singleSignOnMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSingleSignOnMode) + val, err := n.GetEnumValue(ParseOnPremisesPublishingSingleSignOn_singleSignOnMode) if err != nil { return err } if val != nil { - m.SetSingleSignOnMode(val.(*SingleSignOnMode)) + m.SetSingleSignOnMode(val.(*OnPremisesPublishingSingleSignOn_singleSignOnMode)) } return nil } @@ -96,13 +96,13 @@ func (m *OnPremisesPublishingSingleSignOn) GetOdataType()(*string) { return nil } // GetSingleSignOnMode gets the singleSignOnMode property value. The preferred single-sign on mode for the application. Possible values are: none, onPremisesKerberos, aadHeaderBased,pingHeaderBased, oAuthToken. -func (m *OnPremisesPublishingSingleSignOn) GetSingleSignOnMode()(*SingleSignOnMode) { +func (m *OnPremisesPublishingSingleSignOn) GetSingleSignOnMode()(*OnPremisesPublishingSingleSignOn_singleSignOnMode) { val, err := m.GetBackingStore().Get("singleSignOnMode") if err != nil { panic(err) } if val != nil { - return val.(*SingleSignOnMode) + return val.(*OnPremisesPublishingSingleSignOn_singleSignOnMode) } return nil } @@ -161,7 +161,7 @@ func (m *OnPremisesPublishingSingleSignOn) SetOdataType(value *string)() { } } // SetSingleSignOnMode sets the singleSignOnMode property value. The preferred single-sign on mode for the application. Possible values are: none, onPremisesKerberos, aadHeaderBased,pingHeaderBased, oAuthToken. -func (m *OnPremisesPublishingSingleSignOn) SetSingleSignOnMode(value *SingleSignOnMode)() { +func (m *OnPremisesPublishingSingleSignOn) SetSingleSignOnMode(value *OnPremisesPublishingSingleSignOn_singleSignOnMode)() { err := m.GetBackingStore().Set("singleSignOnMode", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type OnPremisesPublishingSingleSignOnable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetKerberosSignOnSettings()(KerberosSignOnSettingsable) GetOdataType()(*string) - GetSingleSignOnMode()(*SingleSignOnMode) + GetSingleSignOnMode()(*OnPremisesPublishingSingleSignOn_singleSignOnMode) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetKerberosSignOnSettings(value KerberosSignOnSettingsable)() SetOdataType(value *string)() - SetSingleSignOnMode(value *SingleSignOnMode)() + SetSingleSignOnMode(value *OnPremisesPublishingSingleSignOn_singleSignOnMode)() } diff --git a/models/on_premises_publishing_single_sign_on_single_sign_on_mode.go b/models/on_premises_publishing_single_sign_on_single_sign_on_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/on_user_create_start_external_users_self_service_sign_up.go b/models/on_user_create_start_external_users_self_service_sign_up.go index 3613639cb21..47e7cfd8149 100644 --- a/models/on_user_create_start_external_users_self_service_sign_up.go +++ b/models/on_user_create_start_external_users_self_service_sign_up.go @@ -25,25 +25,25 @@ func CreateOnUserCreateStartExternalUsersSelfServiceSignUpFromDiscriminatorValue func (m *OnUserCreateStartExternalUsersSelfServiceSignUp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.OnUserCreateStartHandler.GetFieldDeserializers() res["userTypeToCreate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserType) + val, err := n.GetEnumValue(ParseOnUserCreateStartExternalUsersSelfServiceSignUp_userTypeToCreate) if err != nil { return err } if val != nil { - m.SetUserTypeToCreate(val.(*UserType)) + m.SetUserTypeToCreate(val.(*OnUserCreateStartExternalUsersSelfServiceSignUp_userTypeToCreate)) } return nil } return res } // GetUserTypeToCreate gets the userTypeToCreate property value. The type of user object to create. The possible values are: member, guest, unknownFutureValue. -func (m *OnUserCreateStartExternalUsersSelfServiceSignUp) GetUserTypeToCreate()(*UserType) { +func (m *OnUserCreateStartExternalUsersSelfServiceSignUp) GetUserTypeToCreate()(*OnUserCreateStartExternalUsersSelfServiceSignUp_userTypeToCreate) { val, err := m.GetBackingStore().Get("userTypeToCreate") if err != nil { panic(err) } if val != nil { - return val.(*UserType) + return val.(*OnUserCreateStartExternalUsersSelfServiceSignUp_userTypeToCreate) } return nil } @@ -63,7 +63,7 @@ func (m *OnUserCreateStartExternalUsersSelfServiceSignUp) Serialize(writer i878a return nil } // SetUserTypeToCreate sets the userTypeToCreate property value. The type of user object to create. The possible values are: member, guest, unknownFutureValue. -func (m *OnUserCreateStartExternalUsersSelfServiceSignUp) SetUserTypeToCreate(value *UserType)() { +func (m *OnUserCreateStartExternalUsersSelfServiceSignUp) SetUserTypeToCreate(value *OnUserCreateStartExternalUsersSelfServiceSignUp_userTypeToCreate)() { err := m.GetBackingStore().Set("userTypeToCreate", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *OnUserCreateStartExternalUsersSelfServiceSignUp) SetUserTypeToCreate(va type OnUserCreateStartExternalUsersSelfServiceSignUpable interface { OnUserCreateStartHandlerable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetUserTypeToCreate()(*UserType) - SetUserTypeToCreate(value *UserType)() + GetUserTypeToCreate()(*OnUserCreateStartExternalUsersSelfServiceSignUp_userTypeToCreate) + SetUserTypeToCreate(value *OnUserCreateStartExternalUsersSelfServiceSignUp_userTypeToCreate)() } diff --git a/models/on_user_create_start_external_users_self_service_sign_up_user_type_to_create.go b/models/on_user_create_start_external_users_self_service_sign_up_user_type_to_create.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/onenote_patch_content_command.go b/models/onenote_patch_content_command.go index 724c7fb4ead..3c167d64bd4 100644 --- a/models/onenote_patch_content_command.go +++ b/models/onenote_patch_content_command.go @@ -94,12 +94,12 @@ func (m *OnenotePatchContentCommand) GetFieldDeserializers()(map[string]func(i87 return nil } res["position"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnenotePatchInsertPosition) + val, err := n.GetEnumValue(ParseOnenotePatchContentCommand_position) if err != nil { return err } if val != nil { - m.SetPosition(val.(*OnenotePatchInsertPosition)) + m.SetPosition(val.(*OnenotePatchContentCommand_position)) } return nil } @@ -127,13 +127,13 @@ func (m *OnenotePatchContentCommand) GetOdataType()(*string) { return nil } // GetPosition gets the position property value. The location to add the supplied content, relative to the target element. Possible values are: after (default) or before. -func (m *OnenotePatchContentCommand) GetPosition()(*OnenotePatchInsertPosition) { +func (m *OnenotePatchContentCommand) GetPosition()(*OnenotePatchContentCommand_position) { val, err := m.GetBackingStore().Get("position") if err != nil { panic(err) } if val != nil { - return val.(*OnenotePatchInsertPosition) + return val.(*OnenotePatchContentCommand_position) } return nil } @@ -223,7 +223,7 @@ func (m *OnenotePatchContentCommand) SetOdataType(value *string)() { } } // SetPosition sets the position property value. The location to add the supplied content, relative to the target element. Possible values are: after (default) or before. -func (m *OnenotePatchContentCommand) SetPosition(value *OnenotePatchInsertPosition)() { +func (m *OnenotePatchContentCommand) SetPosition(value *OnenotePatchContentCommand_position)() { err := m.GetBackingStore().Set("position", value) if err != nil { panic(err) @@ -245,12 +245,12 @@ type OnenotePatchContentCommandable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContent()(*string) GetOdataType()(*string) - GetPosition()(*OnenotePatchInsertPosition) + GetPosition()(*OnenotePatchContentCommand_position) GetTarget()(*string) SetAction(value *OnenotePatchActionType)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContent(value *string)() SetOdataType(value *string)() - SetPosition(value *OnenotePatchInsertPosition)() + SetPosition(value *OnenotePatchContentCommand_position)() SetTarget(value *string)() } diff --git a/models/onenote_patch_content_command_position.go b/models/onenote_patch_content_command_position.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/onenote_patch_insert_position.go b/models/onenote_patch_insert_position.go deleted file mode 100644 index cb865acc8ac..00000000000 --- a/models/onenote_patch_insert_position.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type OnenotePatchInsertPosition int - -const ( - AFTER_ONENOTEPATCHINSERTPOSITION OnenotePatchInsertPosition = iota - BEFORE_ONENOTEPATCHINSERTPOSITION -) - -func (i OnenotePatchInsertPosition) String() string { - return []string{"After", "Before"}[i] -} -func ParseOnenotePatchInsertPosition(v string) (any, error) { - result := AFTER_ONENOTEPATCHINSERTPOSITION - switch v { - case "After": - result = AFTER_ONENOTEPATCHINSERTPOSITION - case "Before": - result = BEFORE_ONENOTEPATCHINSERTPOSITION - default: - return 0, errors.New("Unknown OnenotePatchInsertPosition value: " + v) - } - return &result, nil -} -func SerializeOnenotePatchInsertPosition(values []OnenotePatchInsertPosition) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnenotePatchInsertPosition) isMultiValue() bool { - return false -} diff --git a/models/onenote_source_service.go b/models/onenote_source_service.go deleted file mode 100644 index f7f648130ee..00000000000 --- a/models/onenote_source_service.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type OnenoteSourceService int - -const ( - UNKNOWN_ONENOTESOURCESERVICE OnenoteSourceService = iota - ONEDRIVE_ONENOTESOURCESERVICE - ONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE - ONPREMONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE -) - -func (i OnenoteSourceService) String() string { - return []string{"Unknown", "OneDrive", "OneDriveForBusiness", "OnPremOneDriveForBusiness"}[i] -} -func ParseOnenoteSourceService(v string) (any, error) { - result := UNKNOWN_ONENOTESOURCESERVICE - switch v { - case "Unknown": - result = UNKNOWN_ONENOTESOURCESERVICE - case "OneDrive": - result = ONEDRIVE_ONENOTESOURCESERVICE - case "OneDriveForBusiness": - result = ONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE - case "OnPremOneDriveForBusiness": - result = ONPREMONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE - default: - return 0, errors.New("Unknown OnenoteSourceService value: " + v) - } - return &result, nil -} -func SerializeOnenoteSourceService(values []OnenoteSourceService) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnenoteSourceService) isMultiValue() bool { - return false -} diff --git a/models/onenote_user_role.go b/models/onenote_user_role.go deleted file mode 100644 index 804ac3a4a9c..00000000000 --- a/models/onenote_user_role.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type OnenoteUserRole int - -const ( - NONE_ONENOTEUSERROLE OnenoteUserRole = iota - OWNER_ONENOTEUSERROLE - CONTRIBUTOR_ONENOTEUSERROLE - READER_ONENOTEUSERROLE -) - -func (i OnenoteUserRole) String() string { - return []string{"None", "Owner", "Contributor", "Reader"}[i] -} -func ParseOnenoteUserRole(v string) (any, error) { - result := NONE_ONENOTEUSERROLE - switch v { - case "None": - result = NONE_ONENOTEUSERROLE - case "Owner": - result = OWNER_ONENOTEUSERROLE - case "Contributor": - result = CONTRIBUTOR_ONENOTEUSERROLE - case "Reader": - result = READER_ONENOTEUSERROLE - default: - return 0, errors.New("Unknown OnenoteUserRole value: " + v) - } - return &result, nil -} -func SerializeOnenoteUserRole(values []OnenoteUserRole) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnenoteUserRole) isMultiValue() bool { - return false -} diff --git a/models/online_meeting.go b/models/online_meeting.go index 014d450ef86..c7101c827e7 100644 --- a/models/online_meeting.go +++ b/models/online_meeting.go @@ -67,13 +67,13 @@ func (m *OnlineMeeting) GetBroadcastSettings()(BroadcastMeetingSettingsable) { return nil } // GetCapabilities gets the capabilities property value. The capabilities property -func (m *OnlineMeeting) GetCapabilities()([]MeetingCapabilities) { +func (m *OnlineMeeting) GetCapabilities()([]OnlineMeeting_capabilities) { val, err := m.GetBackingStore().Get("capabilities") if err != nil { panic(err) } if val != nil { - return val.([]MeetingCapabilities) + return val.([]OnlineMeeting_capabilities) } return nil } @@ -154,15 +154,15 @@ func (m *OnlineMeeting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["capabilities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseMeetingCapabilities) + val, err := n.GetCollectionOfEnumValues(ParseOnlineMeeting_capabilities) if err != nil { return err } if val != nil { - res := make([]MeetingCapabilities, len(val)) + res := make([]OnlineMeeting_capabilities, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*MeetingCapabilities)) + res[i] = *(v.(*OnlineMeeting_capabilities)) } } m.SetCapabilities(res) @@ -433,7 +433,7 @@ func (m *OnlineMeeting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } } if m.GetCapabilities() != nil { - err = writer.WriteCollectionOfStringValues("capabilities", SerializeMeetingCapabilities(m.GetCapabilities())) + err = writer.WriteCollectionOfStringValues("capabilities", SerializeOnlineMeeting_capabilities(m.GetCapabilities())) if err != nil { return err } @@ -553,7 +553,7 @@ func (m *OnlineMeeting) SetBroadcastSettings(value BroadcastMeetingSettingsable) } } // SetCapabilities sets the capabilities property value. The capabilities property -func (m *OnlineMeeting) SetCapabilities(value []MeetingCapabilities)() { +func (m *OnlineMeeting) SetCapabilities(value []OnlineMeeting_capabilities)() { err := m.GetBackingStore().Set("capabilities", value) if err != nil { panic(err) @@ -651,7 +651,7 @@ type OnlineMeetingable interface { GetAttendeeReport()([]byte) GetBroadcastRecording()([]byte) GetBroadcastSettings()(BroadcastMeetingSettingsable) - GetCapabilities()([]MeetingCapabilities) + GetCapabilities()([]OnlineMeeting_capabilities) GetCreationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetExternalId()(*string) @@ -668,7 +668,7 @@ type OnlineMeetingable interface { SetAttendeeReport(value []byte)() SetBroadcastRecording(value []byte)() SetBroadcastSettings(value BroadcastMeetingSettingsable)() - SetCapabilities(value []MeetingCapabilities)() + SetCapabilities(value []OnlineMeeting_capabilities)() SetCreationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetExternalId(value *string)() diff --git a/models/online_meeting_base.go b/models/online_meeting_base.go index 71519b939c4..9708aaef495 100644 --- a/models/online_meeting_base.go +++ b/models/online_meeting_base.go @@ -62,24 +62,24 @@ func (m *OnlineMeetingBase) GetAllowAttendeeToEnableMic()(*bool) { return nil } // GetAllowedPresenters gets the allowedPresenters property value. Specifies who can be a presenter in a meeting. -func (m *OnlineMeetingBase) GetAllowedPresenters()(*OnlineMeetingPresenters) { +func (m *OnlineMeetingBase) GetAllowedPresenters()(*OnlineMeetingBase_allowedPresenters) { val, err := m.GetBackingStore().Get("allowedPresenters") if err != nil { panic(err) } if val != nil { - return val.(*OnlineMeetingPresenters) + return val.(*OnlineMeetingBase_allowedPresenters) } return nil } // GetAllowMeetingChat gets the allowMeetingChat property value. Specifies the mode of meeting chat. -func (m *OnlineMeetingBase) GetAllowMeetingChat()(*MeetingChatMode) { +func (m *OnlineMeetingBase) GetAllowMeetingChat()(*OnlineMeetingBase_allowMeetingChat) { val, err := m.GetBackingStore().Get("allowMeetingChat") if err != nil { panic(err) } if val != nil { - return val.(*MeetingChatMode) + return val.(*OnlineMeetingBase_allowMeetingChat) } return nil } @@ -128,13 +128,13 @@ func (m *OnlineMeetingBase) GetAllowTranscription()(*bool) { return nil } // GetAnonymizeIdentityForRoles gets the anonymizeIdentityForRoles property value. Specifies whose identity is anonymized in the meeting. Possible values are: attendee. The attendee value can't be removed through a PATCH operation once added. -func (m *OnlineMeetingBase) GetAnonymizeIdentityForRoles()([]OnlineMeetingRole) { +func (m *OnlineMeetingBase) GetAnonymizeIdentityForRoles()([]OnlineMeetingBase_anonymizeIdentityForRoles) { val, err := m.GetBackingStore().Get("anonymizeIdentityForRoles") if err != nil { panic(err) } if val != nil { - return val.([]OnlineMeetingRole) + return val.([]OnlineMeetingBase_anonymizeIdentityForRoles) } return nil } @@ -206,22 +206,22 @@ func (m *OnlineMeetingBase) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["allowedPresenters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnlineMeetingPresenters) + val, err := n.GetEnumValue(ParseOnlineMeetingBase_allowedPresenters) if err != nil { return err } if val != nil { - m.SetAllowedPresenters(val.(*OnlineMeetingPresenters)) + m.SetAllowedPresenters(val.(*OnlineMeetingBase_allowedPresenters)) } return nil } res["allowMeetingChat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMeetingChatMode) + val, err := n.GetEnumValue(ParseOnlineMeetingBase_allowMeetingChat) if err != nil { return err } if val != nil { - m.SetAllowMeetingChat(val.(*MeetingChatMode)) + m.SetAllowMeetingChat(val.(*OnlineMeetingBase_allowMeetingChat)) } return nil } @@ -266,15 +266,15 @@ func (m *OnlineMeetingBase) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["anonymizeIdentityForRoles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseOnlineMeetingRole) + val, err := n.GetCollectionOfEnumValues(ParseOnlineMeetingBase_anonymizeIdentityForRoles) if err != nil { return err } if val != nil { - res := make([]OnlineMeetingRole, len(val)) + res := make([]OnlineMeetingBase_anonymizeIdentityForRoles, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*OnlineMeetingRole)) + res[i] = *(v.(*OnlineMeetingBase_anonymizeIdentityForRoles)) } } m.SetAnonymizeIdentityForRoles(res) @@ -398,12 +398,12 @@ func (m *OnlineMeetingBase) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["shareMeetingChatHistoryDefault"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMeetingChatHistoryDefaultMode) + val, err := n.GetEnumValue(ParseOnlineMeetingBase_shareMeetingChatHistoryDefault) if err != nil { return err } if val != nil { - m.SetShareMeetingChatHistoryDefault(val.(*MeetingChatHistoryDefaultMode)) + m.SetShareMeetingChatHistoryDefault(val.(*OnlineMeetingBase_shareMeetingChatHistoryDefault)) } return nil } @@ -517,13 +517,13 @@ func (m *OnlineMeetingBase) GetRecordAutomatically()(*bool) { return nil } // GetShareMeetingChatHistoryDefault gets the shareMeetingChatHistoryDefault property value. The shareMeetingChatHistoryDefault property -func (m *OnlineMeetingBase) GetShareMeetingChatHistoryDefault()(*MeetingChatHistoryDefaultMode) { +func (m *OnlineMeetingBase) GetShareMeetingChatHistoryDefault()(*OnlineMeetingBase_shareMeetingChatHistoryDefault) { val, err := m.GetBackingStore().Get("shareMeetingChatHistoryDefault") if err != nil { panic(err) } if val != nil { - return val.(*MeetingChatHistoryDefaultMode) + return val.(*OnlineMeetingBase_shareMeetingChatHistoryDefault) } return nil } @@ -617,7 +617,7 @@ func (m *OnlineMeetingBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } } if m.GetAnonymizeIdentityForRoles() != nil { - err = writer.WriteCollectionOfStringValues("anonymizeIdentityForRoles", SerializeOnlineMeetingRole(m.GetAnonymizeIdentityForRoles())) + err = writer.WriteCollectionOfStringValues("anonymizeIdentityForRoles", SerializeOnlineMeetingBase_anonymizeIdentityForRoles(m.GetAnonymizeIdentityForRoles())) if err != nil { return err } @@ -736,14 +736,14 @@ func (m *OnlineMeetingBase) SetAllowAttendeeToEnableMic(value *bool)() { } } // SetAllowedPresenters sets the allowedPresenters property value. Specifies who can be a presenter in a meeting. -func (m *OnlineMeetingBase) SetAllowedPresenters(value *OnlineMeetingPresenters)() { +func (m *OnlineMeetingBase) SetAllowedPresenters(value *OnlineMeetingBase_allowedPresenters)() { err := m.GetBackingStore().Set("allowedPresenters", value) if err != nil { panic(err) } } // SetAllowMeetingChat sets the allowMeetingChat property value. Specifies the mode of meeting chat. -func (m *OnlineMeetingBase) SetAllowMeetingChat(value *MeetingChatMode)() { +func (m *OnlineMeetingBase) SetAllowMeetingChat(value *OnlineMeetingBase_allowMeetingChat)() { err := m.GetBackingStore().Set("allowMeetingChat", value) if err != nil { panic(err) @@ -778,7 +778,7 @@ func (m *OnlineMeetingBase) SetAllowTranscription(value *bool)() { } } // SetAnonymizeIdentityForRoles sets the anonymizeIdentityForRoles property value. Specifies whose identity is anonymized in the meeting. Possible values are: attendee. The attendee value can't be removed through a PATCH operation once added. -func (m *OnlineMeetingBase) SetAnonymizeIdentityForRoles(value []OnlineMeetingRole)() { +func (m *OnlineMeetingBase) SetAnonymizeIdentityForRoles(value []OnlineMeetingBase_anonymizeIdentityForRoles)() { err := m.GetBackingStore().Set("anonymizeIdentityForRoles", value) if err != nil { panic(err) @@ -862,7 +862,7 @@ func (m *OnlineMeetingBase) SetRecordAutomatically(value *bool)() { } } // SetShareMeetingChatHistoryDefault sets the shareMeetingChatHistoryDefault property value. The shareMeetingChatHistoryDefault property -func (m *OnlineMeetingBase) SetShareMeetingChatHistoryDefault(value *MeetingChatHistoryDefaultMode)() { +func (m *OnlineMeetingBase) SetShareMeetingChatHistoryDefault(value *OnlineMeetingBase_shareMeetingChatHistoryDefault)() { err := m.GetBackingStore().Set("shareMeetingChatHistoryDefault", value) if err != nil { panic(err) @@ -895,13 +895,13 @@ type OnlineMeetingBaseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowAttendeeToEnableCamera()(*bool) GetAllowAttendeeToEnableMic()(*bool) - GetAllowedPresenters()(*OnlineMeetingPresenters) - GetAllowMeetingChat()(*MeetingChatMode) + GetAllowedPresenters()(*OnlineMeetingBase_allowedPresenters) + GetAllowMeetingChat()(*OnlineMeetingBase_allowMeetingChat) GetAllowParticipantsToChangeName()(*bool) GetAllowRecording()(*bool) GetAllowTeamworkReactions()(*bool) GetAllowTranscription()(*bool) - GetAnonymizeIdentityForRoles()([]OnlineMeetingRole) + GetAnonymizeIdentityForRoles()([]OnlineMeetingBase_anonymizeIdentityForRoles) GetAttendanceReports()([]MeetingAttendanceReportable) GetAudioConferencing()(AudioConferencingable) GetChatInfo()(ChatInfoable) @@ -913,19 +913,19 @@ type OnlineMeetingBaseable interface { GetJoinWebUrl()(*string) GetLobbyBypassSettings()(LobbyBypassSettingsable) GetRecordAutomatically()(*bool) - GetShareMeetingChatHistoryDefault()(*MeetingChatHistoryDefaultMode) + GetShareMeetingChatHistoryDefault()(*OnlineMeetingBase_shareMeetingChatHistoryDefault) GetSubject()(*string) GetVideoTeleconferenceId()(*string) GetWatermarkProtection()(WatermarkProtectionValuesable) SetAllowAttendeeToEnableCamera(value *bool)() SetAllowAttendeeToEnableMic(value *bool)() - SetAllowedPresenters(value *OnlineMeetingPresenters)() - SetAllowMeetingChat(value *MeetingChatMode)() + SetAllowedPresenters(value *OnlineMeetingBase_allowedPresenters)() + SetAllowMeetingChat(value *OnlineMeetingBase_allowMeetingChat)() SetAllowParticipantsToChangeName(value *bool)() SetAllowRecording(value *bool)() SetAllowTeamworkReactions(value *bool)() SetAllowTranscription(value *bool)() - SetAnonymizeIdentityForRoles(value []OnlineMeetingRole)() + SetAnonymizeIdentityForRoles(value []OnlineMeetingBase_anonymizeIdentityForRoles)() SetAttendanceReports(value []MeetingAttendanceReportable)() SetAudioConferencing(value AudioConferencingable)() SetChatInfo(value ChatInfoable)() @@ -937,7 +937,7 @@ type OnlineMeetingBaseable interface { SetJoinWebUrl(value *string)() SetLobbyBypassSettings(value LobbyBypassSettingsable)() SetRecordAutomatically(value *bool)() - SetShareMeetingChatHistoryDefault(value *MeetingChatHistoryDefaultMode)() + SetShareMeetingChatHistoryDefault(value *OnlineMeetingBase_shareMeetingChatHistoryDefault)() SetSubject(value *string)() SetVideoTeleconferenceId(value *string)() SetWatermarkProtection(value WatermarkProtectionValuesable)() diff --git a/models/online_meeting_base_allow_meeting_chat.go b/models/online_meeting_base_allow_meeting_chat.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/online_meeting_base_allowed_presenters.go b/models/online_meeting_base_allowed_presenters.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/online_meeting_base_anonymize_identity_for_roles.go b/models/online_meeting_base_anonymize_identity_for_roles.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/online_meeting_base_share_meeting_chat_history_default.go b/models/online_meeting_base_share_meeting_chat_history_default.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/online_meeting_capabilities.go b/models/online_meeting_capabilities.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/online_meeting_content_sharing_disabled_reason.go b/models/online_meeting_content_sharing_disabled_reason.go deleted file mode 100644 index 48bcc11b334..00000000000 --- a/models/online_meeting_content_sharing_disabled_reason.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type OnlineMeetingContentSharingDisabledReason int - -const ( - WATERMARKPROTECTION_ONLINEMEETINGCONTENTSHARINGDISABLEDREASON OnlineMeetingContentSharingDisabledReason = iota - UNKNOWNFUTUREVALUE_ONLINEMEETINGCONTENTSHARINGDISABLEDREASON -) - -func (i OnlineMeetingContentSharingDisabledReason) String() string { - var values []string - for p := OnlineMeetingContentSharingDisabledReason(1); p <= UNKNOWNFUTUREVALUE_ONLINEMEETINGCONTENTSHARINGDISABLEDREASON; p <<= 1 { - if i&p == p { - values = append(values, []string{"watermarkProtection", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseOnlineMeetingContentSharingDisabledReason(v string) (any, error) { - var result OnlineMeetingContentSharingDisabledReason - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "watermarkProtection": - result |= WATERMARKPROTECTION_ONLINEMEETINGCONTENTSHARINGDISABLEDREASON - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_ONLINEMEETINGCONTENTSHARINGDISABLEDREASON - default: - return 0, errors.New("Unknown OnlineMeetingContentSharingDisabledReason value: " + v) - } - } - return &result, nil -} -func SerializeOnlineMeetingContentSharingDisabledReason(values []OnlineMeetingContentSharingDisabledReason) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnlineMeetingContentSharingDisabledReason) isMultiValue() bool { - return true -} diff --git a/models/online_meeting_forwarders.go b/models/online_meeting_forwarders.go deleted file mode 100644 index 7dc6a3aa4da..00000000000 --- a/models/online_meeting_forwarders.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type OnlineMeetingForwarders int - -const ( - EVERYONE_ONLINEMEETINGFORWARDERS OnlineMeetingForwarders = iota - ORGANIZER_ONLINEMEETINGFORWARDERS - UNKNOWNFUTUREVALUE_ONLINEMEETINGFORWARDERS -) - -func (i OnlineMeetingForwarders) String() string { - return []string{"everyone", "organizer", "unknownFutureValue"}[i] -} -func ParseOnlineMeetingForwarders(v string) (any, error) { - result := EVERYONE_ONLINEMEETINGFORWARDERS - switch v { - case "everyone": - result = EVERYONE_ONLINEMEETINGFORWARDERS - case "organizer": - result = ORGANIZER_ONLINEMEETINGFORWARDERS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ONLINEMEETINGFORWARDERS - default: - return 0, errors.New("Unknown OnlineMeetingForwarders value: " + v) - } - return &result, nil -} -func SerializeOnlineMeetingForwarders(values []OnlineMeetingForwarders) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnlineMeetingForwarders) isMultiValue() bool { - return false -} diff --git a/models/online_meeting_presenters.go b/models/online_meeting_presenters.go deleted file mode 100644 index 8dd84dfbeb5..00000000000 --- a/models/online_meeting_presenters.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type OnlineMeetingPresenters int - -const ( - EVERYONE_ONLINEMEETINGPRESENTERS OnlineMeetingPresenters = iota - ORGANIZATION_ONLINEMEETINGPRESENTERS - ROLEISPRESENTER_ONLINEMEETINGPRESENTERS - ORGANIZER_ONLINEMEETINGPRESENTERS - UNKNOWNFUTUREVALUE_ONLINEMEETINGPRESENTERS -) - -func (i OnlineMeetingPresenters) String() string { - return []string{"everyone", "organization", "roleIsPresenter", "organizer", "unknownFutureValue"}[i] -} -func ParseOnlineMeetingPresenters(v string) (any, error) { - result := EVERYONE_ONLINEMEETINGPRESENTERS - switch v { - case "everyone": - result = EVERYONE_ONLINEMEETINGPRESENTERS - case "organization": - result = ORGANIZATION_ONLINEMEETINGPRESENTERS - case "roleIsPresenter": - result = ROLEISPRESENTER_ONLINEMEETINGPRESENTERS - case "organizer": - result = ORGANIZER_ONLINEMEETINGPRESENTERS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ONLINEMEETINGPRESENTERS - default: - return 0, errors.New("Unknown OnlineMeetingPresenters value: " + v) - } - return &result, nil -} -func SerializeOnlineMeetingPresenters(values []OnlineMeetingPresenters) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnlineMeetingPresenters) isMultiValue() bool { - return false -} diff --git a/models/online_meeting_provider_type.go b/models/online_meeting_provider_type.go deleted file mode 100644 index f560a7e6f8c..00000000000 --- a/models/online_meeting_provider_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type OnlineMeetingProviderType int - -const ( - UNKNOWN_ONLINEMEETINGPROVIDERTYPE OnlineMeetingProviderType = iota - SKYPEFORBUSINESS_ONLINEMEETINGPROVIDERTYPE - SKYPEFORCONSUMER_ONLINEMEETINGPROVIDERTYPE - TEAMSFORBUSINESS_ONLINEMEETINGPROVIDERTYPE -) - -func (i OnlineMeetingProviderType) String() string { - return []string{"unknown", "skypeForBusiness", "skypeForConsumer", "teamsForBusiness"}[i] -} -func ParseOnlineMeetingProviderType(v string) (any, error) { - result := UNKNOWN_ONLINEMEETINGPROVIDERTYPE - switch v { - case "unknown": - result = UNKNOWN_ONLINEMEETINGPROVIDERTYPE - case "skypeForBusiness": - result = SKYPEFORBUSINESS_ONLINEMEETINGPROVIDERTYPE - case "skypeForConsumer": - result = SKYPEFORCONSUMER_ONLINEMEETINGPROVIDERTYPE - case "teamsForBusiness": - result = TEAMSFORBUSINESS_ONLINEMEETINGPROVIDERTYPE - default: - return 0, errors.New("Unknown OnlineMeetingProviderType value: " + v) - } - return &result, nil -} -func SerializeOnlineMeetingProviderType(values []OnlineMeetingProviderType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnlineMeetingProviderType) isMultiValue() bool { - return false -} diff --git a/models/online_meeting_restricted.go b/models/online_meeting_restricted.go index 4485a009518..ec7838fac4d 100644 --- a/models/online_meeting_restricted.go +++ b/models/online_meeting_restricted.go @@ -39,13 +39,13 @@ func (m *OnlineMeetingRestricted) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd return m.backingStore } // GetContentSharingDisabled gets the contentSharingDisabled property value. Specifies the reason why shared content from this participant is disabled. Possible values are: watermarkProtection, unknownFutureValue. -func (m *OnlineMeetingRestricted) GetContentSharingDisabled()(*OnlineMeetingContentSharingDisabledReason) { +func (m *OnlineMeetingRestricted) GetContentSharingDisabled()(*OnlineMeetingRestricted_contentSharingDisabled) { val, err := m.GetBackingStore().Get("contentSharingDisabled") if err != nil { panic(err) } if val != nil { - return val.(*OnlineMeetingContentSharingDisabledReason) + return val.(*OnlineMeetingRestricted_contentSharingDisabled) } return nil } @@ -53,12 +53,12 @@ func (m *OnlineMeetingRestricted) GetContentSharingDisabled()(*OnlineMeetingCont func (m *OnlineMeetingRestricted) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["contentSharingDisabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnlineMeetingContentSharingDisabledReason) + val, err := n.GetEnumValue(ParseOnlineMeetingRestricted_contentSharingDisabled) if err != nil { return err } if val != nil { - m.SetContentSharingDisabled(val.(*OnlineMeetingContentSharingDisabledReason)) + m.SetContentSharingDisabled(val.(*OnlineMeetingRestricted_contentSharingDisabled)) } return nil } @@ -73,12 +73,12 @@ func (m *OnlineMeetingRestricted) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["videoDisabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnlineMeetingVideoDisabledReason) + val, err := n.GetEnumValue(ParseOnlineMeetingRestricted_videoDisabled) if err != nil { return err } if val != nil { - m.SetVideoDisabled(val.(*OnlineMeetingVideoDisabledReason)) + m.SetVideoDisabled(val.(*OnlineMeetingRestricted_videoDisabled)) } return nil } @@ -96,13 +96,13 @@ func (m *OnlineMeetingRestricted) GetOdataType()(*string) { return nil } // GetVideoDisabled gets the videoDisabled property value. Specifies the reason why video from this participant is disabled. Possible values are: watermarkProtection, unknownFutureValue. -func (m *OnlineMeetingRestricted) GetVideoDisabled()(*OnlineMeetingVideoDisabledReason) { +func (m *OnlineMeetingRestricted) GetVideoDisabled()(*OnlineMeetingRestricted_videoDisabled) { val, err := m.GetBackingStore().Get("videoDisabled") if err != nil { panic(err) } if val != nil { - return val.(*OnlineMeetingVideoDisabledReason) + return val.(*OnlineMeetingRestricted_videoDisabled) } return nil } @@ -148,7 +148,7 @@ func (m *OnlineMeetingRestricted) SetBackingStore(value ie8677ce2c7e1b4c22e9c382 m.backingStore = value } // SetContentSharingDisabled sets the contentSharingDisabled property value. Specifies the reason why shared content from this participant is disabled. Possible values are: watermarkProtection, unknownFutureValue. -func (m *OnlineMeetingRestricted) SetContentSharingDisabled(value *OnlineMeetingContentSharingDisabledReason)() { +func (m *OnlineMeetingRestricted) SetContentSharingDisabled(value *OnlineMeetingRestricted_contentSharingDisabled)() { err := m.GetBackingStore().Set("contentSharingDisabled", value) if err != nil { panic(err) @@ -162,7 +162,7 @@ func (m *OnlineMeetingRestricted) SetOdataType(value *string)() { } } // SetVideoDisabled sets the videoDisabled property value. Specifies the reason why video from this participant is disabled. Possible values are: watermarkProtection, unknownFutureValue. -func (m *OnlineMeetingRestricted) SetVideoDisabled(value *OnlineMeetingVideoDisabledReason)() { +func (m *OnlineMeetingRestricted) SetVideoDisabled(value *OnlineMeetingRestricted_videoDisabled)() { err := m.GetBackingStore().Set("videoDisabled", value) if err != nil { panic(err) @@ -174,11 +174,11 @@ type OnlineMeetingRestrictedable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetContentSharingDisabled()(*OnlineMeetingContentSharingDisabledReason) + GetContentSharingDisabled()(*OnlineMeetingRestricted_contentSharingDisabled) GetOdataType()(*string) - GetVideoDisabled()(*OnlineMeetingVideoDisabledReason) + GetVideoDisabled()(*OnlineMeetingRestricted_videoDisabled) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetContentSharingDisabled(value *OnlineMeetingContentSharingDisabledReason)() + SetContentSharingDisabled(value *OnlineMeetingRestricted_contentSharingDisabled)() SetOdataType(value *string)() - SetVideoDisabled(value *OnlineMeetingVideoDisabledReason)() + SetVideoDisabled(value *OnlineMeetingRestricted_videoDisabled)() } diff --git a/models/online_meeting_restricted_content_sharing_disabled.go b/models/online_meeting_restricted_content_sharing_disabled.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/online_meeting_restricted_video_disabled.go b/models/online_meeting_restricted_video_disabled.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/online_meeting_role.go b/models/online_meeting_role.go deleted file mode 100644 index cd538585e81..00000000000 --- a/models/online_meeting_role.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type OnlineMeetingRole int - -const ( - ATTENDEE_ONLINEMEETINGROLE OnlineMeetingRole = iota - PRESENTER_ONLINEMEETINGROLE - PRODUCER_ONLINEMEETINGROLE - UNKNOWNFUTUREVALUE_ONLINEMEETINGROLE - COORGANIZER_ONLINEMEETINGROLE -) - -func (i OnlineMeetingRole) String() string { - return []string{"attendee", "presenter", "producer", "unknownFutureValue", "coorganizer"}[i] -} -func ParseOnlineMeetingRole(v string) (any, error) { - result := ATTENDEE_ONLINEMEETINGROLE - switch v { - case "attendee": - result = ATTENDEE_ONLINEMEETINGROLE - case "presenter": - result = PRESENTER_ONLINEMEETINGROLE - case "producer": - result = PRODUCER_ONLINEMEETINGROLE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ONLINEMEETINGROLE - case "coorganizer": - result = COORGANIZER_ONLINEMEETINGROLE - default: - return 0, errors.New("Unknown OnlineMeetingRole value: " + v) - } - return &result, nil -} -func SerializeOnlineMeetingRole(values []OnlineMeetingRole) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnlineMeetingRole) isMultiValue() bool { - return false -} diff --git a/models/online_meeting_video_disabled_reason.go b/models/online_meeting_video_disabled_reason.go deleted file mode 100644 index 1d760e24ba3..00000000000 --- a/models/online_meeting_video_disabled_reason.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type OnlineMeetingVideoDisabledReason int - -const ( - WATERMARKPROTECTION_ONLINEMEETINGVIDEODISABLEDREASON OnlineMeetingVideoDisabledReason = iota - UNKNOWNFUTUREVALUE_ONLINEMEETINGVIDEODISABLEDREASON -) - -func (i OnlineMeetingVideoDisabledReason) String() string { - var values []string - for p := OnlineMeetingVideoDisabledReason(1); p <= UNKNOWNFUTUREVALUE_ONLINEMEETINGVIDEODISABLEDREASON; p <<= 1 { - if i&p == p { - values = append(values, []string{"watermarkProtection", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseOnlineMeetingVideoDisabledReason(v string) (any, error) { - var result OnlineMeetingVideoDisabledReason - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "watermarkProtection": - result |= WATERMARKPROTECTION_ONLINEMEETINGVIDEODISABLEDREASON - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_ONLINEMEETINGVIDEODISABLEDREASON - default: - return 0, errors.New("Unknown OnlineMeetingVideoDisabledReason value: " + v) - } - } - return &result, nil -} -func SerializeOnlineMeetingVideoDisabledReason(values []OnlineMeetingVideoDisabledReason) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnlineMeetingVideoDisabledReason) isMultiValue() bool { - return true -} diff --git a/models/operation.go b/models/operation.go index 31a0372318f..11bb1ca7a5b 100644 --- a/models/operation.go +++ b/models/operation.go @@ -73,12 +73,12 @@ func (m *Operation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOperationStatus) + val, err := n.GetEnumValue(ParseOperation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*OperationStatus)) + m.SetStatus(val.(*Operation_status)) } return nil } @@ -96,13 +96,13 @@ func (m *Operation) GetLastActionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6 return nil } // GetStatus gets the status property value. Possible values are: notStarted, running, completed, failed. Read-only. -func (m *Operation) GetStatus()(*OperationStatus) { +func (m *Operation) GetStatus()(*Operation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*OperationStatus) + return val.(*Operation_status) } return nil } @@ -148,7 +148,7 @@ func (m *Operation) SetLastActionDateTime(value *i336074805fc853987abe6f7fe3ad97 } } // SetStatus sets the status property value. Possible values are: notStarted, running, completed, failed. Read-only. -func (m *Operation) SetStatus(value *OperationStatus)() { +func (m *Operation) SetStatus(value *Operation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -160,8 +160,8 @@ type Operationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastActionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*OperationStatus) + GetStatus()(*Operation_status) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastActionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *OperationStatus)() + SetStatus(value *Operation_status)() } diff --git a/models/operation_result.go b/models/operation_result.go deleted file mode 100644 index b7f527d0af9..00000000000 --- a/models/operation_result.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type OperationResult int - -const ( - SUCCESS_OPERATIONRESULT OperationResult = iota - FAILURE_OPERATIONRESULT - TIMEOUT_OPERATIONRESULT - UNKNOWNFUTUREVALUE_OPERATIONRESULT -) - -func (i OperationResult) String() string { - return []string{"success", "failure", "timeout", "unknownFutureValue"}[i] -} -func ParseOperationResult(v string) (any, error) { - result := SUCCESS_OPERATIONRESULT - switch v { - case "success": - result = SUCCESS_OPERATIONRESULT - case "failure": - result = FAILURE_OPERATIONRESULT - case "timeout": - result = TIMEOUT_OPERATIONRESULT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_OPERATIONRESULT - default: - return 0, errors.New("Unknown OperationResult value: " + v) - } - return &result, nil -} -func SerializeOperationResult(values []OperationResult) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OperationResult) isMultiValue() bool { - return false -} diff --git a/models/organization.go b/models/organization.go index b507e178ac6..c24ac976686 100644 --- a/models/organization.go +++ b/models/organization.go @@ -399,12 +399,12 @@ func (m *Organization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["partnerTenantType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePartnerTenantType) + val, err := n.GetEnumValue(ParseOrganization_partnerTenantType) if err != nil { return err } if val != nil { - m.SetPartnerTenantType(val.(*PartnerTenantType)) + m.SetPartnerTenantType(val.(*Organization_partnerTenantType)) } return nil } @@ -628,13 +628,13 @@ func (m *Organization) GetPartnerInformation()(PartnerInformationable) { return nil } // GetPartnerTenantType gets the partnerTenantType property value. The type of partnership this tenant has with Microsoft. The possible values are: microsoftSupport, syndicatePartner, breadthPartner, breadthPartnerDelegatedAdmin, resellerPartnerDelegatedAdmin, valueAddedResellerPartnerDelegatedAdmin, unknownFutureValue. Nullable. For more information about the possible types, see partnerTenantType values. -func (m *Organization) GetPartnerTenantType()(*PartnerTenantType) { +func (m *Organization) GetPartnerTenantType()(*Organization_partnerTenantType) { val, err := m.GetBackingStore().Get("partnerTenantType") if err != nil { panic(err) } if val != nil { - return val.(*PartnerTenantType) + return val.(*Organization_partnerTenantType) } return nil } @@ -1132,7 +1132,7 @@ func (m *Organization) SetPartnerInformation(value PartnerInformationable)() { } } // SetPartnerTenantType sets the partnerTenantType property value. The type of partnership this tenant has with Microsoft. The possible values are: microsoftSupport, syndicatePartner, breadthPartner, breadthPartnerDelegatedAdmin, resellerPartnerDelegatedAdmin, valueAddedResellerPartnerDelegatedAdmin, unknownFutureValue. Nullable. For more information about the possible types, see partnerTenantType values. -func (m *Organization) SetPartnerTenantType(value *PartnerTenantType)() { +func (m *Organization) SetPartnerTenantType(value *Organization_partnerTenantType)() { err := m.GetBackingStore().Set("partnerTenantType", value) if err != nil { panic(err) @@ -1239,7 +1239,7 @@ type Organizationable interface { GetOnPremisesLastSyncDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOnPremisesSyncEnabled()(*bool) GetPartnerInformation()(PartnerInformationable) - GetPartnerTenantType()(*PartnerTenantType) + GetPartnerTenantType()(*Organization_partnerTenantType) GetPostalCode()(*string) GetPreferredLanguage()(*string) GetPrivacyProfile()(PrivacyProfileable) @@ -1271,7 +1271,7 @@ type Organizationable interface { SetOnPremisesLastSyncDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOnPremisesSyncEnabled(value *bool)() SetPartnerInformation(value PartnerInformationable)() - SetPartnerTenantType(value *PartnerTenantType)() + SetPartnerTenantType(value *Organization_partnerTenantType)() SetPostalCode(value *string)() SetPreferredLanguage(value *string)() SetPrivacyProfile(value PrivacyProfileable)() diff --git a/models/organization_partner_tenant_type.go b/models/organization_partner_tenant_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/original_transfer_methods.go b/models/original_transfer_methods.go deleted file mode 100644 index 9e07cf2715b..00000000000 --- a/models/original_transfer_methods.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type OriginalTransferMethods int - -const ( - NONE_ORIGINALTRANSFERMETHODS OriginalTransferMethods = iota - DEVICECODEFLOW_ORIGINALTRANSFERMETHODS - AUTHENTICATIONTRANSFER_ORIGINALTRANSFERMETHODS - UNKNOWNFUTUREVALUE_ORIGINALTRANSFERMETHODS -) - -func (i OriginalTransferMethods) String() string { - return []string{"none", "deviceCodeFlow", "authenticationTransfer", "unknownFutureValue"}[i] -} -func ParseOriginalTransferMethods(v string) (any, error) { - result := NONE_ORIGINALTRANSFERMETHODS - switch v { - case "none": - result = NONE_ORIGINALTRANSFERMETHODS - case "deviceCodeFlow": - result = DEVICECODEFLOW_ORIGINALTRANSFERMETHODS - case "authenticationTransfer": - result = AUTHENTICATIONTRANSFER_ORIGINALTRANSFERMETHODS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ORIGINALTRANSFERMETHODS - default: - return 0, errors.New("Unknown OriginalTransferMethods value: " + v) - } - return &result, nil -} -func SerializeOriginalTransferMethods(values []OriginalTransferMethods) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OriginalTransferMethods) isMultiValue() bool { - return false -} diff --git a/models/outlook_category.go b/models/outlook_category.go index 0abde5f2e5c..0675762073d 100644 --- a/models/outlook_category.go +++ b/models/outlook_category.go @@ -20,13 +20,13 @@ func CreateOutlookCategoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896 return NewOutlookCategory(), nil } // GetColor gets the color property value. A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more details, see the following note. -func (m *OutlookCategory) GetColor()(*CategoryColor) { +func (m *OutlookCategory) GetColor()(*OutlookCategory_color) { val, err := m.GetBackingStore().Get("color") if err != nil { panic(err) } if val != nil { - return val.(*CategoryColor) + return val.(*OutlookCategory_color) } return nil } @@ -45,12 +45,12 @@ func (m *OutlookCategory) GetDisplayName()(*string) { func (m *OutlookCategory) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCategoryColor) + val, err := n.GetEnumValue(ParseOutlookCategory_color) if err != nil { return err } if val != nil { - m.SetColor(val.(*CategoryColor)) + m.SetColor(val.(*OutlookCategory_color)) } return nil } @@ -88,7 +88,7 @@ func (m *OutlookCategory) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return nil } // SetColor sets the color property value. A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more details, see the following note. -func (m *OutlookCategory) SetColor(value *CategoryColor)() { +func (m *OutlookCategory) SetColor(value *OutlookCategory_color)() { err := m.GetBackingStore().Set("color", value) if err != nil { panic(err) @@ -105,8 +105,8 @@ func (m *OutlookCategory) SetDisplayName(value *string)() { type OutlookCategoryable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetColor()(*CategoryColor) + GetColor()(*OutlookCategory_color) GetDisplayName()(*string) - SetColor(value *CategoryColor)() + SetColor(value *OutlookCategory_color)() SetDisplayName(value *string)() } diff --git a/models/outlook_category_color.go b/models/outlook_category_color.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/outlook_task.go b/models/outlook_task.go index 998848eb8c5..ac6163643a8 100644 --- a/models/outlook_task.go +++ b/models/outlook_task.go @@ -146,12 +146,12 @@ func (m *OutlookTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["importance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseImportance) + val, err := n.GetEnumValue(ParseOutlookTask_importance) if err != nil { return err } if val != nil { - m.SetImportance(val.(*Importance)) + m.SetImportance(val.(*OutlookTask_importance)) } return nil } @@ -222,12 +222,12 @@ func (m *OutlookTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["sensitivity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitivity) + val, err := n.GetEnumValue(ParseOutlookTask_sensitivity) if err != nil { return err } if val != nil { - m.SetSensitivity(val.(*Sensitivity)) + m.SetSensitivity(val.(*OutlookTask_sensitivity)) } return nil } @@ -258,12 +258,12 @@ func (m *OutlookTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTaskStatus) + val, err := n.GetEnumValue(ParseOutlookTask_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*TaskStatus)) + m.SetStatus(val.(*OutlookTask_status)) } return nil } @@ -291,13 +291,13 @@ func (m *OutlookTask) GetHasAttachments()(*bool) { return nil } // GetImportance gets the importance property value. The importance property -func (m *OutlookTask) GetImportance()(*Importance) { +func (m *OutlookTask) GetImportance()(*OutlookTask_importance) { val, err := m.GetBackingStore().Get("importance") if err != nil { panic(err) } if val != nil { - return val.(*Importance) + return val.(*OutlookTask_importance) } return nil } @@ -368,13 +368,13 @@ func (m *OutlookTask) GetReminderDateTime()(DateTimeTimeZoneable) { return nil } // GetSensitivity gets the sensitivity property value. The sensitivity property -func (m *OutlookTask) GetSensitivity()(*Sensitivity) { +func (m *OutlookTask) GetSensitivity()(*OutlookTask_sensitivity) { val, err := m.GetBackingStore().Get("sensitivity") if err != nil { panic(err) } if val != nil { - return val.(*Sensitivity) + return val.(*OutlookTask_sensitivity) } return nil } @@ -401,13 +401,13 @@ func (m *OutlookTask) GetStartDateTime()(DateTimeTimeZoneable) { return nil } // GetStatus gets the status property value. The status property -func (m *OutlookTask) GetStatus()(*TaskStatus) { +func (m *OutlookTask) GetStatus()(*OutlookTask_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*TaskStatus) + return val.(*OutlookTask_status) } return nil } @@ -602,7 +602,7 @@ func (m *OutlookTask) SetHasAttachments(value *bool)() { } } // SetImportance sets the importance property value. The importance property -func (m *OutlookTask) SetImportance(value *Importance)() { +func (m *OutlookTask) SetImportance(value *OutlookTask_importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) @@ -651,7 +651,7 @@ func (m *OutlookTask) SetReminderDateTime(value DateTimeTimeZoneable)() { } } // SetSensitivity sets the sensitivity property value. The sensitivity property -func (m *OutlookTask) SetSensitivity(value *Sensitivity)() { +func (m *OutlookTask) SetSensitivity(value *OutlookTask_sensitivity)() { err := m.GetBackingStore().Set("sensitivity", value) if err != nil { panic(err) @@ -672,7 +672,7 @@ func (m *OutlookTask) SetStartDateTime(value DateTimeTimeZoneable)() { } } // SetStatus sets the status property value. The status property -func (m *OutlookTask) SetStatus(value *TaskStatus)() { +func (m *OutlookTask) SetStatus(value *OutlookTask_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -695,17 +695,17 @@ type OutlookTaskable interface { GetCompletedDateTime()(DateTimeTimeZoneable) GetDueDateTime()(DateTimeTimeZoneable) GetHasAttachments()(*bool) - GetImportance()(*Importance) + GetImportance()(*OutlookTask_importance) GetIsReminderOn()(*bool) GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedPropertyable) GetOwner()(*string) GetParentFolderId()(*string) GetRecurrence()(PatternedRecurrenceable) GetReminderDateTime()(DateTimeTimeZoneable) - GetSensitivity()(*Sensitivity) + GetSensitivity()(*OutlookTask_sensitivity) GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPropertyable) GetStartDateTime()(DateTimeTimeZoneable) - GetStatus()(*TaskStatus) + GetStatus()(*OutlookTask_status) GetSubject()(*string) SetAssignedTo(value *string)() SetAttachments(value []Attachmentable)() @@ -713,16 +713,16 @@ type OutlookTaskable interface { SetCompletedDateTime(value DateTimeTimeZoneable)() SetDueDateTime(value DateTimeTimeZoneable)() SetHasAttachments(value *bool)() - SetImportance(value *Importance)() + SetImportance(value *OutlookTask_importance)() SetIsReminderOn(value *bool)() SetMultiValueExtendedProperties(value []MultiValueLegacyExtendedPropertyable)() SetOwner(value *string)() SetParentFolderId(value *string)() SetRecurrence(value PatternedRecurrenceable)() SetReminderDateTime(value DateTimeTimeZoneable)() - SetSensitivity(value *Sensitivity)() + SetSensitivity(value *OutlookTask_sensitivity)() SetSingleValueExtendedProperties(value []SingleValueLegacyExtendedPropertyable)() SetStartDateTime(value DateTimeTimeZoneable)() - SetStatus(value *TaskStatus)() + SetStatus(value *OutlookTask_status)() SetSubject(value *string)() } diff --git a/models/outlook_task_importance.go b/models/outlook_task_importance.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/outlook_task_sensitivity.go b/models/outlook_task_sensitivity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/outlook_task_status.go b/models/outlook_task_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/page_layout_type.go b/models/page_layout_type.go deleted file mode 100644 index 4c7ba714245..00000000000 --- a/models/page_layout_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PageLayoutType int - -const ( - MICROSOFTRESERVED_PAGELAYOUTTYPE PageLayoutType = iota - ARTICLE_PAGELAYOUTTYPE - HOME_PAGELAYOUTTYPE - UNKNOWNFUTUREVALUE_PAGELAYOUTTYPE -) - -func (i PageLayoutType) String() string { - return []string{"microsoftReserved", "article", "home", "unknownFutureValue"}[i] -} -func ParsePageLayoutType(v string) (any, error) { - result := MICROSOFTRESERVED_PAGELAYOUTTYPE - switch v { - case "microsoftReserved": - result = MICROSOFTRESERVED_PAGELAYOUTTYPE - case "article": - result = ARTICLE_PAGELAYOUTTYPE - case "home": - result = HOME_PAGELAYOUTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PAGELAYOUTTYPE - default: - return 0, errors.New("Unknown PageLayoutType value: " + v) - } - return &result, nil -} -func SerializePageLayoutType(values []PageLayoutType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PageLayoutType) isMultiValue() bool { - return false -} diff --git a/models/page_orientation.go b/models/page_orientation.go deleted file mode 100644 index cef053b2cb0..00000000000 --- a/models/page_orientation.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type PageOrientation int - -const ( - HORIZONTAL_PAGEORIENTATION PageOrientation = iota - DIAGONAL_PAGEORIENTATION -) - -func (i PageOrientation) String() string { - return []string{"horizontal", "diagonal"}[i] -} -func ParsePageOrientation(v string) (any, error) { - result := HORIZONTAL_PAGEORIENTATION - switch v { - case "horizontal": - result = HORIZONTAL_PAGEORIENTATION - case "diagonal": - result = DIAGONAL_PAGEORIENTATION - default: - return 0, errors.New("Unknown PageOrientation value: " + v) - } - return &result, nil -} -func SerializePageOrientation(values []PageOrientation) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PageOrientation) isMultiValue() bool { - return false -} diff --git a/models/page_promotion_type.go b/models/page_promotion_type.go deleted file mode 100644 index 90cdfaa0669..00000000000 --- a/models/page_promotion_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PagePromotionType int - -const ( - MICROSOFTRESERVED_PAGEPROMOTIONTYPE PagePromotionType = iota - PAGE_PAGEPROMOTIONTYPE - NEWSPOST_PAGEPROMOTIONTYPE - UNKNOWNFUTUREVALUE_PAGEPROMOTIONTYPE -) - -func (i PagePromotionType) String() string { - return []string{"microsoftReserved", "page", "newsPost", "unknownFutureValue"}[i] -} -func ParsePagePromotionType(v string) (any, error) { - result := MICROSOFTRESERVED_PAGEPROMOTIONTYPE - switch v { - case "microsoftReserved": - result = MICROSOFTRESERVED_PAGEPROMOTIONTYPE - case "page": - result = PAGE_PAGEPROMOTIONTYPE - case "newsPost": - result = NEWSPOST_PAGEPROMOTIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PAGEPROMOTIONTYPE - default: - return 0, errors.New("Unknown PagePromotionType value: " + v) - } - return &result, nil -} -func SerializePagePromotionType(values []PagePromotionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PagePromotionType) isMultiValue() bool { - return false -} diff --git a/models/participant_info.go b/models/participant_info.go index e1e9cc15dd2..468c61c6dac 100644 --- a/models/participant_info.go +++ b/models/participant_info.go @@ -50,13 +50,13 @@ func (m *ParticipantInfo) GetCountryCode()(*string) { return nil } // GetEndpointType gets the endpointType property value. The type of endpoint the participant is using. Possible values are: default, voicemail, skypeForBusiness, skypeForBusinessVoipPhone and unknownFutureValue. Read-only. -func (m *ParticipantInfo) GetEndpointType()(*EndpointType) { +func (m *ParticipantInfo) GetEndpointType()(*ParticipantInfo_endpointType) { val, err := m.GetBackingStore().Get("endpointType") if err != nil { panic(err) } if val != nil { - return val.(*EndpointType) + return val.(*ParticipantInfo_endpointType) } return nil } @@ -74,12 +74,12 @@ func (m *ParticipantInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["endpointType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEndpointType) + val, err := n.GetEnumValue(ParseParticipantInfo_endpointType) if err != nil { return err } if val != nil { - m.SetEndpointType(val.(*EndpointType)) + m.SetEndpointType(val.(*ParticipantInfo_endpointType)) } return nil } @@ -316,7 +316,7 @@ func (m *ParticipantInfo) SetCountryCode(value *string)() { } } // SetEndpointType sets the endpointType property value. The type of endpoint the participant is using. Possible values are: default, voicemail, skypeForBusiness, skypeForBusinessVoipPhone and unknownFutureValue. Read-only. -func (m *ParticipantInfo) SetEndpointType(value *EndpointType)() { +func (m *ParticipantInfo) SetEndpointType(value *ParticipantInfo_endpointType)() { err := m.GetBackingStore().Set("endpointType", value) if err != nil { panic(err) @@ -378,7 +378,7 @@ type ParticipantInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCountryCode()(*string) - GetEndpointType()(*EndpointType) + GetEndpointType()(*ParticipantInfo_endpointType) GetIdentity()(IdentitySetable) GetLanguageId()(*string) GetNonAnonymizedIdentity()(IdentitySetable) @@ -388,7 +388,7 @@ type ParticipantInfoable interface { GetRegion()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCountryCode(value *string)() - SetEndpointType(value *EndpointType)() + SetEndpointType(value *ParticipantInfo_endpointType)() SetIdentity(value IdentitySetable)() SetLanguageId(value *string)() SetNonAnonymizedIdentity(value IdentitySetable)() diff --git a/models/participant_info_endpoint_type.go b/models/participant_info_endpoint_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/partner_information.go b/models/partner_information.go index b063bb307a2..31f954f7d8c 100644 --- a/models/partner_information.go +++ b/models/partner_information.go @@ -61,13 +61,13 @@ func (m *PartnerInformation) GetCompanyName()(*string) { return nil } // GetCompanyType gets the companyType property value. The companyType property -func (m *PartnerInformation) GetCompanyType()(*PartnerTenantType) { +func (m *PartnerInformation) GetCompanyType()(*PartnerInformation_companyType) { val, err := m.GetBackingStore().Get("companyType") if err != nil { panic(err) } if val != nil { - return val.(*PartnerTenantType) + return val.(*PartnerInformation_companyType) } return nil } @@ -95,12 +95,12 @@ func (m *PartnerInformation) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["companyType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePartnerTenantType) + val, err := n.GetEnumValue(ParsePartnerInformation_companyType) if err != nil { return err } if val != nil { - m.SetCompanyType(val.(*PartnerTenantType)) + m.SetCompanyType(val.(*PartnerInformation_companyType)) } return nil } @@ -335,7 +335,7 @@ func (m *PartnerInformation) SetCompanyName(value *string)() { } } // SetCompanyType sets the companyType property value. The companyType property -func (m *PartnerInformation) SetCompanyType(value *PartnerTenantType)() { +func (m *PartnerInformation) SetCompanyType(value *PartnerInformation_companyType)() { err := m.GetBackingStore().Set("companyType", value) if err != nil { panic(err) @@ -391,7 +391,7 @@ type PartnerInformationable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCommerceUrl()(*string) GetCompanyName()(*string) - GetCompanyType()(*PartnerTenantType) + GetCompanyType()(*PartnerInformation_companyType) GetHelpUrl()(*string) GetOdataType()(*string) GetPartnerTenantId()(*string) @@ -401,7 +401,7 @@ type PartnerInformationable interface { SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCommerceUrl(value *string)() SetCompanyName(value *string)() - SetCompanyType(value *PartnerTenantType)() + SetCompanyType(value *PartnerInformation_companyType)() SetHelpUrl(value *string)() SetOdataType(value *string)() SetPartnerTenantId(value *string)() diff --git a/models/partner_information_company_type.go b/models/partner_information_company_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/partner_tenant_type.go b/models/partner_tenant_type.go deleted file mode 100644 index a229f02fe3b..00000000000 --- a/models/partner_tenant_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type PartnerTenantType int - -const ( - MICROSOFTSUPPORT_PARTNERTENANTTYPE PartnerTenantType = iota - SYNDICATEPARTNER_PARTNERTENANTTYPE - BREADTHPARTNER_PARTNERTENANTTYPE - BREADTHPARTNERDELEGATEDADMIN_PARTNERTENANTTYPE - RESELLERPARTNERDELEGATEDADMIN_PARTNERTENANTTYPE - VALUEADDEDRESELLERPARTNERDELEGATEDADMIN_PARTNERTENANTTYPE - UNKNOWNFUTUREVALUE_PARTNERTENANTTYPE -) - -func (i PartnerTenantType) String() string { - return []string{"microsoftSupport", "syndicatePartner", "breadthPartner", "breadthPartnerDelegatedAdmin", "resellerPartnerDelegatedAdmin", "valueAddedResellerPartnerDelegatedAdmin", "unknownFutureValue"}[i] -} -func ParsePartnerTenantType(v string) (any, error) { - result := MICROSOFTSUPPORT_PARTNERTENANTTYPE - switch v { - case "microsoftSupport": - result = MICROSOFTSUPPORT_PARTNERTENANTTYPE - case "syndicatePartner": - result = SYNDICATEPARTNER_PARTNERTENANTTYPE - case "breadthPartner": - result = BREADTHPARTNER_PARTNERTENANTTYPE - case "breadthPartnerDelegatedAdmin": - result = BREADTHPARTNERDELEGATEDADMIN_PARTNERTENANTTYPE - case "resellerPartnerDelegatedAdmin": - result = RESELLERPARTNERDELEGATEDADMIN_PARTNERTENANTTYPE - case "valueAddedResellerPartnerDelegatedAdmin": - result = VALUEADDEDRESELLERPARTNERDELEGATEDADMIN_PARTNERTENANTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PARTNERTENANTTYPE - default: - return 0, errors.New("Unknown PartnerTenantType value: " + v) - } - return &result, nil -} -func SerializePartnerTenantType(values []PartnerTenantType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PartnerTenantType) isMultiValue() bool { - return false -} diff --git a/models/password_credential_configuration.go b/models/password_credential_configuration.go index 1205104f680..f9fe20b14f8 100644 --- a/models/password_credential_configuration.go +++ b/models/password_credential_configuration.go @@ -73,12 +73,12 @@ func (m *PasswordCredentialConfiguration) GetFieldDeserializers()(map[string]fun return nil } res["restrictionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAppCredentialRestrictionType) + val, err := n.GetEnumValue(ParsePasswordCredentialConfiguration_restrictionType) if err != nil { return err } if val != nil { - m.SetRestrictionType(val.(*AppCredentialRestrictionType)) + m.SetRestrictionType(val.(*PasswordCredentialConfiguration_restrictionType)) } return nil } @@ -118,13 +118,13 @@ func (m *PasswordCredentialConfiguration) GetRestrictForAppsCreatedAfterDateTime return nil } // GetRestrictionType gets the restrictionType property value. The type of restriction being applied. The possible values are: passwordAddition, passwordLifetime, symmetricKeyAddition, symmetricKeyLifetime,customPasswordAddition, unknownFutureValue. Each value of restrictionType can be used only once per policy. -func (m *PasswordCredentialConfiguration) GetRestrictionType()(*AppCredentialRestrictionType) { +func (m *PasswordCredentialConfiguration) GetRestrictionType()(*PasswordCredentialConfiguration_restrictionType) { val, err := m.GetBackingStore().Get("restrictionType") if err != nil { panic(err) } if val != nil { - return val.(*AppCredentialRestrictionType) + return val.(*PasswordCredentialConfiguration_restrictionType) } return nil } @@ -196,7 +196,7 @@ func (m *PasswordCredentialConfiguration) SetRestrictForAppsCreatedAfterDateTime } } // SetRestrictionType sets the restrictionType property value. The type of restriction being applied. The possible values are: passwordAddition, passwordLifetime, symmetricKeyAddition, symmetricKeyLifetime,customPasswordAddition, unknownFutureValue. Each value of restrictionType can be used only once per policy. -func (m *PasswordCredentialConfiguration) SetRestrictionType(value *AppCredentialRestrictionType)() { +func (m *PasswordCredentialConfiguration) SetRestrictionType(value *PasswordCredentialConfiguration_restrictionType)() { err := m.GetBackingStore().Set("restrictionType", value) if err != nil { panic(err) @@ -211,10 +211,10 @@ type PasswordCredentialConfigurationable interface { GetMaxLifetime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetOdataType()(*string) GetRestrictForAppsCreatedAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetRestrictionType()(*AppCredentialRestrictionType) + GetRestrictionType()(*PasswordCredentialConfiguration_restrictionType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetMaxLifetime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetOdataType(value *string)() SetRestrictForAppsCreatedAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetRestrictionType(value *AppCredentialRestrictionType)() + SetRestrictionType(value *PasswordCredentialConfiguration_restrictionType)() } diff --git a/models/password_credential_configuration_restriction_type.go b/models/password_credential_configuration_restriction_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/payload.go b/models/payload.go index 65abb6260eb..3d5f0661239 100644 --- a/models/payload.go +++ b/models/payload.go @@ -21,24 +21,24 @@ func CreatePayloadFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f48 return NewPayload(), nil } // GetBrand gets the brand property value. The branch of a payload. Possible values are: unknown, other, americanExpress, capitalOne, dhl, docuSign, dropbox, facebook, firstAmerican, microsoft, netflix, scotiabank, sendGrid, stewartTitle, tesco, wellsFargo, syrinxCloud, adobe, teams, zoom, unknownFutureValue. -func (m *Payload) GetBrand()(*PayloadBrand) { +func (m *Payload) GetBrand()(*Payload_brand) { val, err := m.GetBackingStore().Get("brand") if err != nil { panic(err) } if val != nil { - return val.(*PayloadBrand) + return val.(*Payload_brand) } return nil } // GetComplexity gets the complexity property value. The complexity of a payload. Possible values are: unknown, low, medium, high, unknownFutureValue. -func (m *Payload) GetComplexity()(*PayloadComplexity) { +func (m *Payload) GetComplexity()(*Payload_complexity) { val, err := m.GetBackingStore().Get("complexity") if err != nil { panic(err) } if val != nil { - return val.(*PayloadComplexity) + return val.(*Payload_complexity) } return nil } @@ -101,22 +101,22 @@ func (m *Payload) GetDisplayName()(*string) { func (m *Payload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["brand"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePayloadBrand) + val, err := n.GetEnumValue(ParsePayload_brand) if err != nil { return err } if val != nil { - m.SetBrand(val.(*PayloadBrand)) + m.SetBrand(val.(*Payload_brand)) } return nil } res["complexity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePayloadComplexity) + val, err := n.GetEnumValue(ParsePayload_complexity) if err != nil { return err } if val != nil { - m.SetComplexity(val.(*PayloadComplexity)) + m.SetComplexity(val.(*Payload_complexity)) } return nil } @@ -171,12 +171,12 @@ func (m *Payload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["industry"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePayloadIndustry) + val, err := n.GetEnumValue(ParsePayload_industry) if err != nil { return err } if val != nil { - m.SetIndustry(val.(*PayloadIndustry)) + m.SetIndustry(val.(*Payload_industry)) } return nil } @@ -257,12 +257,12 @@ func (m *Payload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["platform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePayloadDeliveryPlatform) + val, err := n.GetEnumValue(ParsePayload_platform) if err != nil { return err } if val != nil { - m.SetPlatform(val.(*PayloadDeliveryPlatform)) + m.SetPlatform(val.(*Payload_platform)) } return nil } @@ -277,12 +277,12 @@ func (m *Payload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["simulationAttackType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationAttackType) + val, err := n.GetEnumValue(ParsePayload_simulationAttackType) if err != nil { return err } if val != nil { - m.SetSimulationAttackType(val.(*SimulationAttackType)) + m.SetSimulationAttackType(val.(*Payload_simulationAttackType)) } return nil } @@ -297,45 +297,45 @@ func (m *Payload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationContentStatus) + val, err := n.GetEnumValue(ParsePayload_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SimulationContentStatus)) + m.SetStatus(val.(*Payload_status)) } return nil } res["technique"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationAttackTechnique) + val, err := n.GetEnumValue(ParsePayload_technique) if err != nil { return err } if val != nil { - m.SetTechnique(val.(*SimulationAttackTechnique)) + m.SetTechnique(val.(*Payload_technique)) } return nil } res["theme"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePayloadTheme) + val, err := n.GetEnumValue(ParsePayload_theme) if err != nil { return err } if val != nil { - m.SetTheme(val.(*PayloadTheme)) + m.SetTheme(val.(*Payload_theme)) } return nil } return res } // GetIndustry gets the industry property value. Industry of a payload. Possible values are: unknown, other, banking, businessServices, consumerServices, education, energy, construction, consulting, financialServices, government, hospitality, insurance, legal, courierServices, IT, healthcare, manufacturing, retail, telecom, realEstate, unknownFutureValue. -func (m *Payload) GetIndustry()(*PayloadIndustry) { +func (m *Payload) GetIndustry()(*Payload_industry) { val, err := m.GetBackingStore().Get("industry") if err != nil { panic(err) } if val != nil { - return val.(*PayloadIndustry) + return val.(*Payload_industry) } return nil } @@ -417,13 +417,13 @@ func (m *Payload) GetPayloadTags()([]string) { return nil } // GetPlatform gets the platform property value. The payload delivery platform for a simulation. Possible values are: unknown, sms, email, teams, unknownFutureValue. -func (m *Payload) GetPlatform()(*PayloadDeliveryPlatform) { +func (m *Payload) GetPlatform()(*Payload_platform) { val, err := m.GetBackingStore().Get("platform") if err != nil { panic(err) } if val != nil { - return val.(*PayloadDeliveryPlatform) + return val.(*Payload_platform) } return nil } @@ -439,13 +439,13 @@ func (m *Payload) GetPredictedCompromiseRate()(*float64) { return nil } // GetSimulationAttackType gets the simulationAttackType property value. Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue. -func (m *Payload) GetSimulationAttackType()(*SimulationAttackType) { +func (m *Payload) GetSimulationAttackType()(*Payload_simulationAttackType) { val, err := m.GetBackingStore().Get("simulationAttackType") if err != nil { panic(err) } if val != nil { - return val.(*SimulationAttackType) + return val.(*Payload_simulationAttackType) } return nil } @@ -461,35 +461,35 @@ func (m *Payload) GetSource()(*SimulationContentSource) { return nil } // GetStatus gets the status property value. Simulation content status. Supports $filter and $orderby. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. -func (m *Payload) GetStatus()(*SimulationContentStatus) { +func (m *Payload) GetStatus()(*Payload_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SimulationContentStatus) + return val.(*Payload_status) } return nil } // GetTechnique gets the technique property value. The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue, oAuthConsentGrant. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: oAuthConsentGrant. For more information on the types of social engineering attack techniques, see simulations. -func (m *Payload) GetTechnique()(*SimulationAttackTechnique) { +func (m *Payload) GetTechnique()(*Payload_technique) { val, err := m.GetBackingStore().Get("technique") if err != nil { panic(err) } if val != nil { - return val.(*SimulationAttackTechnique) + return val.(*Payload_technique) } return nil } // GetTheme gets the theme property value. The theme of a payload. Possible values are: unknown, other, accountActivation, accountVerification, billing, cleanUpMail, controversial, documentReceived, expense, fax, financeReport, incomingMessages, invoice, itemReceived, loginAlert, mailReceived, password, payment, payroll, personalizedOffer, quarantine, remoteWork, reviewMessage, securityUpdate, serviceSuspended, signatureRequired, upgradeMailboxStorage, verifyMailbox, voicemail, advertisement, employeeEngagement, unknownFutureValue. -func (m *Payload) GetTheme()(*PayloadTheme) { +func (m *Payload) GetTheme()(*Payload_theme) { val, err := m.GetBackingStore().Get("theme") if err != nil { panic(err) } if val != nil { - return val.(*PayloadTheme) + return val.(*Payload_theme) } return nil } @@ -643,14 +643,14 @@ func (m *Payload) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 return nil } // SetBrand sets the brand property value. The branch of a payload. Possible values are: unknown, other, americanExpress, capitalOne, dhl, docuSign, dropbox, facebook, firstAmerican, microsoft, netflix, scotiabank, sendGrid, stewartTitle, tesco, wellsFargo, syrinxCloud, adobe, teams, zoom, unknownFutureValue. -func (m *Payload) SetBrand(value *PayloadBrand)() { +func (m *Payload) SetBrand(value *Payload_brand)() { err := m.GetBackingStore().Set("brand", value) if err != nil { panic(err) } } // SetComplexity sets the complexity property value. The complexity of a payload. Possible values are: unknown, low, medium, high, unknownFutureValue. -func (m *Payload) SetComplexity(value *PayloadComplexity)() { +func (m *Payload) SetComplexity(value *Payload_complexity)() { err := m.GetBackingStore().Set("complexity", value) if err != nil { panic(err) @@ -692,7 +692,7 @@ func (m *Payload) SetDisplayName(value *string)() { } } // SetIndustry sets the industry property value. Industry of a payload. Possible values are: unknown, other, banking, businessServices, consumerServices, education, energy, construction, consulting, financialServices, government, hospitality, insurance, legal, courierServices, IT, healthcare, manufacturing, retail, telecom, realEstate, unknownFutureValue. -func (m *Payload) SetIndustry(value *PayloadIndustry)() { +func (m *Payload) SetIndustry(value *Payload_industry)() { err := m.GetBackingStore().Set("industry", value) if err != nil { panic(err) @@ -748,7 +748,7 @@ func (m *Payload) SetPayloadTags(value []string)() { } } // SetPlatform sets the platform property value. The payload delivery platform for a simulation. Possible values are: unknown, sms, email, teams, unknownFutureValue. -func (m *Payload) SetPlatform(value *PayloadDeliveryPlatform)() { +func (m *Payload) SetPlatform(value *Payload_platform)() { err := m.GetBackingStore().Set("platform", value) if err != nil { panic(err) @@ -762,7 +762,7 @@ func (m *Payload) SetPredictedCompromiseRate(value *float64)() { } } // SetSimulationAttackType sets the simulationAttackType property value. Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue. -func (m *Payload) SetSimulationAttackType(value *SimulationAttackType)() { +func (m *Payload) SetSimulationAttackType(value *Payload_simulationAttackType)() { err := m.GetBackingStore().Set("simulationAttackType", value) if err != nil { panic(err) @@ -776,21 +776,21 @@ func (m *Payload) SetSource(value *SimulationContentSource)() { } } // SetStatus sets the status property value. Simulation content status. Supports $filter and $orderby. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. -func (m *Payload) SetStatus(value *SimulationContentStatus)() { +func (m *Payload) SetStatus(value *Payload_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) } } // SetTechnique sets the technique property value. The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue, oAuthConsentGrant. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: oAuthConsentGrant. For more information on the types of social engineering attack techniques, see simulations. -func (m *Payload) SetTechnique(value *SimulationAttackTechnique)() { +func (m *Payload) SetTechnique(value *Payload_technique)() { err := m.GetBackingStore().Set("technique", value) if err != nil { panic(err) } } // SetTheme sets the theme property value. The theme of a payload. Possible values are: unknown, other, accountActivation, accountVerification, billing, cleanUpMail, controversial, documentReceived, expense, fax, financeReport, incomingMessages, invoice, itemReceived, loginAlert, mailReceived, password, payment, payroll, personalizedOffer, quarantine, remoteWork, reviewMessage, securityUpdate, serviceSuspended, signatureRequired, upgradeMailboxStorage, verifyMailbox, voicemail, advertisement, employeeEngagement, unknownFutureValue. -func (m *Payload) SetTheme(value *PayloadTheme)() { +func (m *Payload) SetTheme(value *Payload_theme)() { err := m.GetBackingStore().Set("theme", value) if err != nil { panic(err) @@ -800,14 +800,14 @@ func (m *Payload) SetTheme(value *PayloadTheme)() { type Payloadable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBrand()(*PayloadBrand) - GetComplexity()(*PayloadComplexity) + GetBrand()(*Payload_brand) + GetComplexity()(*Payload_complexity) GetCreatedBy()(EmailIdentityable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDescription()(*string) GetDetail()(PayloadDetailable) GetDisplayName()(*string) - GetIndustry()(*PayloadIndustry) + GetIndustry()(*Payload_industry) GetIsAutomated()(*bool) GetIsControversial()(*bool) GetIsCurrentEvent()(*bool) @@ -815,21 +815,21 @@ type Payloadable interface { GetLastModifiedBy()(EmailIdentityable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPayloadTags()([]string) - GetPlatform()(*PayloadDeliveryPlatform) + GetPlatform()(*Payload_platform) GetPredictedCompromiseRate()(*float64) - GetSimulationAttackType()(*SimulationAttackType) + GetSimulationAttackType()(*Payload_simulationAttackType) GetSource()(*SimulationContentSource) - GetStatus()(*SimulationContentStatus) - GetTechnique()(*SimulationAttackTechnique) - GetTheme()(*PayloadTheme) - SetBrand(value *PayloadBrand)() - SetComplexity(value *PayloadComplexity)() + GetStatus()(*Payload_status) + GetTechnique()(*Payload_technique) + GetTheme()(*Payload_theme) + SetBrand(value *Payload_brand)() + SetComplexity(value *Payload_complexity)() SetCreatedBy(value EmailIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() SetDetail(value PayloadDetailable)() SetDisplayName(value *string)() - SetIndustry(value *PayloadIndustry)() + SetIndustry(value *Payload_industry)() SetIsAutomated(value *bool)() SetIsControversial(value *bool)() SetIsCurrentEvent(value *bool)() @@ -837,11 +837,11 @@ type Payloadable interface { SetLastModifiedBy(value EmailIdentityable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPayloadTags(value []string)() - SetPlatform(value *PayloadDeliveryPlatform)() + SetPlatform(value *Payload_platform)() SetPredictedCompromiseRate(value *float64)() - SetSimulationAttackType(value *SimulationAttackType)() + SetSimulationAttackType(value *Payload_simulationAttackType)() SetSource(value *SimulationContentSource)() - SetStatus(value *SimulationContentStatus)() - SetTechnique(value *SimulationAttackTechnique)() - SetTheme(value *PayloadTheme)() + SetStatus(value *Payload_status)() + SetTechnique(value *Payload_technique)() + SetTheme(value *Payload_theme)() } diff --git a/models/payload_brand.go b/models/payload_brand.go index 50412da7e3e..e69de29bb2d 100644 --- a/models/payload_brand.go +++ b/models/payload_brand.go @@ -1,94 +0,0 @@ -package models -import ( - "errors" -) -// -type PayloadBrand int - -const ( - UNKNOWN_PAYLOADBRAND PayloadBrand = iota - OTHER_PAYLOADBRAND - AMERICANEXPRESS_PAYLOADBRAND - CAPITALONE_PAYLOADBRAND - DHL_PAYLOADBRAND - DOCUSIGN_PAYLOADBRAND - DROPBOX_PAYLOADBRAND - FACEBOOK_PAYLOADBRAND - FIRSTAMERICAN_PAYLOADBRAND - MICROSOFT_PAYLOADBRAND - NETFLIX_PAYLOADBRAND - SCOTIABANK_PAYLOADBRAND - SENDGRID_PAYLOADBRAND - STEWARTTITLE_PAYLOADBRAND - TESCO_PAYLOADBRAND - WELLSFARGO_PAYLOADBRAND - SYRINXCLOUD_PAYLOADBRAND - ADOBE_PAYLOADBRAND - TEAMS_PAYLOADBRAND - ZOOM_PAYLOADBRAND - UNKNOWNFUTUREVALUE_PAYLOADBRAND -) - -func (i PayloadBrand) String() string { - return []string{"unknown", "other", "americanExpress", "capitalOne", "dhl", "docuSign", "dropbox", "facebook", "firstAmerican", "microsoft", "netflix", "scotiabank", "sendGrid", "stewartTitle", "tesco", "wellsFargo", "syrinxCloud", "adobe", "teams", "zoom", "unknownFutureValue"}[i] -} -func ParsePayloadBrand(v string) (any, error) { - result := UNKNOWN_PAYLOADBRAND - switch v { - case "unknown": - result = UNKNOWN_PAYLOADBRAND - case "other": - result = OTHER_PAYLOADBRAND - case "americanExpress": - result = AMERICANEXPRESS_PAYLOADBRAND - case "capitalOne": - result = CAPITALONE_PAYLOADBRAND - case "dhl": - result = DHL_PAYLOADBRAND - case "docuSign": - result = DOCUSIGN_PAYLOADBRAND - case "dropbox": - result = DROPBOX_PAYLOADBRAND - case "facebook": - result = FACEBOOK_PAYLOADBRAND - case "firstAmerican": - result = FIRSTAMERICAN_PAYLOADBRAND - case "microsoft": - result = MICROSOFT_PAYLOADBRAND - case "netflix": - result = NETFLIX_PAYLOADBRAND - case "scotiabank": - result = SCOTIABANK_PAYLOADBRAND - case "sendGrid": - result = SENDGRID_PAYLOADBRAND - case "stewartTitle": - result = STEWARTTITLE_PAYLOADBRAND - case "tesco": - result = TESCO_PAYLOADBRAND - case "wellsFargo": - result = WELLSFARGO_PAYLOADBRAND - case "syrinxCloud": - result = SYRINXCLOUD_PAYLOADBRAND - case "adobe": - result = ADOBE_PAYLOADBRAND - case "teams": - result = TEAMS_PAYLOADBRAND - case "zoom": - result = ZOOM_PAYLOADBRAND - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PAYLOADBRAND - default: - return 0, errors.New("Unknown PayloadBrand value: " + v) - } - return &result, nil -} -func SerializePayloadBrand(values []PayloadBrand) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PayloadBrand) isMultiValue() bool { - return false -} diff --git a/models/payload_complexity.go b/models/payload_complexity.go index b2dcf624797..e69de29bb2d 100644 --- a/models/payload_complexity.go +++ b/models/payload_complexity.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type PayloadComplexity int - -const ( - UNKNOWN_PAYLOADCOMPLEXITY PayloadComplexity = iota - LOW_PAYLOADCOMPLEXITY - MEDIUM_PAYLOADCOMPLEXITY - HIGH_PAYLOADCOMPLEXITY - UNKNOWNFUTUREVALUE_PAYLOADCOMPLEXITY -) - -func (i PayloadComplexity) String() string { - return []string{"unknown", "low", "medium", "high", "unknownFutureValue"}[i] -} -func ParsePayloadComplexity(v string) (any, error) { - result := UNKNOWN_PAYLOADCOMPLEXITY - switch v { - case "unknown": - result = UNKNOWN_PAYLOADCOMPLEXITY - case "low": - result = LOW_PAYLOADCOMPLEXITY - case "medium": - result = MEDIUM_PAYLOADCOMPLEXITY - case "high": - result = HIGH_PAYLOADCOMPLEXITY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PAYLOADCOMPLEXITY - default: - return 0, errors.New("Unknown PayloadComplexity value: " + v) - } - return &result, nil -} -func SerializePayloadComplexity(values []PayloadComplexity) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PayloadComplexity) isMultiValue() bool { - return false -} diff --git a/models/payload_delivery_platform.go b/models/payload_delivery_platform.go deleted file mode 100644 index 1afbf5c4581..00000000000 --- a/models/payload_delivery_platform.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type PayloadDeliveryPlatform int - -const ( - UNKNOWN_PAYLOADDELIVERYPLATFORM PayloadDeliveryPlatform = iota - SMS_PAYLOADDELIVERYPLATFORM - EMAIL_PAYLOADDELIVERYPLATFORM - TEAMS_PAYLOADDELIVERYPLATFORM - UNKNOWNFUTUREVALUE_PAYLOADDELIVERYPLATFORM -) - -func (i PayloadDeliveryPlatform) String() string { - return []string{"unknown", "sms", "email", "teams", "unknownFutureValue"}[i] -} -func ParsePayloadDeliveryPlatform(v string) (any, error) { - result := UNKNOWN_PAYLOADDELIVERYPLATFORM - switch v { - case "unknown": - result = UNKNOWN_PAYLOADDELIVERYPLATFORM - case "sms": - result = SMS_PAYLOADDELIVERYPLATFORM - case "email": - result = EMAIL_PAYLOADDELIVERYPLATFORM - case "teams": - result = TEAMS_PAYLOADDELIVERYPLATFORM - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PAYLOADDELIVERYPLATFORM - default: - return 0, errors.New("Unknown PayloadDeliveryPlatform value: " + v) - } - return &result, nil -} -func SerializePayloadDeliveryPlatform(values []PayloadDeliveryPlatform) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PayloadDeliveryPlatform) isMultiValue() bool { - return false -} diff --git a/models/payload_industry.go b/models/payload_industry.go index 1c6ea90960b..e69de29bb2d 100644 --- a/models/payload_industry.go +++ b/models/payload_industry.go @@ -1,97 +0,0 @@ -package models -import ( - "errors" -) -// -type PayloadIndustry int - -const ( - UNKNOWN_PAYLOADINDUSTRY PayloadIndustry = iota - OTHER_PAYLOADINDUSTRY - BANKING_PAYLOADINDUSTRY - BUSINESSSERVICES_PAYLOADINDUSTRY - CONSUMERSERVICES_PAYLOADINDUSTRY - EDUCATION_PAYLOADINDUSTRY - ENERGY_PAYLOADINDUSTRY - CONSTRUCTION_PAYLOADINDUSTRY - CONSULTING_PAYLOADINDUSTRY - FINANCIALSERVICES_PAYLOADINDUSTRY - GOVERNMENT_PAYLOADINDUSTRY - HOSPITALITY_PAYLOADINDUSTRY - INSURANCE_PAYLOADINDUSTRY - LEGAL_PAYLOADINDUSTRY - COURIERSERVICES_PAYLOADINDUSTRY - IT_PAYLOADINDUSTRY - HEALTHCARE_PAYLOADINDUSTRY - MANUFACTURING_PAYLOADINDUSTRY - RETAIL_PAYLOADINDUSTRY - TELECOM_PAYLOADINDUSTRY - REALESTATE_PAYLOADINDUSTRY - UNKNOWNFUTUREVALUE_PAYLOADINDUSTRY -) - -func (i PayloadIndustry) String() string { - return []string{"unknown", "other", "banking", "businessServices", "consumerServices", "education", "energy", "construction", "consulting", "financialServices", "government", "hospitality", "insurance", "legal", "courierServices", "IT", "healthcare", "manufacturing", "retail", "telecom", "realEstate", "unknownFutureValue"}[i] -} -func ParsePayloadIndustry(v string) (any, error) { - result := UNKNOWN_PAYLOADINDUSTRY - switch v { - case "unknown": - result = UNKNOWN_PAYLOADINDUSTRY - case "other": - result = OTHER_PAYLOADINDUSTRY - case "banking": - result = BANKING_PAYLOADINDUSTRY - case "businessServices": - result = BUSINESSSERVICES_PAYLOADINDUSTRY - case "consumerServices": - result = CONSUMERSERVICES_PAYLOADINDUSTRY - case "education": - result = EDUCATION_PAYLOADINDUSTRY - case "energy": - result = ENERGY_PAYLOADINDUSTRY - case "construction": - result = CONSTRUCTION_PAYLOADINDUSTRY - case "consulting": - result = CONSULTING_PAYLOADINDUSTRY - case "financialServices": - result = FINANCIALSERVICES_PAYLOADINDUSTRY - case "government": - result = GOVERNMENT_PAYLOADINDUSTRY - case "hospitality": - result = HOSPITALITY_PAYLOADINDUSTRY - case "insurance": - result = INSURANCE_PAYLOADINDUSTRY - case "legal": - result = LEGAL_PAYLOADINDUSTRY - case "courierServices": - result = COURIERSERVICES_PAYLOADINDUSTRY - case "IT": - result = IT_PAYLOADINDUSTRY - case "healthcare": - result = HEALTHCARE_PAYLOADINDUSTRY - case "manufacturing": - result = MANUFACTURING_PAYLOADINDUSTRY - case "retail": - result = RETAIL_PAYLOADINDUSTRY - case "telecom": - result = TELECOM_PAYLOADINDUSTRY - case "realEstate": - result = REALESTATE_PAYLOADINDUSTRY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PAYLOADINDUSTRY - default: - return 0, errors.New("Unknown PayloadIndustry value: " + v) - } - return &result, nil -} -func SerializePayloadIndustry(values []PayloadIndustry) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PayloadIndustry) isMultiValue() bool { - return false -} diff --git a/models/payload_platform.go b/models/payload_platform.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/payload_simulation_attack_type.go b/models/payload_simulation_attack_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/payload_status.go b/models/payload_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/payload_technique.go b/models/payload_technique.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/payload_theme.go b/models/payload_theme.go index 349188a55ad..e69de29bb2d 100644 --- a/models/payload_theme.go +++ b/models/payload_theme.go @@ -1,127 +0,0 @@ -package models -import ( - "errors" -) -// -type PayloadTheme int - -const ( - UNKNOWN_PAYLOADTHEME PayloadTheme = iota - OTHER_PAYLOADTHEME - ACCOUNTACTIVATION_PAYLOADTHEME - ACCOUNTVERIFICATION_PAYLOADTHEME - BILLING_PAYLOADTHEME - CLEANUPMAIL_PAYLOADTHEME - CONTROVERSIAL_PAYLOADTHEME - DOCUMENTRECEIVED_PAYLOADTHEME - EXPENSE_PAYLOADTHEME - FAX_PAYLOADTHEME - FINANCEREPORT_PAYLOADTHEME - INCOMINGMESSAGES_PAYLOADTHEME - INVOICE_PAYLOADTHEME - ITEMRECEIVED_PAYLOADTHEME - LOGINALERT_PAYLOADTHEME - MAILRECEIVED_PAYLOADTHEME - PASSWORD_PAYLOADTHEME - PAYMENT_PAYLOADTHEME - PAYROLL_PAYLOADTHEME - PERSONALIZEDOFFER_PAYLOADTHEME - QUARANTINE_PAYLOADTHEME - REMOTEWORK_PAYLOADTHEME - REVIEWMESSAGE_PAYLOADTHEME - SECURITYUPDATE_PAYLOADTHEME - SERVICESUSPENDED_PAYLOADTHEME - SIGNATUREREQUIRED_PAYLOADTHEME - UPGRADEMAILBOXSTORAGE_PAYLOADTHEME - VERIFYMAILBOX_PAYLOADTHEME - VOICEMAIL_PAYLOADTHEME - ADVERTISEMENT_PAYLOADTHEME - EMPLOYEEENGAGEMENT_PAYLOADTHEME - UNKNOWNFUTUREVALUE_PAYLOADTHEME -) - -func (i PayloadTheme) String() string { - return []string{"unknown", "other", "accountActivation", "accountVerification", "billing", "cleanUpMail", "controversial", "documentReceived", "expense", "fax", "financeReport", "incomingMessages", "invoice", "itemReceived", "loginAlert", "mailReceived", "password", "payment", "payroll", "personalizedOffer", "quarantine", "remoteWork", "reviewMessage", "securityUpdate", "serviceSuspended", "signatureRequired", "upgradeMailboxStorage", "verifyMailbox", "voicemail", "advertisement", "employeeEngagement", "unknownFutureValue"}[i] -} -func ParsePayloadTheme(v string) (any, error) { - result := UNKNOWN_PAYLOADTHEME - switch v { - case "unknown": - result = UNKNOWN_PAYLOADTHEME - case "other": - result = OTHER_PAYLOADTHEME - case "accountActivation": - result = ACCOUNTACTIVATION_PAYLOADTHEME - case "accountVerification": - result = ACCOUNTVERIFICATION_PAYLOADTHEME - case "billing": - result = BILLING_PAYLOADTHEME - case "cleanUpMail": - result = CLEANUPMAIL_PAYLOADTHEME - case "controversial": - result = CONTROVERSIAL_PAYLOADTHEME - case "documentReceived": - result = DOCUMENTRECEIVED_PAYLOADTHEME - case "expense": - result = EXPENSE_PAYLOADTHEME - case "fax": - result = FAX_PAYLOADTHEME - case "financeReport": - result = FINANCEREPORT_PAYLOADTHEME - case "incomingMessages": - result = INCOMINGMESSAGES_PAYLOADTHEME - case "invoice": - result = INVOICE_PAYLOADTHEME - case "itemReceived": - result = ITEMRECEIVED_PAYLOADTHEME - case "loginAlert": - result = LOGINALERT_PAYLOADTHEME - case "mailReceived": - result = MAILRECEIVED_PAYLOADTHEME - case "password": - result = PASSWORD_PAYLOADTHEME - case "payment": - result = PAYMENT_PAYLOADTHEME - case "payroll": - result = PAYROLL_PAYLOADTHEME - case "personalizedOffer": - result = PERSONALIZEDOFFER_PAYLOADTHEME - case "quarantine": - result = QUARANTINE_PAYLOADTHEME - case "remoteWork": - result = REMOTEWORK_PAYLOADTHEME - case "reviewMessage": - result = REVIEWMESSAGE_PAYLOADTHEME - case "securityUpdate": - result = SECURITYUPDATE_PAYLOADTHEME - case "serviceSuspended": - result = SERVICESUSPENDED_PAYLOADTHEME - case "signatureRequired": - result = SIGNATUREREQUIRED_PAYLOADTHEME - case "upgradeMailboxStorage": - result = UPGRADEMAILBOXSTORAGE_PAYLOADTHEME - case "verifyMailbox": - result = VERIFYMAILBOX_PAYLOADTHEME - case "voicemail": - result = VOICEMAIL_PAYLOADTHEME - case "advertisement": - result = ADVERTISEMENT_PAYLOADTHEME - case "employeeEngagement": - result = EMPLOYEEENGAGEMENT_PAYLOADTHEME - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PAYLOADTHEME - default: - return 0, errors.New("Unknown PayloadTheme value: " + v) - } - return &result, nil -} -func SerializePayloadTheme(values []PayloadTheme) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PayloadTheme) isMultiValue() bool { - return false -} diff --git a/models/perfect_forward_secrecy_group.go b/models/perfect_forward_secrecy_group.go deleted file mode 100644 index 51c85d1c669..00000000000 --- a/models/perfect_forward_secrecy_group.go +++ /dev/null @@ -1,59 +0,0 @@ -package models -import ( - "errors" -) -// Forward Secrecy Group values for Windows10 VPN policies with IKEv2 connection type. -type PerfectForwardSecrecyGroup int - -const ( - // PFS1 - PFS1_PERFECTFORWARDSECRECYGROUP PerfectForwardSecrecyGroup = iota - // PFS2 - PFS2_PERFECTFORWARDSECRECYGROUP - // PFS2048 - PFS2048_PERFECTFORWARDSECRECYGROUP - // ECP256 - ECP256_PERFECTFORWARDSECRECYGROUP - // ECP384 - ECP384_PERFECTFORWARDSECRECYGROUP - // PFSMM - PFSMM_PERFECTFORWARDSECRECYGROUP - // PFS24 - PFS24_PERFECTFORWARDSECRECYGROUP -) - -func (i PerfectForwardSecrecyGroup) String() string { - return []string{"pfs1", "pfs2", "pfs2048", "ecp256", "ecp384", "pfsMM", "pfs24"}[i] -} -func ParsePerfectForwardSecrecyGroup(v string) (any, error) { - result := PFS1_PERFECTFORWARDSECRECYGROUP - switch v { - case "pfs1": - result = PFS1_PERFECTFORWARDSECRECYGROUP - case "pfs2": - result = PFS2_PERFECTFORWARDSECRECYGROUP - case "pfs2048": - result = PFS2048_PERFECTFORWARDSECRECYGROUP - case "ecp256": - result = ECP256_PERFECTFORWARDSECRECYGROUP - case "ecp384": - result = ECP384_PERFECTFORWARDSECRECYGROUP - case "pfsMM": - result = PFSMM_PERFECTFORWARDSECRECYGROUP - case "pfs24": - result = PFS24_PERFECTFORWARDSECRECYGROUP - default: - return 0, errors.New("Unknown PerfectForwardSecrecyGroup value: " + v) - } - return &result, nil -} -func SerializePerfectForwardSecrecyGroup(values []PerfectForwardSecrecyGroup) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PerfectForwardSecrecyGroup) isMultiValue() bool { - return false -} diff --git a/models/permission_classification_type.go b/models/permission_classification_type.go deleted file mode 100644 index 88f7da9222e..00000000000 --- a/models/permission_classification_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PermissionClassificationType int - -const ( - LOW_PERMISSIONCLASSIFICATIONTYPE PermissionClassificationType = iota - MEDIUM_PERMISSIONCLASSIFICATIONTYPE - HIGH_PERMISSIONCLASSIFICATIONTYPE - UNKNOWNFUTUREVALUE_PERMISSIONCLASSIFICATIONTYPE -) - -func (i PermissionClassificationType) String() string { - return []string{"low", "medium", "high", "unknownFutureValue"}[i] -} -func ParsePermissionClassificationType(v string) (any, error) { - result := LOW_PERMISSIONCLASSIFICATIONTYPE - switch v { - case "low": - result = LOW_PERMISSIONCLASSIFICATIONTYPE - case "medium": - result = MEDIUM_PERMISSIONCLASSIFICATIONTYPE - case "high": - result = HIGH_PERMISSIONCLASSIFICATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PERMISSIONCLASSIFICATIONTYPE - default: - return 0, errors.New("Unknown PermissionClassificationType value: " + v) - } - return &result, nil -} -func SerializePermissionClassificationType(values []PermissionClassificationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PermissionClassificationType) isMultiValue() bool { - return false -} diff --git a/models/permission_grant_condition_set.go b/models/permission_grant_condition_set.go index cbceb3b1634..ff7b69e291f 100644 --- a/models/permission_grant_condition_set.go +++ b/models/permission_grant_condition_set.go @@ -172,12 +172,12 @@ func (m *PermissionGrantConditionSet) GetFieldDeserializers()(map[string]func(i8 return nil } res["permissionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePermissionType) + val, err := n.GetEnumValue(ParsePermissionGrantConditionSet_permissionType) if err != nil { return err } if val != nil { - m.SetPermissionType(val.(*PermissionType)) + m.SetPermissionType(val.(*PermissionGrantConditionSet_permissionType)) } return nil } @@ -216,13 +216,13 @@ func (m *PermissionGrantConditionSet) GetPermissions()([]string) { return nil } // GetPermissionType gets the permissionType property value. The permission type of the permission being granted. Possible values: application for application permissions (e.g. app roles), or delegated for delegated permissions. The value delegatedUserConsentable indicates delegated permissions which have not been configured by the API publisher to require admin consent—this value may be used in built-in permission grant policies, but cannot be used in custom permission grant policies. Required. -func (m *PermissionGrantConditionSet) GetPermissionType()(*PermissionType) { +func (m *PermissionGrantConditionSet) GetPermissionType()(*PermissionGrantConditionSet_permissionType) { val, err := m.GetBackingStore().Get("permissionType") if err != nil { panic(err) } if val != nil { - return val.(*PermissionType) + return val.(*PermissionGrantConditionSet_permissionType) } return nil } @@ -350,7 +350,7 @@ func (m *PermissionGrantConditionSet) SetPermissions(value []string)() { } } // SetPermissionType sets the permissionType property value. The permission type of the permission being granted. Possible values: application for application permissions (e.g. app roles), or delegated for delegated permissions. The value delegatedUserConsentable indicates delegated permissions which have not been configured by the API publisher to require admin consent—this value may be used in built-in permission grant policies, but cannot be used in custom permission grant policies. Required. -func (m *PermissionGrantConditionSet) SetPermissionType(value *PermissionType)() { +func (m *PermissionGrantConditionSet) SetPermissionType(value *PermissionGrantConditionSet_permissionType)() { err := m.GetBackingStore().Set("permissionType", value) if err != nil { panic(err) @@ -374,7 +374,7 @@ type PermissionGrantConditionSetable interface { GetClientApplicationTenantIds()([]string) GetPermissionClassification()(*string) GetPermissions()([]string) - GetPermissionType()(*PermissionType) + GetPermissionType()(*PermissionGrantConditionSet_permissionType) GetResourceApplication()(*string) SetCertifiedClientApplicationsOnly(value *bool)() SetClientApplicationIds(value []string)() @@ -383,6 +383,6 @@ type PermissionGrantConditionSetable interface { SetClientApplicationTenantIds(value []string)() SetPermissionClassification(value *string)() SetPermissions(value []string)() - SetPermissionType(value *PermissionType)() + SetPermissionType(value *PermissionGrantConditionSet_permissionType)() SetResourceApplication(value *string)() } diff --git a/models/permission_grant_condition_set_permission_type.go b/models/permission_grant_condition_set_permission_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/permission_type.go b/models/permission_type.go deleted file mode 100644 index a67d9bf8157..00000000000 --- a/models/permission_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type PermissionType int - -const ( - APPLICATION_PERMISSIONTYPE PermissionType = iota - DELEGATED_PERMISSIONTYPE - DELEGATEDUSERCONSENTABLE_PERMISSIONTYPE -) - -func (i PermissionType) String() string { - return []string{"application", "delegated", "delegatedUserConsentable"}[i] -} -func ParsePermissionType(v string) (any, error) { - result := APPLICATION_PERMISSIONTYPE - switch v { - case "application": - result = APPLICATION_PERMISSIONTYPE - case "delegated": - result = DELEGATED_PERMISSIONTYPE - case "delegatedUserConsentable": - result = DELEGATEDUSERCONSENTABLE_PERMISSIONTYPE - default: - return 0, errors.New("Unknown PermissionType value: " + v) - } - return &result, nil -} -func SerializePermissionType(values []PermissionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PermissionType) isMultiValue() bool { - return false -} diff --git a/models/permissions_request_change.go b/models/permissions_request_change.go index 1b5b40b395c..97ce5b7cfd9 100644 --- a/models/permissions_request_change.go +++ b/models/permissions_request_change.go @@ -21,13 +21,13 @@ func CreatePermissionsRequestChangeFromDiscriminatorValue(parseNode i878a80d2330 return NewPermissionsRequestChange(), nil } // GetActiveOccurrenceStatus gets the activeOccurrenceStatus property value. The status of the active occurence of the schedule if one exists. The possible values are: grantingFailed, granted, granting, revoked, revoking, revokingFailed, unknownFutureValue. -func (m *PermissionsRequestChange) GetActiveOccurrenceStatus()(*PermissionsRequestOccurrenceStatus) { +func (m *PermissionsRequestChange) GetActiveOccurrenceStatus()(*PermissionsRequestChange_activeOccurrenceStatus) { val, err := m.GetBackingStore().Get("activeOccurrenceStatus") if err != nil { panic(err) } if val != nil { - return val.(*PermissionsRequestOccurrenceStatus) + return val.(*PermissionsRequestChange_activeOccurrenceStatus) } return nil } @@ -35,12 +35,12 @@ func (m *PermissionsRequestChange) GetActiveOccurrenceStatus()(*PermissionsReque func (m *PermissionsRequestChange) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["activeOccurrenceStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePermissionsRequestOccurrenceStatus) + val, err := n.GetEnumValue(ParsePermissionsRequestChange_activeOccurrenceStatus) if err != nil { return err } if val != nil { - m.SetActiveOccurrenceStatus(val.(*PermissionsRequestOccurrenceStatus)) + m.SetActiveOccurrenceStatus(val.(*PermissionsRequestChange_activeOccurrenceStatus)) } return nil } @@ -171,7 +171,7 @@ func (m *PermissionsRequestChange) Serialize(writer i878a80d2330e89d26896388a3f4 return nil } // SetActiveOccurrenceStatus sets the activeOccurrenceStatus property value. The status of the active occurence of the schedule if one exists. The possible values are: grantingFailed, granted, granting, revoked, revoking, revokingFailed, unknownFutureValue. -func (m *PermissionsRequestChange) SetActiveOccurrenceStatus(value *PermissionsRequestOccurrenceStatus)() { +func (m *PermissionsRequestChange) SetActiveOccurrenceStatus(value *PermissionsRequestChange_activeOccurrenceStatus)() { err := m.GetBackingStore().Set("activeOccurrenceStatus", value) if err != nil { panic(err) @@ -209,12 +209,12 @@ func (m *PermissionsRequestChange) SetTicketId(value *string)() { type PermissionsRequestChangeable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActiveOccurrenceStatus()(*PermissionsRequestOccurrenceStatus) + GetActiveOccurrenceStatus()(*PermissionsRequestChange_activeOccurrenceStatus) GetModificationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPermissionsRequestId()(*string) GetStatusDetail()(*StatusDetail) GetTicketId()(*string) - SetActiveOccurrenceStatus(value *PermissionsRequestOccurrenceStatus)() + SetActiveOccurrenceStatus(value *PermissionsRequestChange_activeOccurrenceStatus)() SetModificationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPermissionsRequestId(value *string)() SetStatusDetail(value *StatusDetail)() diff --git a/models/permissions_request_change_active_occurrence_status.go b/models/permissions_request_change_active_occurrence_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/permissions_request_occurrence_status.go b/models/permissions_request_occurrence_status.go deleted file mode 100644 index ab88f869255..00000000000 --- a/models/permissions_request_occurrence_status.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type PermissionsRequestOccurrenceStatus int - -const ( - GRANTINGFAILED_PERMISSIONSREQUESTOCCURRENCESTATUS PermissionsRequestOccurrenceStatus = iota - GRANTED_PERMISSIONSREQUESTOCCURRENCESTATUS - GRANTING_PERMISSIONSREQUESTOCCURRENCESTATUS - REVOKED_PERMISSIONSREQUESTOCCURRENCESTATUS - REVOKING_PERMISSIONSREQUESTOCCURRENCESTATUS - REVOKINGFAILED_PERMISSIONSREQUESTOCCURRENCESTATUS - UNKNOWNFUTUREVALUE_PERMISSIONSREQUESTOCCURRENCESTATUS -) - -func (i PermissionsRequestOccurrenceStatus) String() string { - return []string{"grantingFailed", "granted", "granting", "revoked", "revoking", "revokingFailed", "unknownFutureValue"}[i] -} -func ParsePermissionsRequestOccurrenceStatus(v string) (any, error) { - result := GRANTINGFAILED_PERMISSIONSREQUESTOCCURRENCESTATUS - switch v { - case "grantingFailed": - result = GRANTINGFAILED_PERMISSIONSREQUESTOCCURRENCESTATUS - case "granted": - result = GRANTED_PERMISSIONSREQUESTOCCURRENCESTATUS - case "granting": - result = GRANTING_PERMISSIONSREQUESTOCCURRENCESTATUS - case "revoked": - result = REVOKED_PERMISSIONSREQUESTOCCURRENCESTATUS - case "revoking": - result = REVOKING_PERMISSIONSREQUESTOCCURRENCESTATUS - case "revokingFailed": - result = REVOKINGFAILED_PERMISSIONSREQUESTOCCURRENCESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PERMISSIONSREQUESTOCCURRENCESTATUS - default: - return 0, errors.New("Unknown PermissionsRequestOccurrenceStatus value: " + v) - } - return &result, nil -} -func SerializePermissionsRequestOccurrenceStatus(values []PermissionsRequestOccurrenceStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PermissionsRequestOccurrenceStatus) isMultiValue() bool { - return false -} diff --git a/models/persistent_browser_session_control.go b/models/persistent_browser_session_control.go index f995870de80..d46380e076e 100644 --- a/models/persistent_browser_session_control.go +++ b/models/persistent_browser_session_control.go @@ -25,25 +25,25 @@ func CreatePersistentBrowserSessionControlFromDiscriminatorValue(parseNode i878a func (m *PersistentBrowserSessionControl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ConditionalAccessSessionControl.GetFieldDeserializers() res["mode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePersistentBrowserSessionMode) + val, err := n.GetEnumValue(ParsePersistentBrowserSessionControl_mode) if err != nil { return err } if val != nil { - m.SetMode(val.(*PersistentBrowserSessionMode)) + m.SetMode(val.(*PersistentBrowserSessionControl_mode)) } return nil } return res } // GetMode gets the mode property value. Possible values are: always, never. -func (m *PersistentBrowserSessionControl) GetMode()(*PersistentBrowserSessionMode) { +func (m *PersistentBrowserSessionControl) GetMode()(*PersistentBrowserSessionControl_mode) { val, err := m.GetBackingStore().Get("mode") if err != nil { panic(err) } if val != nil { - return val.(*PersistentBrowserSessionMode) + return val.(*PersistentBrowserSessionControl_mode) } return nil } @@ -63,7 +63,7 @@ func (m *PersistentBrowserSessionControl) Serialize(writer i878a80d2330e89d26896 return nil } // SetMode sets the mode property value. Possible values are: always, never. -func (m *PersistentBrowserSessionControl) SetMode(value *PersistentBrowserSessionMode)() { +func (m *PersistentBrowserSessionControl) SetMode(value *PersistentBrowserSessionControl_mode)() { err := m.GetBackingStore().Set("mode", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *PersistentBrowserSessionControl) SetMode(value *PersistentBrowserSessio type PersistentBrowserSessionControlable interface { ConditionalAccessSessionControlable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetMode()(*PersistentBrowserSessionMode) - SetMode(value *PersistentBrowserSessionMode)() + GetMode()(*PersistentBrowserSessionControl_mode) + SetMode(value *PersistentBrowserSessionControl_mode)() } diff --git a/models/persistent_browser_session_control_mode.go b/models/persistent_browser_session_control_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/persistent_browser_session_mode.go b/models/persistent_browser_session_mode.go deleted file mode 100644 index ee4b1c9b3a8..00000000000 --- a/models/persistent_browser_session_mode.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type PersistentBrowserSessionMode int - -const ( - ALWAYS_PERSISTENTBROWSERSESSIONMODE PersistentBrowserSessionMode = iota - NEVER_PERSISTENTBROWSERSESSIONMODE -) - -func (i PersistentBrowserSessionMode) String() string { - return []string{"always", "never"}[i] -} -func ParsePersistentBrowserSessionMode(v string) (any, error) { - result := ALWAYS_PERSISTENTBROWSERSESSIONMODE - switch v { - case "always": - result = ALWAYS_PERSISTENTBROWSERSESSIONMODE - case "never": - result = NEVER_PERSISTENTBROWSERSESSIONMODE - default: - return 0, errors.New("Unknown PersistentBrowserSessionMode value: " + v) - } - return &result, nil -} -func SerializePersistentBrowserSessionMode(values []PersistentBrowserSessionMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PersistentBrowserSessionMode) isMultiValue() bool { - return false -} diff --git a/models/person_annual_event.go b/models/person_annual_event.go index a57892de42b..6177a530b60 100644 --- a/models/person_annual_event.go +++ b/models/person_annual_event.go @@ -67,25 +67,25 @@ func (m *PersonAnnualEvent) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePersonAnnualEventType) + val, err := n.GetEnumValue(ParsePersonAnnualEvent_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*PersonAnnualEventType)) + m.SetTypeEscaped(val.(*PersonAnnualEvent_type)) } return nil } return res } // GetTypeEscaped gets the type property value. The type property -func (m *PersonAnnualEvent) GetTypeEscaped()(*PersonAnnualEventType) { +func (m *PersonAnnualEvent) GetTypeEscaped()(*PersonAnnualEvent_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*PersonAnnualEventType) + return val.(*PersonAnnualEvent_type) } return nil } @@ -131,7 +131,7 @@ func (m *PersonAnnualEvent) SetDisplayName(value *string)() { } } // SetTypeEscaped sets the type property value. The type property -func (m *PersonAnnualEvent) SetTypeEscaped(value *PersonAnnualEventType)() { +func (m *PersonAnnualEvent) SetTypeEscaped(value *PersonAnnualEvent_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -143,8 +143,8 @@ type PersonAnnualEventable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetDisplayName()(*string) - GetTypeEscaped()(*PersonAnnualEventType) + GetTypeEscaped()(*PersonAnnualEvent_type) SetDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetDisplayName(value *string)() - SetTypeEscaped(value *PersonAnnualEventType)() + SetTypeEscaped(value *PersonAnnualEvent_type)() } diff --git a/models/person_annual_event_type.go b/models/person_annual_event_type.go index e5f78245f42..e69de29bb2d 100644 --- a/models/person_annual_event_type.go +++ b/models/person_annual_event_type.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type PersonAnnualEventType int - -const ( - BIRTHDAY_PERSONANNUALEVENTTYPE PersonAnnualEventType = iota - WEDDING_PERSONANNUALEVENTTYPE - WORK_PERSONANNUALEVENTTYPE - OTHER_PERSONANNUALEVENTTYPE - UNKNOWNFUTUREVALUE_PERSONANNUALEVENTTYPE -) - -func (i PersonAnnualEventType) String() string { - return []string{"birthday", "wedding", "work", "other", "unknownFutureValue"}[i] -} -func ParsePersonAnnualEventType(v string) (any, error) { - result := BIRTHDAY_PERSONANNUALEVENTTYPE - switch v { - case "birthday": - result = BIRTHDAY_PERSONANNUALEVENTTYPE - case "wedding": - result = WEDDING_PERSONANNUALEVENTTYPE - case "work": - result = WORK_PERSONANNUALEVENTTYPE - case "other": - result = OTHER_PERSONANNUALEVENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PERSONANNUALEVENTTYPE - default: - return 0, errors.New("Unknown PersonAnnualEventType value: " + v) - } - return &result, nil -} -func SerializePersonAnnualEventType(values []PersonAnnualEventType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PersonAnnualEventType) isMultiValue() bool { - return false -} diff --git a/models/person_relationship.go b/models/person_relationship.go deleted file mode 100644 index e0fbe394eb8..00000000000 --- a/models/person_relationship.go +++ /dev/null @@ -1,79 +0,0 @@ -package models -import ( - "errors" -) -// -type PersonRelationship int - -const ( - MANAGER_PERSONRELATIONSHIP PersonRelationship = iota - COLLEAGUE_PERSONRELATIONSHIP - DIRECTREPORT_PERSONRELATIONSHIP - DOTLINEREPORT_PERSONRELATIONSHIP - ASSISTANT_PERSONRELATIONSHIP - DOTLINEMANAGER_PERSONRELATIONSHIP - ALTERNATECONTACT_PERSONRELATIONSHIP - FRIEND_PERSONRELATIONSHIP - SPOUSE_PERSONRELATIONSHIP - SIBLING_PERSONRELATIONSHIP - CHILD_PERSONRELATIONSHIP - PARENT_PERSONRELATIONSHIP - SPONSOR_PERSONRELATIONSHIP - EMERGENCYCONTACT_PERSONRELATIONSHIP - OTHER_PERSONRELATIONSHIP - UNKNOWNFUTUREVALUE_PERSONRELATIONSHIP -) - -func (i PersonRelationship) String() string { - return []string{"manager", "colleague", "directReport", "dotLineReport", "assistant", "dotLineManager", "alternateContact", "friend", "spouse", "sibling", "child", "parent", "sponsor", "emergencyContact", "other", "unknownFutureValue"}[i] -} -func ParsePersonRelationship(v string) (any, error) { - result := MANAGER_PERSONRELATIONSHIP - switch v { - case "manager": - result = MANAGER_PERSONRELATIONSHIP - case "colleague": - result = COLLEAGUE_PERSONRELATIONSHIP - case "directReport": - result = DIRECTREPORT_PERSONRELATIONSHIP - case "dotLineReport": - result = DOTLINEREPORT_PERSONRELATIONSHIP - case "assistant": - result = ASSISTANT_PERSONRELATIONSHIP - case "dotLineManager": - result = DOTLINEMANAGER_PERSONRELATIONSHIP - case "alternateContact": - result = ALTERNATECONTACT_PERSONRELATIONSHIP - case "friend": - result = FRIEND_PERSONRELATIONSHIP - case "spouse": - result = SPOUSE_PERSONRELATIONSHIP - case "sibling": - result = SIBLING_PERSONRELATIONSHIP - case "child": - result = CHILD_PERSONRELATIONSHIP - case "parent": - result = PARENT_PERSONRELATIONSHIP - case "sponsor": - result = SPONSOR_PERSONRELATIONSHIP - case "emergencyContact": - result = EMERGENCYCONTACT_PERSONRELATIONSHIP - case "other": - result = OTHER_PERSONRELATIONSHIP - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PERSONRELATIONSHIP - default: - return 0, errors.New("Unknown PersonRelationship value: " + v) - } - return &result, nil -} -func SerializePersonRelationship(values []PersonRelationship) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PersonRelationship) isMultiValue() bool { - return false -} diff --git a/models/personal_profile_personal_play_store_mode.go b/models/personal_profile_personal_play_store_mode.go deleted file mode 100644 index edcf7583296..00000000000 --- a/models/personal_profile_personal_play_store_mode.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Used together with personalApplications to control how apps in the personal profile are allowed or blocked. -type PersonalProfilePersonalPlayStoreMode int - -const ( - // Not configured. - NOTCONFIGURED_PERSONALPROFILEPERSONALPLAYSTOREMODE PersonalProfilePersonalPlayStoreMode = iota - // Blocked Apps. - BLOCKEDAPPS_PERSONALPROFILEPERSONALPLAYSTOREMODE - // Allowed Apps. - ALLOWEDAPPS_PERSONALPROFILEPERSONALPLAYSTOREMODE -) - -func (i PersonalProfilePersonalPlayStoreMode) String() string { - return []string{"notConfigured", "blockedApps", "allowedApps"}[i] -} -func ParsePersonalProfilePersonalPlayStoreMode(v string) (any, error) { - result := NOTCONFIGURED_PERSONALPROFILEPERSONALPLAYSTOREMODE - switch v { - case "notConfigured": - result = NOTCONFIGURED_PERSONALPROFILEPERSONALPLAYSTOREMODE - case "blockedApps": - result = BLOCKEDAPPS_PERSONALPROFILEPERSONALPLAYSTOREMODE - case "allowedApps": - result = ALLOWEDAPPS_PERSONALPROFILEPERSONALPLAYSTOREMODE - default: - return 0, errors.New("Unknown PersonalProfilePersonalPlayStoreMode value: " + v) - } - return &result, nil -} -func SerializePersonalProfilePersonalPlayStoreMode(values []PersonalProfilePersonalPlayStoreMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PersonalProfilePersonalPlayStoreMode) isMultiValue() bool { - return false -} diff --git a/models/phone.go b/models/phone.go index 76807e0993e..7b962032f9f 100644 --- a/models/phone.go +++ b/models/phone.go @@ -62,12 +62,12 @@ func (m *Phone) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePhoneType) + val, err := n.GetEnumValue(ParsePhone_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*PhoneType)) + m.SetTypeEscaped(val.(*Phone_type)) } return nil } @@ -96,13 +96,13 @@ func (m *Phone) GetOdataType()(*string) { return nil } // GetTypeEscaped gets the type property value. The type of phone number. Possible values are: home, business, mobile, other, assistant, homeFax, businessFax, otherFax, pager, radio. -func (m *Phone) GetTypeEscaped()(*PhoneType) { +func (m *Phone) GetTypeEscaped()(*Phone_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*PhoneType) + return val.(*Phone_type) } return nil } @@ -161,7 +161,7 @@ func (m *Phone) SetOdataType(value *string)() { } } // SetTypeEscaped sets the type property value. The type of phone number. Possible values are: home, business, mobile, other, assistant, homeFax, businessFax, otherFax, pager, radio. -func (m *Phone) SetTypeEscaped(value *PhoneType)() { +func (m *Phone) SetTypeEscaped(value *Phone_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type Phoneable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetNumber()(*string) GetOdataType()(*string) - GetTypeEscaped()(*PhoneType) + GetTypeEscaped()(*Phone_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetNumber(value *string)() SetOdataType(value *string)() - SetTypeEscaped(value *PhoneType)() + SetTypeEscaped(value *Phone_type)() } diff --git a/models/phone_authentication_method.go b/models/phone_authentication_method.go index 094b1e635a7..399aae6a3c4 100644 --- a/models/phone_authentication_method.go +++ b/models/phone_authentication_method.go @@ -35,22 +35,22 @@ func (m *PhoneAuthenticationMethod) GetFieldDeserializers()(map[string]func(i878 return nil } res["phoneType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationPhoneType) + val, err := n.GetEnumValue(ParsePhoneAuthenticationMethod_phoneType) if err != nil { return err } if val != nil { - m.SetPhoneType(val.(*AuthenticationPhoneType)) + m.SetPhoneType(val.(*PhoneAuthenticationMethod_phoneType)) } return nil } res["smsSignInState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationMethodSignInState) + val, err := n.GetEnumValue(ParsePhoneAuthenticationMethod_smsSignInState) if err != nil { return err } if val != nil { - m.SetSmsSignInState(val.(*AuthenticationMethodSignInState)) + m.SetSmsSignInState(val.(*PhoneAuthenticationMethod_smsSignInState)) } return nil } @@ -68,24 +68,24 @@ func (m *PhoneAuthenticationMethod) GetPhoneNumber()(*string) { return nil } // GetPhoneType gets the phoneType property value. The type of this phone. Possible values are: mobile, alternateMobile, or office. -func (m *PhoneAuthenticationMethod) GetPhoneType()(*AuthenticationPhoneType) { +func (m *PhoneAuthenticationMethod) GetPhoneType()(*PhoneAuthenticationMethod_phoneType) { val, err := m.GetBackingStore().Get("phoneType") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationPhoneType) + return val.(*PhoneAuthenticationMethod_phoneType) } return nil } // GetSmsSignInState gets the smsSignInState property value. Whether a phone is ready to be used for SMS sign-in or not. Possible values are: notSupported, notAllowedByPolicy, notEnabled, phoneNumberNotUnique, ready, or notConfigured, unknownFutureValue. -func (m *PhoneAuthenticationMethod) GetSmsSignInState()(*AuthenticationMethodSignInState) { +func (m *PhoneAuthenticationMethod) GetSmsSignInState()(*PhoneAuthenticationMethod_smsSignInState) { val, err := m.GetBackingStore().Get("smsSignInState") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationMethodSignInState) + return val.(*PhoneAuthenticationMethod_smsSignInState) } return nil } @@ -125,14 +125,14 @@ func (m *PhoneAuthenticationMethod) SetPhoneNumber(value *string)() { } } // SetPhoneType sets the phoneType property value. The type of this phone. Possible values are: mobile, alternateMobile, or office. -func (m *PhoneAuthenticationMethod) SetPhoneType(value *AuthenticationPhoneType)() { +func (m *PhoneAuthenticationMethod) SetPhoneType(value *PhoneAuthenticationMethod_phoneType)() { err := m.GetBackingStore().Set("phoneType", value) if err != nil { panic(err) } } // SetSmsSignInState sets the smsSignInState property value. Whether a phone is ready to be used for SMS sign-in or not. Possible values are: notSupported, notAllowedByPolicy, notEnabled, phoneNumberNotUnique, ready, or notConfigured, unknownFutureValue. -func (m *PhoneAuthenticationMethod) SetSmsSignInState(value *AuthenticationMethodSignInState)() { +func (m *PhoneAuthenticationMethod) SetSmsSignInState(value *PhoneAuthenticationMethod_smsSignInState)() { err := m.GetBackingStore().Set("smsSignInState", value) if err != nil { panic(err) @@ -143,9 +143,9 @@ type PhoneAuthenticationMethodable interface { AuthenticationMethodable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetPhoneNumber()(*string) - GetPhoneType()(*AuthenticationPhoneType) - GetSmsSignInState()(*AuthenticationMethodSignInState) + GetPhoneType()(*PhoneAuthenticationMethod_phoneType) + GetSmsSignInState()(*PhoneAuthenticationMethod_smsSignInState) SetPhoneNumber(value *string)() - SetPhoneType(value *AuthenticationPhoneType)() - SetSmsSignInState(value *AuthenticationMethodSignInState)() + SetPhoneType(value *PhoneAuthenticationMethod_phoneType)() + SetSmsSignInState(value *PhoneAuthenticationMethod_smsSignInState)() } diff --git a/models/phone_authentication_method_phone_type.go b/models/phone_authentication_method_phone_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/phone_authentication_method_sms_sign_in_state.go b/models/phone_authentication_method_sms_sign_in_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/phone_type.go b/models/phone_type.go index 98892c8eeb5..e69de29bb2d 100644 --- a/models/phone_type.go +++ b/models/phone_type.go @@ -1,61 +0,0 @@ -package models -import ( - "errors" -) -// -type PhoneType int - -const ( - HOME_PHONETYPE PhoneType = iota - BUSINESS_PHONETYPE - MOBILE_PHONETYPE - OTHER_PHONETYPE - ASSISTANT_PHONETYPE - HOMEFAX_PHONETYPE - BUSINESSFAX_PHONETYPE - OTHERFAX_PHONETYPE - PAGER_PHONETYPE - RADIO_PHONETYPE -) - -func (i PhoneType) String() string { - return []string{"home", "business", "mobile", "other", "assistant", "homeFax", "businessFax", "otherFax", "pager", "radio"}[i] -} -func ParsePhoneType(v string) (any, error) { - result := HOME_PHONETYPE - switch v { - case "home": - result = HOME_PHONETYPE - case "business": - result = BUSINESS_PHONETYPE - case "mobile": - result = MOBILE_PHONETYPE - case "other": - result = OTHER_PHONETYPE - case "assistant": - result = ASSISTANT_PHONETYPE - case "homeFax": - result = HOMEFAX_PHONETYPE - case "businessFax": - result = BUSINESSFAX_PHONETYPE - case "otherFax": - result = OTHERFAX_PHONETYPE - case "pager": - result = PAGER_PHONETYPE - case "radio": - result = RADIO_PHONETYPE - default: - return 0, errors.New("Unknown PhoneType value: " + v) - } - return &result, nil -} -func SerializePhoneType(values []PhoneType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PhoneType) isMultiValue() bool { - return false -} diff --git a/models/physical_address.go b/models/physical_address.go index cc4470f8a0a..1340b68a9d3 100644 --- a/models/physical_address.go +++ b/models/physical_address.go @@ -134,12 +134,12 @@ func (m *PhysicalAddress) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePhysicalAddressType) + val, err := n.GetEnumValue(ParsePhysicalAddress_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*PhysicalAddressType)) + m.SetTypeEscaped(val.(*PhysicalAddress_type)) } return nil } @@ -201,13 +201,13 @@ func (m *PhysicalAddress) GetStreet()(*string) { return nil } // GetTypeEscaped gets the type property value. The type of address. Possible values are: unknown, home, business, other. -func (m *PhysicalAddress) GetTypeEscaped()(*PhysicalAddressType) { +func (m *PhysicalAddress) GetTypeEscaped()(*PhysicalAddress_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*PhysicalAddressType) + return val.(*PhysicalAddress_type) } return nil } @@ -331,7 +331,7 @@ func (m *PhysicalAddress) SetStreet(value *string)() { } } // SetTypeEscaped sets the type property value. The type of address. Possible values are: unknown, home, business, other. -func (m *PhysicalAddress) SetTypeEscaped(value *PhysicalAddressType)() { +func (m *PhysicalAddress) SetTypeEscaped(value *PhysicalAddress_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -350,7 +350,7 @@ type PhysicalAddressable interface { GetPostOfficeBox()(*string) GetState()(*string) GetStreet()(*string) - GetTypeEscaped()(*PhysicalAddressType) + GetTypeEscaped()(*PhysicalAddress_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCity(value *string)() SetCountryOrRegion(value *string)() @@ -359,5 +359,5 @@ type PhysicalAddressable interface { SetPostOfficeBox(value *string)() SetState(value *string)() SetStreet(value *string)() - SetTypeEscaped(value *PhysicalAddressType)() + SetTypeEscaped(value *PhysicalAddress_type)() } diff --git a/models/physical_address_type.go b/models/physical_address_type.go index bc541b1af48..e69de29bb2d 100644 --- a/models/physical_address_type.go +++ b/models/physical_address_type.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PhysicalAddressType int - -const ( - UNKNOWN_PHYSICALADDRESSTYPE PhysicalAddressType = iota - HOME_PHYSICALADDRESSTYPE - BUSINESS_PHYSICALADDRESSTYPE - OTHER_PHYSICALADDRESSTYPE -) - -func (i PhysicalAddressType) String() string { - return []string{"unknown", "home", "business", "other"}[i] -} -func ParsePhysicalAddressType(v string) (any, error) { - result := UNKNOWN_PHYSICALADDRESSTYPE - switch v { - case "unknown": - result = UNKNOWN_PHYSICALADDRESSTYPE - case "home": - result = HOME_PHYSICALADDRESSTYPE - case "business": - result = BUSINESS_PHYSICALADDRESSTYPE - case "other": - result = OTHER_PHYSICALADDRESSTYPE - default: - return 0, errors.New("Unknown PhysicalAddressType value: " + v) - } - return &result, nil -} -func SerializePhysicalAddressType(values []PhysicalAddressType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PhysicalAddressType) isMultiValue() bool { - return false -} diff --git a/models/planner_archival_info.go b/models/planner_archival_info.go new file mode 100644 index 00000000000..0410d4e06ae --- /dev/null +++ b/models/planner_archival_info.go @@ -0,0 +1,219 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PlannerArchivalInfo +type PlannerArchivalInfo struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlannerArchivalInfo instantiates a new plannerArchivalInfo and sets the default values. +func NewPlannerArchivalInfo()(*PlannerArchivalInfo) { + m := &PlannerArchivalInfo{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlannerArchivalInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlannerArchivalInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerArchivalInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerArchivalInfo) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *PlannerArchivalInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlannerArchivalInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["statusChangedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStatusChangedBy(val.(IdentitySetable)) + } + return nil + } + res["statusChangedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStatusChangedDateTime(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *PlannerArchivalInfo) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PlannerArchivalInfo) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStatusChangedBy gets the statusChangedBy property value. The statusChangedBy property +func (m *PlannerArchivalInfo) GetStatusChangedBy()(IdentitySetable) { + val, err := m.GetBackingStore().Get("statusChangedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentitySetable) + } + return nil +} +// GetStatusChangedDateTime gets the statusChangedDateTime property value. The statusChangedDateTime property +func (m *PlannerArchivalInfo) GetStatusChangedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("statusChangedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// Serialize serializes information the current object +func (m *PlannerArchivalInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("statusChangedBy", m.GetStatusChangedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("statusChangedDateTime", m.GetStatusChangedDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerArchivalInfo) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlannerArchivalInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *PlannerArchivalInfo) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerArchivalInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStatusChangedBy sets the statusChangedBy property value. The statusChangedBy property +func (m *PlannerArchivalInfo) SetStatusChangedBy(value IdentitySetable)() { + err := m.GetBackingStore().Set("statusChangedBy", value) + if err != nil { + panic(err) + } +} +// SetStatusChangedDateTime sets the statusChangedDateTime property value. The statusChangedDateTime property +func (m *PlannerArchivalInfo) SetStatusChangedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("statusChangedDateTime", value) + if err != nil { + panic(err) + } +} +// PlannerArchivalInfoable +type PlannerArchivalInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + GetOdataType()(*string) + GetStatusChangedBy()(IdentitySetable) + GetStatusChangedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() + SetOdataType(value *string)() + SetStatusChangedBy(value IdentitySetable)() + SetStatusChangedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/planner_bucket.go b/models/planner_bucket.go index 868a8246a28..d977efb362d 100644 --- a/models/planner_bucket.go +++ b/models/planner_bucket.go @@ -19,6 +19,17 @@ func NewPlannerBucket()(*PlannerBucket) { func CreatePlannerBucketFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPlannerBucket(), nil } +// GetArchivalInfo gets the archivalInfo property value. The archivalInfo property +func (m *PlannerBucket) GetArchivalInfo()(PlannerArchivalInfoable) { + val, err := m.GetBackingStore().Get("archivalInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerArchivalInfoable) + } + return nil +} // GetCreationSource gets the creationSource property value. Contains information about the origin of the bucket. func (m *PlannerBucket) GetCreationSource()(PlannerBucketCreationable) { val, err := m.GetBackingStore().Get("creationSource") @@ -33,6 +44,16 @@ func (m *PlannerBucket) GetCreationSource()(PlannerBucketCreationable) { // GetFieldDeserializers the deserialization information for the current model func (m *PlannerBucket) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PlannerDelta.GetFieldDeserializers() + res["archivalInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerArchivalInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetArchivalInfo(val.(PlannerArchivalInfoable)) + } + return nil + } res["creationSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreatePlannerBucketCreationFromDiscriminatorValue) if err != nil { @@ -43,6 +64,16 @@ func (m *PlannerBucket) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -91,6 +122,17 @@ func (m *PlannerBucket) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } +// GetIsArchived gets the isArchived property value. The isArchived property +func (m *PlannerBucket) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetName gets the name property value. Name of the bucket. func (m *PlannerBucket) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -141,12 +183,24 @@ func (m *PlannerBucket) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 if err != nil { return err } + { + err = writer.WriteObjectValue("archivalInfo", m.GetArchivalInfo()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("creationSource", m.GetCreationSource()) if err != nil { return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("name", m.GetName()) if err != nil { @@ -179,6 +233,13 @@ func (m *PlannerBucket) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } return nil } +// SetArchivalInfo sets the archivalInfo property value. The archivalInfo property +func (m *PlannerBucket) SetArchivalInfo(value PlannerArchivalInfoable)() { + err := m.GetBackingStore().Set("archivalInfo", value) + if err != nil { + panic(err) + } +} // SetCreationSource sets the creationSource property value. Contains information about the origin of the bucket. func (m *PlannerBucket) SetCreationSource(value PlannerBucketCreationable)() { err := m.GetBackingStore().Set("creationSource", value) @@ -186,6 +247,13 @@ func (m *PlannerBucket) SetCreationSource(value PlannerBucketCreationable)() { panic(err) } } +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *PlannerBucket) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} // SetName sets the name property value. Name of the bucket. func (m *PlannerBucket) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) @@ -218,12 +286,16 @@ func (m *PlannerBucket) SetTasks(value []PlannerTaskable)() { type PlannerBucketable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PlannerDeltaable + GetArchivalInfo()(PlannerArchivalInfoable) GetCreationSource()(PlannerBucketCreationable) + GetIsArchived()(*bool) GetName()(*string) GetOrderHint()(*string) GetPlanId()(*string) GetTasks()([]PlannerTaskable) + SetArchivalInfo(value PlannerArchivalInfoable)() SetCreationSource(value PlannerBucketCreationable)() + SetIsArchived(value *bool)() SetName(value *string)() SetOrderHint(value *string)() SetPlanId(value *string)() diff --git a/models/planner_bucket_creation.go b/models/planner_bucket_creation.go index ae9899cdf72..b06ed80162f 100644 --- a/models/planner_bucket_creation.go +++ b/models/planner_bucket_creation.go @@ -57,13 +57,13 @@ func (m *PlannerBucketCreation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd07 return m.backingStore } // GetCreationSourceKind gets the creationSourceKind property value. Specifies what kind of creation source the bucket is created with. The possible values are: external, publication and unknownFutureValue. -func (m *PlannerBucketCreation) GetCreationSourceKind()(*PlannerCreationSourceKind) { +func (m *PlannerBucketCreation) GetCreationSourceKind()(*PlannerBucketCreation_creationSourceKind) { val, err := m.GetBackingStore().Get("creationSourceKind") if err != nil { panic(err) } if val != nil { - return val.(*PlannerCreationSourceKind) + return val.(*PlannerBucketCreation_creationSourceKind) } return nil } @@ -71,12 +71,12 @@ func (m *PlannerBucketCreation) GetCreationSourceKind()(*PlannerCreationSourceKi func (m *PlannerBucketCreation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["creationSourceKind"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerCreationSourceKind) + val, err := n.GetEnumValue(ParsePlannerBucketCreation_creationSourceKind) if err != nil { return err } if val != nil { - m.SetCreationSourceKind(val.(*PlannerCreationSourceKind)) + m.SetCreationSourceKind(val.(*PlannerBucketCreation_creationSourceKind)) } return nil } @@ -138,7 +138,7 @@ func (m *PlannerBucketCreation) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827e m.backingStore = value } // SetCreationSourceKind sets the creationSourceKind property value. Specifies what kind of creation source the bucket is created with. The possible values are: external, publication and unknownFutureValue. -func (m *PlannerBucketCreation) SetCreationSourceKind(value *PlannerCreationSourceKind)() { +func (m *PlannerBucketCreation) SetCreationSourceKind(value *PlannerBucketCreation_creationSourceKind)() { err := m.GetBackingStore().Set("creationSourceKind", value) if err != nil { panic(err) @@ -157,9 +157,9 @@ type PlannerBucketCreationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCreationSourceKind()(*PlannerCreationSourceKind) + GetCreationSourceKind()(*PlannerBucketCreation_creationSourceKind) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCreationSourceKind(value *PlannerCreationSourceKind)() + SetCreationSourceKind(value *PlannerBucketCreation_creationSourceKind)() SetOdataType(value *string)() } diff --git a/models/planner_bucket_creation_creation_source_kind.go b/models/planner_bucket_creation_creation_source_kind.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/planner_container_type.go b/models/planner_container_type.go deleted file mode 100644 index 3cd7fb77ae0..00000000000 --- a/models/planner_container_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type PlannerContainerType int - -const ( - GROUP_PLANNERCONTAINERTYPE PlannerContainerType = iota - UNKNOWNFUTUREVALUE_PLANNERCONTAINERTYPE - ROSTER_PLANNERCONTAINERTYPE - PROJECT_PLANNERCONTAINERTYPE - DRIVEITEM_PLANNERCONTAINERTYPE - USER_PLANNERCONTAINERTYPE -) - -func (i PlannerContainerType) String() string { - return []string{"group", "unknownFutureValue", "roster", "project", "driveItem", "user"}[i] -} -func ParsePlannerContainerType(v string) (any, error) { - result := GROUP_PLANNERCONTAINERTYPE - switch v { - case "group": - result = GROUP_PLANNERCONTAINERTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PLANNERCONTAINERTYPE - case "roster": - result = ROSTER_PLANNERCONTAINERTYPE - case "project": - result = PROJECT_PLANNERCONTAINERTYPE - case "driveItem": - result = DRIVEITEM_PLANNERCONTAINERTYPE - case "user": - result = USER_PLANNERCONTAINERTYPE - default: - return 0, errors.New("Unknown PlannerContainerType value: " + v) - } - return &result, nil -} -func SerializePlannerContainerType(values []PlannerContainerType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PlannerContainerType) isMultiValue() bool { - return false -} diff --git a/models/planner_creation_source_kind.go b/models/planner_creation_source_kind.go deleted file mode 100644 index b234cf4751e..00000000000 --- a/models/planner_creation_source_kind.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PlannerCreationSourceKind int - -const ( - NONE_PLANNERCREATIONSOURCEKIND PlannerCreationSourceKind = iota - EXTERNAL_PLANNERCREATIONSOURCEKIND - PUBLICATION_PLANNERCREATIONSOURCEKIND - UNKNOWNFUTUREVALUE_PLANNERCREATIONSOURCEKIND -) - -func (i PlannerCreationSourceKind) String() string { - return []string{"none", "external", "publication", "unknownFutureValue"}[i] -} -func ParsePlannerCreationSourceKind(v string) (any, error) { - result := NONE_PLANNERCREATIONSOURCEKIND - switch v { - case "none": - result = NONE_PLANNERCREATIONSOURCEKIND - case "external": - result = EXTERNAL_PLANNERCREATIONSOURCEKIND - case "publication": - result = PUBLICATION_PLANNERCREATIONSOURCEKIND - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PLANNERCREATIONSOURCEKIND - default: - return 0, errors.New("Unknown PlannerCreationSourceKind value: " + v) - } - return &result, nil -} -func SerializePlannerCreationSourceKind(values []PlannerCreationSourceKind) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PlannerCreationSourceKind) isMultiValue() bool { - return false -} diff --git a/models/planner_external_task_source.go b/models/planner_external_task_source.go index 1d52bb153c9..dcdee7a4038 100644 --- a/models/planner_external_task_source.go +++ b/models/planner_external_task_source.go @@ -33,13 +33,13 @@ func (m *PlannerExternalTaskSource) GetContextScenarioId()(*string) { return nil } // GetDisplayLinkType gets the displayLinkType property value. Specifies how an application should display the link to the associated plannerExternalTaskSource. The possible values are: none, default. -func (m *PlannerExternalTaskSource) GetDisplayLinkType()(*PlannerExternalTaskSourceDisplayType) { +func (m *PlannerExternalTaskSource) GetDisplayLinkType()(*PlannerExternalTaskSource_displayLinkType) { val, err := m.GetBackingStore().Get("displayLinkType") if err != nil { panic(err) } if val != nil { - return val.(*PlannerExternalTaskSourceDisplayType) + return val.(*PlannerExternalTaskSource_displayLinkType) } return nil } @@ -101,12 +101,12 @@ func (m *PlannerExternalTaskSource) GetFieldDeserializers()(map[string]func(i878 return nil } res["displayLinkType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerExternalTaskSourceDisplayType) + val, err := n.GetEnumValue(ParsePlannerExternalTaskSource_displayLinkType) if err != nil { return err } if val != nil { - m.SetDisplayLinkType(val.(*PlannerExternalTaskSourceDisplayType)) + m.SetDisplayLinkType(val.(*PlannerExternalTaskSource_displayLinkType)) } return nil } @@ -238,7 +238,7 @@ func (m *PlannerExternalTaskSource) SetContextScenarioId(value *string)() { } } // SetDisplayLinkType sets the displayLinkType property value. Specifies how an application should display the link to the associated plannerExternalTaskSource. The possible values are: none, default. -func (m *PlannerExternalTaskSource) SetDisplayLinkType(value *PlannerExternalTaskSourceDisplayType)() { +func (m *PlannerExternalTaskSource) SetDisplayLinkType(value *PlannerExternalTaskSource_displayLinkType)() { err := m.GetBackingStore().Set("displayLinkType", value) if err != nil { panic(err) @@ -284,14 +284,14 @@ type PlannerExternalTaskSourceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PlannerTaskCreationable GetContextScenarioId()(*string) - GetDisplayLinkType()(*PlannerExternalTaskSourceDisplayType) + GetDisplayLinkType()(*PlannerExternalTaskSource_displayLinkType) GetDisplayNameSegments()([]string) GetExternalContextId()(*string) GetExternalObjectId()(*string) GetExternalObjectVersion()(*string) GetWebUrl()(*string) SetContextScenarioId(value *string)() - SetDisplayLinkType(value *PlannerExternalTaskSourceDisplayType)() + SetDisplayLinkType(value *PlannerExternalTaskSource_displayLinkType)() SetDisplayNameSegments(value []string)() SetExternalContextId(value *string)() SetExternalObjectId(value *string)() diff --git a/models/planner_external_task_source_display_link_type.go b/models/planner_external_task_source_display_link_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/planner_external_task_source_display_type.go b/models/planner_external_task_source_display_type.go deleted file mode 100644 index a6e8667e101..00000000000 --- a/models/planner_external_task_source_display_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type PlannerExternalTaskSourceDisplayType int - -const ( - NONE_PLANNEREXTERNALTASKSOURCEDISPLAYTYPE PlannerExternalTaskSourceDisplayType = iota - DEFAULTESCAPED_PLANNEREXTERNALTASKSOURCEDISPLAYTYPE - UNKNOWNFUTUREVALUE_PLANNEREXTERNALTASKSOURCEDISPLAYTYPE -) - -func (i PlannerExternalTaskSourceDisplayType) String() string { - return []string{"none", "default", "unknownFutureValue"}[i] -} -func ParsePlannerExternalTaskSourceDisplayType(v string) (any, error) { - result := NONE_PLANNEREXTERNALTASKSOURCEDISPLAYTYPE - switch v { - case "none": - result = NONE_PLANNEREXTERNALTASKSOURCEDISPLAYTYPE - case "default": - result = DEFAULTESCAPED_PLANNEREXTERNALTASKSOURCEDISPLAYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PLANNEREXTERNALTASKSOURCEDISPLAYTYPE - default: - return 0, errors.New("Unknown PlannerExternalTaskSourceDisplayType value: " + v) - } - return &result, nil -} -func SerializePlannerExternalTaskSourceDisplayType(values []PlannerExternalTaskSourceDisplayType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PlannerExternalTaskSourceDisplayType) isMultiValue() bool { - return false -} diff --git a/models/planner_forms_dictionary.go b/models/planner_forms_dictionary.go new file mode 100644 index 00000000000..ed0cc9a6336 --- /dev/null +++ b/models/planner_forms_dictionary.go @@ -0,0 +1,39 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// PlannerFormsDictionary +type PlannerFormsDictionary struct { + Dictionary +} +// NewPlannerFormsDictionary instantiates a new plannerFormsDictionary and sets the default values. +func NewPlannerFormsDictionary()(*PlannerFormsDictionary) { + m := &PlannerFormsDictionary{ + Dictionary: *NewDictionary(), + } + return m +} +// CreatePlannerFormsDictionaryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlannerFormsDictionaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerFormsDictionary(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlannerFormsDictionary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Dictionary.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *PlannerFormsDictionary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Dictionary.Serialize(writer) + if err != nil { + return err + } + return nil +} +// PlannerFormsDictionaryable +type PlannerFormsDictionaryable interface { + Dictionaryable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/planner_forms_requirement.go b/models/planner_forms_requirement.go new file mode 100644 index 00000000000..b8d2283c047 --- /dev/null +++ b/models/planner_forms_requirement.go @@ -0,0 +1,152 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PlannerFormsRequirement +type PlannerFormsRequirement struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlannerFormsRequirement instantiates a new plannerFormsRequirement and sets the default values. +func NewPlannerFormsRequirement()(*PlannerFormsRequirement) { + m := &PlannerFormsRequirement{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlannerFormsRequirementFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlannerFormsRequirementFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerFormsRequirement(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerFormsRequirement) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *PlannerFormsRequirement) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlannerFormsRequirement) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["requiredForms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetRequiredForms(res) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PlannerFormsRequirement) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRequiredForms gets the requiredForms property value. The requiredForms property +func (m *PlannerFormsRequirement) GetRequiredForms()([]string) { + val, err := m.GetBackingStore().Get("requiredForms") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// Serialize serializes information the current object +func (m *PlannerFormsRequirement) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRequiredForms() != nil { + err := writer.WriteCollectionOfStringValues("requiredForms", m.GetRequiredForms()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerFormsRequirement) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlannerFormsRequirement) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerFormsRequirement) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRequiredForms sets the requiredForms property value. The requiredForms property +func (m *PlannerFormsRequirement) SetRequiredForms(value []string)() { + err := m.GetBackingStore().Set("requiredForms", value) + if err != nil { + panic(err) + } +} +// PlannerFormsRequirementable +type PlannerFormsRequirementable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetRequiredForms()([]string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetRequiredForms(value []string)() +} diff --git a/models/planner_plan.go b/models/planner_plan.go index e51367314e6..bbcf9efa539 100644 --- a/models/planner_plan.go +++ b/models/planner_plan.go @@ -20,6 +20,17 @@ func NewPlannerPlan()(*PlannerPlan) { func CreatePlannerPlanFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPlannerPlan(), nil } +// GetArchivalInfo gets the archivalInfo property value. The archivalInfo property +func (m *PlannerPlan) GetArchivalInfo()(PlannerArchivalInfoable) { + val, err := m.GetBackingStore().Get("archivalInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerArchivalInfoable) + } + return nil +} // GetBuckets gets the buckets property value. Collection of buckets in the plan. Read-only. Nullable. func (m *PlannerPlan) GetBuckets()([]PlannerBucketable) { val, err := m.GetBackingStore().Get("buckets") @@ -100,6 +111,16 @@ func (m *PlannerPlan) GetDetails()(PlannerPlanDetailsable) { // GetFieldDeserializers the deserialization information for the current model func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PlannerDelta.GetFieldDeserializers() + res["archivalInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerArchivalInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetArchivalInfo(val.(PlannerArchivalInfoable)) + } + return nil + } res["buckets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreatePlannerBucketFromDiscriminatorValue) if err != nil { @@ -176,6 +197,16 @@ func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } res["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -230,6 +261,17 @@ func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } +// GetIsArchived gets the isArchived property value. The isArchived property +func (m *PlannerPlan) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetOwner gets the owner property value. The owner property func (m *PlannerPlan) GetOwner()(*string) { val, err := m.GetBackingStore().Get("owner") @@ -280,6 +322,12 @@ func (m *PlannerPlan) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 if err != nil { return err } + { + err = writer.WriteObjectValue("archivalInfo", m.GetArchivalInfo()) + if err != nil { + return err + } + } if m.GetBuckets() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetBuckets())) for i, v := range m.GetBuckets() { @@ -328,6 +376,12 @@ func (m *PlannerPlan) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("owner", m.GetOwner()) if err != nil { @@ -366,6 +420,13 @@ func (m *PlannerPlan) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } +// SetArchivalInfo sets the archivalInfo property value. The archivalInfo property +func (m *PlannerPlan) SetArchivalInfo(value PlannerArchivalInfoable)() { + err := m.GetBackingStore().Set("archivalInfo", value) + if err != nil { + panic(err) + } +} // SetBuckets sets the buckets property value. Collection of buckets in the plan. Read-only. Nullable. func (m *PlannerPlan) SetBuckets(value []PlannerBucketable)() { err := m.GetBackingStore().Set("buckets", value) @@ -415,6 +476,13 @@ func (m *PlannerPlan) SetDetails(value PlannerPlanDetailsable)() { panic(err) } } +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *PlannerPlan) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} // SetOwner sets the owner property value. The owner property func (m *PlannerPlan) SetOwner(value *string)() { err := m.GetBackingStore().Set("owner", value) @@ -447,6 +515,7 @@ func (m *PlannerPlan) SetTitle(value *string)() { type PlannerPlanable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PlannerDeltaable + GetArchivalInfo()(PlannerArchivalInfoable) GetBuckets()([]PlannerBucketable) GetContainer()(PlannerPlanContainerable) GetContexts()(PlannerPlanContextCollectionable) @@ -454,10 +523,12 @@ type PlannerPlanable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCreationSource()(PlannerPlanCreationable) GetDetails()(PlannerPlanDetailsable) + GetIsArchived()(*bool) GetOwner()(*string) GetSharedWithContainers()([]PlannerSharedWithContainerable) GetTasks()([]PlannerTaskable) GetTitle()(*string) + SetArchivalInfo(value PlannerArchivalInfoable)() SetBuckets(value []PlannerBucketable)() SetContainer(value PlannerPlanContainerable)() SetContexts(value PlannerPlanContextCollectionable)() @@ -465,6 +536,7 @@ type PlannerPlanable interface { SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCreationSource(value PlannerPlanCreationable)() SetDetails(value PlannerPlanDetailsable)() + SetIsArchived(value *bool)() SetOwner(value *string)() SetSharedWithContainers(value []PlannerSharedWithContainerable)() SetTasks(value []PlannerTaskable)() diff --git a/models/planner_plan_container.go b/models/planner_plan_container.go index a1ddc19c74c..c92619a7c9f 100644 --- a/models/planner_plan_container.go +++ b/models/planner_plan_container.go @@ -91,12 +91,12 @@ func (m *PlannerPlanContainer) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerContainerType) + val, err := n.GetEnumValue(ParsePlannerPlanContainer_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*PlannerContainerType)) + m.SetTypeEscaped(val.(*PlannerPlanContainer_type)) } return nil } @@ -124,13 +124,13 @@ func (m *PlannerPlanContainer) GetOdataType()(*string) { return nil } // GetTypeEscaped gets the type property value. The type of the resource that contains the plan. For supported types, see the previous table. Possible values are: group, unknownFutureValue, roster, project, driveItem, and user. You must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: roster, project, driveItem, and user. Optional. -func (m *PlannerPlanContainer) GetTypeEscaped()(*PlannerContainerType) { +func (m *PlannerPlanContainer) GetTypeEscaped()(*PlannerPlanContainer_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*PlannerContainerType) + return val.(*PlannerPlanContainer_type) } return nil } @@ -206,7 +206,7 @@ func (m *PlannerPlanContainer) SetOdataType(value *string)() { } } // SetTypeEscaped sets the type property value. The type of the resource that contains the plan. For supported types, see the previous table. Possible values are: group, unknownFutureValue, roster, project, driveItem, and user. You must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: roster, project, driveItem, and user. Optional. -func (m *PlannerPlanContainer) SetTypeEscaped(value *PlannerContainerType)() { +func (m *PlannerPlanContainer) SetTypeEscaped(value *PlannerPlanContainer_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -227,11 +227,11 @@ type PlannerPlanContainerable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContainerId()(*string) GetOdataType()(*string) - GetTypeEscaped()(*PlannerContainerType) + GetTypeEscaped()(*PlannerPlanContainer_type) GetUrl()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContainerId(value *string)() SetOdataType(value *string)() - SetTypeEscaped(value *PlannerContainerType)() + SetTypeEscaped(value *PlannerPlanContainer_type)() SetUrl(value *string)() } diff --git a/models/planner_plan_container_type.go b/models/planner_plan_container_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/planner_plan_creation.go b/models/planner_plan_creation.go index 313ecb84208..f7657129a8d 100644 --- a/models/planner_plan_creation.go +++ b/models/planner_plan_creation.go @@ -57,13 +57,13 @@ func (m *PlannerPlanCreation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d return m.backingStore } // GetCreationSourceKind gets the creationSourceKind property value. Specifies what kind of creation source the plan is created with. The possible values are: external, publication and unknownFutureValue. -func (m *PlannerPlanCreation) GetCreationSourceKind()(*PlannerCreationSourceKind) { +func (m *PlannerPlanCreation) GetCreationSourceKind()(*PlannerPlanCreation_creationSourceKind) { val, err := m.GetBackingStore().Get("creationSourceKind") if err != nil { panic(err) } if val != nil { - return val.(*PlannerCreationSourceKind) + return val.(*PlannerPlanCreation_creationSourceKind) } return nil } @@ -71,12 +71,12 @@ func (m *PlannerPlanCreation) GetCreationSourceKind()(*PlannerCreationSourceKind func (m *PlannerPlanCreation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["creationSourceKind"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerCreationSourceKind) + val, err := n.GetEnumValue(ParsePlannerPlanCreation_creationSourceKind) if err != nil { return err } if val != nil { - m.SetCreationSourceKind(val.(*PlannerCreationSourceKind)) + m.SetCreationSourceKind(val.(*PlannerPlanCreation_creationSourceKind)) } return nil } @@ -138,7 +138,7 @@ func (m *PlannerPlanCreation) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd m.backingStore = value } // SetCreationSourceKind sets the creationSourceKind property value. Specifies what kind of creation source the plan is created with. The possible values are: external, publication and unknownFutureValue. -func (m *PlannerPlanCreation) SetCreationSourceKind(value *PlannerCreationSourceKind)() { +func (m *PlannerPlanCreation) SetCreationSourceKind(value *PlannerPlanCreation_creationSourceKind)() { err := m.GetBackingStore().Set("creationSourceKind", value) if err != nil { panic(err) @@ -157,9 +157,9 @@ type PlannerPlanCreationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCreationSourceKind()(*PlannerCreationSourceKind) + GetCreationSourceKind()(*PlannerPlanCreation_creationSourceKind) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCreationSourceKind(value *PlannerCreationSourceKind)() + SetCreationSourceKind(value *PlannerPlanCreation_creationSourceKind)() SetOdataType(value *string)() } diff --git a/models/planner_plan_creation_creation_source_kind.go b/models/planner_plan_creation_creation_source_kind.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/planner_preview_type.go b/models/planner_preview_type.go deleted file mode 100644 index d42daf200ad..00000000000 --- a/models/planner_preview_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type PlannerPreviewType int - -const ( - AUTOMATIC_PLANNERPREVIEWTYPE PlannerPreviewType = iota - NOPREVIEW_PLANNERPREVIEWTYPE - CHECKLIST_PLANNERPREVIEWTYPE - DESCRIPTION_PLANNERPREVIEWTYPE - REFERENCE_PLANNERPREVIEWTYPE -) - -func (i PlannerPreviewType) String() string { - return []string{"automatic", "noPreview", "checklist", "description", "reference"}[i] -} -func ParsePlannerPreviewType(v string) (any, error) { - result := AUTOMATIC_PLANNERPREVIEWTYPE - switch v { - case "automatic": - result = AUTOMATIC_PLANNERPREVIEWTYPE - case "noPreview": - result = NOPREVIEW_PLANNERPREVIEWTYPE - case "checklist": - result = CHECKLIST_PLANNERPREVIEWTYPE - case "description": - result = DESCRIPTION_PLANNERPREVIEWTYPE - case "reference": - result = REFERENCE_PLANNERPREVIEWTYPE - default: - return 0, errors.New("Unknown PlannerPreviewType value: " + v) - } - return &result, nil -} -func SerializePlannerPreviewType(values []PlannerPreviewType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PlannerPreviewType) isMultiValue() bool { - return false -} diff --git a/models/planner_property_rule.go b/models/planner_property_rule.go index fcafbc18474..bc169f5c032 100644 --- a/models/planner_property_rule.go +++ b/models/planner_property_rule.go @@ -70,12 +70,12 @@ func (m *PlannerPropertyRule) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["ruleKind"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerRuleKind) + val, err := n.GetEnumValue(ParsePlannerPropertyRule_ruleKind) if err != nil { return err } if val != nil { - m.SetRuleKind(val.(*PlannerRuleKind)) + m.SetRuleKind(val.(*PlannerPropertyRule_ruleKind)) } return nil } @@ -93,13 +93,13 @@ func (m *PlannerPropertyRule) GetOdataType()(*string) { return nil } // GetRuleKind gets the ruleKind property value. Identifies which type of property rules is represented by this instance. The possible values are: taskRule, bucketRule, planRule, unknownFutureValue. -func (m *PlannerPropertyRule) GetRuleKind()(*PlannerRuleKind) { +func (m *PlannerPropertyRule) GetRuleKind()(*PlannerPropertyRule_ruleKind) { val, err := m.GetBackingStore().Get("ruleKind") if err != nil { panic(err) } if val != nil { - return val.(*PlannerRuleKind) + return val.(*PlannerPropertyRule_ruleKind) } return nil } @@ -145,7 +145,7 @@ func (m *PlannerPropertyRule) SetOdataType(value *string)() { } } // SetRuleKind sets the ruleKind property value. Identifies which type of property rules is represented by this instance. The possible values are: taskRule, bucketRule, planRule, unknownFutureValue. -func (m *PlannerPropertyRule) SetRuleKind(value *PlannerRuleKind)() { +func (m *PlannerPropertyRule) SetRuleKind(value *PlannerPropertyRule_ruleKind)() { err := m.GetBackingStore().Set("ruleKind", value) if err != nil { panic(err) @@ -158,8 +158,8 @@ type PlannerPropertyRuleable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetRuleKind()(*PlannerRuleKind) + GetRuleKind()(*PlannerPropertyRule_ruleKind) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetRuleKind(value *PlannerRuleKind)() + SetRuleKind(value *PlannerPropertyRule_ruleKind)() } diff --git a/models/planner_property_rule_rule_kind.go b/models/planner_property_rule_rule_kind.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/planner_rule_kind.go b/models/planner_rule_kind.go deleted file mode 100644 index 5e52c9abeb3..00000000000 --- a/models/planner_rule_kind.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PlannerRuleKind int - -const ( - TASKRULE_PLANNERRULEKIND PlannerRuleKind = iota - BUCKETRULE_PLANNERRULEKIND - PLANRULE_PLANNERRULEKIND - UNKNOWNFUTUREVALUE_PLANNERRULEKIND -) - -func (i PlannerRuleKind) String() string { - return []string{"taskRule", "bucketRule", "planRule", "unknownFutureValue"}[i] -} -func ParsePlannerRuleKind(v string) (any, error) { - result := TASKRULE_PLANNERRULEKIND - switch v { - case "taskRule": - result = TASKRULE_PLANNERRULEKIND - case "bucketRule": - result = BUCKETRULE_PLANNERRULEKIND - case "planRule": - result = PLANRULE_PLANNERRULEKIND - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PLANNERRULEKIND - default: - return 0, errors.New("Unknown PlannerRuleKind value: " + v) - } - return &result, nil -} -func SerializePlannerRuleKind(values []PlannerRuleKind) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PlannerRuleKind) isMultiValue() bool { - return false -} diff --git a/models/planner_task.go b/models/planner_task.go index f409916827f..bcbb0b5a678 100644 --- a/models/planner_task.go +++ b/models/planner_task.go @@ -60,6 +60,17 @@ func (m *PlannerTask) GetAppliedCategories()(PlannerAppliedCategoriesable) { } return nil } +// GetArchivalInfo gets the archivalInfo property value. The archivalInfo property +func (m *PlannerTask) GetArchivalInfo()(PlannerArchivalInfoable) { + val, err := m.GetBackingStore().Get("archivalInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerArchivalInfoable) + } + return nil +} // GetAssignedToTaskBoardFormat gets the assignedToTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. func (m *PlannerTask) GetAssignedToTaskBoardFormat()(PlannerAssignedToTaskBoardTaskFormatable) { val, err := m.GetBackingStore().Get("assignedToTaskBoardFormat") @@ -237,6 +248,16 @@ func (m *PlannerTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["archivalInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerArchivalInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetArchivalInfo(val.(PlannerArchivalInfoable)) + } + return nil + } res["assignedToTaskBoardFormat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreatePlannerAssignedToTaskBoardTaskFormatFromDiscriminatorValue) if err != nil { @@ -387,6 +408,36 @@ func (m *PlannerTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } + res["isOnMyDay"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsOnMyDay(val) + } + return nil + } + res["isOnMyDayLastModifiedDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetIsOnMyDayLastModifiedDate(val) + } + return nil + } res["orderHint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -418,12 +469,12 @@ func (m *PlannerTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["previewType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerPreviewType) + val, err := n.GetEnumValue(ParsePlannerTask_previewType) if err != nil { return err } if val != nil { - m.SetPreviewType(val.(*PlannerPreviewType)) + m.SetPreviewType(val.(*PlannerTask_previewType)) } return nil } @@ -468,12 +519,12 @@ func (m *PlannerTask) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["specifiedCompletionRequirements"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerTaskCompletionRequirements) + val, err := n.GetEnumValue(ParsePlannerTask_specifiedCompletionRequirements) if err != nil { return err } if val != nil { - m.SetSpecifiedCompletionRequirements(val.(*PlannerTaskCompletionRequirements)) + m.SetSpecifiedCompletionRequirements(val.(*PlannerTask_specifiedCompletionRequirements)) } return nil } @@ -510,6 +561,39 @@ func (m *PlannerTask) GetHasDescription()(*bool) { } return nil } +// GetIsArchived gets the isArchived property value. The isArchived property +func (m *PlannerTask) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsOnMyDay gets the isOnMyDay property value. The isOnMyDay property +func (m *PlannerTask) GetIsOnMyDay()(*bool) { + val, err := m.GetBackingStore().Get("isOnMyDay") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsOnMyDayLastModifiedDate gets the isOnMyDayLastModifiedDate property value. The isOnMyDayLastModifiedDate property +func (m *PlannerTask) GetIsOnMyDayLastModifiedDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("isOnMyDayLastModifiedDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} // GetOrderHint gets the orderHint property value. Hint used to order items of this type in a list view. The format is defined as outlined here. func (m *PlannerTask) GetOrderHint()(*string) { val, err := m.GetBackingStore().Get("orderHint") @@ -544,13 +628,13 @@ func (m *PlannerTask) GetPlanId()(*string) { return nil } // GetPreviewType gets the previewType property value. This sets the type of preview that shows up on the task. Possible values are: automatic, noPreview, checklist, description, reference. -func (m *PlannerTask) GetPreviewType()(*PlannerPreviewType) { +func (m *PlannerTask) GetPreviewType()(*PlannerTask_previewType) { val, err := m.GetBackingStore().Get("previewType") if err != nil { panic(err) } if val != nil { - return val.(*PlannerPreviewType) + return val.(*PlannerTask_previewType) } return nil } @@ -599,13 +683,13 @@ func (m *PlannerTask) GetReferenceCount()(*int32) { return nil } // GetSpecifiedCompletionRequirements gets the specifiedCompletionRequirements property value. Indicates all the requirements specified on the plannerTask. Possible values are: none, checklistCompletion, unknownFutureValue. Read-only. The plannerTaskCompletionRequirementDetails in plannerTaskDetails has details of the requirements specified, if any. -func (m *PlannerTask) GetSpecifiedCompletionRequirements()(*PlannerTaskCompletionRequirements) { +func (m *PlannerTask) GetSpecifiedCompletionRequirements()(*PlannerTask_specifiedCompletionRequirements) { val, err := m.GetBackingStore().Get("specifiedCompletionRequirements") if err != nil { panic(err) } if val != nil { - return val.(*PlannerTaskCompletionRequirements) + return val.(*PlannerTask_specifiedCompletionRequirements) } return nil } @@ -649,6 +733,12 @@ func (m *PlannerTask) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteObjectValue("archivalInfo", m.GetArchivalInfo()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("assignedToTaskBoardFormat", m.GetAssignedToTaskBoardFormat()) if err != nil { @@ -739,6 +829,24 @@ func (m *PlannerTask) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isOnMyDay", m.GetIsOnMyDay()) + if err != nil { + return err + } + } + { + err = writer.WriteDateOnlyValue("isOnMyDayLastModifiedDate", m.GetIsOnMyDayLastModifiedDate()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("orderHint", m.GetOrderHint()) if err != nil { @@ -823,6 +931,13 @@ func (m *PlannerTask) SetAppliedCategories(value PlannerAppliedCategoriesable)() panic(err) } } +// SetArchivalInfo sets the archivalInfo property value. The archivalInfo property +func (m *PlannerTask) SetArchivalInfo(value PlannerArchivalInfoable)() { + err := m.GetBackingStore().Set("archivalInfo", value) + if err != nil { + panic(err) + } +} // SetAssignedToTaskBoardFormat sets the assignedToTaskBoardFormat property value. Read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. func (m *PlannerTask) SetAssignedToTaskBoardFormat(value PlannerAssignedToTaskBoardTaskFormatable)() { err := m.GetBackingStore().Set("assignedToTaskBoardFormat", value) @@ -928,6 +1043,27 @@ func (m *PlannerTask) SetHasDescription(value *bool)() { panic(err) } } +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *PlannerTask) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} +// SetIsOnMyDay sets the isOnMyDay property value. The isOnMyDay property +func (m *PlannerTask) SetIsOnMyDay(value *bool)() { + err := m.GetBackingStore().Set("isOnMyDay", value) + if err != nil { + panic(err) + } +} +// SetIsOnMyDayLastModifiedDate sets the isOnMyDayLastModifiedDate property value. The isOnMyDayLastModifiedDate property +func (m *PlannerTask) SetIsOnMyDayLastModifiedDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("isOnMyDayLastModifiedDate", value) + if err != nil { + panic(err) + } +} // SetOrderHint sets the orderHint property value. Hint used to order items of this type in a list view. The format is defined as outlined here. func (m *PlannerTask) SetOrderHint(value *string)() { err := m.GetBackingStore().Set("orderHint", value) @@ -950,7 +1086,7 @@ func (m *PlannerTask) SetPlanId(value *string)() { } } // SetPreviewType sets the previewType property value. This sets the type of preview that shows up on the task. Possible values are: automatic, noPreview, checklist, description, reference. -func (m *PlannerTask) SetPreviewType(value *PlannerPreviewType)() { +func (m *PlannerTask) SetPreviewType(value *PlannerTask_previewType)() { err := m.GetBackingStore().Set("previewType", value) if err != nil { panic(err) @@ -985,7 +1121,7 @@ func (m *PlannerTask) SetReferenceCount(value *int32)() { } } // SetSpecifiedCompletionRequirements sets the specifiedCompletionRequirements property value. Indicates all the requirements specified on the plannerTask. Possible values are: none, checklistCompletion, unknownFutureValue. Read-only. The plannerTaskCompletionRequirementDetails in plannerTaskDetails has details of the requirements specified, if any. -func (m *PlannerTask) SetSpecifiedCompletionRequirements(value *PlannerTaskCompletionRequirements)() { +func (m *PlannerTask) SetSpecifiedCompletionRequirements(value *PlannerTask_specifiedCompletionRequirements)() { err := m.GetBackingStore().Set("specifiedCompletionRequirements", value) if err != nil { panic(err) @@ -1011,6 +1147,7 @@ type PlannerTaskable interface { PlannerDeltaable GetActiveChecklistItemCount()(*int32) GetAppliedCategories()(PlannerAppliedCategoriesable) + GetArchivalInfo()(PlannerArchivalInfoable) GetAssignedToTaskBoardFormat()(PlannerAssignedToTaskBoardTaskFormatable) GetAssigneePriority()(*string) GetAssignments()(PlannerAssignmentsable) @@ -1026,19 +1163,23 @@ type PlannerTaskable interface { GetDetails()(PlannerTaskDetailsable) GetDueDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetHasDescription()(*bool) + GetIsArchived()(*bool) + GetIsOnMyDay()(*bool) + GetIsOnMyDayLastModifiedDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetOrderHint()(*string) GetPercentComplete()(*int32) GetPlanId()(*string) - GetPreviewType()(*PlannerPreviewType) + GetPreviewType()(*PlannerTask_previewType) GetPriority()(*int32) GetProgressTaskBoardFormat()(PlannerProgressTaskBoardTaskFormatable) GetRecurrence()(PlannerTaskRecurrenceable) GetReferenceCount()(*int32) - GetSpecifiedCompletionRequirements()(*PlannerTaskCompletionRequirements) + GetSpecifiedCompletionRequirements()(*PlannerTask_specifiedCompletionRequirements) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetTitle()(*string) SetActiveChecklistItemCount(value *int32)() SetAppliedCategories(value PlannerAppliedCategoriesable)() + SetArchivalInfo(value PlannerArchivalInfoable)() SetAssignedToTaskBoardFormat(value PlannerAssignedToTaskBoardTaskFormatable)() SetAssigneePriority(value *string)() SetAssignments(value PlannerAssignmentsable)() @@ -1054,15 +1195,18 @@ type PlannerTaskable interface { SetDetails(value PlannerTaskDetailsable)() SetDueDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetHasDescription(value *bool)() + SetIsArchived(value *bool)() + SetIsOnMyDay(value *bool)() + SetIsOnMyDayLastModifiedDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetOrderHint(value *string)() SetPercentComplete(value *int32)() SetPlanId(value *string)() - SetPreviewType(value *PlannerPreviewType)() + SetPreviewType(value *PlannerTask_previewType)() SetPriority(value *int32)() SetProgressTaskBoardFormat(value PlannerProgressTaskBoardTaskFormatable)() SetRecurrence(value PlannerTaskRecurrenceable)() SetReferenceCount(value *int32)() - SetSpecifiedCompletionRequirements(value *PlannerTaskCompletionRequirements)() + SetSpecifiedCompletionRequirements(value *PlannerTask_specifiedCompletionRequirements)() SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetTitle(value *string)() } diff --git a/models/planner_task_completion_requirement_details.go b/models/planner_task_completion_requirement_details.go index 964a9c282c2..6244f1bf6f1 100644 --- a/models/planner_task_completion_requirement_details.go +++ b/models/planner_task_completion_requirement_details.go @@ -62,6 +62,16 @@ func (m *PlannerTaskCompletionRequirementDetails) GetFieldDeserializers()(map[st } return nil } + res["formsRequirement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerFormsRequirementFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetFormsRequirement(val.(PlannerFormsRequirementable)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -74,6 +84,17 @@ func (m *PlannerTaskCompletionRequirementDetails) GetFieldDeserializers()(map[st } return res } +// GetFormsRequirement gets the formsRequirement property value. The formsRequirement property +func (m *PlannerTaskCompletionRequirementDetails) GetFormsRequirement()(PlannerFormsRequirementable) { + val, err := m.GetBackingStore().Get("formsRequirement") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerFormsRequirementable) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property func (m *PlannerTaskCompletionRequirementDetails) GetOdataType()(*string) { val, err := m.GetBackingStore().Get("odataType") @@ -93,6 +114,12 @@ func (m *PlannerTaskCompletionRequirementDetails) Serialize(writer i878a80d2330e return err } } + { + err := writer.WriteObjectValue("formsRequirement", m.GetFormsRequirement()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -125,6 +152,13 @@ func (m *PlannerTaskCompletionRequirementDetails) SetChecklistRequirement(value panic(err) } } +// SetFormsRequirement sets the formsRequirement property value. The formsRequirement property +func (m *PlannerTaskCompletionRequirementDetails) SetFormsRequirement(value PlannerFormsRequirementable)() { + err := m.GetBackingStore().Set("formsRequirement", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *PlannerTaskCompletionRequirementDetails) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -139,8 +173,10 @@ type PlannerTaskCompletionRequirementDetailsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetChecklistRequirement()(PlannerChecklistRequirementable) + GetFormsRequirement()(PlannerFormsRequirementable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetChecklistRequirement(value PlannerChecklistRequirementable)() + SetFormsRequirement(value PlannerFormsRequirementable)() SetOdataType(value *string)() } diff --git a/models/planner_task_completion_requirements.go b/models/planner_task_completion_requirements.go deleted file mode 100644 index 3fa4c8a953f..00000000000 --- a/models/planner_task_completion_requirements.go +++ /dev/null @@ -1,50 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type PlannerTaskCompletionRequirements int - -const ( - NONE_PLANNERTASKCOMPLETIONREQUIREMENTS PlannerTaskCompletionRequirements = iota - CHECKLISTCOMPLETION_PLANNERTASKCOMPLETIONREQUIREMENTS - UNKNOWNFUTUREVALUE_PLANNERTASKCOMPLETIONREQUIREMENTS -) - -func (i PlannerTaskCompletionRequirements) String() string { - var values []string - for p := PlannerTaskCompletionRequirements(1); p <= UNKNOWNFUTUREVALUE_PLANNERTASKCOMPLETIONREQUIREMENTS; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "checklistCompletion", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParsePlannerTaskCompletionRequirements(v string) (any, error) { - var result PlannerTaskCompletionRequirements - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_PLANNERTASKCOMPLETIONREQUIREMENTS - case "checklistCompletion": - result |= CHECKLISTCOMPLETION_PLANNERTASKCOMPLETIONREQUIREMENTS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_PLANNERTASKCOMPLETIONREQUIREMENTS - default: - return 0, errors.New("Unknown PlannerTaskCompletionRequirements value: " + v) - } - } - return &result, nil -} -func SerializePlannerTaskCompletionRequirements(values []PlannerTaskCompletionRequirements) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PlannerTaskCompletionRequirements) isMultiValue() bool { - return true -} diff --git a/models/planner_task_creation.go b/models/planner_task_creation.go index e3886a39b0f..7c5e31428b7 100644 --- a/models/planner_task_creation.go +++ b/models/planner_task_creation.go @@ -59,13 +59,13 @@ func (m *PlannerTaskCreation) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d return m.backingStore } // GetCreationSourceKind gets the creationSourceKind property value. Specifies what kind of creation source the task is created with. The possible values are: external, publication and unknownFutureValue. -func (m *PlannerTaskCreation) GetCreationSourceKind()(*PlannerCreationSourceKind) { +func (m *PlannerTaskCreation) GetCreationSourceKind()(*PlannerTaskCreation_creationSourceKind) { val, err := m.GetBackingStore().Get("creationSourceKind") if err != nil { panic(err) } if val != nil { - return val.(*PlannerCreationSourceKind) + return val.(*PlannerTaskCreation_creationSourceKind) } return nil } @@ -73,12 +73,12 @@ func (m *PlannerTaskCreation) GetCreationSourceKind()(*PlannerCreationSourceKind func (m *PlannerTaskCreation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["creationSourceKind"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerCreationSourceKind) + val, err := n.GetEnumValue(ParsePlannerTaskCreation_creationSourceKind) if err != nil { return err } if val != nil { - m.SetCreationSourceKind(val.(*PlannerCreationSourceKind)) + m.SetCreationSourceKind(val.(*PlannerTaskCreation_creationSourceKind)) } return nil } @@ -167,7 +167,7 @@ func (m *PlannerTaskCreation) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd m.backingStore = value } // SetCreationSourceKind sets the creationSourceKind property value. Specifies what kind of creation source the task is created with. The possible values are: external, publication and unknownFutureValue. -func (m *PlannerTaskCreation) SetCreationSourceKind(value *PlannerCreationSourceKind)() { +func (m *PlannerTaskCreation) SetCreationSourceKind(value *PlannerTaskCreation_creationSourceKind)() { err := m.GetBackingStore().Set("creationSourceKind", value) if err != nil { panic(err) @@ -193,11 +193,11 @@ type PlannerTaskCreationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCreationSourceKind()(*PlannerCreationSourceKind) + GetCreationSourceKind()(*PlannerTaskCreation_creationSourceKind) GetOdataType()(*string) GetTeamsPublicationInfo()(PlannerTeamsPublicationInfoable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCreationSourceKind(value *PlannerCreationSourceKind)() + SetCreationSourceKind(value *PlannerTaskCreation_creationSourceKind)() SetOdataType(value *string)() SetTeamsPublicationInfo(value PlannerTeamsPublicationInfoable)() } diff --git a/models/planner_task_creation_creation_source_kind.go b/models/planner_task_creation_creation_source_kind.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/planner_task_details.go b/models/planner_task_details.go index 7215a1e490d..34e67c37e87 100644 --- a/models/planner_task_details.go +++ b/models/planner_task_details.go @@ -85,6 +85,16 @@ func (m *PlannerTaskDetails) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["forms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerFormsDictionaryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetForms(val.(PlannerFormsDictionaryable)) + } + return nil + } res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) if err != nil { @@ -96,12 +106,12 @@ func (m *PlannerTaskDetails) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["previewType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlannerPreviewType) + val, err := n.GetEnumValue(ParsePlannerTaskDetails_previewType) if err != nil { return err } if val != nil { - m.SetPreviewType(val.(*PlannerPreviewType)) + m.SetPreviewType(val.(*PlannerTaskDetails_previewType)) } return nil } @@ -117,6 +127,17 @@ func (m *PlannerTaskDetails) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } +// GetForms gets the forms property value. The forms property +func (m *PlannerTaskDetails) GetForms()(PlannerFormsDictionaryable) { + val, err := m.GetBackingStore().Get("forms") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerFormsDictionaryable) + } + return nil +} // GetNotes gets the notes property value. Rich text description of the task. To be used by HTML-aware clients. For backwards compatibility, a plain-text version of the HTML description will be synced to the 'description' field. If this field hasn't previously been set but 'description' has been, the existing description is synchronized to 'notes' with minimal whitespace-preserving HTML markup. Setting both 'description' and 'notes' is an error and will result in an exception. func (m *PlannerTaskDetails) GetNotes()(ItemBodyable) { val, err := m.GetBackingStore().Get("notes") @@ -129,13 +150,13 @@ func (m *PlannerTaskDetails) GetNotes()(ItemBodyable) { return nil } // GetPreviewType gets the previewType property value. This sets the type of preview that shows up on the task. Possible values are: automatic, noPreview, checklist, description, reference. When set to automatic the displayed preview is chosen by the app viewing the task. -func (m *PlannerTaskDetails) GetPreviewType()(*PlannerPreviewType) { +func (m *PlannerTaskDetails) GetPreviewType()(*PlannerTaskDetails_previewType) { val, err := m.GetBackingStore().Get("previewType") if err != nil { panic(err) } if val != nil { - return val.(*PlannerPreviewType) + return val.(*PlannerTaskDetails_previewType) } return nil } @@ -174,6 +195,12 @@ func (m *PlannerTaskDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteObjectValue("forms", m.GetForms()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("notes", m.GetNotes()) if err != nil { @@ -216,6 +243,13 @@ func (m *PlannerTaskDetails) SetDescription(value *string)() { panic(err) } } +// SetForms sets the forms property value. The forms property +func (m *PlannerTaskDetails) SetForms(value PlannerFormsDictionaryable)() { + err := m.GetBackingStore().Set("forms", value) + if err != nil { + panic(err) + } +} // SetNotes sets the notes property value. Rich text description of the task. To be used by HTML-aware clients. For backwards compatibility, a plain-text version of the HTML description will be synced to the 'description' field. If this field hasn't previously been set but 'description' has been, the existing description is synchronized to 'notes' with minimal whitespace-preserving HTML markup. Setting both 'description' and 'notes' is an error and will result in an exception. func (m *PlannerTaskDetails) SetNotes(value ItemBodyable)() { err := m.GetBackingStore().Set("notes", value) @@ -224,7 +258,7 @@ func (m *PlannerTaskDetails) SetNotes(value ItemBodyable)() { } } // SetPreviewType sets the previewType property value. This sets the type of preview that shows up on the task. Possible values are: automatic, noPreview, checklist, description, reference. When set to automatic the displayed preview is chosen by the app viewing the task. -func (m *PlannerTaskDetails) SetPreviewType(value *PlannerPreviewType)() { +func (m *PlannerTaskDetails) SetPreviewType(value *PlannerTaskDetails_previewType)() { err := m.GetBackingStore().Set("previewType", value) if err != nil { panic(err) @@ -244,13 +278,15 @@ type PlannerTaskDetailsable interface { GetChecklist()(PlannerChecklistItemsable) GetCompletionRequirements()(PlannerTaskCompletionRequirementDetailsable) GetDescription()(*string) + GetForms()(PlannerFormsDictionaryable) GetNotes()(ItemBodyable) - GetPreviewType()(*PlannerPreviewType) + GetPreviewType()(*PlannerTaskDetails_previewType) GetReferences()(PlannerExternalReferencesable) SetChecklist(value PlannerChecklistItemsable)() SetCompletionRequirements(value PlannerTaskCompletionRequirementDetailsable)() SetDescription(value *string)() + SetForms(value PlannerFormsDictionaryable)() SetNotes(value ItemBodyable)() - SetPreviewType(value *PlannerPreviewType)() + SetPreviewType(value *PlannerTaskDetails_previewType)() SetReferences(value PlannerExternalReferencesable)() } diff --git a/models/planner_task_details_preview_type.go b/models/planner_task_details_preview_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/planner_task_preview_type.go b/models/planner_task_preview_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/planner_task_property_rule.go b/models/planner_task_property_rule.go index 7b608a08b72..4e935a6e001 100644 --- a/models/planner_task_property_rule.go +++ b/models/planner_task_property_rule.go @@ -168,6 +168,16 @@ func (m *PlannerTaskPropertyRule) GetFieldDeserializers()(map[string]func(i878a8 } return nil } + res["forms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerFieldRulesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetForms(val.(PlannerFieldRulesable)) + } + return nil + } res["move"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -308,6 +318,17 @@ func (m *PlannerTaskPropertyRule) GetFieldDeserializers()(map[string]func(i878a8 } return res } +// GetForms gets the forms property value. The forms property +func (m *PlannerTaskPropertyRule) GetForms()(PlannerFieldRulesable) { + val, err := m.GetBackingStore().Get("forms") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerFieldRulesable) + } + return nil +} // GetMove gets the move property value. Rules and restrictions for moving the task between buckets or plans. Accepted values are allow, moveBetweenPlans, moveBetweenBuckets, and block. func (m *PlannerTaskPropertyRule) GetMove()([]string) { val, err := m.GetBackingStore().Get("move") @@ -449,6 +470,12 @@ func (m *PlannerTaskPropertyRule) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteObjectValue("forms", m.GetForms()) + if err != nil { + return err + } + } if m.GetMove() != nil { err = writer.WriteCollectionOfStringValues("move", m.GetMove()) if err != nil { @@ -547,6 +574,13 @@ func (m *PlannerTaskPropertyRule) SetDueDate(value []string)() { panic(err) } } +// SetForms sets the forms property value. The forms property +func (m *PlannerTaskPropertyRule) SetForms(value PlannerFieldRulesable)() { + err := m.GetBackingStore().Set("forms", value) + if err != nil { + panic(err) + } +} // SetMove sets the move property value. Rules and restrictions for moving the task between buckets or plans. Accepted values are allow, moveBetweenPlans, moveBetweenBuckets, and block. func (m *PlannerTaskPropertyRule) SetMove(value []string)() { err := m.GetBackingStore().Set("move", value) @@ -620,6 +654,7 @@ type PlannerTaskPropertyRuleable interface { GetCompletionRequirements()([]string) GetDelete()([]string) GetDueDate()([]string) + GetForms()(PlannerFieldRulesable) GetMove()([]string) GetNotes()([]string) GetOrder()([]string) @@ -635,6 +670,7 @@ type PlannerTaskPropertyRuleable interface { SetCompletionRequirements(value []string)() SetDelete(value []string)() SetDueDate(value []string)() + SetForms(value PlannerFieldRulesable)() SetMove(value []string)() SetNotes(value []string)() SetOrder(value []string)() diff --git a/models/planner_task_specified_completion_requirements.go b/models/planner_task_specified_completion_requirements.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/platform_credential_authentication_method.go b/models/platform_credential_authentication_method.go index de0f5ebd656..aeaa53956e3 100644 --- a/models/platform_credential_authentication_method.go +++ b/models/platform_credential_authentication_method.go @@ -89,46 +89,46 @@ func (m *PlatformCredentialAuthenticationMethod) GetFieldDeserializers()(map[str return nil } res["keyStrength"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationMethodKeyStrength) + val, err := n.GetEnumValue(ParsePlatformCredentialAuthenticationMethod_keyStrength) if err != nil { return err } if val != nil { - m.SetKeyStrength(val.(*AuthenticationMethodKeyStrength)) + m.SetKeyStrength(val.(*PlatformCredentialAuthenticationMethod_keyStrength)) } return nil } res["platform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationMethodPlatform) + val, err := n.GetEnumValue(ParsePlatformCredentialAuthenticationMethod_platform) if err != nil { return err } if val != nil { - m.SetPlatform(val.(*AuthenticationMethodPlatform)) + m.SetPlatform(val.(*PlatformCredentialAuthenticationMethod_platform)) } return nil } return res } // GetKeyStrength gets the keyStrength property value. Key strength of this Platform Credential key. Possible values are: normal, weak, unknown. -func (m *PlatformCredentialAuthenticationMethod) GetKeyStrength()(*AuthenticationMethodKeyStrength) { +func (m *PlatformCredentialAuthenticationMethod) GetKeyStrength()(*PlatformCredentialAuthenticationMethod_keyStrength) { val, err := m.GetBackingStore().Get("keyStrength") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationMethodKeyStrength) + return val.(*PlatformCredentialAuthenticationMethod_keyStrength) } return nil } // GetPlatform gets the platform property value. Platform on which this Platform Credential key is present. Possible values are: unknown, windows, macOS,iOS, android, linux. -func (m *PlatformCredentialAuthenticationMethod) GetPlatform()(*AuthenticationMethodPlatform) { +func (m *PlatformCredentialAuthenticationMethod) GetPlatform()(*PlatformCredentialAuthenticationMethod_platform) { val, err := m.GetBackingStore().Get("platform") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationMethodPlatform) + return val.(*PlatformCredentialAuthenticationMethod_platform) } return nil } @@ -194,14 +194,14 @@ func (m *PlatformCredentialAuthenticationMethod) SetDisplayName(value *string)() } } // SetKeyStrength sets the keyStrength property value. Key strength of this Platform Credential key. Possible values are: normal, weak, unknown. -func (m *PlatformCredentialAuthenticationMethod) SetKeyStrength(value *AuthenticationMethodKeyStrength)() { +func (m *PlatformCredentialAuthenticationMethod) SetKeyStrength(value *PlatformCredentialAuthenticationMethod_keyStrength)() { err := m.GetBackingStore().Set("keyStrength", value) if err != nil { panic(err) } } // SetPlatform sets the platform property value. Platform on which this Platform Credential key is present. Possible values are: unknown, windows, macOS,iOS, android, linux. -func (m *PlatformCredentialAuthenticationMethod) SetPlatform(value *AuthenticationMethodPlatform)() { +func (m *PlatformCredentialAuthenticationMethod) SetPlatform(value *PlatformCredentialAuthenticationMethod_platform)() { err := m.GetBackingStore().Set("platform", value) if err != nil { panic(err) @@ -214,11 +214,11 @@ type PlatformCredentialAuthenticationMethodable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDevice()(Deviceable) GetDisplayName()(*string) - GetKeyStrength()(*AuthenticationMethodKeyStrength) - GetPlatform()(*AuthenticationMethodPlatform) + GetKeyStrength()(*PlatformCredentialAuthenticationMethod_keyStrength) + GetPlatform()(*PlatformCredentialAuthenticationMethod_platform) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDevice(value Deviceable)() SetDisplayName(value *string)() - SetKeyStrength(value *AuthenticationMethodKeyStrength)() - SetPlatform(value *AuthenticationMethodPlatform)() + SetKeyStrength(value *PlatformCredentialAuthenticationMethod_keyStrength)() + SetPlatform(value *PlatformCredentialAuthenticationMethod_platform)() } diff --git a/models/platform_credential_authentication_method_key_strength.go b/models/platform_credential_authentication_method_key_strength.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/platform_credential_authentication_method_platform.go b/models/platform_credential_authentication_method_platform.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/play_prompt_completion_reason.go b/models/play_prompt_completion_reason.go deleted file mode 100644 index c7b58465fee..00000000000 --- a/models/play_prompt_completion_reason.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PlayPromptCompletionReason int - -const ( - UNKNOWN_PLAYPROMPTCOMPLETIONREASON PlayPromptCompletionReason = iota - COMPLETEDSUCCESSFULLY_PLAYPROMPTCOMPLETIONREASON - MEDIAOPERATIONCANCELED_PLAYPROMPTCOMPLETIONREASON - UNKNOWNFUTUREVALUE_PLAYPROMPTCOMPLETIONREASON -) - -func (i PlayPromptCompletionReason) String() string { - return []string{"unknown", "completedSuccessfully", "mediaOperationCanceled", "unknownFutureValue"}[i] -} -func ParsePlayPromptCompletionReason(v string) (any, error) { - result := UNKNOWN_PLAYPROMPTCOMPLETIONREASON - switch v { - case "unknown": - result = UNKNOWN_PLAYPROMPTCOMPLETIONREASON - case "completedSuccessfully": - result = COMPLETEDSUCCESSFULLY_PLAYPROMPTCOMPLETIONREASON - case "mediaOperationCanceled": - result = MEDIAOPERATIONCANCELED_PLAYPROMPTCOMPLETIONREASON - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PLAYPROMPTCOMPLETIONREASON - default: - return 0, errors.New("Unknown PlayPromptCompletionReason value: " + v) - } - return &result, nil -} -func SerializePlayPromptCompletionReason(values []PlayPromptCompletionReason) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PlayPromptCompletionReason) isMultiValue() bool { - return false -} diff --git a/models/play_prompt_operation.go b/models/play_prompt_operation.go index 3837f344964..c547b3abb68 100644 --- a/models/play_prompt_operation.go +++ b/models/play_prompt_operation.go @@ -20,13 +20,13 @@ func CreatePlayPromptOperationFromDiscriminatorValue(parseNode i878a80d2330e89d2 return NewPlayPromptOperation(), nil } // GetCompletionReason gets the completionReason property value. Possible values are: unknown, completedSuccessfully, mediaOperationCanceled. -func (m *PlayPromptOperation) GetCompletionReason()(*PlayPromptCompletionReason) { +func (m *PlayPromptOperation) GetCompletionReason()(*PlayPromptOperation_completionReason) { val, err := m.GetBackingStore().Get("completionReason") if err != nil { panic(err) } if val != nil { - return val.(*PlayPromptCompletionReason) + return val.(*PlayPromptOperation_completionReason) } return nil } @@ -34,12 +34,12 @@ func (m *PlayPromptOperation) GetCompletionReason()(*PlayPromptCompletionReason) func (m *PlayPromptOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CommsOperation.GetFieldDeserializers() res["completionReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePlayPromptCompletionReason) + val, err := n.GetEnumValue(ParsePlayPromptOperation_completionReason) if err != nil { return err } if val != nil { - m.SetCompletionReason(val.(*PlayPromptCompletionReason)) + m.SetCompletionReason(val.(*PlayPromptOperation_completionReason)) } return nil } @@ -61,7 +61,7 @@ func (m *PlayPromptOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef return nil } // SetCompletionReason sets the completionReason property value. Possible values are: unknown, completedSuccessfully, mediaOperationCanceled. -func (m *PlayPromptOperation) SetCompletionReason(value *PlayPromptCompletionReason)() { +func (m *PlayPromptOperation) SetCompletionReason(value *PlayPromptOperation_completionReason)() { err := m.GetBackingStore().Set("completionReason", value) if err != nil { panic(err) @@ -71,6 +71,6 @@ func (m *PlayPromptOperation) SetCompletionReason(value *PlayPromptCompletionRea type PlayPromptOperationable interface { CommsOperationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCompletionReason()(*PlayPromptCompletionReason) - SetCompletionReason(value *PlayPromptCompletionReason)() + GetCompletionReason()(*PlayPromptOperation_completionReason) + SetCompletionReason(value *PlayPromptOperation_completionReason)() } diff --git a/models/play_prompt_operation_completion_reason.go b/models/play_prompt_operation_completion_reason.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/policy_scope.go b/models/policy_scope.go deleted file mode 100644 index aba1bebbdb6..00000000000 --- a/models/policy_scope.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PolicyScope int - -const ( - NONE_POLICYSCOPE PolicyScope = iota - ALL_POLICYSCOPE - SELECTED_POLICYSCOPE - UNKNOWNFUTUREVALUE_POLICYSCOPE -) - -func (i PolicyScope) String() string { - return []string{"none", "all", "selected", "unknownFutureValue"}[i] -} -func ParsePolicyScope(v string) (any, error) { - result := NONE_POLICYSCOPE - switch v { - case "none": - result = NONE_POLICYSCOPE - case "all": - result = ALL_POLICYSCOPE - case "selected": - result = SELECTED_POLICYSCOPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_POLICYSCOPE - default: - return 0, errors.New("Unknown PolicyScope value: " + v) - } - return &result, nil -} -func SerializePolicyScope(values []PolicyScope) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PolicyScope) isMultiValue() bool { - return false -} diff --git a/models/positive_reinforcement_notification.go b/models/positive_reinforcement_notification.go index 9e18366fa6c..f1a216bad15 100644 --- a/models/positive_reinforcement_notification.go +++ b/models/positive_reinforcement_notification.go @@ -22,13 +22,13 @@ func CreatePositiveReinforcementNotificationFromDiscriminatorValue(parseNode i87 return NewPositiveReinforcementNotification(), nil } // GetDeliveryPreference gets the deliveryPreference property value. Delivery preference. Possible values are: unknown, deliverImmedietly, deliverAfterCampaignEnd, unknownFutureValue. -func (m *PositiveReinforcementNotification) GetDeliveryPreference()(*NotificationDeliveryPreference) { +func (m *PositiveReinforcementNotification) GetDeliveryPreference()(*PositiveReinforcementNotification_deliveryPreference) { val, err := m.GetBackingStore().Get("deliveryPreference") if err != nil { panic(err) } if val != nil { - return val.(*NotificationDeliveryPreference) + return val.(*PositiveReinforcementNotification_deliveryPreference) } return nil } @@ -36,12 +36,12 @@ func (m *PositiveReinforcementNotification) GetDeliveryPreference()(*Notificatio func (m *PositiveReinforcementNotification) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseEndUserNotification.GetFieldDeserializers() res["deliveryPreference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNotificationDeliveryPreference) + val, err := n.GetEnumValue(ParsePositiveReinforcementNotification_deliveryPreference) if err != nil { return err } if val != nil { - m.SetDeliveryPreference(val.(*NotificationDeliveryPreference)) + m.SetDeliveryPreference(val.(*PositiveReinforcementNotification_deliveryPreference)) } return nil } @@ -63,7 +63,7 @@ func (m *PositiveReinforcementNotification) Serialize(writer i878a80d2330e89d268 return nil } // SetDeliveryPreference sets the deliveryPreference property value. Delivery preference. Possible values are: unknown, deliverImmedietly, deliverAfterCampaignEnd, unknownFutureValue. -func (m *PositiveReinforcementNotification) SetDeliveryPreference(value *NotificationDeliveryPreference)() { +func (m *PositiveReinforcementNotification) SetDeliveryPreference(value *PositiveReinforcementNotification_deliveryPreference)() { err := m.GetBackingStore().Set("deliveryPreference", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *PositiveReinforcementNotification) SetDeliveryPreference(value *Notific type PositiveReinforcementNotificationable interface { BaseEndUserNotificationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDeliveryPreference()(*NotificationDeliveryPreference) - SetDeliveryPreference(value *NotificationDeliveryPreference)() + GetDeliveryPreference()(*PositiveReinforcementNotification_deliveryPreference) + SetDeliveryPreference(value *PositiveReinforcementNotification_deliveryPreference)() } diff --git a/models/positive_reinforcement_notification_delivery_preference.go b/models/positive_reinforcement_notification_delivery_preference.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/post.go b/models/post.go index 5790c5a227a..0f6756a1b77 100644 --- a/models/post.go +++ b/models/post.go @@ -163,12 +163,12 @@ func (m *Post) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["importance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseImportance) + val, err := n.GetEnumValue(ParsePost_importance) if err != nil { return err } if val != nil { - m.SetImportance(val.(*Importance)) + m.SetImportance(val.(*Post_importance)) } return nil } @@ -291,13 +291,13 @@ func (m *Post) GetHasAttachments()(*bool) { return nil } // GetImportance gets the importance property value. The importance of a group post: low, normal, high. -func (m *Post) GetImportance()(*Importance) { +func (m *Post) GetImportance()(*Post_importance) { val, err := m.GetBackingStore().Get("importance") if err != nil { panic(err) } if val != nil { - return val.(*Importance) + return val.(*Post_importance) } return nil } @@ -563,7 +563,7 @@ func (m *Post) SetHasAttachments(value *bool)() { } } // SetImportance sets the importance property value. The importance of a group post: low, normal, high. -func (m *Post) SetImportance(value *Importance)() { +func (m *Post) SetImportance(value *Post_importance)() { err := m.GetBackingStore().Set("importance", value) if err != nil { panic(err) @@ -629,7 +629,7 @@ type Postable interface { GetExtensions()([]Extensionable) GetFrom()(Recipientable) GetHasAttachments()(*bool) - GetImportance()(*Importance) + GetImportance()(*Post_importance) GetInReplyTo()(Postable) GetMentions()([]Mentionable) GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedPropertyable) @@ -644,7 +644,7 @@ type Postable interface { SetExtensions(value []Extensionable)() SetFrom(value Recipientable)() SetHasAttachments(value *bool)() - SetImportance(value *Importance)() + SetImportance(value *Post_importance)() SetInReplyTo(value Postable)() SetMentions(value []Mentionable)() SetMultiValueExtendedProperties(value []MultiValueLegacyExtendedPropertyable)() diff --git a/models/post_importance.go b/models/post_importance.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/post_type.go b/models/post_type.go deleted file mode 100644 index 0e02f6d7bb4..00000000000 --- a/models/post_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PostType int - -const ( - REGULAR_POSTTYPE PostType = iota - QUICK_POSTTYPE - STRATEGIC_POSTTYPE - UNKNOWNFUTUREVALUE_POSTTYPE -) - -func (i PostType) String() string { - return []string{"regular", "quick", "strategic", "unknownFutureValue"}[i] -} -func ParsePostType(v string) (any, error) { - result := REGULAR_POSTTYPE - switch v { - case "regular": - result = REGULAR_POSTTYPE - case "quick": - result = QUICK_POSTTYPE - case "strategic": - result = STRATEGIC_POSTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_POSTTYPE - default: - return 0, errors.New("Unknown PostType value: " + v) - } - return &result, nil -} -func SerializePostType(values []PostType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PostType) isMultiValue() bool { - return false -} diff --git a/models/print_color_mode.go b/models/print_color_mode.go deleted file mode 100644 index 8da857a4c1c..00000000000 --- a/models/print_color_mode.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type PrintColorMode int - -const ( - BLACKANDWHITE_PRINTCOLORMODE PrintColorMode = iota - GRAYSCALE_PRINTCOLORMODE - COLOR_PRINTCOLORMODE - AUTO_PRINTCOLORMODE - UNKNOWNFUTUREVALUE_PRINTCOLORMODE -) - -func (i PrintColorMode) String() string { - return []string{"blackAndWhite", "grayscale", "color", "auto", "unknownFutureValue"}[i] -} -func ParsePrintColorMode(v string) (any, error) { - result := BLACKANDWHITE_PRINTCOLORMODE - switch v { - case "blackAndWhite": - result = BLACKANDWHITE_PRINTCOLORMODE - case "grayscale": - result = GRAYSCALE_PRINTCOLORMODE - case "color": - result = COLOR_PRINTCOLORMODE - case "auto": - result = AUTO_PRINTCOLORMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRINTCOLORMODE - default: - return 0, errors.New("Unknown PrintColorMode value: " + v) - } - return &result, nil -} -func SerializePrintColorMode(values []PrintColorMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrintColorMode) isMultiValue() bool { - return false -} diff --git a/models/print_duplex_mode.go b/models/print_duplex_mode.go deleted file mode 100644 index efb41489941..00000000000 --- a/models/print_duplex_mode.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PrintDuplexMode int - -const ( - FLIPONLONGEDGE_PRINTDUPLEXMODE PrintDuplexMode = iota - FLIPONSHORTEDGE_PRINTDUPLEXMODE - ONESIDED_PRINTDUPLEXMODE - UNKNOWNFUTUREVALUE_PRINTDUPLEXMODE -) - -func (i PrintDuplexMode) String() string { - return []string{"flipOnLongEdge", "flipOnShortEdge", "oneSided", "unknownFutureValue"}[i] -} -func ParsePrintDuplexMode(v string) (any, error) { - result := FLIPONLONGEDGE_PRINTDUPLEXMODE - switch v { - case "flipOnLongEdge": - result = FLIPONLONGEDGE_PRINTDUPLEXMODE - case "flipOnShortEdge": - result = FLIPONSHORTEDGE_PRINTDUPLEXMODE - case "oneSided": - result = ONESIDED_PRINTDUPLEXMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRINTDUPLEXMODE - default: - return 0, errors.New("Unknown PrintDuplexMode value: " + v) - } - return &result, nil -} -func SerializePrintDuplexMode(values []PrintDuplexMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrintDuplexMode) isMultiValue() bool { - return false -} diff --git a/models/print_job_configuration.go b/models/print_job_configuration.go index e49c1ed1473..98fc6d1c71d 100644 --- a/models/print_job_configuration.go +++ b/models/print_job_configuration.go @@ -50,13 +50,13 @@ func (m *PrintJobConfiguration) GetCollate()(*bool) { return nil } // GetColorMode gets the colorMode property value. The color mode the printer should use to print the job. Valid values are described in the table below. Read-only. -func (m *PrintJobConfiguration) GetColorMode()(*PrintColorMode) { +func (m *PrintJobConfiguration) GetColorMode()(*PrintJobConfiguration_colorMode) { val, err := m.GetBackingStore().Get("colorMode") if err != nil { panic(err) } if val != nil { - return val.(*PrintColorMode) + return val.(*PrintJobConfiguration_colorMode) } return nil } @@ -83,24 +83,24 @@ func (m *PrintJobConfiguration) GetDpi()(*int32) { return nil } // GetDuplexMode gets the duplexMode property value. The duplex mode the printer should use when printing the job. Valid values are described in the table below. Read-only. -func (m *PrintJobConfiguration) GetDuplexMode()(*PrintDuplexMode) { +func (m *PrintJobConfiguration) GetDuplexMode()(*PrintJobConfiguration_duplexMode) { val, err := m.GetBackingStore().Get("duplexMode") if err != nil { panic(err) } if val != nil { - return val.(*PrintDuplexMode) + return val.(*PrintJobConfiguration_duplexMode) } return nil } // GetFeedOrientation gets the feedOrientation property value. The orientation to use when feeding media into the printer. Valid values are described in the following table. Read-only. -func (m *PrintJobConfiguration) GetFeedOrientation()(*PrinterFeedOrientation) { +func (m *PrintJobConfiguration) GetFeedOrientation()(*PrintJobConfiguration_feedOrientation) { val, err := m.GetBackingStore().Get("feedOrientation") if err != nil { panic(err) } if val != nil { - return val.(*PrinterFeedOrientation) + return val.(*PrintJobConfiguration_feedOrientation) } return nil } @@ -118,12 +118,12 @@ func (m *PrintJobConfiguration) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["colorMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintColorMode) + val, err := n.GetEnumValue(ParsePrintJobConfiguration_colorMode) if err != nil { return err } if val != nil { - m.SetColorMode(val.(*PrintColorMode)) + m.SetColorMode(val.(*PrintJobConfiguration_colorMode)) } return nil } @@ -148,35 +148,35 @@ func (m *PrintJobConfiguration) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["duplexMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintDuplexMode) + val, err := n.GetEnumValue(ParsePrintJobConfiguration_duplexMode) if err != nil { return err } if val != nil { - m.SetDuplexMode(val.(*PrintDuplexMode)) + m.SetDuplexMode(val.(*PrintJobConfiguration_duplexMode)) } return nil } res["feedOrientation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrinterFeedOrientation) + val, err := n.GetEnumValue(ParsePrintJobConfiguration_feedOrientation) if err != nil { return err } if val != nil { - m.SetFeedOrientation(val.(*PrinterFeedOrientation)) + m.SetFeedOrientation(val.(*PrintJobConfiguration_feedOrientation)) } return nil } res["finishings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintFinishing) + val, err := n.GetCollectionOfEnumValues(ParsePrintJobConfiguration_finishings) if err != nil { return err } if val != nil { - res := make([]PrintFinishing, len(val)) + res := make([]PrintJobConfiguration_finishings, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintFinishing)) + res[i] = *(v.(*PrintJobConfiguration_finishings)) } } m.SetFinishings(res) @@ -234,12 +234,12 @@ func (m *PrintJobConfiguration) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["multipageLayout"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintMultipageLayout) + val, err := n.GetEnumValue(ParsePrintJobConfiguration_multipageLayout) if err != nil { return err } if val != nil { - m.SetMultipageLayout(val.(*PrintMultipageLayout)) + m.SetMultipageLayout(val.(*PrintJobConfiguration_multipageLayout)) } return nil } @@ -254,12 +254,12 @@ func (m *PrintJobConfiguration) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["orientation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintOrientation) + val, err := n.GetEnumValue(ParsePrintJobConfiguration_orientation) if err != nil { return err } if val != nil { - m.SetOrientation(val.(*PrintOrientation)) + m.SetOrientation(val.(*PrintJobConfiguration_orientation)) } return nil } @@ -300,35 +300,35 @@ func (m *PrintJobConfiguration) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["quality"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintQuality) + val, err := n.GetEnumValue(ParsePrintJobConfiguration_quality) if err != nil { return err } if val != nil { - m.SetQuality(val.(*PrintQuality)) + m.SetQuality(val.(*PrintJobConfiguration_quality)) } return nil } res["scaling"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintScaling) + val, err := n.GetEnumValue(ParsePrintJobConfiguration_scaling) if err != nil { return err } if val != nil { - m.SetScaling(val.(*PrintScaling)) + m.SetScaling(val.(*PrintJobConfiguration_scaling)) } return nil } return res } // GetFinishings gets the finishings property value. Finishing processes to use when printing. -func (m *PrintJobConfiguration) GetFinishings()([]PrintFinishing) { +func (m *PrintJobConfiguration) GetFinishings()([]PrintJobConfiguration_finishings) { val, err := m.GetBackingStore().Get("finishings") if err != nil { panic(err) } if val != nil { - return val.([]PrintFinishing) + return val.([]PrintJobConfiguration_finishings) } return nil } @@ -388,13 +388,13 @@ func (m *PrintJobConfiguration) GetMediaType()(*string) { return nil } // GetMultipageLayout gets the multipageLayout property value. The direction to lay out pages when multiple pages are being printed per sheet. Valid values are described in the following table. -func (m *PrintJobConfiguration) GetMultipageLayout()(*PrintMultipageLayout) { +func (m *PrintJobConfiguration) GetMultipageLayout()(*PrintJobConfiguration_multipageLayout) { val, err := m.GetBackingStore().Get("multipageLayout") if err != nil { panic(err) } if val != nil { - return val.(*PrintMultipageLayout) + return val.(*PrintJobConfiguration_multipageLayout) } return nil } @@ -410,13 +410,13 @@ func (m *PrintJobConfiguration) GetOdataType()(*string) { return nil } // GetOrientation gets the orientation property value. The orientation setting the printer should use when printing the job. Valid values are described in the following table. -func (m *PrintJobConfiguration) GetOrientation()(*PrintOrientation) { +func (m *PrintJobConfiguration) GetOrientation()(*PrintJobConfiguration_orientation) { val, err := m.GetBackingStore().Get("orientation") if err != nil { panic(err) } if val != nil { - return val.(*PrintOrientation) + return val.(*PrintJobConfiguration_orientation) } return nil } @@ -454,24 +454,24 @@ func (m *PrintJobConfiguration) GetPagesPerSheet()(*int32) { return nil } // GetQuality gets the quality property value. The print quality to use when printing the job. Valid values are described in the table below. Read-only. -func (m *PrintJobConfiguration) GetQuality()(*PrintQuality) { +func (m *PrintJobConfiguration) GetQuality()(*PrintJobConfiguration_quality) { val, err := m.GetBackingStore().Get("quality") if err != nil { panic(err) } if val != nil { - return val.(*PrintQuality) + return val.(*PrintJobConfiguration_quality) } return nil } // GetScaling gets the scaling property value. Specifies how the printer should scale the document data to fit the requested media. Valid values are described in the following table. -func (m *PrintJobConfiguration) GetScaling()(*PrintScaling) { +func (m *PrintJobConfiguration) GetScaling()(*PrintJobConfiguration_scaling) { val, err := m.GetBackingStore().Get("scaling") if err != nil { panic(err) } if val != nil { - return val.(*PrintScaling) + return val.(*PrintJobConfiguration_scaling) } return nil } @@ -517,7 +517,7 @@ func (m *PrintJobConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487e } } if m.GetFinishings() != nil { - err := writer.WriteCollectionOfStringValues("finishings", SerializePrintFinishing(m.GetFinishings())) + err := writer.WriteCollectionOfStringValues("finishings", SerializePrintJobConfiguration_finishings(m.GetFinishings())) if err != nil { return err } @@ -637,7 +637,7 @@ func (m *PrintJobConfiguration) SetCollate(value *bool)() { } } // SetColorMode sets the colorMode property value. The color mode the printer should use to print the job. Valid values are described in the table below. Read-only. -func (m *PrintJobConfiguration) SetColorMode(value *PrintColorMode)() { +func (m *PrintJobConfiguration) SetColorMode(value *PrintJobConfiguration_colorMode)() { err := m.GetBackingStore().Set("colorMode", value) if err != nil { panic(err) @@ -658,21 +658,21 @@ func (m *PrintJobConfiguration) SetDpi(value *int32)() { } } // SetDuplexMode sets the duplexMode property value. The duplex mode the printer should use when printing the job. Valid values are described in the table below. Read-only. -func (m *PrintJobConfiguration) SetDuplexMode(value *PrintDuplexMode)() { +func (m *PrintJobConfiguration) SetDuplexMode(value *PrintJobConfiguration_duplexMode)() { err := m.GetBackingStore().Set("duplexMode", value) if err != nil { panic(err) } } // SetFeedOrientation sets the feedOrientation property value. The orientation to use when feeding media into the printer. Valid values are described in the following table. Read-only. -func (m *PrintJobConfiguration) SetFeedOrientation(value *PrinterFeedOrientation)() { +func (m *PrintJobConfiguration) SetFeedOrientation(value *PrintJobConfiguration_feedOrientation)() { err := m.GetBackingStore().Set("feedOrientation", value) if err != nil { panic(err) } } // SetFinishings sets the finishings property value. Finishing processes to use when printing. -func (m *PrintJobConfiguration) SetFinishings(value []PrintFinishing)() { +func (m *PrintJobConfiguration) SetFinishings(value []PrintJobConfiguration_finishings)() { err := m.GetBackingStore().Set("finishings", value) if err != nil { panic(err) @@ -714,7 +714,7 @@ func (m *PrintJobConfiguration) SetMediaType(value *string)() { } } // SetMultipageLayout sets the multipageLayout property value. The direction to lay out pages when multiple pages are being printed per sheet. Valid values are described in the following table. -func (m *PrintJobConfiguration) SetMultipageLayout(value *PrintMultipageLayout)() { +func (m *PrintJobConfiguration) SetMultipageLayout(value *PrintJobConfiguration_multipageLayout)() { err := m.GetBackingStore().Set("multipageLayout", value) if err != nil { panic(err) @@ -728,7 +728,7 @@ func (m *PrintJobConfiguration) SetOdataType(value *string)() { } } // SetOrientation sets the orientation property value. The orientation setting the printer should use when printing the job. Valid values are described in the following table. -func (m *PrintJobConfiguration) SetOrientation(value *PrintOrientation)() { +func (m *PrintJobConfiguration) SetOrientation(value *PrintJobConfiguration_orientation)() { err := m.GetBackingStore().Set("orientation", value) if err != nil { panic(err) @@ -756,14 +756,14 @@ func (m *PrintJobConfiguration) SetPagesPerSheet(value *int32)() { } } // SetQuality sets the quality property value. The print quality to use when printing the job. Valid values are described in the table below. Read-only. -func (m *PrintJobConfiguration) SetQuality(value *PrintQuality)() { +func (m *PrintJobConfiguration) SetQuality(value *PrintJobConfiguration_quality)() { err := m.GetBackingStore().Set("quality", value) if err != nil { panic(err) } } // SetScaling sets the scaling property value. Specifies how the printer should scale the document data to fit the requested media. Valid values are described in the following table. -func (m *PrintJobConfiguration) SetScaling(value *PrintScaling)() { +func (m *PrintJobConfiguration) SetScaling(value *PrintJobConfiguration_scaling)() { err := m.GetBackingStore().Set("scaling", value) if err != nil { panic(err) @@ -776,44 +776,44 @@ type PrintJobConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCollate()(*bool) - GetColorMode()(*PrintColorMode) + GetColorMode()(*PrintJobConfiguration_colorMode) GetCopies()(*int32) GetDpi()(*int32) - GetDuplexMode()(*PrintDuplexMode) - GetFeedOrientation()(*PrinterFeedOrientation) - GetFinishings()([]PrintFinishing) + GetDuplexMode()(*PrintJobConfiguration_duplexMode) + GetFeedOrientation()(*PrintJobConfiguration_feedOrientation) + GetFinishings()([]PrintJobConfiguration_finishings) GetFitPdfToPage()(*bool) GetInputBin()(*string) GetMargin()(PrintMarginable) GetMediaSize()(*string) GetMediaType()(*string) - GetMultipageLayout()(*PrintMultipageLayout) + GetMultipageLayout()(*PrintJobConfiguration_multipageLayout) GetOdataType()(*string) - GetOrientation()(*PrintOrientation) + GetOrientation()(*PrintJobConfiguration_orientation) GetOutputBin()(*string) GetPageRanges()([]IntegerRangeable) GetPagesPerSheet()(*int32) - GetQuality()(*PrintQuality) - GetScaling()(*PrintScaling) + GetQuality()(*PrintJobConfiguration_quality) + GetScaling()(*PrintJobConfiguration_scaling) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCollate(value *bool)() - SetColorMode(value *PrintColorMode)() + SetColorMode(value *PrintJobConfiguration_colorMode)() SetCopies(value *int32)() SetDpi(value *int32)() - SetDuplexMode(value *PrintDuplexMode)() - SetFeedOrientation(value *PrinterFeedOrientation)() - SetFinishings(value []PrintFinishing)() + SetDuplexMode(value *PrintJobConfiguration_duplexMode)() + SetFeedOrientation(value *PrintJobConfiguration_feedOrientation)() + SetFinishings(value []PrintJobConfiguration_finishings)() SetFitPdfToPage(value *bool)() SetInputBin(value *string)() SetMargin(value PrintMarginable)() SetMediaSize(value *string)() SetMediaType(value *string)() - SetMultipageLayout(value *PrintMultipageLayout)() + SetMultipageLayout(value *PrintJobConfiguration_multipageLayout)() SetOdataType(value *string)() - SetOrientation(value *PrintOrientation)() + SetOrientation(value *PrintJobConfiguration_orientation)() SetOutputBin(value *string)() SetPageRanges(value []IntegerRangeable)() SetPagesPerSheet(value *int32)() - SetQuality(value *PrintQuality)() - SetScaling(value *PrintScaling)() + SetQuality(value *PrintJobConfiguration_quality)() + SetScaling(value *PrintJobConfiguration_scaling)() } diff --git a/models/print_job_configuration_color_mode.go b/models/print_job_configuration_color_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_job_configuration_duplex_mode.go b/models/print_job_configuration_duplex_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_job_configuration_feed_orientation.go b/models/print_job_configuration_feed_orientation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_job_configuration_finishings.go b/models/print_job_configuration_finishings.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_job_configuration_multipage_layout.go b/models/print_job_configuration_multipage_layout.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_job_configuration_orientation.go b/models/print_job_configuration_orientation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_job_configuration_quality.go b/models/print_job_configuration_quality.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_job_configuration_scaling.go b/models/print_job_configuration_scaling.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_job_status.go b/models/print_job_status.go index 96d3f34bcee..71f7fa48448 100644 --- a/models/print_job_status.go +++ b/models/print_job_status.go @@ -131,12 +131,12 @@ func (m *PrintJobStatus) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["processingState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintJobProcessingState) + val, err := n.GetEnumValue(ParsePrintJobStatus_processingState) if err != nil { return err } if val != nil { - m.SetProcessingState(val.(*PrintJobProcessingState)) + m.SetProcessingState(val.(*PrintJobStatus_processingState)) } return nil } @@ -185,13 +185,13 @@ func (m *PrintJobStatus) GetOdataType()(*string) { return nil } // GetProcessingState gets the processingState property value. The processingState property -func (m *PrintJobStatus) GetProcessingState()(*PrintJobProcessingState) { +func (m *PrintJobStatus) GetProcessingState()(*PrintJobStatus_processingState) { val, err := m.GetBackingStore().Get("processingState") if err != nil { panic(err) } if val != nil { - return val.(*PrintJobProcessingState) + return val.(*PrintJobStatus_processingState) } return nil } @@ -324,7 +324,7 @@ func (m *PrintJobStatus) SetOdataType(value *string)() { } } // SetProcessingState sets the processingState property value. The processingState property -func (m *PrintJobStatus) SetProcessingState(value *PrintJobProcessingState)() { +func (m *PrintJobStatus) SetProcessingState(value *PrintJobStatus_processingState)() { err := m.GetBackingStore().Set("processingState", value) if err != nil { panic(err) @@ -355,7 +355,7 @@ type PrintJobStatusable interface { GetDetails()([]PrintJobStateDetail) GetIsAcquiredByPrinter()(*bool) GetOdataType()(*string) - GetProcessingState()(*PrintJobProcessingState) + GetProcessingState()(*PrintJobStatus_processingState) GetProcessingStateDescription()(*string) GetState()(*PrintJobProcessingState) SetAcquiredByPrinter(value *bool)() @@ -364,7 +364,7 @@ type PrintJobStatusable interface { SetDetails(value []PrintJobStateDetail)() SetIsAcquiredByPrinter(value *bool)() SetOdataType(value *string)() - SetProcessingState(value *PrintJobProcessingState)() + SetProcessingState(value *PrintJobStatus_processingState)() SetProcessingStateDescription(value *string)() SetState(value *PrintJobProcessingState)() } diff --git a/models/print_job_status_processing_state.go b/models/print_job_status_processing_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/print_multipage_layout.go b/models/print_multipage_layout.go deleted file mode 100644 index 3addff68836..00000000000 --- a/models/print_multipage_layout.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type PrintMultipageLayout int - -const ( - CLOCKWISEFROMTOPLEFT_PRINTMULTIPAGELAYOUT PrintMultipageLayout = iota - COUNTERCLOCKWISEFROMTOPLEFT_PRINTMULTIPAGELAYOUT - COUNTERCLOCKWISEFROMTOPRIGHT_PRINTMULTIPAGELAYOUT - CLOCKWISEFROMTOPRIGHT_PRINTMULTIPAGELAYOUT - COUNTERCLOCKWISEFROMBOTTOMLEFT_PRINTMULTIPAGELAYOUT - CLOCKWISEFROMBOTTOMLEFT_PRINTMULTIPAGELAYOUT - COUNTERCLOCKWISEFROMBOTTOMRIGHT_PRINTMULTIPAGELAYOUT - CLOCKWISEFROMBOTTOMRIGHT_PRINTMULTIPAGELAYOUT - UNKNOWNFUTUREVALUE_PRINTMULTIPAGELAYOUT -) - -func (i PrintMultipageLayout) String() string { - return []string{"clockwiseFromTopLeft", "counterclockwiseFromTopLeft", "counterclockwiseFromTopRight", "clockwiseFromTopRight", "counterclockwiseFromBottomLeft", "clockwiseFromBottomLeft", "counterclockwiseFromBottomRight", "clockwiseFromBottomRight", "unknownFutureValue"}[i] -} -func ParsePrintMultipageLayout(v string) (any, error) { - result := CLOCKWISEFROMTOPLEFT_PRINTMULTIPAGELAYOUT - switch v { - case "clockwiseFromTopLeft": - result = CLOCKWISEFROMTOPLEFT_PRINTMULTIPAGELAYOUT - case "counterclockwiseFromTopLeft": - result = COUNTERCLOCKWISEFROMTOPLEFT_PRINTMULTIPAGELAYOUT - case "counterclockwiseFromTopRight": - result = COUNTERCLOCKWISEFROMTOPRIGHT_PRINTMULTIPAGELAYOUT - case "clockwiseFromTopRight": - result = CLOCKWISEFROMTOPRIGHT_PRINTMULTIPAGELAYOUT - case "counterclockwiseFromBottomLeft": - result = COUNTERCLOCKWISEFROMBOTTOMLEFT_PRINTMULTIPAGELAYOUT - case "clockwiseFromBottomLeft": - result = CLOCKWISEFROMBOTTOMLEFT_PRINTMULTIPAGELAYOUT - case "counterclockwiseFromBottomRight": - result = COUNTERCLOCKWISEFROMBOTTOMRIGHT_PRINTMULTIPAGELAYOUT - case "clockwiseFromBottomRight": - result = CLOCKWISEFROMBOTTOMRIGHT_PRINTMULTIPAGELAYOUT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRINTMULTIPAGELAYOUT - default: - return 0, errors.New("Unknown PrintMultipageLayout value: " + v) - } - return &result, nil -} -func SerializePrintMultipageLayout(values []PrintMultipageLayout) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrintMultipageLayout) isMultiValue() bool { - return false -} diff --git a/models/print_scaling.go b/models/print_scaling.go deleted file mode 100644 index e558d759c1d..00000000000 --- a/models/print_scaling.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type PrintScaling int - -const ( - AUTO_PRINTSCALING PrintScaling = iota - SHRINKTOFIT_PRINTSCALING - FILL_PRINTSCALING - FIT_PRINTSCALING - NONE_PRINTSCALING - UNKNOWNFUTUREVALUE_PRINTSCALING -) - -func (i PrintScaling) String() string { - return []string{"auto", "shrinkToFit", "fill", "fit", "none", "unknownFutureValue"}[i] -} -func ParsePrintScaling(v string) (any, error) { - result := AUTO_PRINTSCALING - switch v { - case "auto": - result = AUTO_PRINTSCALING - case "shrinkToFit": - result = SHRINKTOFIT_PRINTSCALING - case "fill": - result = FILL_PRINTSCALING - case "fit": - result = FIT_PRINTSCALING - case "none": - result = NONE_PRINTSCALING - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRINTSCALING - default: - return 0, errors.New("Unknown PrintScaling value: " + v) - } - return &result, nil -} -func SerializePrintScaling(values []PrintScaling) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrintScaling) isMultiValue() bool { - return false -} diff --git a/models/printer_capabilities.go b/models/printer_capabilities.go index 9beb4f1ee54..b235419f12e 100644 --- a/models/printer_capabilities.go +++ b/models/printer_capabilities.go @@ -61,13 +61,13 @@ func (m *PrinterCapabilities) GetCollation()(*bool) { return nil } // GetColorModes gets the colorModes property value. The color modes supported by the printer. Valid values are described in the following table. -func (m *PrinterCapabilities) GetColorModes()([]PrintColorMode) { +func (m *PrinterCapabilities) GetColorModes()([]PrinterCapabilities_colorModes) { val, err := m.GetBackingStore().Get("colorModes") if err != nil { panic(err) } if val != nil { - return val.([]PrintColorMode) + return val.([]PrinterCapabilities_colorModes) } return nil } @@ -105,35 +105,35 @@ func (m *PrinterCapabilities) GetDpis()([]int32) { return nil } // GetDuplexModes gets the duplexModes property value. The list of duplex modes that are supported by the printer. Valid values are described in the following table. -func (m *PrinterCapabilities) GetDuplexModes()([]PrintDuplexMode) { +func (m *PrinterCapabilities) GetDuplexModes()([]PrinterCapabilities_duplexModes) { val, err := m.GetBackingStore().Get("duplexModes") if err != nil { panic(err) } if val != nil { - return val.([]PrintDuplexMode) + return val.([]PrinterCapabilities_duplexModes) } return nil } // GetFeedDirections gets the feedDirections property value. The feedDirections property -func (m *PrinterCapabilities) GetFeedDirections()([]PrinterFeedDirection) { +func (m *PrinterCapabilities) GetFeedDirections()([]PrinterCapabilities_feedDirections) { val, err := m.GetBackingStore().Get("feedDirections") if err != nil { panic(err) } if val != nil { - return val.([]PrinterFeedDirection) + return val.([]PrinterCapabilities_feedDirections) } return nil } // GetFeedOrientations gets the feedOrientations property value. The list of feed orientations that are supported by the printer. -func (m *PrinterCapabilities) GetFeedOrientations()([]PrinterFeedOrientation) { +func (m *PrinterCapabilities) GetFeedOrientations()([]PrinterCapabilities_feedOrientations) { val, err := m.GetBackingStore().Get("feedOrientations") if err != nil { panic(err) } if val != nil { - return val.([]PrinterFeedOrientation) + return val.([]PrinterCapabilities_feedOrientations) } return nil } @@ -167,15 +167,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["colorModes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintColorMode) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_colorModes) if err != nil { return err } if val != nil { - res := make([]PrintColorMode, len(val)) + res := make([]PrinterCapabilities_colorModes, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintColorMode)) + res[i] = *(v.(*PrinterCapabilities_colorModes)) } } m.SetColorModes(res) @@ -225,15 +225,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["duplexModes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintDuplexMode) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_duplexModes) if err != nil { return err } if val != nil { - res := make([]PrintDuplexMode, len(val)) + res := make([]PrinterCapabilities_duplexModes, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintDuplexMode)) + res[i] = *(v.(*PrinterCapabilities_duplexModes)) } } m.SetDuplexModes(res) @@ -241,15 +241,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["feedDirections"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrinterFeedDirection) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_feedDirections) if err != nil { return err } if val != nil { - res := make([]PrinterFeedDirection, len(val)) + res := make([]PrinterCapabilities_feedDirections, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrinterFeedDirection)) + res[i] = *(v.(*PrinterCapabilities_feedDirections)) } } m.SetFeedDirections(res) @@ -257,15 +257,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["feedOrientations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrinterFeedOrientation) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_feedOrientations) if err != nil { return err } if val != nil { - res := make([]PrinterFeedOrientation, len(val)) + res := make([]PrinterCapabilities_feedOrientations, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrinterFeedOrientation)) + res[i] = *(v.(*PrinterCapabilities_feedOrientations)) } } m.SetFeedOrientations(res) @@ -273,15 +273,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["finishings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintFinishing) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_finishings) if err != nil { return err } if val != nil { - res := make([]PrintFinishing, len(val)) + res := make([]PrinterCapabilities_finishings, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintFinishing)) + res[i] = *(v.(*PrinterCapabilities_finishings)) } } m.SetFinishings(res) @@ -389,15 +389,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["multipageLayouts"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintMultipageLayout) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_multipageLayouts) if err != nil { return err } if val != nil { - res := make([]PrintMultipageLayout, len(val)) + res := make([]PrinterCapabilities_multipageLayouts, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintMultipageLayout)) + res[i] = *(v.(*PrinterCapabilities_multipageLayouts)) } } m.SetMultipageLayouts(res) @@ -415,15 +415,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["orientations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintOrientation) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_orientations) if err != nil { return err } if val != nil { - res := make([]PrintOrientation, len(val)) + res := make([]PrinterCapabilities_orientations, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintOrientation)) + res[i] = *(v.(*PrinterCapabilities_orientations)) } } m.SetOrientations(res) @@ -463,15 +463,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["qualities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintQuality) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_qualities) if err != nil { return err } if val != nil { - res := make([]PrintQuality, len(val)) + res := make([]PrinterCapabilities_qualities, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintQuality)) + res[i] = *(v.(*PrinterCapabilities_qualities)) } } m.SetQualities(res) @@ -495,15 +495,15 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["scalings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintScaling) + val, err := n.GetCollectionOfEnumValues(ParsePrinterCapabilities_scalings) if err != nil { return err } if val != nil { - res := make([]PrintScaling, len(val)) + res := make([]PrinterCapabilities_scalings, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintScaling)) + res[i] = *(v.(*PrinterCapabilities_scalings)) } } m.SetScalings(res) @@ -735,13 +735,13 @@ func (m *PrinterCapabilities) GetFieldDeserializers()(map[string]func(i878a80d23 return res } // GetFinishings gets the finishings property value. Finishing processes the printer supports for a printed document. -func (m *PrinterCapabilities) GetFinishings()([]PrintFinishing) { +func (m *PrinterCapabilities) GetFinishings()([]PrinterCapabilities_finishings) { val, err := m.GetBackingStore().Get("finishings") if err != nil { panic(err) } if val != nil { - return val.([]PrintFinishing) + return val.([]PrinterCapabilities_finishings) } return nil } @@ -823,13 +823,13 @@ func (m *PrinterCapabilities) GetMediaTypes()([]string) { return nil } // GetMultipageLayouts gets the multipageLayouts property value. The presentation directions supported by the printer. Supported values are described in the following table. -func (m *PrinterCapabilities) GetMultipageLayouts()([]PrintMultipageLayout) { +func (m *PrinterCapabilities) GetMultipageLayouts()([]PrinterCapabilities_multipageLayouts) { val, err := m.GetBackingStore().Get("multipageLayouts") if err != nil { panic(err) } if val != nil { - return val.([]PrintMultipageLayout) + return val.([]PrinterCapabilities_multipageLayouts) } return nil } @@ -845,13 +845,13 @@ func (m *PrinterCapabilities) GetOdataType()(*string) { return nil } // GetOrientations gets the orientations property value. The print orientations supported by the printer. Valid values are described in the following table. -func (m *PrinterCapabilities) GetOrientations()([]PrintOrientation) { +func (m *PrinterCapabilities) GetOrientations()([]PrinterCapabilities_orientations) { val, err := m.GetBackingStore().Get("orientations") if err != nil { panic(err) } if val != nil { - return val.([]PrintOrientation) + return val.([]PrinterCapabilities_orientations) } return nil } @@ -878,13 +878,13 @@ func (m *PrinterCapabilities) GetPagesPerSheet()([]int32) { return nil } // GetQualities gets the qualities property value. The print qualities supported by the printer. -func (m *PrinterCapabilities) GetQualities()([]PrintQuality) { +func (m *PrinterCapabilities) GetQualities()([]PrinterCapabilities_qualities) { val, err := m.GetBackingStore().Get("qualities") if err != nil { panic(err) } if val != nil { - return val.([]PrintQuality) + return val.([]PrinterCapabilities_qualities) } return nil } @@ -900,13 +900,13 @@ func (m *PrinterCapabilities) GetRightMargins()([]int32) { return nil } // GetScalings gets the scalings property value. Supported print scalings. -func (m *PrinterCapabilities) GetScalings()([]PrintScaling) { +func (m *PrinterCapabilities) GetScalings()([]PrinterCapabilities_scalings) { val, err := m.GetBackingStore().Get("scalings") if err != nil { panic(err) } if val != nil { - return val.([]PrintScaling) + return val.([]PrinterCapabilities_scalings) } return nil } @@ -1090,7 +1090,7 @@ func (m *PrinterCapabilities) Serialize(writer i878a80d2330e89d26896388a3f487eef } } if m.GetColorModes() != nil { - err := writer.WriteCollectionOfStringValues("colorModes", SerializePrintColorMode(m.GetColorModes())) + err := writer.WriteCollectionOfStringValues("colorModes", SerializePrinterCapabilities_colorModes(m.GetColorModes())) if err != nil { return err } @@ -1114,25 +1114,25 @@ func (m *PrinterCapabilities) Serialize(writer i878a80d2330e89d26896388a3f487eef } } if m.GetDuplexModes() != nil { - err := writer.WriteCollectionOfStringValues("duplexModes", SerializePrintDuplexMode(m.GetDuplexModes())) + err := writer.WriteCollectionOfStringValues("duplexModes", SerializePrinterCapabilities_duplexModes(m.GetDuplexModes())) if err != nil { return err } } if m.GetFeedDirections() != nil { - err := writer.WriteCollectionOfStringValues("feedDirections", SerializePrinterFeedDirection(m.GetFeedDirections())) + err := writer.WriteCollectionOfStringValues("feedDirections", SerializePrinterCapabilities_feedDirections(m.GetFeedDirections())) if err != nil { return err } } if m.GetFeedOrientations() != nil { - err := writer.WriteCollectionOfStringValues("feedOrientations", SerializePrinterFeedOrientation(m.GetFeedOrientations())) + err := writer.WriteCollectionOfStringValues("feedOrientations", SerializePrinterCapabilities_feedOrientations(m.GetFeedOrientations())) if err != nil { return err } } if m.GetFinishings() != nil { - err := writer.WriteCollectionOfStringValues("finishings", SerializePrintFinishing(m.GetFinishings())) + err := writer.WriteCollectionOfStringValues("finishings", SerializePrinterCapabilities_finishings(m.GetFinishings())) if err != nil { return err } @@ -1180,7 +1180,7 @@ func (m *PrinterCapabilities) Serialize(writer i878a80d2330e89d26896388a3f487eef } } if m.GetMultipageLayouts() != nil { - err := writer.WriteCollectionOfStringValues("multipageLayouts", SerializePrintMultipageLayout(m.GetMultipageLayouts())) + err := writer.WriteCollectionOfStringValues("multipageLayouts", SerializePrinterCapabilities_multipageLayouts(m.GetMultipageLayouts())) if err != nil { return err } @@ -1192,7 +1192,7 @@ func (m *PrinterCapabilities) Serialize(writer i878a80d2330e89d26896388a3f487eef } } if m.GetOrientations() != nil { - err := writer.WriteCollectionOfStringValues("orientations", SerializePrintOrientation(m.GetOrientations())) + err := writer.WriteCollectionOfStringValues("orientations", SerializePrinterCapabilities_orientations(m.GetOrientations())) if err != nil { return err } @@ -1210,7 +1210,7 @@ func (m *PrinterCapabilities) Serialize(writer i878a80d2330e89d26896388a3f487eef } } if m.GetQualities() != nil { - err := writer.WriteCollectionOfStringValues("qualities", SerializePrintQuality(m.GetQualities())) + err := writer.WriteCollectionOfStringValues("qualities", SerializePrinterCapabilities_qualities(m.GetQualities())) if err != nil { return err } @@ -1222,7 +1222,7 @@ func (m *PrinterCapabilities) Serialize(writer i878a80d2330e89d26896388a3f487eef } } if m.GetScalings() != nil { - err := writer.WriteCollectionOfStringValues("scalings", SerializePrintScaling(m.GetScalings())) + err := writer.WriteCollectionOfStringValues("scalings", SerializePrinterCapabilities_scalings(m.GetScalings())) if err != nil { return err } @@ -1351,7 +1351,7 @@ func (m *PrinterCapabilities) SetCollation(value *bool)() { } } // SetColorModes sets the colorModes property value. The color modes supported by the printer. Valid values are described in the following table. -func (m *PrinterCapabilities) SetColorModes(value []PrintColorMode)() { +func (m *PrinterCapabilities) SetColorModes(value []PrinterCapabilities_colorModes)() { err := m.GetBackingStore().Set("colorModes", value) if err != nil { panic(err) @@ -1379,28 +1379,28 @@ func (m *PrinterCapabilities) SetDpis(value []int32)() { } } // SetDuplexModes sets the duplexModes property value. The list of duplex modes that are supported by the printer. Valid values are described in the following table. -func (m *PrinterCapabilities) SetDuplexModes(value []PrintDuplexMode)() { +func (m *PrinterCapabilities) SetDuplexModes(value []PrinterCapabilities_duplexModes)() { err := m.GetBackingStore().Set("duplexModes", value) if err != nil { panic(err) } } // SetFeedDirections sets the feedDirections property value. The feedDirections property -func (m *PrinterCapabilities) SetFeedDirections(value []PrinterFeedDirection)() { +func (m *PrinterCapabilities) SetFeedDirections(value []PrinterCapabilities_feedDirections)() { err := m.GetBackingStore().Set("feedDirections", value) if err != nil { panic(err) } } // SetFeedOrientations sets the feedOrientations property value. The list of feed orientations that are supported by the printer. -func (m *PrinterCapabilities) SetFeedOrientations(value []PrinterFeedOrientation)() { +func (m *PrinterCapabilities) SetFeedOrientations(value []PrinterCapabilities_feedOrientations)() { err := m.GetBackingStore().Set("feedOrientations", value) if err != nil { panic(err) } } // SetFinishings sets the finishings property value. Finishing processes the printer supports for a printed document. -func (m *PrinterCapabilities) SetFinishings(value []PrintFinishing)() { +func (m *PrinterCapabilities) SetFinishings(value []PrinterCapabilities_finishings)() { err := m.GetBackingStore().Set("finishings", value) if err != nil { panic(err) @@ -1456,7 +1456,7 @@ func (m *PrinterCapabilities) SetMediaTypes(value []string)() { } } // SetMultipageLayouts sets the multipageLayouts property value. The presentation directions supported by the printer. Supported values are described in the following table. -func (m *PrinterCapabilities) SetMultipageLayouts(value []PrintMultipageLayout)() { +func (m *PrinterCapabilities) SetMultipageLayouts(value []PrinterCapabilities_multipageLayouts)() { err := m.GetBackingStore().Set("multipageLayouts", value) if err != nil { panic(err) @@ -1470,7 +1470,7 @@ func (m *PrinterCapabilities) SetOdataType(value *string)() { } } // SetOrientations sets the orientations property value. The print orientations supported by the printer. Valid values are described in the following table. -func (m *PrinterCapabilities) SetOrientations(value []PrintOrientation)() { +func (m *PrinterCapabilities) SetOrientations(value []PrinterCapabilities_orientations)() { err := m.GetBackingStore().Set("orientations", value) if err != nil { panic(err) @@ -1491,7 +1491,7 @@ func (m *PrinterCapabilities) SetPagesPerSheet(value []int32)() { } } // SetQualities sets the qualities property value. The print qualities supported by the printer. -func (m *PrinterCapabilities) SetQualities(value []PrintQuality)() { +func (m *PrinterCapabilities) SetQualities(value []PrinterCapabilities_qualities)() { err := m.GetBackingStore().Set("qualities", value) if err != nil { panic(err) @@ -1505,7 +1505,7 @@ func (m *PrinterCapabilities) SetRightMargins(value []int32)() { } } // SetScalings sets the scalings property value. Supported print scalings. -func (m *PrinterCapabilities) SetScalings(value []PrintScaling)() { +func (m *PrinterCapabilities) SetScalings(value []PrinterCapabilities_scalings)() { err := m.GetBackingStore().Set("scalings", value) if err != nil { panic(err) @@ -1624,14 +1624,14 @@ type PrinterCapabilitiesable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetBottomMargins()([]int32) GetCollation()(*bool) - GetColorModes()([]PrintColorMode) + GetColorModes()([]PrinterCapabilities_colorModes) GetContentTypes()([]string) GetCopiesPerJob()(IntegerRangeable) GetDpis()([]int32) - GetDuplexModes()([]PrintDuplexMode) - GetFeedDirections()([]PrinterFeedDirection) - GetFeedOrientations()([]PrinterFeedOrientation) - GetFinishings()([]PrintFinishing) + GetDuplexModes()([]PrinterCapabilities_duplexModes) + GetFeedDirections()([]PrinterCapabilities_feedDirections) + GetFeedOrientations()([]PrinterCapabilities_feedOrientations) + GetFinishings()([]PrinterCapabilities_finishings) GetInputBins()([]string) GetIsColorPrintingSupported()(*bool) GetIsPageRangeSupported()(*bool) @@ -1639,14 +1639,14 @@ type PrinterCapabilitiesable interface { GetMediaColors()([]string) GetMediaSizes()([]string) GetMediaTypes()([]string) - GetMultipageLayouts()([]PrintMultipageLayout) + GetMultipageLayouts()([]PrinterCapabilities_multipageLayouts) GetOdataType()(*string) - GetOrientations()([]PrintOrientation) + GetOrientations()([]PrinterCapabilities_orientations) GetOutputBins()([]string) GetPagesPerSheet()([]int32) - GetQualities()([]PrintQuality) + GetQualities()([]PrinterCapabilities_qualities) GetRightMargins()([]int32) - GetScalings()([]PrintScaling) + GetScalings()([]PrinterCapabilities_scalings) GetSupportedColorConfigurations()([]PrintColorConfiguration) GetSupportedCopiesPerJob()(IntegerRangeable) GetSupportedDocumentMimeTypes()([]string) @@ -1665,14 +1665,14 @@ type PrinterCapabilitiesable interface { SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetBottomMargins(value []int32)() SetCollation(value *bool)() - SetColorModes(value []PrintColorMode)() + SetColorModes(value []PrinterCapabilities_colorModes)() SetContentTypes(value []string)() SetCopiesPerJob(value IntegerRangeable)() SetDpis(value []int32)() - SetDuplexModes(value []PrintDuplexMode)() - SetFeedDirections(value []PrinterFeedDirection)() - SetFeedOrientations(value []PrinterFeedOrientation)() - SetFinishings(value []PrintFinishing)() + SetDuplexModes(value []PrinterCapabilities_duplexModes)() + SetFeedDirections(value []PrinterCapabilities_feedDirections)() + SetFeedOrientations(value []PrinterCapabilities_feedOrientations)() + SetFinishings(value []PrinterCapabilities_finishings)() SetInputBins(value []string)() SetIsColorPrintingSupported(value *bool)() SetIsPageRangeSupported(value *bool)() @@ -1680,14 +1680,14 @@ type PrinterCapabilitiesable interface { SetMediaColors(value []string)() SetMediaSizes(value []string)() SetMediaTypes(value []string)() - SetMultipageLayouts(value []PrintMultipageLayout)() + SetMultipageLayouts(value []PrinterCapabilities_multipageLayouts)() SetOdataType(value *string)() - SetOrientations(value []PrintOrientation)() + SetOrientations(value []PrinterCapabilities_orientations)() SetOutputBins(value []string)() SetPagesPerSheet(value []int32)() - SetQualities(value []PrintQuality)() + SetQualities(value []PrinterCapabilities_qualities)() SetRightMargins(value []int32)() - SetScalings(value []PrintScaling)() + SetScalings(value []PrinterCapabilities_scalings)() SetSupportedColorConfigurations(value []PrintColorConfiguration)() SetSupportedCopiesPerJob(value IntegerRangeable)() SetSupportedDocumentMimeTypes(value []string)() diff --git a/models/printer_capabilities_color_modes.go b/models/printer_capabilities_color_modes.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_capabilities_duplex_modes.go b/models/printer_capabilities_duplex_modes.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_capabilities_feed_directions.go b/models/printer_capabilities_feed_directions.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_capabilities_feed_orientations.go b/models/printer_capabilities_feed_orientations.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_capabilities_finishings.go b/models/printer_capabilities_finishings.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_capabilities_multipage_layouts.go b/models/printer_capabilities_multipage_layouts.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_capabilities_orientations.go b/models/printer_capabilities_orientations.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_capabilities_qualities.go b/models/printer_capabilities_qualities.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_capabilities_scalings.go b/models/printer_capabilities_scalings.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults.go b/models/printer_defaults.go index c8483abee86..1236964c934 100644 --- a/models/printer_defaults.go +++ b/models/printer_defaults.go @@ -39,13 +39,13 @@ func (m *PrinterDefaults) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d4118 return m.backingStore } // GetColorMode gets the colorMode property value. The default color mode to use when printing the document. Valid values are described in the following table. -func (m *PrinterDefaults) GetColorMode()(*PrintColorMode) { +func (m *PrinterDefaults) GetColorMode()(*PrinterDefaults_colorMode) { val, err := m.GetBackingStore().Get("colorMode") if err != nil { panic(err) } if val != nil { - return val.(*PrintColorMode) + return val.(*PrinterDefaults_colorMode) } return nil } @@ -94,24 +94,24 @@ func (m *PrinterDefaults) GetDpi()(*int32) { return nil } // GetDuplexConfiguration gets the duplexConfiguration property value. The duplexConfiguration property -func (m *PrinterDefaults) GetDuplexConfiguration()(*PrintDuplexConfiguration) { +func (m *PrinterDefaults) GetDuplexConfiguration()(*PrinterDefaults_duplexConfiguration) { val, err := m.GetBackingStore().Get("duplexConfiguration") if err != nil { panic(err) } if val != nil { - return val.(*PrintDuplexConfiguration) + return val.(*PrinterDefaults_duplexConfiguration) } return nil } // GetDuplexMode gets the duplexMode property value. The default duplex (double-sided) configuration to use when printing a document. Valid values are described in the following table. -func (m *PrinterDefaults) GetDuplexMode()(*PrintDuplexMode) { +func (m *PrinterDefaults) GetDuplexMode()(*PrinterDefaults_duplexMode) { val, err := m.GetBackingStore().Get("duplexMode") if err != nil { panic(err) } if val != nil { - return val.(*PrintDuplexMode) + return val.(*PrinterDefaults_duplexMode) } return nil } @@ -119,12 +119,12 @@ func (m *PrinterDefaults) GetDuplexMode()(*PrintDuplexMode) { func (m *PrinterDefaults) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["colorMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintColorMode) + val, err := n.GetEnumValue(ParsePrinterDefaults_colorMode) if err != nil { return err } if val != nil { - m.SetColorMode(val.(*PrintColorMode)) + m.SetColorMode(val.(*PrinterDefaults_colorMode)) } return nil } @@ -169,35 +169,35 @@ func (m *PrinterDefaults) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["duplexConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintDuplexConfiguration) + val, err := n.GetEnumValue(ParsePrinterDefaults_duplexConfiguration) if err != nil { return err } if val != nil { - m.SetDuplexConfiguration(val.(*PrintDuplexConfiguration)) + m.SetDuplexConfiguration(val.(*PrinterDefaults_duplexConfiguration)) } return nil } res["duplexMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintDuplexMode) + val, err := n.GetEnumValue(ParsePrinterDefaults_duplexMode) if err != nil { return err } if val != nil { - m.SetDuplexMode(val.(*PrintDuplexMode)) + m.SetDuplexMode(val.(*PrinterDefaults_duplexMode)) } return nil } res["finishings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintFinishing) + val, err := n.GetCollectionOfEnumValues(ParsePrinterDefaults_finishings) if err != nil { return err } if val != nil { - res := make([]PrintFinishing, len(val)) + res := make([]PrinterDefaults_finishings, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintFinishing)) + res[i] = *(v.(*PrinterDefaults_finishings)) } } m.SetFinishings(res) @@ -255,12 +255,12 @@ func (m *PrinterDefaults) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["multipageLayout"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintMultipageLayout) + val, err := n.GetEnumValue(ParsePrinterDefaults_multipageLayout) if err != nil { return err } if val != nil { - m.SetMultipageLayout(val.(*PrintMultipageLayout)) + m.SetMultipageLayout(val.(*PrinterDefaults_multipageLayout)) } return nil } @@ -275,12 +275,12 @@ func (m *PrinterDefaults) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["orientation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintOrientation) + val, err := n.GetEnumValue(ParsePrinterDefaults_orientation) if err != nil { return err } if val != nil { - m.SetOrientation(val.(*PrintOrientation)) + m.SetOrientation(val.(*PrinterDefaults_orientation)) } return nil } @@ -315,65 +315,65 @@ func (m *PrinterDefaults) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["presentationDirection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintPresentationDirection) + val, err := n.GetEnumValue(ParsePrinterDefaults_presentationDirection) if err != nil { return err } if val != nil { - m.SetPresentationDirection(val.(*PrintPresentationDirection)) + m.SetPresentationDirection(val.(*PrinterDefaults_presentationDirection)) } return nil } res["printColorConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintColorConfiguration) + val, err := n.GetEnumValue(ParsePrinterDefaults_printColorConfiguration) if err != nil { return err } if val != nil { - m.SetPrintColorConfiguration(val.(*PrintColorConfiguration)) + m.SetPrintColorConfiguration(val.(*PrinterDefaults_printColorConfiguration)) } return nil } res["printQuality"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintQuality) + val, err := n.GetEnumValue(ParsePrinterDefaults_printQuality) if err != nil { return err } if val != nil { - m.SetPrintQuality(val.(*PrintQuality)) + m.SetPrintQuality(val.(*PrinterDefaults_printQuality)) } return nil } res["quality"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintQuality) + val, err := n.GetEnumValue(ParsePrinterDefaults_quality) if err != nil { return err } if val != nil { - m.SetQuality(val.(*PrintQuality)) + m.SetQuality(val.(*PrinterDefaults_quality)) } return nil } res["scaling"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintScaling) + val, err := n.GetEnumValue(ParsePrinterDefaults_scaling) if err != nil { return err } if val != nil { - m.SetScaling(val.(*PrintScaling)) + m.SetScaling(val.(*PrinterDefaults_scaling)) } return nil } return res } // GetFinishings gets the finishings property value. The default set of finishings to apply to print jobs. Valid values are described in the following table. -func (m *PrinterDefaults) GetFinishings()([]PrintFinishing) { +func (m *PrinterDefaults) GetFinishings()([]PrinterDefaults_finishings) { val, err := m.GetBackingStore().Get("finishings") if err != nil { panic(err) } if val != nil { - return val.([]PrintFinishing) + return val.([]PrinterDefaults_finishings) } return nil } @@ -433,13 +433,13 @@ func (m *PrinterDefaults) GetMediaType()(*string) { return nil } // GetMultipageLayout gets the multipageLayout property value. The default direction to lay out pages when multiple pages are being printed per sheet. Valid values are described in the following table. -func (m *PrinterDefaults) GetMultipageLayout()(*PrintMultipageLayout) { +func (m *PrinterDefaults) GetMultipageLayout()(*PrinterDefaults_multipageLayout) { val, err := m.GetBackingStore().Get("multipageLayout") if err != nil { panic(err) } if val != nil { - return val.(*PrintMultipageLayout) + return val.(*PrinterDefaults_multipageLayout) } return nil } @@ -455,13 +455,13 @@ func (m *PrinterDefaults) GetOdataType()(*string) { return nil } // GetOrientation gets the orientation property value. The default orientation to use when printing the document. Valid values are described in the following table. -func (m *PrinterDefaults) GetOrientation()(*PrintOrientation) { +func (m *PrinterDefaults) GetOrientation()(*PrinterDefaults_orientation) { val, err := m.GetBackingStore().Get("orientation") if err != nil { panic(err) } if val != nil { - return val.(*PrintOrientation) + return val.(*PrinterDefaults_orientation) } return nil } @@ -499,57 +499,57 @@ func (m *PrinterDefaults) GetPdfFitToPage()(*bool) { return nil } // GetPresentationDirection gets the presentationDirection property value. The presentationDirection property -func (m *PrinterDefaults) GetPresentationDirection()(*PrintPresentationDirection) { +func (m *PrinterDefaults) GetPresentationDirection()(*PrinterDefaults_presentationDirection) { val, err := m.GetBackingStore().Get("presentationDirection") if err != nil { panic(err) } if val != nil { - return val.(*PrintPresentationDirection) + return val.(*PrinterDefaults_presentationDirection) } return nil } // GetPrintColorConfiguration gets the printColorConfiguration property value. The printColorConfiguration property -func (m *PrinterDefaults) GetPrintColorConfiguration()(*PrintColorConfiguration) { +func (m *PrinterDefaults) GetPrintColorConfiguration()(*PrinterDefaults_printColorConfiguration) { val, err := m.GetBackingStore().Get("printColorConfiguration") if err != nil { panic(err) } if val != nil { - return val.(*PrintColorConfiguration) + return val.(*PrinterDefaults_printColorConfiguration) } return nil } // GetPrintQuality gets the printQuality property value. The printQuality property -func (m *PrinterDefaults) GetPrintQuality()(*PrintQuality) { +func (m *PrinterDefaults) GetPrintQuality()(*PrinterDefaults_printQuality) { val, err := m.GetBackingStore().Get("printQuality") if err != nil { panic(err) } if val != nil { - return val.(*PrintQuality) + return val.(*PrinterDefaults_printQuality) } return nil } // GetQuality gets the quality property value. The default quality to use when printing the document. Valid values are described in the following table. -func (m *PrinterDefaults) GetQuality()(*PrintQuality) { +func (m *PrinterDefaults) GetQuality()(*PrinterDefaults_quality) { val, err := m.GetBackingStore().Get("quality") if err != nil { panic(err) } if val != nil { - return val.(*PrintQuality) + return val.(*PrinterDefaults_quality) } return nil } // GetScaling gets the scaling property value. Specifies how the printer scales the document data to fit the requested media. Valid values are described in the following table. -func (m *PrinterDefaults) GetScaling()(*PrintScaling) { +func (m *PrinterDefaults) GetScaling()(*PrinterDefaults_scaling) { val, err := m.GetBackingStore().Get("scaling") if err != nil { panic(err) } if val != nil { - return val.(*PrintScaling) + return val.(*PrinterDefaults_scaling) } return nil } @@ -601,7 +601,7 @@ func (m *PrinterDefaults) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } } if m.GetFinishings() != nil { - err := writer.WriteCollectionOfStringValues("finishings", SerializePrintFinishing(m.GetFinishings())) + err := writer.WriteCollectionOfStringValues("finishings", SerializePrinterDefaults_finishings(m.GetFinishings())) if err != nil { return err } @@ -729,7 +729,7 @@ func (m *PrinterDefaults) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d m.backingStore = value } // SetColorMode sets the colorMode property value. The default color mode to use when printing the document. Valid values are described in the following table. -func (m *PrinterDefaults) SetColorMode(value *PrintColorMode)() { +func (m *PrinterDefaults) SetColorMode(value *PrinterDefaults_colorMode)() { err := m.GetBackingStore().Set("colorMode", value) if err != nil { panic(err) @@ -764,21 +764,21 @@ func (m *PrinterDefaults) SetDpi(value *int32)() { } } // SetDuplexConfiguration sets the duplexConfiguration property value. The duplexConfiguration property -func (m *PrinterDefaults) SetDuplexConfiguration(value *PrintDuplexConfiguration)() { +func (m *PrinterDefaults) SetDuplexConfiguration(value *PrinterDefaults_duplexConfiguration)() { err := m.GetBackingStore().Set("duplexConfiguration", value) if err != nil { panic(err) } } // SetDuplexMode sets the duplexMode property value. The default duplex (double-sided) configuration to use when printing a document. Valid values are described in the following table. -func (m *PrinterDefaults) SetDuplexMode(value *PrintDuplexMode)() { +func (m *PrinterDefaults) SetDuplexMode(value *PrinterDefaults_duplexMode)() { err := m.GetBackingStore().Set("duplexMode", value) if err != nil { panic(err) } } // SetFinishings sets the finishings property value. The default set of finishings to apply to print jobs. Valid values are described in the following table. -func (m *PrinterDefaults) SetFinishings(value []PrintFinishing)() { +func (m *PrinterDefaults) SetFinishings(value []PrinterDefaults_finishings)() { err := m.GetBackingStore().Set("finishings", value) if err != nil { panic(err) @@ -820,7 +820,7 @@ func (m *PrinterDefaults) SetMediaType(value *string)() { } } // SetMultipageLayout sets the multipageLayout property value. The default direction to lay out pages when multiple pages are being printed per sheet. Valid values are described in the following table. -func (m *PrinterDefaults) SetMultipageLayout(value *PrintMultipageLayout)() { +func (m *PrinterDefaults) SetMultipageLayout(value *PrinterDefaults_multipageLayout)() { err := m.GetBackingStore().Set("multipageLayout", value) if err != nil { panic(err) @@ -834,7 +834,7 @@ func (m *PrinterDefaults) SetOdataType(value *string)() { } } // SetOrientation sets the orientation property value. The default orientation to use when printing the document. Valid values are described in the following table. -func (m *PrinterDefaults) SetOrientation(value *PrintOrientation)() { +func (m *PrinterDefaults) SetOrientation(value *PrinterDefaults_orientation)() { err := m.GetBackingStore().Set("orientation", value) if err != nil { panic(err) @@ -862,35 +862,35 @@ func (m *PrinterDefaults) SetPdfFitToPage(value *bool)() { } } // SetPresentationDirection sets the presentationDirection property value. The presentationDirection property -func (m *PrinterDefaults) SetPresentationDirection(value *PrintPresentationDirection)() { +func (m *PrinterDefaults) SetPresentationDirection(value *PrinterDefaults_presentationDirection)() { err := m.GetBackingStore().Set("presentationDirection", value) if err != nil { panic(err) } } // SetPrintColorConfiguration sets the printColorConfiguration property value. The printColorConfiguration property -func (m *PrinterDefaults) SetPrintColorConfiguration(value *PrintColorConfiguration)() { +func (m *PrinterDefaults) SetPrintColorConfiguration(value *PrinterDefaults_printColorConfiguration)() { err := m.GetBackingStore().Set("printColorConfiguration", value) if err != nil { panic(err) } } // SetPrintQuality sets the printQuality property value. The printQuality property -func (m *PrinterDefaults) SetPrintQuality(value *PrintQuality)() { +func (m *PrinterDefaults) SetPrintQuality(value *PrinterDefaults_printQuality)() { err := m.GetBackingStore().Set("printQuality", value) if err != nil { panic(err) } } // SetQuality sets the quality property value. The default quality to use when printing the document. Valid values are described in the following table. -func (m *PrinterDefaults) SetQuality(value *PrintQuality)() { +func (m *PrinterDefaults) SetQuality(value *PrinterDefaults_quality)() { err := m.GetBackingStore().Set("quality", value) if err != nil { panic(err) } } // SetScaling sets the scaling property value. Specifies how the printer scales the document data to fit the requested media. Valid values are described in the following table. -func (m *PrinterDefaults) SetScaling(value *PrintScaling)() { +func (m *PrinterDefaults) SetScaling(value *PrinterDefaults_scaling)() { err := m.GetBackingStore().Set("scaling", value) if err != nil { panic(err) @@ -902,53 +902,53 @@ type PrinterDefaultsable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColorMode()(*PrintColorMode) + GetColorMode()(*PrinterDefaults_colorMode) GetContentType()(*string) GetCopiesPerJob()(*int32) GetDocumentMimeType()(*string) GetDpi()(*int32) - GetDuplexConfiguration()(*PrintDuplexConfiguration) - GetDuplexMode()(*PrintDuplexMode) - GetFinishings()([]PrintFinishing) + GetDuplexConfiguration()(*PrinterDefaults_duplexConfiguration) + GetDuplexMode()(*PrinterDefaults_duplexMode) + GetFinishings()([]PrinterDefaults_finishings) GetFitPdfToPage()(*bool) GetInputBin()(*string) GetMediaColor()(*string) GetMediaSize()(*string) GetMediaType()(*string) - GetMultipageLayout()(*PrintMultipageLayout) + GetMultipageLayout()(*PrinterDefaults_multipageLayout) GetOdataType()(*string) - GetOrientation()(*PrintOrientation) + GetOrientation()(*PrinterDefaults_orientation) GetOutputBin()(*string) GetPagesPerSheet()(*int32) GetPdfFitToPage()(*bool) - GetPresentationDirection()(*PrintPresentationDirection) - GetPrintColorConfiguration()(*PrintColorConfiguration) - GetPrintQuality()(*PrintQuality) - GetQuality()(*PrintQuality) - GetScaling()(*PrintScaling) + GetPresentationDirection()(*PrinterDefaults_presentationDirection) + GetPrintColorConfiguration()(*PrinterDefaults_printColorConfiguration) + GetPrintQuality()(*PrinterDefaults_printQuality) + GetQuality()(*PrinterDefaults_quality) + GetScaling()(*PrinterDefaults_scaling) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColorMode(value *PrintColorMode)() + SetColorMode(value *PrinterDefaults_colorMode)() SetContentType(value *string)() SetCopiesPerJob(value *int32)() SetDocumentMimeType(value *string)() SetDpi(value *int32)() - SetDuplexConfiguration(value *PrintDuplexConfiguration)() - SetDuplexMode(value *PrintDuplexMode)() - SetFinishings(value []PrintFinishing)() + SetDuplexConfiguration(value *PrinterDefaults_duplexConfiguration)() + SetDuplexMode(value *PrinterDefaults_duplexMode)() + SetFinishings(value []PrinterDefaults_finishings)() SetFitPdfToPage(value *bool)() SetInputBin(value *string)() SetMediaColor(value *string)() SetMediaSize(value *string)() SetMediaType(value *string)() - SetMultipageLayout(value *PrintMultipageLayout)() + SetMultipageLayout(value *PrinterDefaults_multipageLayout)() SetOdataType(value *string)() - SetOrientation(value *PrintOrientation)() + SetOrientation(value *PrinterDefaults_orientation)() SetOutputBin(value *string)() SetPagesPerSheet(value *int32)() SetPdfFitToPage(value *bool)() - SetPresentationDirection(value *PrintPresentationDirection)() - SetPrintColorConfiguration(value *PrintColorConfiguration)() - SetPrintQuality(value *PrintQuality)() - SetQuality(value *PrintQuality)() - SetScaling(value *PrintScaling)() + SetPresentationDirection(value *PrinterDefaults_presentationDirection)() + SetPrintColorConfiguration(value *PrinterDefaults_printColorConfiguration)() + SetPrintQuality(value *PrinterDefaults_printQuality)() + SetQuality(value *PrinterDefaults_quality)() + SetScaling(value *PrinterDefaults_scaling)() } diff --git a/models/printer_defaults_color_mode.go b/models/printer_defaults_color_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_duplex_configuration.go b/models/printer_defaults_duplex_configuration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_duplex_mode.go b/models/printer_defaults_duplex_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_finishings.go b/models/printer_defaults_finishings.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_multipage_layout.go b/models/printer_defaults_multipage_layout.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_orientation.go b/models/printer_defaults_orientation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_presentation_direction.go b/models/printer_defaults_presentation_direction.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_print_color_configuration.go b/models/printer_defaults_print_color_configuration.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_print_quality.go b/models/printer_defaults_print_quality.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_quality.go b/models/printer_defaults_quality.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_defaults_scaling.go b/models/printer_defaults_scaling.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration.go b/models/printer_document_configuration.go index 037f2a16f0f..7ffc5beaae0 100644 --- a/models/printer_document_configuration.go +++ b/models/printer_document_configuration.go @@ -50,13 +50,13 @@ func (m *PrinterDocumentConfiguration) GetCollate()(*bool) { return nil } // GetColorMode gets the colorMode property value. The colorMode property -func (m *PrinterDocumentConfiguration) GetColorMode()(*PrintColorMode) { +func (m *PrinterDocumentConfiguration) GetColorMode()(*PrinterDocumentConfiguration_colorMode) { val, err := m.GetBackingStore().Get("colorMode") if err != nil { panic(err) } if val != nil { - return val.(*PrintColorMode) + return val.(*PrinterDocumentConfiguration_colorMode) } return nil } @@ -83,35 +83,35 @@ func (m *PrinterDocumentConfiguration) GetDpi()(*int32) { return nil } // GetDuplexMode gets the duplexMode property value. The duplexMode property -func (m *PrinterDocumentConfiguration) GetDuplexMode()(*PrintDuplexMode) { +func (m *PrinterDocumentConfiguration) GetDuplexMode()(*PrinterDocumentConfiguration_duplexMode) { val, err := m.GetBackingStore().Get("duplexMode") if err != nil { panic(err) } if val != nil { - return val.(*PrintDuplexMode) + return val.(*PrinterDocumentConfiguration_duplexMode) } return nil } // GetFeedDirection gets the feedDirection property value. The feedDirection property -func (m *PrinterDocumentConfiguration) GetFeedDirection()(*PrinterFeedDirection) { +func (m *PrinterDocumentConfiguration) GetFeedDirection()(*PrinterDocumentConfiguration_feedDirection) { val, err := m.GetBackingStore().Get("feedDirection") if err != nil { panic(err) } if val != nil { - return val.(*PrinterFeedDirection) + return val.(*PrinterDocumentConfiguration_feedDirection) } return nil } // GetFeedOrientation gets the feedOrientation property value. The feedOrientation property -func (m *PrinterDocumentConfiguration) GetFeedOrientation()(*PrinterFeedOrientation) { +func (m *PrinterDocumentConfiguration) GetFeedOrientation()(*PrinterDocumentConfiguration_feedOrientation) { val, err := m.GetBackingStore().Get("feedOrientation") if err != nil { panic(err) } if val != nil { - return val.(*PrinterFeedOrientation) + return val.(*PrinterDocumentConfiguration_feedOrientation) } return nil } @@ -129,12 +129,12 @@ func (m *PrinterDocumentConfiguration) GetFieldDeserializers()(map[string]func(i return nil } res["colorMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintColorMode) + val, err := n.GetEnumValue(ParsePrinterDocumentConfiguration_colorMode) if err != nil { return err } if val != nil { - m.SetColorMode(val.(*PrintColorMode)) + m.SetColorMode(val.(*PrinterDocumentConfiguration_colorMode)) } return nil } @@ -159,45 +159,45 @@ func (m *PrinterDocumentConfiguration) GetFieldDeserializers()(map[string]func(i return nil } res["duplexMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintDuplexMode) + val, err := n.GetEnumValue(ParsePrinterDocumentConfiguration_duplexMode) if err != nil { return err } if val != nil { - m.SetDuplexMode(val.(*PrintDuplexMode)) + m.SetDuplexMode(val.(*PrinterDocumentConfiguration_duplexMode)) } return nil } res["feedDirection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrinterFeedDirection) + val, err := n.GetEnumValue(ParsePrinterDocumentConfiguration_feedDirection) if err != nil { return err } if val != nil { - m.SetFeedDirection(val.(*PrinterFeedDirection)) + m.SetFeedDirection(val.(*PrinterDocumentConfiguration_feedDirection)) } return nil } res["feedOrientation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrinterFeedOrientation) + val, err := n.GetEnumValue(ParsePrinterDocumentConfiguration_feedOrientation) if err != nil { return err } if val != nil { - m.SetFeedOrientation(val.(*PrinterFeedOrientation)) + m.SetFeedOrientation(val.(*PrinterDocumentConfiguration_feedOrientation)) } return nil } res["finishings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParsePrintFinishing) + val, err := n.GetCollectionOfEnumValues(ParsePrinterDocumentConfiguration_finishings) if err != nil { return err } if val != nil { - res := make([]PrintFinishing, len(val)) + res := make([]PrinterDocumentConfiguration_finishings, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*PrintFinishing)) + res[i] = *(v.(*PrinterDocumentConfiguration_finishings)) } } m.SetFinishings(res) @@ -255,12 +255,12 @@ func (m *PrinterDocumentConfiguration) GetFieldDeserializers()(map[string]func(i return nil } res["multipageLayout"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintMultipageLayout) + val, err := n.GetEnumValue(ParsePrinterDocumentConfiguration_multipageLayout) if err != nil { return err } if val != nil { - m.SetMultipageLayout(val.(*PrintMultipageLayout)) + m.SetMultipageLayout(val.(*PrinterDocumentConfiguration_multipageLayout)) } return nil } @@ -275,12 +275,12 @@ func (m *PrinterDocumentConfiguration) GetFieldDeserializers()(map[string]func(i return nil } res["orientation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintOrientation) + val, err := n.GetEnumValue(ParsePrinterDocumentConfiguration_orientation) if err != nil { return err } if val != nil { - m.SetOrientation(val.(*PrintOrientation)) + m.SetOrientation(val.(*PrinterDocumentConfiguration_orientation)) } return nil } @@ -321,35 +321,35 @@ func (m *PrinterDocumentConfiguration) GetFieldDeserializers()(map[string]func(i return nil } res["quality"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintQuality) + val, err := n.GetEnumValue(ParsePrinterDocumentConfiguration_quality) if err != nil { return err } if val != nil { - m.SetQuality(val.(*PrintQuality)) + m.SetQuality(val.(*PrinterDocumentConfiguration_quality)) } return nil } res["scaling"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrintScaling) + val, err := n.GetEnumValue(ParsePrinterDocumentConfiguration_scaling) if err != nil { return err } if val != nil { - m.SetScaling(val.(*PrintScaling)) + m.SetScaling(val.(*PrinterDocumentConfiguration_scaling)) } return nil } return res } // GetFinishings gets the finishings property value. The finishings property -func (m *PrinterDocumentConfiguration) GetFinishings()([]PrintFinishing) { +func (m *PrinterDocumentConfiguration) GetFinishings()([]PrinterDocumentConfiguration_finishings) { val, err := m.GetBackingStore().Get("finishings") if err != nil { panic(err) } if val != nil { - return val.([]PrintFinishing) + return val.([]PrinterDocumentConfiguration_finishings) } return nil } @@ -409,13 +409,13 @@ func (m *PrinterDocumentConfiguration) GetMediaType()(*string) { return nil } // GetMultipageLayout gets the multipageLayout property value. The multipageLayout property -func (m *PrinterDocumentConfiguration) GetMultipageLayout()(*PrintMultipageLayout) { +func (m *PrinterDocumentConfiguration) GetMultipageLayout()(*PrinterDocumentConfiguration_multipageLayout) { val, err := m.GetBackingStore().Get("multipageLayout") if err != nil { panic(err) } if val != nil { - return val.(*PrintMultipageLayout) + return val.(*PrinterDocumentConfiguration_multipageLayout) } return nil } @@ -431,13 +431,13 @@ func (m *PrinterDocumentConfiguration) GetOdataType()(*string) { return nil } // GetOrientation gets the orientation property value. The orientation property -func (m *PrinterDocumentConfiguration) GetOrientation()(*PrintOrientation) { +func (m *PrinterDocumentConfiguration) GetOrientation()(*PrinterDocumentConfiguration_orientation) { val, err := m.GetBackingStore().Get("orientation") if err != nil { panic(err) } if val != nil { - return val.(*PrintOrientation) + return val.(*PrinterDocumentConfiguration_orientation) } return nil } @@ -475,24 +475,24 @@ func (m *PrinterDocumentConfiguration) GetPagesPerSheet()(*int32) { return nil } // GetQuality gets the quality property value. The quality property -func (m *PrinterDocumentConfiguration) GetQuality()(*PrintQuality) { +func (m *PrinterDocumentConfiguration) GetQuality()(*PrinterDocumentConfiguration_quality) { val, err := m.GetBackingStore().Get("quality") if err != nil { panic(err) } if val != nil { - return val.(*PrintQuality) + return val.(*PrinterDocumentConfiguration_quality) } return nil } // GetScaling gets the scaling property value. The scaling property -func (m *PrinterDocumentConfiguration) GetScaling()(*PrintScaling) { +func (m *PrinterDocumentConfiguration) GetScaling()(*PrinterDocumentConfiguration_scaling) { val, err := m.GetBackingStore().Get("scaling") if err != nil { panic(err) } if val != nil { - return val.(*PrintScaling) + return val.(*PrinterDocumentConfiguration_scaling) } return nil } @@ -545,7 +545,7 @@ func (m *PrinterDocumentConfiguration) Serialize(writer i878a80d2330e89d26896388 } } if m.GetFinishings() != nil { - err := writer.WriteCollectionOfStringValues("finishings", SerializePrintFinishing(m.GetFinishings())) + err := writer.WriteCollectionOfStringValues("finishings", SerializePrinterDocumentConfiguration_finishings(m.GetFinishings())) if err != nil { return err } @@ -665,7 +665,7 @@ func (m *PrinterDocumentConfiguration) SetCollate(value *bool)() { } } // SetColorMode sets the colorMode property value. The colorMode property -func (m *PrinterDocumentConfiguration) SetColorMode(value *PrintColorMode)() { +func (m *PrinterDocumentConfiguration) SetColorMode(value *PrinterDocumentConfiguration_colorMode)() { err := m.GetBackingStore().Set("colorMode", value) if err != nil { panic(err) @@ -686,28 +686,28 @@ func (m *PrinterDocumentConfiguration) SetDpi(value *int32)() { } } // SetDuplexMode sets the duplexMode property value. The duplexMode property -func (m *PrinterDocumentConfiguration) SetDuplexMode(value *PrintDuplexMode)() { +func (m *PrinterDocumentConfiguration) SetDuplexMode(value *PrinterDocumentConfiguration_duplexMode)() { err := m.GetBackingStore().Set("duplexMode", value) if err != nil { panic(err) } } // SetFeedDirection sets the feedDirection property value. The feedDirection property -func (m *PrinterDocumentConfiguration) SetFeedDirection(value *PrinterFeedDirection)() { +func (m *PrinterDocumentConfiguration) SetFeedDirection(value *PrinterDocumentConfiguration_feedDirection)() { err := m.GetBackingStore().Set("feedDirection", value) if err != nil { panic(err) } } // SetFeedOrientation sets the feedOrientation property value. The feedOrientation property -func (m *PrinterDocumentConfiguration) SetFeedOrientation(value *PrinterFeedOrientation)() { +func (m *PrinterDocumentConfiguration) SetFeedOrientation(value *PrinterDocumentConfiguration_feedOrientation)() { err := m.GetBackingStore().Set("feedOrientation", value) if err != nil { panic(err) } } // SetFinishings sets the finishings property value. The finishings property -func (m *PrinterDocumentConfiguration) SetFinishings(value []PrintFinishing)() { +func (m *PrinterDocumentConfiguration) SetFinishings(value []PrinterDocumentConfiguration_finishings)() { err := m.GetBackingStore().Set("finishings", value) if err != nil { panic(err) @@ -749,7 +749,7 @@ func (m *PrinterDocumentConfiguration) SetMediaType(value *string)() { } } // SetMultipageLayout sets the multipageLayout property value. The multipageLayout property -func (m *PrinterDocumentConfiguration) SetMultipageLayout(value *PrintMultipageLayout)() { +func (m *PrinterDocumentConfiguration) SetMultipageLayout(value *PrinterDocumentConfiguration_multipageLayout)() { err := m.GetBackingStore().Set("multipageLayout", value) if err != nil { panic(err) @@ -763,7 +763,7 @@ func (m *PrinterDocumentConfiguration) SetOdataType(value *string)() { } } // SetOrientation sets the orientation property value. The orientation property -func (m *PrinterDocumentConfiguration) SetOrientation(value *PrintOrientation)() { +func (m *PrinterDocumentConfiguration) SetOrientation(value *PrinterDocumentConfiguration_orientation)() { err := m.GetBackingStore().Set("orientation", value) if err != nil { panic(err) @@ -791,14 +791,14 @@ func (m *PrinterDocumentConfiguration) SetPagesPerSheet(value *int32)() { } } // SetQuality sets the quality property value. The quality property -func (m *PrinterDocumentConfiguration) SetQuality(value *PrintQuality)() { +func (m *PrinterDocumentConfiguration) SetQuality(value *PrinterDocumentConfiguration_quality)() { err := m.GetBackingStore().Set("quality", value) if err != nil { panic(err) } } // SetScaling sets the scaling property value. The scaling property -func (m *PrinterDocumentConfiguration) SetScaling(value *PrintScaling)() { +func (m *PrinterDocumentConfiguration) SetScaling(value *PrinterDocumentConfiguration_scaling)() { err := m.GetBackingStore().Set("scaling", value) if err != nil { panic(err) @@ -811,46 +811,46 @@ type PrinterDocumentConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCollate()(*bool) - GetColorMode()(*PrintColorMode) + GetColorMode()(*PrinterDocumentConfiguration_colorMode) GetCopies()(*int32) GetDpi()(*int32) - GetDuplexMode()(*PrintDuplexMode) - GetFeedDirection()(*PrinterFeedDirection) - GetFeedOrientation()(*PrinterFeedOrientation) - GetFinishings()([]PrintFinishing) + GetDuplexMode()(*PrinterDocumentConfiguration_duplexMode) + GetFeedDirection()(*PrinterDocumentConfiguration_feedDirection) + GetFeedOrientation()(*PrinterDocumentConfiguration_feedOrientation) + GetFinishings()([]PrinterDocumentConfiguration_finishings) GetFitPdfToPage()(*bool) GetInputBin()(*string) GetMargin()(PrintMarginable) GetMediaSize()(*string) GetMediaType()(*string) - GetMultipageLayout()(*PrintMultipageLayout) + GetMultipageLayout()(*PrinterDocumentConfiguration_multipageLayout) GetOdataType()(*string) - GetOrientation()(*PrintOrientation) + GetOrientation()(*PrinterDocumentConfiguration_orientation) GetOutputBin()(*string) GetPageRanges()([]IntegerRangeable) GetPagesPerSheet()(*int32) - GetQuality()(*PrintQuality) - GetScaling()(*PrintScaling) + GetQuality()(*PrinterDocumentConfiguration_quality) + GetScaling()(*PrinterDocumentConfiguration_scaling) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCollate(value *bool)() - SetColorMode(value *PrintColorMode)() + SetColorMode(value *PrinterDocumentConfiguration_colorMode)() SetCopies(value *int32)() SetDpi(value *int32)() - SetDuplexMode(value *PrintDuplexMode)() - SetFeedDirection(value *PrinterFeedDirection)() - SetFeedOrientation(value *PrinterFeedOrientation)() - SetFinishings(value []PrintFinishing)() + SetDuplexMode(value *PrinterDocumentConfiguration_duplexMode)() + SetFeedDirection(value *PrinterDocumentConfiguration_feedDirection)() + SetFeedOrientation(value *PrinterDocumentConfiguration_feedOrientation)() + SetFinishings(value []PrinterDocumentConfiguration_finishings)() SetFitPdfToPage(value *bool)() SetInputBin(value *string)() SetMargin(value PrintMarginable)() SetMediaSize(value *string)() SetMediaType(value *string)() - SetMultipageLayout(value *PrintMultipageLayout)() + SetMultipageLayout(value *PrinterDocumentConfiguration_multipageLayout)() SetOdataType(value *string)() - SetOrientation(value *PrintOrientation)() + SetOrientation(value *PrinterDocumentConfiguration_orientation)() SetOutputBin(value *string)() SetPageRanges(value []IntegerRangeable)() SetPagesPerSheet(value *int32)() - SetQuality(value *PrintQuality)() - SetScaling(value *PrintScaling)() + SetQuality(value *PrinterDocumentConfiguration_quality)() + SetScaling(value *PrinterDocumentConfiguration_scaling)() } diff --git a/models/printer_document_configuration_color_mode.go b/models/printer_document_configuration_color_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration_duplex_mode.go b/models/printer_document_configuration_duplex_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration_feed_direction.go b/models/printer_document_configuration_feed_direction.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration_feed_orientation.go b/models/printer_document_configuration_feed_orientation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration_finishings.go b/models/printer_document_configuration_finishings.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration_multipage_layout.go b/models/printer_document_configuration_multipage_layout.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration_orientation.go b/models/printer_document_configuration_orientation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration_quality.go b/models/printer_document_configuration_quality.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_document_configuration_scaling.go b/models/printer_document_configuration_scaling.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/printer_feed_direction.go b/models/printer_feed_direction.go deleted file mode 100644 index a7ab689edf7..00000000000 --- a/models/printer_feed_direction.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type PrinterFeedDirection int - -const ( - LONGEDGEFIRST_PRINTERFEEDDIRECTION PrinterFeedDirection = iota - SHORTEDGEFIRST_PRINTERFEEDDIRECTION -) - -func (i PrinterFeedDirection) String() string { - return []string{"longEdgeFirst", "shortEdgeFirst"}[i] -} -func ParsePrinterFeedDirection(v string) (any, error) { - result := LONGEDGEFIRST_PRINTERFEEDDIRECTION - switch v { - case "longEdgeFirst": - result = LONGEDGEFIRST_PRINTERFEEDDIRECTION - case "shortEdgeFirst": - result = SHORTEDGEFIRST_PRINTERFEEDDIRECTION - default: - return 0, errors.New("Unknown PrinterFeedDirection value: " + v) - } - return &result, nil -} -func SerializePrinterFeedDirection(values []PrinterFeedDirection) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrinterFeedDirection) isMultiValue() bool { - return false -} diff --git a/models/printer_feed_orientation.go b/models/printer_feed_orientation.go deleted file mode 100644 index cf97e1d3c4f..00000000000 --- a/models/printer_feed_orientation.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type PrinterFeedOrientation int - -const ( - LONGEDGEFIRST_PRINTERFEEDORIENTATION PrinterFeedOrientation = iota - SHORTEDGEFIRST_PRINTERFEEDORIENTATION -) - -func (i PrinterFeedOrientation) String() string { - return []string{"longEdgeFirst", "shortEdgeFirst"}[i] -} -func ParsePrinterFeedOrientation(v string) (any, error) { - result := LONGEDGEFIRST_PRINTERFEEDORIENTATION - switch v { - case "longEdgeFirst": - result = LONGEDGEFIRST_PRINTERFEEDORIENTATION - case "shortEdgeFirst": - result = SHORTEDGEFIRST_PRINTERFEEDORIENTATION - default: - return 0, errors.New("Unknown PrinterFeedOrientation value: " + v) - } - return &result, nil -} -func SerializePrinterFeedOrientation(values []PrinterFeedOrientation) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrinterFeedOrientation) isMultiValue() bool { - return false -} diff --git a/models/priority.go b/models/priority.go deleted file mode 100644 index c5c3297092e..00000000000 --- a/models/priority.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type Priority int - -const ( - NONE_PRIORITY Priority = iota - HIGH_PRIORITY - LOW_PRIORITY -) - -func (i Priority) String() string { - return []string{"None", "High", "Low"}[i] -} -func ParsePriority(v string) (any, error) { - result := NONE_PRIORITY - switch v { - case "None": - result = NONE_PRIORITY - case "High": - result = HIGH_PRIORITY - case "Low": - result = LOW_PRIORITY - default: - return 0, errors.New("Unknown Priority value: " + v) - } - return &result, nil -} -func SerializePriority(values []Priority) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Priority) isMultiValue() bool { - return false -} diff --git a/models/private_network_destination_type.go b/models/private_network_destination_type.go deleted file mode 100644 index 66f060059bc..00000000000 --- a/models/private_network_destination_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type PrivateNetworkDestinationType int - -const ( - IPADDRESS_PRIVATENETWORKDESTINATIONTYPE PrivateNetworkDestinationType = iota - IPRANGE_PRIVATENETWORKDESTINATIONTYPE - IPRANGECIDR_PRIVATENETWORKDESTINATIONTYPE - FQDN_PRIVATENETWORKDESTINATIONTYPE - DNSSUFFIX_PRIVATENETWORKDESTINATIONTYPE - UNKNOWNFUTUREVALUE_PRIVATENETWORKDESTINATIONTYPE -) - -func (i PrivateNetworkDestinationType) String() string { - return []string{"ipAddress", "ipRange", "ipRangeCidr", "fqdn", "dnsSuffix", "unknownFutureValue"}[i] -} -func ParsePrivateNetworkDestinationType(v string) (any, error) { - result := IPADDRESS_PRIVATENETWORKDESTINATIONTYPE - switch v { - case "ipAddress": - result = IPADDRESS_PRIVATENETWORKDESTINATIONTYPE - case "ipRange": - result = IPRANGE_PRIVATENETWORKDESTINATIONTYPE - case "ipRangeCidr": - result = IPRANGECIDR_PRIVATENETWORKDESTINATIONTYPE - case "fqdn": - result = FQDN_PRIVATENETWORKDESTINATIONTYPE - case "dnsSuffix": - result = DNSSUFFIX_PRIVATENETWORKDESTINATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRIVATENETWORKDESTINATIONTYPE - default: - return 0, errors.New("Unknown PrivateNetworkDestinationType value: " + v) - } - return &result, nil -} -func SerializePrivateNetworkDestinationType(values []PrivateNetworkDestinationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrivateNetworkDestinationType) isMultiValue() bool { - return false -} diff --git a/models/private_network_protocol.go b/models/private_network_protocol.go deleted file mode 100644 index 852f1599072..00000000000 --- a/models/private_network_protocol.go +++ /dev/null @@ -1,50 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type PrivateNetworkProtocol int - -const ( - TCP_PRIVATENETWORKPROTOCOL PrivateNetworkProtocol = iota - UDP_PRIVATENETWORKPROTOCOL - UNKNOWNFUTUREVALUE_PRIVATENETWORKPROTOCOL -) - -func (i PrivateNetworkProtocol) String() string { - var values []string - for p := PrivateNetworkProtocol(1); p <= UNKNOWNFUTUREVALUE_PRIVATENETWORKPROTOCOL; p <<= 1 { - if i&p == p { - values = append(values, []string{"tcp", "udp", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParsePrivateNetworkProtocol(v string) (any, error) { - var result PrivateNetworkProtocol - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "tcp": - result |= TCP_PRIVATENETWORKPROTOCOL - case "udp": - result |= UDP_PRIVATENETWORKPROTOCOL - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_PRIVATENETWORKPROTOCOL - default: - return 0, errors.New("Unknown PrivateNetworkProtocol value: " + v) - } - } - return &result, nil -} -func SerializePrivateNetworkProtocol(values []PrivateNetworkProtocol) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrivateNetworkProtocol) isMultiValue() bool { - return true -} diff --git a/models/privileged_access_group_assignment_schedule.go b/models/privileged_access_group_assignment_schedule.go index 8669d369c2f..c36e3267994 100644 --- a/models/privileged_access_group_assignment_schedule.go +++ b/models/privileged_access_group_assignment_schedule.go @@ -22,13 +22,13 @@ func CreatePrivilegedAccessGroupAssignmentScheduleFromDiscriminatorValue(parseNo return NewPrivilegedAccessGroupAssignmentSchedule(), nil } // GetAccessId gets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentSchedule) GetAccessId()(*PrivilegedAccessGroupRelationships) { +func (m *PrivilegedAccessGroupAssignmentSchedule) GetAccessId()(*PrivilegedAccessGroupAssignmentSchedule_accessId) { val, err := m.GetBackingStore().Get("accessId") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupRelationships) + return val.(*PrivilegedAccessGroupAssignmentSchedule_accessId) } return nil } @@ -44,13 +44,13 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetActivatedUsing()(Privileged return nil } // GetAssignmentType gets the assignmentType property value. Indicates whether the membership or ownership assignment for the principal is granted through activation or direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentSchedule) GetAssignmentType()(*PrivilegedAccessGroupAssignmentType) { +func (m *PrivilegedAccessGroupAssignmentSchedule) GetAssignmentType()(*PrivilegedAccessGroupAssignmentSchedule_assignmentType) { val, err := m.GetBackingStore().Get("assignmentType") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupAssignmentType) + return val.(*PrivilegedAccessGroupAssignmentSchedule_assignmentType) } return nil } @@ -58,12 +58,12 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetAssignmentType()(*Privilege func (m *PrivilegedAccessGroupAssignmentSchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PrivilegedAccessSchedule.GetFieldDeserializers() res["accessId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupRelationships) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentSchedule_accessId) if err != nil { return err } if val != nil { - m.SetAccessId(val.(*PrivilegedAccessGroupRelationships)) + m.SetAccessId(val.(*PrivilegedAccessGroupAssignmentSchedule_accessId)) } return nil } @@ -78,12 +78,12 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetFieldDeserializers()(map[st return nil } res["assignmentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentType) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentSchedule_assignmentType) if err != nil { return err } if val != nil { - m.SetAssignmentType(val.(*PrivilegedAccessGroupAssignmentType)) + m.SetAssignmentType(val.(*PrivilegedAccessGroupAssignmentSchedule_assignmentType)) } return nil } @@ -108,12 +108,12 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetFieldDeserializers()(map[st return nil } res["memberType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupMemberType) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentSchedule_memberType) if err != nil { return err } if val != nil { - m.SetMemberType(val.(*PrivilegedAccessGroupMemberType)) + m.SetMemberType(val.(*PrivilegedAccessGroupAssignmentSchedule_memberType)) } return nil } @@ -162,13 +162,13 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetGroupId()(*string) { return nil } // GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a direct group assignment or through a transitive assignment. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentSchedule) GetMemberType()(*PrivilegedAccessGroupMemberType) { +func (m *PrivilegedAccessGroupAssignmentSchedule) GetMemberType()(*PrivilegedAccessGroupAssignmentSchedule_memberType) { val, err := m.GetBackingStore().Get("memberType") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupMemberType) + return val.(*PrivilegedAccessGroupAssignmentSchedule_memberType) } return nil } @@ -254,7 +254,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) Serialize(writer i878a80d2330e return nil } // SetAccessId sets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentSchedule) SetAccessId(value *PrivilegedAccessGroupRelationships)() { +func (m *PrivilegedAccessGroupAssignmentSchedule) SetAccessId(value *PrivilegedAccessGroupAssignmentSchedule_accessId)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { panic(err) @@ -268,7 +268,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) SetActivatedUsing(value Privil } } // SetAssignmentType sets the assignmentType property value. Indicates whether the membership or ownership assignment for the principal is granted through activation or direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentSchedule) SetAssignmentType(value *PrivilegedAccessGroupAssignmentType)() { +func (m *PrivilegedAccessGroupAssignmentSchedule) SetAssignmentType(value *PrivilegedAccessGroupAssignmentSchedule_assignmentType)() { err := m.GetBackingStore().Set("assignmentType", value) if err != nil { panic(err) @@ -289,7 +289,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) SetGroupId(value *string)() { } } // SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a direct group assignment or through a transitive assignment. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentSchedule) SetMemberType(value *PrivilegedAccessGroupMemberType)() { +func (m *PrivilegedAccessGroupAssignmentSchedule) SetMemberType(value *PrivilegedAccessGroupAssignmentSchedule_memberType)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { panic(err) @@ -313,20 +313,20 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) SetPrincipalId(value *string)( type PrivilegedAccessGroupAssignmentScheduleable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PrivilegedAccessScheduleable - GetAccessId()(*PrivilegedAccessGroupRelationships) + GetAccessId()(*PrivilegedAccessGroupAssignmentSchedule_accessId) GetActivatedUsing()(PrivilegedAccessGroupEligibilityScheduleable) - GetAssignmentType()(*PrivilegedAccessGroupAssignmentType) + GetAssignmentType()(*PrivilegedAccessGroupAssignmentSchedule_assignmentType) GetGroup()(Groupable) GetGroupId()(*string) - GetMemberType()(*PrivilegedAccessGroupMemberType) + GetMemberType()(*PrivilegedAccessGroupAssignmentSchedule_memberType) GetPrincipal()(DirectoryObjectable) GetPrincipalId()(*string) - SetAccessId(value *PrivilegedAccessGroupRelationships)() + SetAccessId(value *PrivilegedAccessGroupAssignmentSchedule_accessId)() SetActivatedUsing(value PrivilegedAccessGroupEligibilityScheduleable)() - SetAssignmentType(value *PrivilegedAccessGroupAssignmentType)() + SetAssignmentType(value *PrivilegedAccessGroupAssignmentSchedule_assignmentType)() SetGroup(value Groupable)() SetGroupId(value *string)() - SetMemberType(value *PrivilegedAccessGroupMemberType)() + SetMemberType(value *PrivilegedAccessGroupAssignmentSchedule_memberType)() SetPrincipal(value DirectoryObjectable)() SetPrincipalId(value *string)() } diff --git a/models/privileged_access_group_assignment_schedule_access_id.go b/models/privileged_access_group_assignment_schedule_access_id.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_assignment_schedule_assignment_type.go b/models/privileged_access_group_assignment_schedule_assignment_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_assignment_schedule_instance.go b/models/privileged_access_group_assignment_schedule_instance.go index 97a099f74c0..9f97083024d 100644 --- a/models/privileged_access_group_assignment_schedule_instance.go +++ b/models/privileged_access_group_assignment_schedule_instance.go @@ -22,13 +22,13 @@ func CreatePrivilegedAccessGroupAssignmentScheduleInstanceFromDiscriminatorValue return NewPrivilegedAccessGroupAssignmentScheduleInstance(), nil } // GetAccessId gets the accessId property value. The identifier of the membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAccessId()(*PrivilegedAccessGroupRelationships) { +func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAccessId()(*PrivilegedAccessGroupAssignmentScheduleInstance_accessId) { val, err := m.GetBackingStore().Get("accessId") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupRelationships) + return val.(*PrivilegedAccessGroupAssignmentScheduleInstance_accessId) } return nil } @@ -55,13 +55,13 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAssignmentScheduleI return nil } // GetAssignmentType gets the assignmentType property value. Indicates whether the membership or ownership assignment is granted through activation of an eligibility or through direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAssignmentType()(*PrivilegedAccessGroupAssignmentType) { +func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAssignmentType()(*PrivilegedAccessGroupAssignmentScheduleInstance_assignmentType) { val, err := m.GetBackingStore().Get("assignmentType") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupAssignmentType) + return val.(*PrivilegedAccessGroupAssignmentScheduleInstance_assignmentType) } return nil } @@ -69,12 +69,12 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAssignmentType()(*P func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PrivilegedAccessScheduleInstance.GetFieldDeserializers() res["accessId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupRelationships) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentScheduleInstance_accessId) if err != nil { return err } if val != nil { - m.SetAccessId(val.(*PrivilegedAccessGroupRelationships)) + m.SetAccessId(val.(*PrivilegedAccessGroupAssignmentScheduleInstance_accessId)) } return nil } @@ -99,12 +99,12 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetFieldDeserializers( return nil } res["assignmentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentType) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentScheduleInstance_assignmentType) if err != nil { return err } if val != nil { - m.SetAssignmentType(val.(*PrivilegedAccessGroupAssignmentType)) + m.SetAssignmentType(val.(*PrivilegedAccessGroupAssignmentScheduleInstance_assignmentType)) } return nil } @@ -129,12 +129,12 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetFieldDeserializers( return nil } res["memberType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupMemberType) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentScheduleInstance_memberType) if err != nil { return err } if val != nil { - m.SetMemberType(val.(*PrivilegedAccessGroupMemberType)) + m.SetMemberType(val.(*PrivilegedAccessGroupAssignmentScheduleInstance_memberType)) } return nil } @@ -183,13 +183,13 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetGroupId()(*string) return nil } // GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetMemberType()(*PrivilegedAccessGroupMemberType) { +func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetMemberType()(*PrivilegedAccessGroupAssignmentScheduleInstance_memberType) { val, err := m.GetBackingStore().Get("memberType") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupMemberType) + return val.(*PrivilegedAccessGroupAssignmentScheduleInstance_memberType) } return nil } @@ -281,7 +281,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) Serialize(writer i878a return nil } // SetAccessId sets the accessId property value. The identifier of the membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetAccessId(value *PrivilegedAccessGroupRelationships)() { +func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetAccessId(value *PrivilegedAccessGroupAssignmentScheduleInstance_accessId)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { panic(err) @@ -302,7 +302,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetAssignmentScheduleI } } // SetAssignmentType sets the assignmentType property value. Indicates whether the membership or ownership assignment is granted through activation of an eligibility or through direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetAssignmentType(value *PrivilegedAccessGroupAssignmentType)() { +func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetAssignmentType(value *PrivilegedAccessGroupAssignmentScheduleInstance_assignmentType)() { err := m.GetBackingStore().Set("assignmentType", value) if err != nil { panic(err) @@ -323,7 +323,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetGroupId(value *stri } } // SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetMemberType(value *PrivilegedAccessGroupMemberType)() { +func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetMemberType(value *PrivilegedAccessGroupAssignmentScheduleInstance_memberType)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { panic(err) @@ -347,22 +347,22 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetPrincipalId(value * type PrivilegedAccessGroupAssignmentScheduleInstanceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PrivilegedAccessScheduleInstanceable - GetAccessId()(*PrivilegedAccessGroupRelationships) + GetAccessId()(*PrivilegedAccessGroupAssignmentScheduleInstance_accessId) GetActivatedUsing()(PrivilegedAccessGroupEligibilityScheduleInstanceable) GetAssignmentScheduleId()(*string) - GetAssignmentType()(*PrivilegedAccessGroupAssignmentType) + GetAssignmentType()(*PrivilegedAccessGroupAssignmentScheduleInstance_assignmentType) GetGroup()(Groupable) GetGroupId()(*string) - GetMemberType()(*PrivilegedAccessGroupMemberType) + GetMemberType()(*PrivilegedAccessGroupAssignmentScheduleInstance_memberType) GetPrincipal()(DirectoryObjectable) GetPrincipalId()(*string) - SetAccessId(value *PrivilegedAccessGroupRelationships)() + SetAccessId(value *PrivilegedAccessGroupAssignmentScheduleInstance_accessId)() SetActivatedUsing(value PrivilegedAccessGroupEligibilityScheduleInstanceable)() SetAssignmentScheduleId(value *string)() - SetAssignmentType(value *PrivilegedAccessGroupAssignmentType)() + SetAssignmentType(value *PrivilegedAccessGroupAssignmentScheduleInstance_assignmentType)() SetGroup(value Groupable)() SetGroupId(value *string)() - SetMemberType(value *PrivilegedAccessGroupMemberType)() + SetMemberType(value *PrivilegedAccessGroupAssignmentScheduleInstance_memberType)() SetPrincipal(value DirectoryObjectable)() SetPrincipalId(value *string)() } diff --git a/models/privileged_access_group_assignment_schedule_instance_access_id.go b/models/privileged_access_group_assignment_schedule_instance_access_id.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_assignment_schedule_instance_assignment_type.go b/models/privileged_access_group_assignment_schedule_instance_assignment_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_assignment_schedule_instance_member_type.go b/models/privileged_access_group_assignment_schedule_instance_member_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_assignment_schedule_member_type.go b/models/privileged_access_group_assignment_schedule_member_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_assignment_schedule_request.go b/models/privileged_access_group_assignment_schedule_request.go index d39834ee222..810f6412eca 100644 --- a/models/privileged_access_group_assignment_schedule_request.go +++ b/models/privileged_access_group_assignment_schedule_request.go @@ -22,13 +22,13 @@ func CreatePrivilegedAccessGroupAssignmentScheduleRequestFromDiscriminatorValue( return NewPrivilegedAccessGroupAssignmentScheduleRequest(), nil } // GetAccessId gets the accessId property value. The identifier of a membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. -func (m *PrivilegedAccessGroupAssignmentScheduleRequest) GetAccessId()(*PrivilegedAccessGroupRelationships) { +func (m *PrivilegedAccessGroupAssignmentScheduleRequest) GetAccessId()(*PrivilegedAccessGroupAssignmentScheduleRequest_accessId) { val, err := m.GetBackingStore().Get("accessId") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupRelationships) + return val.(*PrivilegedAccessGroupAssignmentScheduleRequest_accessId) } return nil } @@ -47,12 +47,12 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequest) GetActivatedUsing()(Pri func (m *PrivilegedAccessGroupAssignmentScheduleRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PrivilegedAccessScheduleRequest.GetFieldDeserializers() res["accessId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupRelationships) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupAssignmentScheduleRequest_accessId) if err != nil { return err } if val != nil { - m.SetAccessId(val.(*PrivilegedAccessGroupRelationships)) + m.SetAccessId(val.(*PrivilegedAccessGroupAssignmentScheduleRequest_accessId)) } return nil } @@ -252,7 +252,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequest) Serialize(writer i878a8 return nil } // SetAccessId sets the accessId property value. The identifier of a membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. -func (m *PrivilegedAccessGroupAssignmentScheduleRequest) SetAccessId(value *PrivilegedAccessGroupRelationships)() { +func (m *PrivilegedAccessGroupAssignmentScheduleRequest) SetAccessId(value *PrivilegedAccessGroupAssignmentScheduleRequest_accessId)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { panic(err) @@ -311,7 +311,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleRequest) SetTargetScheduleId(val type PrivilegedAccessGroupAssignmentScheduleRequestable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PrivilegedAccessScheduleRequestable - GetAccessId()(*PrivilegedAccessGroupRelationships) + GetAccessId()(*PrivilegedAccessGroupAssignmentScheduleRequest_accessId) GetActivatedUsing()(PrivilegedAccessGroupEligibilityScheduleable) GetGroup()(Groupable) GetGroupId()(*string) @@ -319,7 +319,7 @@ type PrivilegedAccessGroupAssignmentScheduleRequestable interface { GetPrincipalId()(*string) GetTargetSchedule()(PrivilegedAccessGroupEligibilityScheduleable) GetTargetScheduleId()(*string) - SetAccessId(value *PrivilegedAccessGroupRelationships)() + SetAccessId(value *PrivilegedAccessGroupAssignmentScheduleRequest_accessId)() SetActivatedUsing(value PrivilegedAccessGroupEligibilityScheduleable)() SetGroup(value Groupable)() SetGroupId(value *string)() diff --git a/models/privileged_access_group_assignment_schedule_request_access_id.go b/models/privileged_access_group_assignment_schedule_request_access_id.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_assignment_type.go b/models/privileged_access_group_assignment_type.go deleted file mode 100644 index 1219b59d51e..00000000000 --- a/models/privileged_access_group_assignment_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type PrivilegedAccessGroupAssignmentType int - -const ( - ASSIGNED_PRIVILEGEDACCESSGROUPASSIGNMENTTYPE PrivilegedAccessGroupAssignmentType = iota - ACTIVATED_PRIVILEGEDACCESSGROUPASSIGNMENTTYPE - UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPASSIGNMENTTYPE -) - -func (i PrivilegedAccessGroupAssignmentType) String() string { - return []string{"assigned", "activated", "unknownFutureValue"}[i] -} -func ParsePrivilegedAccessGroupAssignmentType(v string) (any, error) { - result := ASSIGNED_PRIVILEGEDACCESSGROUPASSIGNMENTTYPE - switch v { - case "assigned": - result = ASSIGNED_PRIVILEGEDACCESSGROUPASSIGNMENTTYPE - case "activated": - result = ACTIVATED_PRIVILEGEDACCESSGROUPASSIGNMENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPASSIGNMENTTYPE - default: - return 0, errors.New("Unknown PrivilegedAccessGroupAssignmentType value: " + v) - } - return &result, nil -} -func SerializePrivilegedAccessGroupAssignmentType(values []PrivilegedAccessGroupAssignmentType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrivilegedAccessGroupAssignmentType) isMultiValue() bool { - return false -} diff --git a/models/privileged_access_group_eligibility_schedule.go b/models/privileged_access_group_eligibility_schedule.go index 1ef921f956e..062a54fb646 100644 --- a/models/privileged_access_group_eligibility_schedule.go +++ b/models/privileged_access_group_eligibility_schedule.go @@ -22,13 +22,13 @@ func CreatePrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue(parseN return NewPrivilegedAccessGroupEligibilitySchedule(), nil } // GetAccessId gets the accessId property value. The identifier of the membership or ownership eligibility to the group that is governed by PIM. Required. The possible values are: owner, member. Supports $filter (eq). -func (m *PrivilegedAccessGroupEligibilitySchedule) GetAccessId()(*PrivilegedAccessGroupRelationships) { +func (m *PrivilegedAccessGroupEligibilitySchedule) GetAccessId()(*PrivilegedAccessGroupEligibilitySchedule_accessId) { val, err := m.GetBackingStore().Get("accessId") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupRelationships) + return val.(*PrivilegedAccessGroupEligibilitySchedule_accessId) } return nil } @@ -36,12 +36,12 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) GetAccessId()(*PrivilegedAcce func (m *PrivilegedAccessGroupEligibilitySchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PrivilegedAccessSchedule.GetFieldDeserializers() res["accessId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupRelationships) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupEligibilitySchedule_accessId) if err != nil { return err } if val != nil { - m.SetAccessId(val.(*PrivilegedAccessGroupRelationships)) + m.SetAccessId(val.(*PrivilegedAccessGroupEligibilitySchedule_accessId)) } return nil } @@ -66,12 +66,12 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) GetFieldDeserializers()(map[s return nil } res["memberType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupMemberType) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupEligibilitySchedule_memberType) if err != nil { return err } if val != nil { - m.SetMemberType(val.(*PrivilegedAccessGroupMemberType)) + m.SetMemberType(val.(*PrivilegedAccessGroupEligibilitySchedule_memberType)) } return nil } @@ -120,13 +120,13 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) GetGroupId()(*string) { return nil } // GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupEligibilitySchedule) GetMemberType()(*PrivilegedAccessGroupMemberType) { +func (m *PrivilegedAccessGroupEligibilitySchedule) GetMemberType()(*PrivilegedAccessGroupEligibilitySchedule_memberType) { val, err := m.GetBackingStore().Get("memberType") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupMemberType) + return val.(*PrivilegedAccessGroupEligibilitySchedule_memberType) } return nil } @@ -199,7 +199,7 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) Serialize(writer i878a80d2330 return nil } // SetAccessId sets the accessId property value. The identifier of the membership or ownership eligibility to the group that is governed by PIM. Required. The possible values are: owner, member. Supports $filter (eq). -func (m *PrivilegedAccessGroupEligibilitySchedule) SetAccessId(value *PrivilegedAccessGroupRelationships)() { +func (m *PrivilegedAccessGroupEligibilitySchedule) SetAccessId(value *PrivilegedAccessGroupEligibilitySchedule_accessId)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { panic(err) @@ -220,7 +220,7 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) SetGroupId(value *string)() { } } // SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupEligibilitySchedule) SetMemberType(value *PrivilegedAccessGroupMemberType)() { +func (m *PrivilegedAccessGroupEligibilitySchedule) SetMemberType(value *PrivilegedAccessGroupEligibilitySchedule_memberType)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { panic(err) @@ -244,16 +244,16 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) SetPrincipalId(value *string) type PrivilegedAccessGroupEligibilityScheduleable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PrivilegedAccessScheduleable - GetAccessId()(*PrivilegedAccessGroupRelationships) + GetAccessId()(*PrivilegedAccessGroupEligibilitySchedule_accessId) GetGroup()(Groupable) GetGroupId()(*string) - GetMemberType()(*PrivilegedAccessGroupMemberType) + GetMemberType()(*PrivilegedAccessGroupEligibilitySchedule_memberType) GetPrincipal()(DirectoryObjectable) GetPrincipalId()(*string) - SetAccessId(value *PrivilegedAccessGroupRelationships)() + SetAccessId(value *PrivilegedAccessGroupEligibilitySchedule_accessId)() SetGroup(value Groupable)() SetGroupId(value *string)() - SetMemberType(value *PrivilegedAccessGroupMemberType)() + SetMemberType(value *PrivilegedAccessGroupEligibilitySchedule_memberType)() SetPrincipal(value DirectoryObjectable)() SetPrincipalId(value *string)() } diff --git a/models/privileged_access_group_eligibility_schedule_access_id.go b/models/privileged_access_group_eligibility_schedule_access_id.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_eligibility_schedule_instance.go b/models/privileged_access_group_eligibility_schedule_instance.go index dcdd6db90aa..c711721b12f 100644 --- a/models/privileged_access_group_eligibility_schedule_instance.go +++ b/models/privileged_access_group_eligibility_schedule_instance.go @@ -22,13 +22,13 @@ func CreatePrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValu return NewPrivilegedAccessGroupEligibilityScheduleInstance(), nil } // GetAccessId gets the accessId property value. The identifier of the membership or ownership eligibility relationship to the group. Required. The possible values are: owner, member. Supports $filter (eq). -func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetAccessId()(*PrivilegedAccessGroupRelationships) { +func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetAccessId()(*PrivilegedAccessGroupEligibilityScheduleInstance_accessId) { val, err := m.GetBackingStore().Get("accessId") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupRelationships) + return val.(*PrivilegedAccessGroupEligibilityScheduleInstance_accessId) } return nil } @@ -47,12 +47,12 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetEligibilitySchedul func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PrivilegedAccessScheduleInstance.GetFieldDeserializers() res["accessId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupRelationships) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupEligibilityScheduleInstance_accessId) if err != nil { return err } if val != nil { - m.SetAccessId(val.(*PrivilegedAccessGroupRelationships)) + m.SetAccessId(val.(*PrivilegedAccessGroupEligibilityScheduleInstance_accessId)) } return nil } @@ -87,12 +87,12 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetFieldDeserializers return nil } res["memberType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupMemberType) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupEligibilityScheduleInstance_memberType) if err != nil { return err } if val != nil { - m.SetMemberType(val.(*PrivilegedAccessGroupMemberType)) + m.SetMemberType(val.(*PrivilegedAccessGroupEligibilityScheduleInstance_memberType)) } return nil } @@ -141,13 +141,13 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetGroupId()(*string) return nil } // GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the calling principal can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetMemberType()(*PrivilegedAccessGroupMemberType) { +func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetMemberType()(*PrivilegedAccessGroupEligibilityScheduleInstance_memberType) { val, err := m.GetBackingStore().Get("memberType") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupMemberType) + return val.(*PrivilegedAccessGroupEligibilityScheduleInstance_memberType) } return nil } @@ -226,7 +226,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) Serialize(writer i878 return nil } // SetAccessId sets the accessId property value. The identifier of the membership or ownership eligibility relationship to the group. Required. The possible values are: owner, member. Supports $filter (eq). -func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetAccessId(value *PrivilegedAccessGroupRelationships)() { +func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetAccessId(value *PrivilegedAccessGroupEligibilityScheduleInstance_accessId)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { panic(err) @@ -254,7 +254,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetGroupId(value *str } } // SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the calling principal can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). -func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetMemberType(value *PrivilegedAccessGroupMemberType)() { +func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetMemberType(value *PrivilegedAccessGroupEligibilityScheduleInstance_memberType)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { panic(err) @@ -278,18 +278,18 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetPrincipalId(value type PrivilegedAccessGroupEligibilityScheduleInstanceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PrivilegedAccessScheduleInstanceable - GetAccessId()(*PrivilegedAccessGroupRelationships) + GetAccessId()(*PrivilegedAccessGroupEligibilityScheduleInstance_accessId) GetEligibilityScheduleId()(*string) GetGroup()(Groupable) GetGroupId()(*string) - GetMemberType()(*PrivilegedAccessGroupMemberType) + GetMemberType()(*PrivilegedAccessGroupEligibilityScheduleInstance_memberType) GetPrincipal()(DirectoryObjectable) GetPrincipalId()(*string) - SetAccessId(value *PrivilegedAccessGroupRelationships)() + SetAccessId(value *PrivilegedAccessGroupEligibilityScheduleInstance_accessId)() SetEligibilityScheduleId(value *string)() SetGroup(value Groupable)() SetGroupId(value *string)() - SetMemberType(value *PrivilegedAccessGroupMemberType)() + SetMemberType(value *PrivilegedAccessGroupEligibilityScheduleInstance_memberType)() SetPrincipal(value DirectoryObjectable)() SetPrincipalId(value *string)() } diff --git a/models/privileged_access_group_eligibility_schedule_instance_access_id.go b/models/privileged_access_group_eligibility_schedule_instance_access_id.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_eligibility_schedule_instance_member_type.go b/models/privileged_access_group_eligibility_schedule_instance_member_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_eligibility_schedule_member_type.go b/models/privileged_access_group_eligibility_schedule_member_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_eligibility_schedule_request.go b/models/privileged_access_group_eligibility_schedule_request.go index c0ff35635c4..423de419376 100644 --- a/models/privileged_access_group_eligibility_schedule_request.go +++ b/models/privileged_access_group_eligibility_schedule_request.go @@ -22,13 +22,13 @@ func CreatePrivilegedAccessGroupEligibilityScheduleRequestFromDiscriminatorValue return NewPrivilegedAccessGroupEligibilityScheduleRequest(), nil } // GetAccessId gets the accessId property value. The identifier of membership or ownership eligibility relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. -func (m *PrivilegedAccessGroupEligibilityScheduleRequest) GetAccessId()(*PrivilegedAccessGroupRelationships) { +func (m *PrivilegedAccessGroupEligibilityScheduleRequest) GetAccessId()(*PrivilegedAccessGroupEligibilityScheduleRequest_accessId) { val, err := m.GetBackingStore().Get("accessId") if err != nil { panic(err) } if val != nil { - return val.(*PrivilegedAccessGroupRelationships) + return val.(*PrivilegedAccessGroupEligibilityScheduleRequest_accessId) } return nil } @@ -36,12 +36,12 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequest) GetAccessId()(*Privile func (m *PrivilegedAccessGroupEligibilityScheduleRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PrivilegedAccessScheduleRequest.GetFieldDeserializers() res["accessId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrivilegedAccessGroupRelationships) + val, err := n.GetEnumValue(ParsePrivilegedAccessGroupEligibilityScheduleRequest_accessId) if err != nil { return err } if val != nil { - m.SetAccessId(val.(*PrivilegedAccessGroupRelationships)) + m.SetAccessId(val.(*PrivilegedAccessGroupEligibilityScheduleRequest_accessId)) } return nil } @@ -225,7 +225,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequest) Serialize(writer i878a return nil } // SetAccessId sets the accessId property value. The identifier of membership or ownership eligibility relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. -func (m *PrivilegedAccessGroupEligibilityScheduleRequest) SetAccessId(value *PrivilegedAccessGroupRelationships)() { +func (m *PrivilegedAccessGroupEligibilityScheduleRequest) SetAccessId(value *PrivilegedAccessGroupEligibilityScheduleRequest_accessId)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { panic(err) @@ -277,14 +277,14 @@ func (m *PrivilegedAccessGroupEligibilityScheduleRequest) SetTargetScheduleId(va type PrivilegedAccessGroupEligibilityScheduleRequestable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PrivilegedAccessScheduleRequestable - GetAccessId()(*PrivilegedAccessGroupRelationships) + GetAccessId()(*PrivilegedAccessGroupEligibilityScheduleRequest_accessId) GetGroup()(Groupable) GetGroupId()(*string) GetPrincipal()(DirectoryObjectable) GetPrincipalId()(*string) GetTargetSchedule()(PrivilegedAccessGroupEligibilityScheduleable) GetTargetScheduleId()(*string) - SetAccessId(value *PrivilegedAccessGroupRelationships)() + SetAccessId(value *PrivilegedAccessGroupEligibilityScheduleRequest_accessId)() SetGroup(value Groupable)() SetGroupId(value *string)() SetPrincipal(value DirectoryObjectable)() diff --git a/models/privileged_access_group_eligibility_schedule_request_access_id.go b/models/privileged_access_group_eligibility_schedule_request_access_id.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_access_group_member_type.go b/models/privileged_access_group_member_type.go deleted file mode 100644 index 2855b0f5007..00000000000 --- a/models/privileged_access_group_member_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type PrivilegedAccessGroupMemberType int - -const ( - DIRECT_PRIVILEGEDACCESSGROUPMEMBERTYPE PrivilegedAccessGroupMemberType = iota - GROUP_PRIVILEGEDACCESSGROUPMEMBERTYPE - UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPMEMBERTYPE -) - -func (i PrivilegedAccessGroupMemberType) String() string { - return []string{"direct", "group", "unknownFutureValue"}[i] -} -func ParsePrivilegedAccessGroupMemberType(v string) (any, error) { - result := DIRECT_PRIVILEGEDACCESSGROUPMEMBERTYPE - switch v { - case "direct": - result = DIRECT_PRIVILEGEDACCESSGROUPMEMBERTYPE - case "group": - result = GROUP_PRIVILEGEDACCESSGROUPMEMBERTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPMEMBERTYPE - default: - return 0, errors.New("Unknown PrivilegedAccessGroupMemberType value: " + v) - } - return &result, nil -} -func SerializePrivilegedAccessGroupMemberType(values []PrivilegedAccessGroupMemberType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrivilegedAccessGroupMemberType) isMultiValue() bool { - return false -} diff --git a/models/privileged_access_group_relationships.go b/models/privileged_access_group_relationships.go deleted file mode 100644 index bc7a953ed62..00000000000 --- a/models/privileged_access_group_relationships.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type PrivilegedAccessGroupRelationships int - -const ( - OWNER_PRIVILEGEDACCESSGROUPRELATIONSHIPS PrivilegedAccessGroupRelationships = iota - MEMBER_PRIVILEGEDACCESSGROUPRELATIONSHIPS - UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPRELATIONSHIPS -) - -func (i PrivilegedAccessGroupRelationships) String() string { - return []string{"owner", "member", "unknownFutureValue"}[i] -} -func ParsePrivilegedAccessGroupRelationships(v string) (any, error) { - result := OWNER_PRIVILEGEDACCESSGROUPRELATIONSHIPS - switch v { - case "owner": - result = OWNER_PRIVILEGEDACCESSGROUPRELATIONSHIPS - case "member": - result = MEMBER_PRIVILEGEDACCESSGROUPRELATIONSHIPS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPRELATIONSHIPS - default: - return 0, errors.New("Unknown PrivilegedAccessGroupRelationships value: " + v) - } - return &result, nil -} -func SerializePrivilegedAccessGroupRelationships(values []PrivilegedAccessGroupRelationships) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrivilegedAccessGroupRelationships) isMultiValue() bool { - return false -} diff --git a/models/privileged_access_schedule_request.go b/models/privileged_access_schedule_request.go index 1deeced0d95..4d33ef7d25d 100644 --- a/models/privileged_access_schedule_request.go +++ b/models/privileged_access_schedule_request.go @@ -42,13 +42,13 @@ func CreatePrivilegedAccessScheduleRequestFromDiscriminatorValue(parseNode i878a return NewPrivilegedAccessScheduleRequest(), nil } // GetAction gets the action property value. Represents the type of operation on the group membership or ownership assignment request. The possible values are: adminAssign, adminUpdate, adminRemove, selfActivate, selfDeactivate, adminExtend, adminRenew. adminAssign: For administrators to assign group membership or ownership to principals.adminRemove: For administrators to remove principals from group membership or ownership. adminUpdate: For administrators to change existing group membership or ownership assignments.adminExtend: For administrators to extend expiring assignments.adminRenew: For administrators to renew expired assignments.selfActivate: For principals to activate their assignments.selfDeactivate: For principals to deactivate their active assignments. -func (m *PrivilegedAccessScheduleRequest) GetAction()(*ScheduleRequestActions) { +func (m *PrivilegedAccessScheduleRequest) GetAction()(*PrivilegedAccessScheduleRequest_action) { val, err := m.GetBackingStore().Get("action") if err != nil { panic(err) } if val != nil { - return val.(*ScheduleRequestActions) + return val.(*PrivilegedAccessScheduleRequest_action) } return nil } @@ -56,12 +56,12 @@ func (m *PrivilegedAccessScheduleRequest) GetAction()(*ScheduleRequestActions) { func (m *PrivilegedAccessScheduleRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Request.GetFieldDeserializers() res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseScheduleRequestActions) + val, err := n.GetEnumValue(ParsePrivilegedAccessScheduleRequest_action) if err != nil { return err } if val != nil { - m.SetAction(val.(*ScheduleRequestActions)) + m.SetAction(val.(*PrivilegedAccessScheduleRequest_action)) } return nil } @@ -191,7 +191,7 @@ func (m *PrivilegedAccessScheduleRequest) Serialize(writer i878a80d2330e89d26896 return nil } // SetAction sets the action property value. Represents the type of operation on the group membership or ownership assignment request. The possible values are: adminAssign, adminUpdate, adminRemove, selfActivate, selfDeactivate, adminExtend, adminRenew. adminAssign: For administrators to assign group membership or ownership to principals.adminRemove: For administrators to remove principals from group membership or ownership. adminUpdate: For administrators to change existing group membership or ownership assignments.adminExtend: For administrators to extend expiring assignments.adminRenew: For administrators to renew expired assignments.selfActivate: For principals to activate their assignments.selfDeactivate: For principals to deactivate their active assignments. -func (m *PrivilegedAccessScheduleRequest) SetAction(value *ScheduleRequestActions)() { +func (m *PrivilegedAccessScheduleRequest) SetAction(value *PrivilegedAccessScheduleRequest_action)() { err := m.GetBackingStore().Set("action", value) if err != nil { panic(err) @@ -229,12 +229,12 @@ func (m *PrivilegedAccessScheduleRequest) SetTicketInfo(value TicketInfoable)() type PrivilegedAccessScheduleRequestable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable Requestable - GetAction()(*ScheduleRequestActions) + GetAction()(*PrivilegedAccessScheduleRequest_action) GetIsValidationOnly()(*bool) GetJustification()(*string) GetScheduleInfo()(RequestScheduleable) GetTicketInfo()(TicketInfoable) - SetAction(value *ScheduleRequestActions)() + SetAction(value *PrivilegedAccessScheduleRequest_action)() SetIsValidationOnly(value *bool)() SetJustification(value *string)() SetScheduleInfo(value RequestScheduleable)() diff --git a/models/privileged_access_schedule_request_action.go b/models/privileged_access_schedule_request_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_approval.go b/models/privileged_approval.go index 437430a6042..ac4f74b9ae4 100644 --- a/models/privileged_approval.go +++ b/models/privileged_approval.go @@ -32,13 +32,13 @@ func (m *PrivilegedApproval) GetApprovalDuration()(*i878a80d2330e89d26896388a3f4 return nil } // GetApprovalState gets the approvalState property value. The approvalState property -func (m *PrivilegedApproval) GetApprovalState()(*ApprovalState) { +func (m *PrivilegedApproval) GetApprovalState()(*PrivilegedApproval_approvalState) { val, err := m.GetBackingStore().Get("approvalState") if err != nil { panic(err) } if val != nil { - return val.(*ApprovalState) + return val.(*PrivilegedApproval_approvalState) } return nil } @@ -89,12 +89,12 @@ func (m *PrivilegedApproval) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["approvalState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseApprovalState) + val, err := n.GetEnumValue(ParsePrivilegedApproval_approvalState) if err != nil { return err } if val != nil { - m.SetApprovalState(val.(*ApprovalState)) + m.SetApprovalState(val.(*PrivilegedApproval_approvalState)) } return nil } @@ -339,7 +339,7 @@ func (m *PrivilegedApproval) SetApprovalDuration(value *i878a80d2330e89d26896388 } } // SetApprovalState sets the approvalState property value. The approvalState property -func (m *PrivilegedApproval) SetApprovalState(value *ApprovalState)() { +func (m *PrivilegedApproval) SetApprovalState(value *PrivilegedApproval_approvalState)() { err := m.GetBackingStore().Set("approvalState", value) if err != nil { panic(err) @@ -413,7 +413,7 @@ type PrivilegedApprovalable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetApprovalDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) - GetApprovalState()(*ApprovalState) + GetApprovalState()(*PrivilegedApproval_approvalState) GetApprovalType()(*string) GetApproverReason()(*string) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -424,7 +424,7 @@ type PrivilegedApprovalable interface { GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetUserId()(*string) SetApprovalDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() - SetApprovalState(value *ApprovalState)() + SetApprovalState(value *PrivilegedApproval_approvalState)() SetApprovalType(value *string)() SetApproverReason(value *string)() SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/privileged_approval_approval_state.go b/models/privileged_approval_approval_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_role_summary.go b/models/privileged_role_summary.go index f1d24037138..c8bccf6743f 100644 --- a/models/privileged_role_summary.go +++ b/models/privileged_role_summary.go @@ -64,12 +64,12 @@ func (m *PrivilegedRoleSummary) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRoleSummaryStatus) + val, err := n.GetEnumValue(ParsePrivilegedRoleSummary_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*RoleSummaryStatus)) + m.SetStatus(val.(*PrivilegedRoleSummary_status)) } return nil } @@ -108,13 +108,13 @@ func (m *PrivilegedRoleSummary) GetMfaEnabled()(*bool) { return nil } // GetStatus gets the status property value. The status property -func (m *PrivilegedRoleSummary) GetStatus()(*RoleSummaryStatus) { +func (m *PrivilegedRoleSummary) GetStatus()(*PrivilegedRoleSummary_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*RoleSummaryStatus) + return val.(*PrivilegedRoleSummary_status) } return nil } @@ -190,7 +190,7 @@ func (m *PrivilegedRoleSummary) SetMfaEnabled(value *bool)() { } } // SetStatus sets the status property value. The status property -func (m *PrivilegedRoleSummary) SetStatus(value *RoleSummaryStatus)() { +func (m *PrivilegedRoleSummary) SetStatus(value *PrivilegedRoleSummary_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -210,11 +210,11 @@ type PrivilegedRoleSummaryable interface { GetElevatedCount()(*int32) GetManagedCount()(*int32) GetMfaEnabled()(*bool) - GetStatus()(*RoleSummaryStatus) + GetStatus()(*PrivilegedRoleSummary_status) GetUsersCount()(*int32) SetElevatedCount(value *int32)() SetManagedCount(value *int32)() SetMfaEnabled(value *bool)() - SetStatus(value *RoleSummaryStatus)() + SetStatus(value *PrivilegedRoleSummary_status)() SetUsersCount(value *int32)() } diff --git a/models/privileged_role_summary_status.go b/models/privileged_role_summary_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/privileged_signup_status.go b/models/privileged_signup_status.go index edc902ae41f..0e493b710ef 100644 --- a/models/privileged_signup_status.go +++ b/models/privileged_signup_status.go @@ -33,12 +33,12 @@ func (m *PrivilegedSignupStatus) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSetupStatus) + val, err := n.GetEnumValue(ParsePrivilegedSignupStatus_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SetupStatus)) + m.SetStatus(val.(*PrivilegedSignupStatus_status)) } return nil } @@ -56,13 +56,13 @@ func (m *PrivilegedSignupStatus) GetIsRegistered()(*bool) { return nil } // GetStatus gets the status property value. The status property -func (m *PrivilegedSignupStatus) GetStatus()(*SetupStatus) { +func (m *PrivilegedSignupStatus) GetStatus()(*PrivilegedSignupStatus_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SetupStatus) + return val.(*PrivilegedSignupStatus_status) } return nil } @@ -95,7 +95,7 @@ func (m *PrivilegedSignupStatus) SetIsRegistered(value *bool)() { } } // SetStatus sets the status property value. The status property -func (m *PrivilegedSignupStatus) SetStatus(value *SetupStatus)() { +func (m *PrivilegedSignupStatus) SetStatus(value *PrivilegedSignupStatus_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -106,7 +106,7 @@ type PrivilegedSignupStatusable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIsRegistered()(*bool) - GetStatus()(*SetupStatus) + GetStatus()(*PrivilegedSignupStatus_status) SetIsRegistered(value *bool)() - SetStatus(value *SetupStatus)() + SetStatus(value *PrivilegedSignupStatus_status)() } diff --git a/models/privileged_signup_status_status.go b/models/privileged_signup_status_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/process.go b/models/process.go index 25fb5abc6ca..07ee0f729fd 100644 --- a/models/process.go +++ b/models/process.go @@ -116,12 +116,12 @@ func (m *Process) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["integrityLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProcessIntegrityLevel) + val, err := n.GetEnumValue(ParseProcess_integrityLevel) if err != nil { return err } if val != nil { - m.SetIntegrityLevel(val.(*ProcessIntegrityLevel)) + m.SetIntegrityLevel(val.(*Process_integrityLevel)) } return nil } @@ -219,13 +219,13 @@ func (m *Process) GetFileHash()(FileHashable) { return nil } // GetIntegrityLevel gets the integrityLevel property value. The integrity level of the process. Possible values are: unknown, untrusted, low, medium, high, system. -func (m *Process) GetIntegrityLevel()(*ProcessIntegrityLevel) { +func (m *Process) GetIntegrityLevel()(*Process_integrityLevel) { val, err := m.GetBackingStore().Get("integrityLevel") if err != nil { panic(err) } if val != nil { - return val.(*ProcessIntegrityLevel) + return val.(*Process_integrityLevel) } return nil } @@ -446,7 +446,7 @@ func (m *Process) SetFileHash(value FileHashable)() { } } // SetIntegrityLevel sets the integrityLevel property value. The integrity level of the process. Possible values are: unknown, untrusted, low, medium, high, system. -func (m *Process) SetIntegrityLevel(value *ProcessIntegrityLevel)() { +func (m *Process) SetIntegrityLevel(value *Process_integrityLevel)() { err := m.GetBackingStore().Set("integrityLevel", value) if err != nil { panic(err) @@ -518,7 +518,7 @@ type Processable interface { GetCommandLine()(*string) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetFileHash()(FileHashable) - GetIntegrityLevel()(*ProcessIntegrityLevel) + GetIntegrityLevel()(*Process_integrityLevel) GetIsElevated()(*bool) GetName()(*string) GetOdataType()(*string) @@ -532,7 +532,7 @@ type Processable interface { SetCommandLine(value *string)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetFileHash(value FileHashable)() - SetIntegrityLevel(value *ProcessIntegrityLevel)() + SetIntegrityLevel(value *Process_integrityLevel)() SetIsElevated(value *bool)() SetName(value *string)() SetOdataType(value *string)() diff --git a/models/process_integrity_level.go b/models/process_integrity_level.go index 506785e0b72..e69de29bb2d 100644 --- a/models/process_integrity_level.go +++ b/models/process_integrity_level.go @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ProcessIntegrityLevel int - -const ( - UNKNOWN_PROCESSINTEGRITYLEVEL ProcessIntegrityLevel = iota - UNTRUSTED_PROCESSINTEGRITYLEVEL - LOW_PROCESSINTEGRITYLEVEL - MEDIUM_PROCESSINTEGRITYLEVEL - HIGH_PROCESSINTEGRITYLEVEL - SYSTEM_PROCESSINTEGRITYLEVEL - UNKNOWNFUTUREVALUE_PROCESSINTEGRITYLEVEL -) - -func (i ProcessIntegrityLevel) String() string { - return []string{"unknown", "untrusted", "low", "medium", "high", "system", "unknownFutureValue"}[i] -} -func ParseProcessIntegrityLevel(v string) (any, error) { - result := UNKNOWN_PROCESSINTEGRITYLEVEL - switch v { - case "unknown": - result = UNKNOWN_PROCESSINTEGRITYLEVEL - case "untrusted": - result = UNTRUSTED_PROCESSINTEGRITYLEVEL - case "low": - result = LOW_PROCESSINTEGRITYLEVEL - case "medium": - result = MEDIUM_PROCESSINTEGRITYLEVEL - case "high": - result = HIGH_PROCESSINTEGRITYLEVEL - case "system": - result = SYSTEM_PROCESSINTEGRITYLEVEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PROCESSINTEGRITYLEVEL - default: - return 0, errors.New("Unknown ProcessIntegrityLevel value: " + v) - } - return &result, nil -} -func SerializeProcessIntegrityLevel(values []ProcessIntegrityLevel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ProcessIntegrityLevel) isMultiValue() bool { - return false -} diff --git a/models/prompt_login_behavior.go b/models/prompt_login_behavior.go deleted file mode 100644 index 3aecc53211f..00000000000 --- a/models/prompt_login_behavior.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type PromptLoginBehavior int - -const ( - TRANSLATETOFRESHPASSWORDAUTHENTICATION_PROMPTLOGINBEHAVIOR PromptLoginBehavior = iota - NATIVESUPPORT_PROMPTLOGINBEHAVIOR - DISABLED_PROMPTLOGINBEHAVIOR - UNKNOWNFUTUREVALUE_PROMPTLOGINBEHAVIOR -) - -func (i PromptLoginBehavior) String() string { - return []string{"translateToFreshPasswordAuthentication", "nativeSupport", "disabled", "unknownFutureValue"}[i] -} -func ParsePromptLoginBehavior(v string) (any, error) { - result := TRANSLATETOFRESHPASSWORDAUTHENTICATION_PROMPTLOGINBEHAVIOR - switch v { - case "translateToFreshPasswordAuthentication": - result = TRANSLATETOFRESHPASSWORDAUTHENTICATION_PROMPTLOGINBEHAVIOR - case "nativeSupport": - result = NATIVESUPPORT_PROMPTLOGINBEHAVIOR - case "disabled": - result = DISABLED_PROMPTLOGINBEHAVIOR - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PROMPTLOGINBEHAVIOR - default: - return 0, errors.New("Unknown PromptLoginBehavior value: " + v) - } - return &result, nil -} -func SerializePromptLoginBehavior(values []PromptLoginBehavior) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PromptLoginBehavior) isMultiValue() bool { - return false -} diff --git a/models/property.go b/models/property.go index f139436e061..e993662c530 100644 --- a/models/property.go +++ b/models/property.go @@ -109,15 +109,15 @@ func (m *Property) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["labels"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseLabel) + val, err := n.GetCollectionOfEnumValues(ParseProperty_labels) if err != nil { return err } if val != nil { - res := make([]Label, len(val)) + res := make([]Property_labels, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*Label)) + res[i] = *(v.(*Property_labels)) } } m.SetLabels(res) @@ -201,13 +201,13 @@ func (m *Property) GetIsSearchable()(*bool) { return nil } // GetLabels gets the labels property value. The labels property -func (m *Property) GetLabels()([]Label) { +func (m *Property) GetLabels()([]Property_labels) { val, err := m.GetBackingStore().Get("labels") if err != nil { panic(err) } if val != nil { - return val.([]Label) + return val.([]Property_labels) } return nil } @@ -277,7 +277,7 @@ func (m *Property) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 } } if m.GetLabels() != nil { - err := writer.WriteCollectionOfStringValues("labels", SerializeLabel(m.GetLabels())) + err := writer.WriteCollectionOfStringValues("labels", SerializeProperty_labels(m.GetLabels())) if err != nil { return err } @@ -356,7 +356,7 @@ func (m *Property) SetIsSearchable(value *bool)() { } } // SetLabels sets the labels property value. The labels property -func (m *Property) SetLabels(value []Label)() { +func (m *Property) SetLabels(value []Property_labels)() { err := m.GetBackingStore().Set("labels", value) if err != nil { panic(err) @@ -394,7 +394,7 @@ type Propertyable interface { GetIsRefinable()(*bool) GetIsRetrievable()(*bool) GetIsSearchable()(*bool) - GetLabels()([]Label) + GetLabels()([]Property_labels) GetName()(*string) GetOdataType()(*string) GetTypeEscaped()(*PropertyType) @@ -404,7 +404,7 @@ type Propertyable interface { SetIsRefinable(value *bool)() SetIsRetrievable(value *bool)() SetIsSearchable(value *bool)() - SetLabels(value []Label)() + SetLabels(value []Property_labels)() SetName(value *string)() SetOdataType(value *string)() SetTypeEscaped(value *PropertyType)() diff --git a/models/property_labels.go b/models/property_labels.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/protect_group.go b/models/protect_group.go index cc45d26758a..c7523b6dff7 100644 --- a/models/protect_group.go +++ b/models/protect_group.go @@ -67,25 +67,25 @@ func (m *ProtectGroup) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["privacy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseGroupPrivacy) + val, err := n.GetEnumValue(ParseProtectGroup_privacy) if err != nil { return err } if val != nil { - m.SetPrivacy(val.(*GroupPrivacy)) + m.SetPrivacy(val.(*ProtectGroup_privacy)) } return nil } return res } // GetPrivacy gets the privacy property value. The privacy property -func (m *ProtectGroup) GetPrivacy()(*GroupPrivacy) { +func (m *ProtectGroup) GetPrivacy()(*ProtectGroup_privacy) { val, err := m.GetBackingStore().Get("privacy") if err != nil { panic(err) } if val != nil { - return val.(*GroupPrivacy) + return val.(*ProtectGroup_privacy) } return nil } @@ -131,7 +131,7 @@ func (m *ProtectGroup) SetAllowGuestUsers(value *bool)() { } } // SetPrivacy sets the privacy property value. The privacy property -func (m *ProtectGroup) SetPrivacy(value *GroupPrivacy)() { +func (m *ProtectGroup) SetPrivacy(value *ProtectGroup_privacy)() { err := m.GetBackingStore().Set("privacy", value) if err != nil { panic(err) @@ -143,8 +143,8 @@ type ProtectGroupable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowEmailFromGuestUsers()(*bool) GetAllowGuestUsers()(*bool) - GetPrivacy()(*GroupPrivacy) + GetPrivacy()(*ProtectGroup_privacy) SetAllowEmailFromGuestUsers(value *bool)() SetAllowGuestUsers(value *bool)() - SetPrivacy(value *GroupPrivacy)() + SetPrivacy(value *ProtectGroup_privacy)() } diff --git a/models/protect_group_privacy.go b/models/protect_group_privacy.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/protect_online_meeting_action.go b/models/protect_online_meeting_action.go index 3ed2b938fe4..6d09165e5ee 100644 --- a/models/protect_online_meeting_action.go +++ b/models/protect_online_meeting_action.go @@ -22,24 +22,24 @@ func CreateProtectOnlineMeetingActionFromDiscriminatorValue(parseNode i878a80d23 return NewProtectOnlineMeetingAction(), nil } // GetAllowedForwarders gets the allowedForwarders property value. The allowedForwarders property -func (m *ProtectOnlineMeetingAction) GetAllowedForwarders()(*OnlineMeetingForwarders) { +func (m *ProtectOnlineMeetingAction) GetAllowedForwarders()(*ProtectOnlineMeetingAction_allowedForwarders) { val, err := m.GetBackingStore().Get("allowedForwarders") if err != nil { panic(err) } if val != nil { - return val.(*OnlineMeetingForwarders) + return val.(*ProtectOnlineMeetingAction_allowedForwarders) } return nil } // GetAllowedPresenters gets the allowedPresenters property value. The allowedPresenters property -func (m *ProtectOnlineMeetingAction) GetAllowedPresenters()(*OnlineMeetingPresenters) { +func (m *ProtectOnlineMeetingAction) GetAllowedPresenters()(*ProtectOnlineMeetingAction_allowedPresenters) { val, err := m.GetBackingStore().Get("allowedPresenters") if err != nil { panic(err) } if val != nil { - return val.(*OnlineMeetingPresenters) + return val.(*ProtectOnlineMeetingAction_allowedPresenters) } return nil } @@ -47,22 +47,22 @@ func (m *ProtectOnlineMeetingAction) GetAllowedPresenters()(*OnlineMeetingPresen func (m *ProtectOnlineMeetingAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.LabelActionBase.GetFieldDeserializers() res["allowedForwarders"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnlineMeetingForwarders) + val, err := n.GetEnumValue(ParseProtectOnlineMeetingAction_allowedForwarders) if err != nil { return err } if val != nil { - m.SetAllowedForwarders(val.(*OnlineMeetingForwarders)) + m.SetAllowedForwarders(val.(*ProtectOnlineMeetingAction_allowedForwarders)) } return nil } res["allowedPresenters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnlineMeetingPresenters) + val, err := n.GetEnumValue(ParseProtectOnlineMeetingAction_allowedPresenters) if err != nil { return err } if val != nil { - m.SetAllowedPresenters(val.(*OnlineMeetingPresenters)) + m.SetAllowedPresenters(val.(*ProtectOnlineMeetingAction_allowedPresenters)) } return nil } @@ -172,14 +172,14 @@ func (m *ProtectOnlineMeetingAction) Serialize(writer i878a80d2330e89d26896388a3 return nil } // SetAllowedForwarders sets the allowedForwarders property value. The allowedForwarders property -func (m *ProtectOnlineMeetingAction) SetAllowedForwarders(value *OnlineMeetingForwarders)() { +func (m *ProtectOnlineMeetingAction) SetAllowedForwarders(value *ProtectOnlineMeetingAction_allowedForwarders)() { err := m.GetBackingStore().Set("allowedForwarders", value) if err != nil { panic(err) } } // SetAllowedPresenters sets the allowedPresenters property value. The allowedPresenters property -func (m *ProtectOnlineMeetingAction) SetAllowedPresenters(value *OnlineMeetingPresenters)() { +func (m *ProtectOnlineMeetingAction) SetAllowedPresenters(value *ProtectOnlineMeetingAction_allowedPresenters)() { err := m.GetBackingStore().Set("allowedPresenters", value) if err != nil { panic(err) @@ -210,13 +210,13 @@ func (m *ProtectOnlineMeetingAction) SetLobbyBypassSettings(value LobbyBypassSet type ProtectOnlineMeetingActionable interface { LabelActionBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedForwarders()(*OnlineMeetingForwarders) - GetAllowedPresenters()(*OnlineMeetingPresenters) + GetAllowedForwarders()(*ProtectOnlineMeetingAction_allowedForwarders) + GetAllowedPresenters()(*ProtectOnlineMeetingAction_allowedPresenters) GetIsCopyToClipboardEnabled()(*bool) GetIsLobbyEnabled()(*bool) GetLobbyBypassSettings()(LobbyBypassSettingsable) - SetAllowedForwarders(value *OnlineMeetingForwarders)() - SetAllowedPresenters(value *OnlineMeetingPresenters)() + SetAllowedForwarders(value *ProtectOnlineMeetingAction_allowedForwarders)() + SetAllowedPresenters(value *ProtectOnlineMeetingAction_allowedPresenters)() SetIsCopyToClipboardEnabled(value *bool)() SetIsLobbyEnabled(value *bool)() SetLobbyBypassSettings(value LobbyBypassSettingsable)() diff --git a/models/protect_online_meeting_action_allowed_forwarders.go b/models/protect_online_meeting_action_allowed_forwarders.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/protect_online_meeting_action_allowed_presenters.go b/models/protect_online_meeting_action_allowed_presenters.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/protect_site.go b/models/protect_site.go index 31f44dbcd76..ce4bd06662b 100644 --- a/models/protect_site.go +++ b/models/protect_site.go @@ -22,13 +22,13 @@ func CreateProtectSiteFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a return NewProtectSite(), nil } // GetAccessType gets the accessType property value. The accessType property -func (m *ProtectSite) GetAccessType()(*SiteAccessType) { +func (m *ProtectSite) GetAccessType()(*ProtectSite_accessType) { val, err := m.GetBackingStore().Get("accessType") if err != nil { panic(err) } if val != nil { - return val.(*SiteAccessType) + return val.(*ProtectSite_accessType) } return nil } @@ -47,12 +47,12 @@ func (m *ProtectSite) GetConditionalAccessProtectionLevelId()(*string) { func (m *ProtectSite) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.LabelActionBase.GetFieldDeserializers() res["accessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSiteAccessType) + val, err := n.GetEnumValue(ParseProtectSite_accessType) if err != nil { return err } if val != nil { - m.SetAccessType(val.(*SiteAccessType)) + m.SetAccessType(val.(*ProtectSite_accessType)) } return nil } @@ -90,7 +90,7 @@ func (m *ProtectSite) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return nil } // SetAccessType sets the accessType property value. The accessType property -func (m *ProtectSite) SetAccessType(value *SiteAccessType)() { +func (m *ProtectSite) SetAccessType(value *ProtectSite_accessType)() { err := m.GetBackingStore().Set("accessType", value) if err != nil { panic(err) @@ -107,8 +107,8 @@ func (m *ProtectSite) SetConditionalAccessProtectionLevelId(value *string)() { type ProtectSiteable interface { LabelActionBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAccessType()(*SiteAccessType) + GetAccessType()(*ProtectSite_accessType) GetConditionalAccessProtectionLevelId()(*string) - SetAccessType(value *SiteAccessType)() + SetAccessType(value *ProtectSite_accessType)() SetConditionalAccessProtectionLevelId(value *string)() } diff --git a/models/protect_site_access_type.go b/models/protect_site_access_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/protocol_type.go b/models/protocol_type.go deleted file mode 100644 index 5b91cf24161..00000000000 --- a/models/protocol_type.go +++ /dev/null @@ -1,65 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type ProtocolType int - -const ( - NONE_PROTOCOLTYPE ProtocolType = iota - OAUTH2_PROTOCOLTYPE - ROPC_PROTOCOLTYPE - WSFEDERATION_PROTOCOLTYPE - SAML20_PROTOCOLTYPE - DEVICECODE_PROTOCOLTYPE - UNKNOWNFUTUREVALUE_PROTOCOLTYPE - AUTHENTICATIONTRANSFER_PROTOCOLTYPE -) - -func (i ProtocolType) String() string { - var values []string - for p := ProtocolType(1); p <= AUTHENTICATIONTRANSFER_PROTOCOLTYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "oAuth2", "ropc", "wsFederation", "saml20", "deviceCode", "unknownFutureValue", "authenticationTransfer"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseProtocolType(v string) (any, error) { - var result ProtocolType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_PROTOCOLTYPE - case "oAuth2": - result |= OAUTH2_PROTOCOLTYPE - case "ropc": - result |= ROPC_PROTOCOLTYPE - case "wsFederation": - result |= WSFEDERATION_PROTOCOLTYPE - case "saml20": - result |= SAML20_PROTOCOLTYPE - case "deviceCode": - result |= DEVICECODE_PROTOCOLTYPE - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_PROTOCOLTYPE - case "authenticationTransfer": - result |= AUTHENTICATIONTRANSFER_PROTOCOLTYPE - default: - return 0, errors.New("Unknown ProtocolType value: " + v) - } - } - return &result, nil -} -func SerializeProtocolType(values []ProtocolType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ProtocolType) isMultiValue() bool { - return true -} diff --git a/models/provisioning_action.go b/models/provisioning_action.go deleted file mode 100644 index d0d84aa6474..00000000000 --- a/models/provisioning_action.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ProvisioningAction int - -const ( - OTHER_PROVISIONINGACTION ProvisioningAction = iota - CREATE_PROVISIONINGACTION - DELETE_PROVISIONINGACTION - DISABLE_PROVISIONINGACTION - UPDATE_PROVISIONINGACTION - STAGEDDELETE_PROVISIONINGACTION - UNKNOWNFUTUREVALUE_PROVISIONINGACTION -) - -func (i ProvisioningAction) String() string { - return []string{"other", "create", "delete", "disable", "update", "stagedDelete", "unknownFutureValue"}[i] -} -func ParseProvisioningAction(v string) (any, error) { - result := OTHER_PROVISIONINGACTION - switch v { - case "other": - result = OTHER_PROVISIONINGACTION - case "create": - result = CREATE_PROVISIONINGACTION - case "delete": - result = DELETE_PROVISIONINGACTION - case "disable": - result = DISABLE_PROVISIONINGACTION - case "update": - result = UPDATE_PROVISIONINGACTION - case "stagedDelete": - result = STAGEDDELETE_PROVISIONINGACTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PROVISIONINGACTION - default: - return 0, errors.New("Unknown ProvisioningAction value: " + v) - } - return &result, nil -} -func SerializeProvisioningAction(values []ProvisioningAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ProvisioningAction) isMultiValue() bool { - return false -} diff --git a/models/provisioning_error_info.go b/models/provisioning_error_info.go index f1451d492db..d11681d59a6 100644 --- a/models/provisioning_error_info.go +++ b/models/provisioning_error_info.go @@ -50,13 +50,13 @@ func (m *ProvisioningErrorInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd07 return m.backingStore } // GetErrorCategory gets the errorCategory property value. Categorizes the error code. Possible values are failure, nonServiceFailure, success, unknownFutureValue -func (m *ProvisioningErrorInfo) GetErrorCategory()(*ProvisioningStatusErrorCategory) { +func (m *ProvisioningErrorInfo) GetErrorCategory()(*ProvisioningErrorInfo_errorCategory) { val, err := m.GetBackingStore().Get("errorCategory") if err != nil { panic(err) } if val != nil { - return val.(*ProvisioningStatusErrorCategory) + return val.(*ProvisioningErrorInfo_errorCategory) } return nil } @@ -85,12 +85,12 @@ func (m *ProvisioningErrorInfo) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["errorCategory"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProvisioningStatusErrorCategory) + val, err := n.GetEnumValue(ParseProvisioningErrorInfo_errorCategory) if err != nil { return err } if val != nil { - m.SetErrorCategory(val.(*ProvisioningStatusErrorCategory)) + m.SetErrorCategory(val.(*ProvisioningErrorInfo_errorCategory)) } return nil } @@ -235,7 +235,7 @@ func (m *ProvisioningErrorInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827e m.backingStore = value } // SetErrorCategory sets the errorCategory property value. Categorizes the error code. Possible values are failure, nonServiceFailure, success, unknownFutureValue -func (m *ProvisioningErrorInfo) SetErrorCategory(value *ProvisioningStatusErrorCategory)() { +func (m *ProvisioningErrorInfo) SetErrorCategory(value *ProvisioningErrorInfo_errorCategory)() { err := m.GetBackingStore().Set("errorCategory", value) if err != nil { panic(err) @@ -276,14 +276,14 @@ type ProvisioningErrorInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAdditionalDetails()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetErrorCategory()(*ProvisioningStatusErrorCategory) + GetErrorCategory()(*ProvisioningErrorInfo_errorCategory) GetErrorCode()(*string) GetOdataType()(*string) GetReason()(*string) GetRecommendedAction()(*string) SetAdditionalDetails(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetErrorCategory(value *ProvisioningStatusErrorCategory)() + SetErrorCategory(value *ProvisioningErrorInfo_errorCategory)() SetErrorCode(value *string)() SetOdataType(value *string)() SetReason(value *string)() diff --git a/models/provisioning_error_info_error_category.go b/models/provisioning_error_info_error_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/provisioning_object_summary.go b/models/provisioning_object_summary.go index 21805c1af63..0097de8b195 100644 --- a/models/provisioning_object_summary.go +++ b/models/provisioning_object_summary.go @@ -165,12 +165,12 @@ func (m *ProvisioningObjectSummary) GetFieldDeserializers()(map[string]func(i878 return nil } res["provisioningAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProvisioningAction) + val, err := n.GetEnumValue(ParseProvisioningObjectSummary_provisioningAction) if err != nil { return err } if val != nil { - m.SetProvisioningAction(val.(*ProvisioningAction)) + m.SetProvisioningAction(val.(*ProvisioningObjectSummary_provisioningAction)) } return nil } @@ -306,13 +306,13 @@ func (m *ProvisioningObjectSummary) GetModifiedProperties()([]ModifiedPropertyab return nil } // GetProvisioningAction gets the provisioningAction property value. Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Microsoft Entra activity list. Supports $filter (eq, contains). -func (m *ProvisioningObjectSummary) GetProvisioningAction()(*ProvisioningAction) { +func (m *ProvisioningObjectSummary) GetProvisioningAction()(*ProvisioningObjectSummary_provisioningAction) { val, err := m.GetBackingStore().Get("provisioningAction") if err != nil { panic(err) } if val != nil { - return val.(*ProvisioningAction) + return val.(*ProvisioningObjectSummary_provisioningAction) } return nil } @@ -601,7 +601,7 @@ func (m *ProvisioningObjectSummary) SetModifiedProperties(value []ModifiedProper } } // SetProvisioningAction sets the provisioningAction property value. Indicates the activity name or the operation name. Possible values are: create, update, delete, stageddelete, disable, other and unknownFutureValue. For a list of activities logged, refer to Microsoft Entra activity list. Supports $filter (eq, contains). -func (m *ProvisioningObjectSummary) SetProvisioningAction(value *ProvisioningAction)() { +func (m *ProvisioningObjectSummary) SetProvisioningAction(value *ProvisioningObjectSummary_provisioningAction)() { err := m.GetBackingStore().Set("provisioningAction", value) if err != nil { panic(err) @@ -682,7 +682,7 @@ type ProvisioningObjectSummaryable interface { GetInitiatedBy()(Initiatorable) GetJobId()(*string) GetModifiedProperties()([]ModifiedPropertyable) - GetProvisioningAction()(*ProvisioningAction) + GetProvisioningAction()(*ProvisioningObjectSummary_provisioningAction) GetProvisioningStatusInfo()(ProvisioningStatusInfoable) GetProvisioningSteps()([]ProvisioningStepable) GetServicePrincipal()(ProvisioningServicePrincipalable) @@ -700,7 +700,7 @@ type ProvisioningObjectSummaryable interface { SetInitiatedBy(value Initiatorable)() SetJobId(value *string)() SetModifiedProperties(value []ModifiedPropertyable)() - SetProvisioningAction(value *ProvisioningAction)() + SetProvisioningAction(value *ProvisioningObjectSummary_provisioningAction)() SetProvisioningStatusInfo(value ProvisioningStatusInfoable)() SetProvisioningSteps(value []ProvisioningStepable)() SetServicePrincipal(value ProvisioningServicePrincipalable)() diff --git a/models/provisioning_object_summary_provisioning_action.go b/models/provisioning_object_summary_provisioning_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/provisioning_result.go b/models/provisioning_result.go deleted file mode 100644 index 271313878b7..00000000000 --- a/models/provisioning_result.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type ProvisioningResult int - -const ( - SUCCESS_PROVISIONINGRESULT ProvisioningResult = iota - FAILURE_PROVISIONINGRESULT - SKIPPED_PROVISIONINGRESULT - WARNING_PROVISIONINGRESULT - UNKNOWNFUTUREVALUE_PROVISIONINGRESULT -) - -func (i ProvisioningResult) String() string { - return []string{"success", "failure", "skipped", "warning", "unknownFutureValue"}[i] -} -func ParseProvisioningResult(v string) (any, error) { - result := SUCCESS_PROVISIONINGRESULT - switch v { - case "success": - result = SUCCESS_PROVISIONINGRESULT - case "failure": - result = FAILURE_PROVISIONINGRESULT - case "skipped": - result = SKIPPED_PROVISIONINGRESULT - case "warning": - result = WARNING_PROVISIONINGRESULT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PROVISIONINGRESULT - default: - return 0, errors.New("Unknown ProvisioningResult value: " + v) - } - return &result, nil -} -func SerializeProvisioningResult(values []ProvisioningResult) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ProvisioningResult) isMultiValue() bool { - return false -} diff --git a/models/provisioning_status_error_category.go b/models/provisioning_status_error_category.go deleted file mode 100644 index 14a4362d492..00000000000 --- a/models/provisioning_status_error_category.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ProvisioningStatusErrorCategory int - -const ( - FAILURE_PROVISIONINGSTATUSERRORCATEGORY ProvisioningStatusErrorCategory = iota - NONSERVICEFAILURE_PROVISIONINGSTATUSERRORCATEGORY - SUCCESS_PROVISIONINGSTATUSERRORCATEGORY - UNKNOWNFUTUREVALUE_PROVISIONINGSTATUSERRORCATEGORY -) - -func (i ProvisioningStatusErrorCategory) String() string { - return []string{"failure", "nonServiceFailure", "success", "unknownFutureValue"}[i] -} -func ParseProvisioningStatusErrorCategory(v string) (any, error) { - result := FAILURE_PROVISIONINGSTATUSERRORCATEGORY - switch v { - case "failure": - result = FAILURE_PROVISIONINGSTATUSERRORCATEGORY - case "nonServiceFailure": - result = NONSERVICEFAILURE_PROVISIONINGSTATUSERRORCATEGORY - case "success": - result = SUCCESS_PROVISIONINGSTATUSERRORCATEGORY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PROVISIONINGSTATUSERRORCATEGORY - default: - return 0, errors.New("Unknown ProvisioningStatusErrorCategory value: " + v) - } - return &result, nil -} -func SerializeProvisioningStatusErrorCategory(values []ProvisioningStatusErrorCategory) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ProvisioningStatusErrorCategory) isMultiValue() bool { - return false -} diff --git a/models/provisioning_status_info.go b/models/provisioning_status_info.go index c88b5001a72..e636afaec77 100644 --- a/models/provisioning_status_info.go +++ b/models/provisioning_status_info.go @@ -73,12 +73,12 @@ func (m *ProvisioningStatusInfo) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProvisioningResult) + val, err := n.GetEnumValue(ParseProvisioningStatusInfo_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*ProvisioningResult)) + m.SetStatus(val.(*ProvisioningStatusInfo_status)) } return nil } @@ -96,13 +96,13 @@ func (m *ProvisioningStatusInfo) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. Possible values are: success, failure, skipped, warning, unknownFutureValue. Supports $filter (eq, contains). -func (m *ProvisioningStatusInfo) GetStatus()(*ProvisioningResult) { +func (m *ProvisioningStatusInfo) GetStatus()(*ProvisioningStatusInfo_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*ProvisioningResult) + return val.(*ProvisioningStatusInfo_status) } return nil } @@ -161,7 +161,7 @@ func (m *ProvisioningStatusInfo) SetOdataType(value *string)() { } } // SetStatus sets the status property value. Possible values are: success, failure, skipped, warning, unknownFutureValue. Supports $filter (eq, contains). -func (m *ProvisioningStatusInfo) SetStatus(value *ProvisioningResult)() { +func (m *ProvisioningStatusInfo) SetStatus(value *ProvisioningStatusInfo_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type ProvisioningStatusInfoable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetErrorInformation()(ProvisioningErrorInfoable) GetOdataType()(*string) - GetStatus()(*ProvisioningResult) + GetStatus()(*ProvisioningStatusInfo_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetErrorInformation(value ProvisioningErrorInfoable)() SetOdataType(value *string)() - SetStatus(value *ProvisioningResult)() + SetStatus(value *ProvisioningStatusInfo_status)() } diff --git a/models/provisioning_status_info_status.go b/models/provisioning_status_info_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/provisioning_step.go b/models/provisioning_step.go index 2a39adbdf76..553c0226ac8 100644 --- a/models/provisioning_step.go +++ b/models/provisioning_step.go @@ -104,22 +104,22 @@ func (m *ProvisioningStep) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["provisioningStepType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProvisioningStepType) + val, err := n.GetEnumValue(ParseProvisioningStep_provisioningStepType) if err != nil { return err } if val != nil { - m.SetProvisioningStepType(val.(*ProvisioningStepType)) + m.SetProvisioningStepType(val.(*ProvisioningStep_provisioningStepType)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProvisioningResult) + val, err := n.GetEnumValue(ParseProvisioningStep_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*ProvisioningResult)) + m.SetStatus(val.(*ProvisioningStep_status)) } return nil } @@ -148,24 +148,24 @@ func (m *ProvisioningStep) GetOdataType()(*string) { return nil } // GetProvisioningStepType gets the provisioningStepType property value. Type of step. Possible values are: import, scoping, matching, processing, referenceResolution, export, unknownFutureValue. -func (m *ProvisioningStep) GetProvisioningStepType()(*ProvisioningStepType) { +func (m *ProvisioningStep) GetProvisioningStepType()(*ProvisioningStep_provisioningStepType) { val, err := m.GetBackingStore().Get("provisioningStepType") if err != nil { panic(err) } if val != nil { - return val.(*ProvisioningStepType) + return val.(*ProvisioningStep_provisioningStepType) } return nil } // GetStatus gets the status property value. Status of the step. Possible values are: success, warning, failure, skipped, unknownFutureValue. -func (m *ProvisioningStep) GetStatus()(*ProvisioningResult) { +func (m *ProvisioningStep) GetStatus()(*ProvisioningStep_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*ProvisioningResult) + return val.(*ProvisioningStep_status) } return nil } @@ -257,14 +257,14 @@ func (m *ProvisioningStep) SetOdataType(value *string)() { } } // SetProvisioningStepType sets the provisioningStepType property value. Type of step. Possible values are: import, scoping, matching, processing, referenceResolution, export, unknownFutureValue. -func (m *ProvisioningStep) SetProvisioningStepType(value *ProvisioningStepType)() { +func (m *ProvisioningStep) SetProvisioningStepType(value *ProvisioningStep_provisioningStepType)() { err := m.GetBackingStore().Set("provisioningStepType", value) if err != nil { panic(err) } } // SetStatus sets the status property value. Status of the step. Possible values are: success, warning, failure, skipped, unknownFutureValue. -func (m *ProvisioningStep) SetStatus(value *ProvisioningResult)() { +func (m *ProvisioningStep) SetStatus(value *ProvisioningStep_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -280,13 +280,13 @@ type ProvisioningStepable interface { GetDetails()(DetailsInfoable) GetName()(*string) GetOdataType()(*string) - GetProvisioningStepType()(*ProvisioningStepType) - GetStatus()(*ProvisioningResult) + GetProvisioningStepType()(*ProvisioningStep_provisioningStepType) + GetStatus()(*ProvisioningStep_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDescription(value *string)() SetDetails(value DetailsInfoable)() SetName(value *string)() SetOdataType(value *string)() - SetProvisioningStepType(value *ProvisioningStepType)() - SetStatus(value *ProvisioningResult)() + SetProvisioningStepType(value *ProvisioningStep_provisioningStepType)() + SetStatus(value *ProvisioningStep_status)() } diff --git a/models/provisioning_step_provisioning_step_type.go b/models/provisioning_step_provisioning_step_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/provisioning_step_status.go b/models/provisioning_step_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/provisioning_step_type.go b/models/provisioning_step_type.go deleted file mode 100644 index aa89c117690..00000000000 --- a/models/provisioning_step_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ProvisioningStepType int - -const ( - IMPORTESCAPED_PROVISIONINGSTEPTYPE ProvisioningStepType = iota - SCOPING_PROVISIONINGSTEPTYPE - MATCHING_PROVISIONINGSTEPTYPE - PROCESSING_PROVISIONINGSTEPTYPE - REFERENCERESOLUTION_PROVISIONINGSTEPTYPE - EXPORT_PROVISIONINGSTEPTYPE - UNKNOWNFUTUREVALUE_PROVISIONINGSTEPTYPE -) - -func (i ProvisioningStepType) String() string { - return []string{"import", "scoping", "matching", "processing", "referenceResolution", "export", "unknownFutureValue"}[i] -} -func ParseProvisioningStepType(v string) (any, error) { - result := IMPORTESCAPED_PROVISIONINGSTEPTYPE - switch v { - case "import": - result = IMPORTESCAPED_PROVISIONINGSTEPTYPE - case "scoping": - result = SCOPING_PROVISIONINGSTEPTYPE - case "matching": - result = MATCHING_PROVISIONINGSTEPTYPE - case "processing": - result = PROCESSING_PROVISIONINGSTEPTYPE - case "referenceResolution": - result = REFERENCERESOLUTION_PROVISIONINGSTEPTYPE - case "export": - result = EXPORT_PROVISIONINGSTEPTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PROVISIONINGSTEPTYPE - default: - return 0, errors.New("Unknown ProvisioningStepType value: " + v) - } - return &result, nil -} -func SerializeProvisioningStepType(values []ProvisioningStepType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ProvisioningStepType) isMultiValue() bool { - return false -} diff --git a/models/publication_facet.go b/models/publication_facet.go index d349cc1485a..a69140d32a1 100644 --- a/models/publication_facet.go +++ b/models/publication_facet.go @@ -38,7 +38,7 @@ func (m *PublicationFacet) GetAdditionalData()(map[string]any) { func (m *PublicationFacet) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetCheckedOutBy gets the checkedOutBy property value. User who has checked out the file. +// GetCheckedOutBy gets the checkedOutBy property value. The user who checked out the file. func (m *PublicationFacet) GetCheckedOutBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("checkedOutBy") if err != nil { @@ -172,7 +172,7 @@ func (m *PublicationFacet) SetAdditionalData(value map[string]any)() { func (m *PublicationFacet) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetCheckedOutBy sets the checkedOutBy property value. User who has checked out the file. +// SetCheckedOutBy sets the checkedOutBy property value. The user who checked out the file. func (m *PublicationFacet) SetCheckedOutBy(value IdentitySetable)() { err := m.GetBackingStore().Set("checkedOutBy", value) if err != nil { diff --git a/models/recent_notebook.go b/models/recent_notebook.go index 53805ddcc69..fccad3e89d1 100644 --- a/models/recent_notebook.go +++ b/models/recent_notebook.go @@ -94,12 +94,12 @@ func (m *RecentNotebook) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["sourceService"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnenoteSourceService) + val, err := n.GetEnumValue(ParseRecentNotebook_sourceService) if err != nil { return err } if val != nil { - m.SetSourceService(val.(*OnenoteSourceService)) + m.SetSourceService(val.(*RecentNotebook_sourceService)) } return nil } @@ -139,13 +139,13 @@ func (m *RecentNotebook) GetOdataType()(*string) { return nil } // GetSourceService gets the sourceService property value. The backend store where the Notebook resides, either OneDriveForBusiness or OneDrive. -func (m *RecentNotebook) GetSourceService()(*OnenoteSourceService) { +func (m *RecentNotebook) GetSourceService()(*RecentNotebook_sourceService) { val, err := m.GetBackingStore().Get("sourceService") if err != nil { panic(err) } if val != nil { - return val.(*OnenoteSourceService) + return val.(*RecentNotebook_sourceService) } return nil } @@ -230,7 +230,7 @@ func (m *RecentNotebook) SetOdataType(value *string)() { } } // SetSourceService sets the sourceService property value. The backend store where the Notebook resides, either OneDriveForBusiness or OneDrive. -func (m *RecentNotebook) SetSourceService(value *OnenoteSourceService)() { +func (m *RecentNotebook) SetSourceService(value *RecentNotebook_sourceService)() { err := m.GetBackingStore().Set("sourceService", value) if err != nil { panic(err) @@ -246,11 +246,11 @@ type RecentNotebookable interface { GetLastAccessedTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLinks()(RecentNotebookLinksable) GetOdataType()(*string) - GetSourceService()(*OnenoteSourceService) + GetSourceService()(*RecentNotebook_sourceService) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetLastAccessedTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLinks(value RecentNotebookLinksable)() SetOdataType(value *string)() - SetSourceService(value *OnenoteSourceService)() + SetSourceService(value *RecentNotebook_sourceService)() } diff --git a/models/recent_notebook_source_service.go b/models/recent_notebook_source_service.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/recipient_scope_type.go b/models/recipient_scope_type.go deleted file mode 100644 index 6a2b817a273..00000000000 --- a/models/recipient_scope_type.go +++ /dev/null @@ -1,56 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type RecipientScopeType int - -const ( - NONE_RECIPIENTSCOPETYPE RecipientScopeType = iota - INTERNAL_RECIPIENTSCOPETYPE - EXTERNAL_RECIPIENTSCOPETYPE - EXTERNALPARTNER_RECIPIENTSCOPETYPE - EXTERNALNONPARTNER_RECIPIENTSCOPETYPE -) - -func (i RecipientScopeType) String() string { - var values []string - for p := RecipientScopeType(1); p <= EXTERNALNONPARTNER_RECIPIENTSCOPETYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "internal", "external", "externalPartner", "externalNonPartner"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseRecipientScopeType(v string) (any, error) { - var result RecipientScopeType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_RECIPIENTSCOPETYPE - case "internal": - result |= INTERNAL_RECIPIENTSCOPETYPE - case "external": - result |= EXTERNAL_RECIPIENTSCOPETYPE - case "externalPartner": - result |= EXTERNALPARTNER_RECIPIENTSCOPETYPE - case "externalNonPartner": - result |= EXTERNALNONPARTNER_RECIPIENTSCOPETYPE - default: - return 0, errors.New("Unknown RecipientScopeType value: " + v) - } - } - return &result, nil -} -func SerializeRecipientScopeType(values []RecipientScopeType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RecipientScopeType) isMultiValue() bool { - return true -} diff --git a/models/recommendation_base.go b/models/recommendation_base.go index d85e673f28f..a15ec90a09e 100644 --- a/models/recommendation_base.go +++ b/models/recommendation_base.go @@ -105,13 +105,13 @@ func (m *RecommendationBase) GetDisplayName()(*string) { return nil } // GetFeatureAreas gets the featureAreas property value. The directory feature that the recommendation is related to. -func (m *RecommendationBase) GetFeatureAreas()([]RecommendationFeatureAreas) { +func (m *RecommendationBase) GetFeatureAreas()([]RecommendationBase_featureAreas) { val, err := m.GetBackingStore().Get("featureAreas") if err != nil { panic(err) } if val != nil { - return val.([]RecommendationFeatureAreas) + return val.([]RecommendationBase_featureAreas) } return nil } @@ -185,15 +185,15 @@ func (m *RecommendationBase) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["featureAreas"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseRecommendationFeatureAreas) + val, err := n.GetCollectionOfEnumValues(ParseRecommendationBase_featureAreas) if err != nil { return err } if val != nil { - res := make([]RecommendationFeatureAreas, len(val)) + res := make([]RecommendationBase_featureAreas, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*RecommendationFeatureAreas)) + res[i] = *(v.(*RecommendationBase_featureAreas)) } } m.SetFeatureAreas(res) @@ -307,12 +307,12 @@ func (m *RecommendationBase) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["recommendationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRecommendationType) + val, err := n.GetEnumValue(ParseRecommendationBase_recommendationType) if err != nil { return err } if val != nil { - m.SetRecommendationType(val.(*RecommendationType)) + m.SetRecommendationType(val.(*RecommendationBase_recommendationType)) } return nil } @@ -459,13 +459,13 @@ func (m *RecommendationBase) GetPriority()(*RecommendationPriority) { return nil } // GetRecommendationType gets the recommendationType property value. Friendly shortname to identify the recommendation. The possible values are: adfsAppsMigration, enableDesktopSSO, enablePHS, enableProvisioning, switchFromPerUserMFA, tenantMFA, thirdPartyApps, turnOffPerUserMFA, useAuthenticatorApp, useMyApps, staleApps, staleAppCreds, applicationCredentialExpiry, servicePrincipalKeyExpiry, adminMFAV2, blockLegacyAuthentication, integratedApps, mfaRegistrationV2, pwagePolicyNew, passwordHashSync, oneAdmin, roleOverlap, selfServicePasswordReset, signinRiskPolicy, userRiskPolicy, verifyAppPublisher, privateLinkForAAD, appRoleAssignmentsGroups, appRoleAssignmentsUsers, managedIdentity, overprivilegedApps, unknownFutureValue, longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. -func (m *RecommendationBase) GetRecommendationType()(*RecommendationType) { +func (m *RecommendationBase) GetRecommendationType()(*RecommendationBase_recommendationType) { val, err := m.GetBackingStore().Get("recommendationType") if err != nil { panic(err) } if val != nil { - return val.(*RecommendationType) + return val.(*RecommendationBase_recommendationType) } return nil } @@ -552,7 +552,7 @@ func (m *RecommendationBase) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } } if m.GetFeatureAreas() != nil { - err = writer.WriteCollectionOfStringValues("featureAreas", SerializeRecommendationFeatureAreas(m.GetFeatureAreas())) + err = writer.WriteCollectionOfStringValues("featureAreas", SerializeRecommendationBase_featureAreas(m.GetFeatureAreas())) if err != nil { return err } @@ -695,7 +695,7 @@ func (m *RecommendationBase) SetDisplayName(value *string)() { } } // SetFeatureAreas sets the featureAreas property value. The directory feature that the recommendation is related to. -func (m *RecommendationBase) SetFeatureAreas(value []RecommendationFeatureAreas)() { +func (m *RecommendationBase) SetFeatureAreas(value []RecommendationBase_featureAreas)() { err := m.GetBackingStore().Set("featureAreas", value) if err != nil { panic(err) @@ -772,7 +772,7 @@ func (m *RecommendationBase) SetPriority(value *RecommendationPriority)() { } } // SetRecommendationType sets the recommendationType property value. Friendly shortname to identify the recommendation. The possible values are: adfsAppsMigration, enableDesktopSSO, enablePHS, enableProvisioning, switchFromPerUserMFA, tenantMFA, thirdPartyApps, turnOffPerUserMFA, useAuthenticatorApp, useMyApps, staleApps, staleAppCreds, applicationCredentialExpiry, servicePrincipalKeyExpiry, adminMFAV2, blockLegacyAuthentication, integratedApps, mfaRegistrationV2, pwagePolicyNew, passwordHashSync, oneAdmin, roleOverlap, selfServicePasswordReset, signinRiskPolicy, userRiskPolicy, verifyAppPublisher, privateLinkForAAD, appRoleAssignmentsGroups, appRoleAssignmentsUsers, managedIdentity, overprivilegedApps, unknownFutureValue, longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. -func (m *RecommendationBase) SetRecommendationType(value *RecommendationType)() { +func (m *RecommendationBase) SetRecommendationType(value *RecommendationBase_recommendationType)() { err := m.GetBackingStore().Set("recommendationType", value) if err != nil { panic(err) @@ -809,7 +809,7 @@ type RecommendationBaseable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCurrentScore()(*float64) GetDisplayName()(*string) - GetFeatureAreas()([]RecommendationFeatureAreas) + GetFeatureAreas()([]RecommendationBase_featureAreas) GetImpactedResources()([]ImpactedResourceable) GetImpactStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetImpactType()(*string) @@ -820,7 +820,7 @@ type RecommendationBaseable interface { GetMaxScore()(*float64) GetPostponeUntilDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPriority()(*RecommendationPriority) - GetRecommendationType()(*RecommendationType) + GetRecommendationType()(*RecommendationBase_recommendationType) GetReleaseType()(*string) GetRemediationImpact()(*string) GetStatus()(*RecommendationStatus) @@ -830,7 +830,7 @@ type RecommendationBaseable interface { SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCurrentScore(value *float64)() SetDisplayName(value *string)() - SetFeatureAreas(value []RecommendationFeatureAreas)() + SetFeatureAreas(value []RecommendationBase_featureAreas)() SetImpactedResources(value []ImpactedResourceable)() SetImpactStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetImpactType(value *string)() @@ -841,7 +841,7 @@ type RecommendationBaseable interface { SetMaxScore(value *float64)() SetPostponeUntilDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPriority(value *RecommendationPriority)() - SetRecommendationType(value *RecommendationType)() + SetRecommendationType(value *RecommendationBase_recommendationType)() SetReleaseType(value *string)() SetRemediationImpact(value *string)() SetStatus(value *RecommendationStatus)() diff --git a/models/recommendation_base_feature_areas.go b/models/recommendation_base_feature_areas.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/recommendation_base_recommendation_type.go b/models/recommendation_base_recommendation_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/recommendation_feature_areas.go b/models/recommendation_feature_areas.go deleted file mode 100644 index 794e7c30974..00000000000 --- a/models/recommendation_feature_areas.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type RecommendationFeatureAreas int - -const ( - USERS_RECOMMENDATIONFEATUREAREAS RecommendationFeatureAreas = iota - GROUPS_RECOMMENDATIONFEATUREAREAS - DEVICES_RECOMMENDATIONFEATUREAREAS - APPLICATIONS_RECOMMENDATIONFEATUREAREAS - ACCESSREVIEWS_RECOMMENDATIONFEATUREAREAS - CONDITIONALACCESS_RECOMMENDATIONFEATUREAREAS - GOVERNANCE_RECOMMENDATIONFEATUREAREAS - UNKNOWNFUTUREVALUE_RECOMMENDATIONFEATUREAREAS -) - -func (i RecommendationFeatureAreas) String() string { - return []string{"users", "groups", "devices", "applications", "accessReviews", "conditionalAccess", "governance", "unknownFutureValue"}[i] -} -func ParseRecommendationFeatureAreas(v string) (any, error) { - result := USERS_RECOMMENDATIONFEATUREAREAS - switch v { - case "users": - result = USERS_RECOMMENDATIONFEATUREAREAS - case "groups": - result = GROUPS_RECOMMENDATIONFEATUREAREAS - case "devices": - result = DEVICES_RECOMMENDATIONFEATUREAREAS - case "applications": - result = APPLICATIONS_RECOMMENDATIONFEATUREAREAS - case "accessReviews": - result = ACCESSREVIEWS_RECOMMENDATIONFEATUREAREAS - case "conditionalAccess": - result = CONDITIONALACCESS_RECOMMENDATIONFEATUREAREAS - case "governance": - result = GOVERNANCE_RECOMMENDATIONFEATUREAREAS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RECOMMENDATIONFEATUREAREAS - default: - return 0, errors.New("Unknown RecommendationFeatureAreas value: " + v) - } - return &result, nil -} -func SerializeRecommendationFeatureAreas(values []RecommendationFeatureAreas) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RecommendationFeatureAreas) isMultiValue() bool { - return false -} diff --git a/models/recommendation_type.go b/models/recommendation_type.go deleted file mode 100644 index 0b4f9bd59df..00000000000 --- a/models/recommendation_type.go +++ /dev/null @@ -1,142 +0,0 @@ -package models -import ( - "errors" -) -// -type RecommendationType int - -const ( - ADFSAPPSMIGRATION_RECOMMENDATIONTYPE RecommendationType = iota - ENABLEDESKTOPSSO_RECOMMENDATIONTYPE - ENABLEPHS_RECOMMENDATIONTYPE - ENABLEPROVISIONING_RECOMMENDATIONTYPE - SWITCHFROMPERUSERMFA_RECOMMENDATIONTYPE - TENANTMFA_RECOMMENDATIONTYPE - THIRDPARTYAPPS_RECOMMENDATIONTYPE - TURNOFFPERUSERMFA_RECOMMENDATIONTYPE - USEAUTHENTICATORAPP_RECOMMENDATIONTYPE - USEMYAPPS_RECOMMENDATIONTYPE - STALEAPPS_RECOMMENDATIONTYPE - STALEAPPCREDS_RECOMMENDATIONTYPE - APPLICATIONCREDENTIALEXPIRY_RECOMMENDATIONTYPE - SERVICEPRINCIPALKEYEXPIRY_RECOMMENDATIONTYPE - ADMINMFAV2_RECOMMENDATIONTYPE - BLOCKLEGACYAUTHENTICATION_RECOMMENDATIONTYPE - INTEGRATEDAPPS_RECOMMENDATIONTYPE - MFAREGISTRATIONV2_RECOMMENDATIONTYPE - PWAGEPOLICYNEW_RECOMMENDATIONTYPE - PASSWORDHASHSYNC_RECOMMENDATIONTYPE - ONEADMIN_RECOMMENDATIONTYPE - ROLEOVERLAP_RECOMMENDATIONTYPE - SELFSERVICEPASSWORDRESET_RECOMMENDATIONTYPE - SIGNINRISKPOLICY_RECOMMENDATIONTYPE - USERRISKPOLICY_RECOMMENDATIONTYPE - VERIFYAPPPUBLISHER_RECOMMENDATIONTYPE - PRIVATELINKFORAAD_RECOMMENDATIONTYPE - APPROLEASSIGNMENTSGROUPS_RECOMMENDATIONTYPE - APPROLEASSIGNMENTSUSERS_RECOMMENDATIONTYPE - MANAGEDIDENTITY_RECOMMENDATIONTYPE - OVERPRIVILEGEDAPPS_RECOMMENDATIONTYPE - UNKNOWNFUTUREVALUE_RECOMMENDATIONTYPE - LONGLIVEDCREDENTIALS_RECOMMENDATIONTYPE - AADCONNECTDEPRECATED_RECOMMENDATIONTYPE - ADALTOMSALMIGRATION_RECOMMENDATIONTYPE - OWNERLESSAPPS_RECOMMENDATIONTYPE - INACTIVEGUESTS_RECOMMENDATIONTYPE -) - -func (i RecommendationType) String() string { - return []string{"adfsAppsMigration", "enableDesktopSSO", "enablePHS", "enableProvisioning", "switchFromPerUserMFA", "tenantMFA", "thirdPartyApps", "turnOffPerUserMFA", "useAuthenticatorApp", "useMyApps", "staleApps", "staleAppCreds", "applicationCredentialExpiry", "servicePrincipalKeyExpiry", "adminMFAV2", "blockLegacyAuthentication", "integratedApps", "mfaRegistrationV2", "pwagePolicyNew", "passwordHashSync", "oneAdmin", "roleOverlap", "selfServicePasswordReset", "signinRiskPolicy", "userRiskPolicy", "verifyAppPublisher", "privateLinkForAAD", "appRoleAssignmentsGroups", "appRoleAssignmentsUsers", "managedIdentity", "overprivilegedApps", "unknownFutureValue", "longLivedCredentials", "aadConnectDeprecated", "adalToMsalMigration", "ownerlessApps", "inactiveGuests"}[i] -} -func ParseRecommendationType(v string) (any, error) { - result := ADFSAPPSMIGRATION_RECOMMENDATIONTYPE - switch v { - case "adfsAppsMigration": - result = ADFSAPPSMIGRATION_RECOMMENDATIONTYPE - case "enableDesktopSSO": - result = ENABLEDESKTOPSSO_RECOMMENDATIONTYPE - case "enablePHS": - result = ENABLEPHS_RECOMMENDATIONTYPE - case "enableProvisioning": - result = ENABLEPROVISIONING_RECOMMENDATIONTYPE - case "switchFromPerUserMFA": - result = SWITCHFROMPERUSERMFA_RECOMMENDATIONTYPE - case "tenantMFA": - result = TENANTMFA_RECOMMENDATIONTYPE - case "thirdPartyApps": - result = THIRDPARTYAPPS_RECOMMENDATIONTYPE - case "turnOffPerUserMFA": - result = TURNOFFPERUSERMFA_RECOMMENDATIONTYPE - case "useAuthenticatorApp": - result = USEAUTHENTICATORAPP_RECOMMENDATIONTYPE - case "useMyApps": - result = USEMYAPPS_RECOMMENDATIONTYPE - case "staleApps": - result = STALEAPPS_RECOMMENDATIONTYPE - case "staleAppCreds": - result = STALEAPPCREDS_RECOMMENDATIONTYPE - case "applicationCredentialExpiry": - result = APPLICATIONCREDENTIALEXPIRY_RECOMMENDATIONTYPE - case "servicePrincipalKeyExpiry": - result = SERVICEPRINCIPALKEYEXPIRY_RECOMMENDATIONTYPE - case "adminMFAV2": - result = ADMINMFAV2_RECOMMENDATIONTYPE - case "blockLegacyAuthentication": - result = BLOCKLEGACYAUTHENTICATION_RECOMMENDATIONTYPE - case "integratedApps": - result = INTEGRATEDAPPS_RECOMMENDATIONTYPE - case "mfaRegistrationV2": - result = MFAREGISTRATIONV2_RECOMMENDATIONTYPE - case "pwagePolicyNew": - result = PWAGEPOLICYNEW_RECOMMENDATIONTYPE - case "passwordHashSync": - result = PASSWORDHASHSYNC_RECOMMENDATIONTYPE - case "oneAdmin": - result = ONEADMIN_RECOMMENDATIONTYPE - case "roleOverlap": - result = ROLEOVERLAP_RECOMMENDATIONTYPE - case "selfServicePasswordReset": - result = SELFSERVICEPASSWORDRESET_RECOMMENDATIONTYPE - case "signinRiskPolicy": - result = SIGNINRISKPOLICY_RECOMMENDATIONTYPE - case "userRiskPolicy": - result = USERRISKPOLICY_RECOMMENDATIONTYPE - case "verifyAppPublisher": - result = VERIFYAPPPUBLISHER_RECOMMENDATIONTYPE - case "privateLinkForAAD": - result = PRIVATELINKFORAAD_RECOMMENDATIONTYPE - case "appRoleAssignmentsGroups": - result = APPROLEASSIGNMENTSGROUPS_RECOMMENDATIONTYPE - case "appRoleAssignmentsUsers": - result = APPROLEASSIGNMENTSUSERS_RECOMMENDATIONTYPE - case "managedIdentity": - result = MANAGEDIDENTITY_RECOMMENDATIONTYPE - case "overprivilegedApps": - result = OVERPRIVILEGEDAPPS_RECOMMENDATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RECOMMENDATIONTYPE - case "longLivedCredentials": - result = LONGLIVEDCREDENTIALS_RECOMMENDATIONTYPE - case "aadConnectDeprecated": - result = AADCONNECTDEPRECATED_RECOMMENDATIONTYPE - case "adalToMsalMigration": - result = ADALTOMSALMIGRATION_RECOMMENDATIONTYPE - case "ownerlessApps": - result = OWNERLESSAPPS_RECOMMENDATIONTYPE - case "inactiveGuests": - result = INACTIVEGUESTS_RECOMMENDATIONTYPE - default: - return 0, errors.New("Unknown RecommendationType value: " + v) - } - return &result, nil -} -func SerializeRecommendationType(values []RecommendationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RecommendationType) isMultiValue() bool { - return false -} diff --git a/models/record_completion_reason.go b/models/record_completion_reason.go deleted file mode 100644 index 3e2f093427b..00000000000 --- a/models/record_completion_reason.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type RecordCompletionReason int - -const ( - OPERATIONCANCELED_RECORDCOMPLETIONREASON RecordCompletionReason = iota - STOPTONEDETECTED_RECORDCOMPLETIONREASON - MAXRECORDDURATIONREACHED_RECORDCOMPLETIONREASON - INITIALSILENCETIMEOUT_RECORDCOMPLETIONREASON - MAXSILENCETIMEOUT_RECORDCOMPLETIONREASON - PLAYPROMPTFAILED_RECORDCOMPLETIONREASON - PLAYBEEPFAILED_RECORDCOMPLETIONREASON - MEDIARECEIVETIMEOUT_RECORDCOMPLETIONREASON - UNSPECIFIEDERROR_RECORDCOMPLETIONREASON -) - -func (i RecordCompletionReason) String() string { - return []string{"operationCanceled", "stopToneDetected", "maxRecordDurationReached", "initialSilenceTimeout", "maxSilenceTimeout", "playPromptFailed", "playBeepFailed", "mediaReceiveTimeout", "unspecifiedError"}[i] -} -func ParseRecordCompletionReason(v string) (any, error) { - result := OPERATIONCANCELED_RECORDCOMPLETIONREASON - switch v { - case "operationCanceled": - result = OPERATIONCANCELED_RECORDCOMPLETIONREASON - case "stopToneDetected": - result = STOPTONEDETECTED_RECORDCOMPLETIONREASON - case "maxRecordDurationReached": - result = MAXRECORDDURATIONREACHED_RECORDCOMPLETIONREASON - case "initialSilenceTimeout": - result = INITIALSILENCETIMEOUT_RECORDCOMPLETIONREASON - case "maxSilenceTimeout": - result = MAXSILENCETIMEOUT_RECORDCOMPLETIONREASON - case "playPromptFailed": - result = PLAYPROMPTFAILED_RECORDCOMPLETIONREASON - case "playBeepFailed": - result = PLAYBEEPFAILED_RECORDCOMPLETIONREASON - case "mediaReceiveTimeout": - result = MEDIARECEIVETIMEOUT_RECORDCOMPLETIONREASON - case "unspecifiedError": - result = UNSPECIFIEDERROR_RECORDCOMPLETIONREASON - default: - return 0, errors.New("Unknown RecordCompletionReason value: " + v) - } - return &result, nil -} -func SerializeRecordCompletionReason(values []RecordCompletionReason) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RecordCompletionReason) isMultiValue() bool { - return false -} diff --git a/models/record_operation.go b/models/record_operation.go index f634c75739f..fdda60e223b 100644 --- a/models/record_operation.go +++ b/models/record_operation.go @@ -20,13 +20,13 @@ func CreateRecordOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896 return NewRecordOperation(), nil } // GetCompletionReason gets the completionReason property value. Possible values are: operationCanceled, stopToneDetected, maxRecordDurationReached, initialSilenceTimeout, maxSilenceTimeout, playPromptFailed, playBeepFailed, mediaReceiveTimeout, unspecifiedError, none. -func (m *RecordOperation) GetCompletionReason()(*RecordCompletionReason) { +func (m *RecordOperation) GetCompletionReason()(*RecordOperation_completionReason) { val, err := m.GetBackingStore().Get("completionReason") if err != nil { panic(err) } if val != nil { - return val.(*RecordCompletionReason) + return val.(*RecordOperation_completionReason) } return nil } @@ -34,12 +34,12 @@ func (m *RecordOperation) GetCompletionReason()(*RecordCompletionReason) { func (m *RecordOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CommsOperation.GetFieldDeserializers() res["completionReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRecordCompletionReason) + val, err := n.GetEnumValue(ParseRecordOperation_completionReason) if err != nil { return err } if val != nil { - m.SetCompletionReason(val.(*RecordCompletionReason)) + m.SetCompletionReason(val.(*RecordOperation_completionReason)) } return nil } @@ -115,7 +115,7 @@ func (m *RecordOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return nil } // SetCompletionReason sets the completionReason property value. Possible values are: operationCanceled, stopToneDetected, maxRecordDurationReached, initialSilenceTimeout, maxSilenceTimeout, playPromptFailed, playBeepFailed, mediaReceiveTimeout, unspecifiedError, none. -func (m *RecordOperation) SetCompletionReason(value *RecordCompletionReason)() { +func (m *RecordOperation) SetCompletionReason(value *RecordOperation_completionReason)() { err := m.GetBackingStore().Set("completionReason", value) if err != nil { panic(err) @@ -139,10 +139,10 @@ func (m *RecordOperation) SetRecordingLocation(value *string)() { type RecordOperationable interface { CommsOperationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCompletionReason()(*RecordCompletionReason) + GetCompletionReason()(*RecordOperation_completionReason) GetRecordingAccessToken()(*string) GetRecordingLocation()(*string) - SetCompletionReason(value *RecordCompletionReason)() + SetCompletionReason(value *RecordOperation_completionReason)() SetRecordingAccessToken(value *string)() SetRecordingLocation(value *string)() } diff --git a/models/record_operation_completion_reason.go b/models/record_operation_completion_reason.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/recurrence_pattern.go b/models/recurrence_pattern.go index d98532c088a..76c047a0139 100644 --- a/models/recurrence_pattern.go +++ b/models/recurrence_pattern.go @@ -50,13 +50,13 @@ func (m *RecurrencePattern) GetDayOfMonth()(*int32) { return nil } // GetDaysOfWeek gets the daysOfWeek property value. A collection of the days of the week on which the event occurs. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern. Required if type is weekly, relativeMonthly, or relativeYearly. -func (m *RecurrencePattern) GetDaysOfWeek()([]DayOfWeek) { +func (m *RecurrencePattern) GetDaysOfWeek()([]RecurrencePattern_daysOfWeek) { val, err := m.GetBackingStore().Get("daysOfWeek") if err != nil { panic(err) } if val != nil { - return val.([]DayOfWeek) + return val.([]RecurrencePattern_daysOfWeek) } return nil } @@ -74,15 +74,15 @@ func (m *RecurrencePattern) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["daysOfWeek"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseDayOfWeek) + val, err := n.GetCollectionOfEnumValues(ParseRecurrencePattern_daysOfWeek) if err != nil { return err } if val != nil { - res := make([]DayOfWeek, len(val)) + res := make([]RecurrencePattern_daysOfWeek, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*DayOfWeek)) + res[i] = *(v.(*RecurrencePattern_daysOfWeek)) } } m.SetDaysOfWeek(res) @@ -90,22 +90,22 @@ func (m *RecurrencePattern) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["firstDayOfWeek"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDayOfWeek) + val, err := n.GetEnumValue(ParseRecurrencePattern_firstDayOfWeek) if err != nil { return err } if val != nil { - m.SetFirstDayOfWeek(val.(*DayOfWeek)) + m.SetFirstDayOfWeek(val.(*RecurrencePattern_firstDayOfWeek)) } return nil } res["index"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWeekIndex) + val, err := n.GetEnumValue(ParseRecurrencePattern_index) if err != nil { return err } if val != nil { - m.SetIndex(val.(*WeekIndex)) + m.SetIndex(val.(*RecurrencePattern_index)) } return nil } @@ -140,36 +140,36 @@ func (m *RecurrencePattern) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRecurrencePatternType) + val, err := n.GetEnumValue(ParseRecurrencePattern_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*RecurrencePatternType)) + m.SetTypeEscaped(val.(*RecurrencePattern_type)) } return nil } return res } // GetFirstDayOfWeek gets the firstDayOfWeek property value. The first day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. Default is sunday. Required if type is weekly. -func (m *RecurrencePattern) GetFirstDayOfWeek()(*DayOfWeek) { +func (m *RecurrencePattern) GetFirstDayOfWeek()(*RecurrencePattern_firstDayOfWeek) { val, err := m.GetBackingStore().Get("firstDayOfWeek") if err != nil { panic(err) } if val != nil { - return val.(*DayOfWeek) + return val.(*RecurrencePattern_firstDayOfWeek) } return nil } // GetIndex gets the index property value. Specifies on which instance of the allowed days specified in daysOfWeek the event occurs, counted from the first instance in the month. The possible values are: first, second, third, fourth, last. Default is first. Optional and used if type is relativeMonthly or relativeYearly. -func (m *RecurrencePattern) GetIndex()(*WeekIndex) { +func (m *RecurrencePattern) GetIndex()(*RecurrencePattern_index) { val, err := m.GetBackingStore().Get("index") if err != nil { panic(err) } if val != nil { - return val.(*WeekIndex) + return val.(*RecurrencePattern_index) } return nil } @@ -207,13 +207,13 @@ func (m *RecurrencePattern) GetOdataType()(*string) { return nil } // GetTypeEscaped gets the type property value. The recurrence pattern type: daily, weekly, absoluteMonthly, relativeMonthly, absoluteYearly, relativeYearly. Required. For more information, see values of type property. -func (m *RecurrencePattern) GetTypeEscaped()(*RecurrencePatternType) { +func (m *RecurrencePattern) GetTypeEscaped()(*RecurrencePattern_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*RecurrencePatternType) + return val.(*RecurrencePattern_type) } return nil } @@ -226,7 +226,7 @@ func (m *RecurrencePattern) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } } if m.GetDaysOfWeek() != nil { - err := writer.WriteCollectionOfStringValues("daysOfWeek", SerializeDayOfWeek(m.GetDaysOfWeek())) + err := writer.WriteCollectionOfStringValues("daysOfWeek", SerializeRecurrencePattern_daysOfWeek(m.GetDaysOfWeek())) if err != nil { return err } @@ -297,21 +297,21 @@ func (m *RecurrencePattern) SetDayOfMonth(value *int32)() { } } // SetDaysOfWeek sets the daysOfWeek property value. A collection of the days of the week on which the event occurs. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern. Required if type is weekly, relativeMonthly, or relativeYearly. -func (m *RecurrencePattern) SetDaysOfWeek(value []DayOfWeek)() { +func (m *RecurrencePattern) SetDaysOfWeek(value []RecurrencePattern_daysOfWeek)() { err := m.GetBackingStore().Set("daysOfWeek", value) if err != nil { panic(err) } } // SetFirstDayOfWeek sets the firstDayOfWeek property value. The first day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. Default is sunday. Required if type is weekly. -func (m *RecurrencePattern) SetFirstDayOfWeek(value *DayOfWeek)() { +func (m *RecurrencePattern) SetFirstDayOfWeek(value *RecurrencePattern_firstDayOfWeek)() { err := m.GetBackingStore().Set("firstDayOfWeek", value) if err != nil { panic(err) } } // SetIndex sets the index property value. Specifies on which instance of the allowed days specified in daysOfWeek the event occurs, counted from the first instance in the month. The possible values are: first, second, third, fourth, last. Default is first. Optional and used if type is relativeMonthly or relativeYearly. -func (m *RecurrencePattern) SetIndex(value *WeekIndex)() { +func (m *RecurrencePattern) SetIndex(value *RecurrencePattern_index)() { err := m.GetBackingStore().Set("index", value) if err != nil { panic(err) @@ -339,7 +339,7 @@ func (m *RecurrencePattern) SetOdataType(value *string)() { } } // SetTypeEscaped sets the type property value. The recurrence pattern type: daily, weekly, absoluteMonthly, relativeMonthly, absoluteYearly, relativeYearly. Required. For more information, see values of type property. -func (m *RecurrencePattern) SetTypeEscaped(value *RecurrencePatternType)() { +func (m *RecurrencePattern) SetTypeEscaped(value *RecurrencePattern_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -352,20 +352,20 @@ type RecurrencePatternable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDayOfMonth()(*int32) - GetDaysOfWeek()([]DayOfWeek) - GetFirstDayOfWeek()(*DayOfWeek) - GetIndex()(*WeekIndex) + GetDaysOfWeek()([]RecurrencePattern_daysOfWeek) + GetFirstDayOfWeek()(*RecurrencePattern_firstDayOfWeek) + GetIndex()(*RecurrencePattern_index) GetInterval()(*int32) GetMonth()(*int32) GetOdataType()(*string) - GetTypeEscaped()(*RecurrencePatternType) + GetTypeEscaped()(*RecurrencePattern_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDayOfMonth(value *int32)() - SetDaysOfWeek(value []DayOfWeek)() - SetFirstDayOfWeek(value *DayOfWeek)() - SetIndex(value *WeekIndex)() + SetDaysOfWeek(value []RecurrencePattern_daysOfWeek)() + SetFirstDayOfWeek(value *RecurrencePattern_firstDayOfWeek)() + SetIndex(value *RecurrencePattern_index)() SetInterval(value *int32)() SetMonth(value *int32)() SetOdataType(value *string)() - SetTypeEscaped(value *RecurrencePatternType)() + SetTypeEscaped(value *RecurrencePattern_type)() } diff --git a/models/recurrence_pattern_days_of_week.go b/models/recurrence_pattern_days_of_week.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/recurrence_pattern_first_day_of_week.go b/models/recurrence_pattern_first_day_of_week.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/recurrence_pattern_index.go b/models/recurrence_pattern_index.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/recurrence_pattern_type.go b/models/recurrence_pattern_type.go index 7ed5cf0c249..e69de29bb2d 100644 --- a/models/recurrence_pattern_type.go +++ b/models/recurrence_pattern_type.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type RecurrencePatternType int - -const ( - DAILY_RECURRENCEPATTERNTYPE RecurrencePatternType = iota - WEEKLY_RECURRENCEPATTERNTYPE - ABSOLUTEMONTHLY_RECURRENCEPATTERNTYPE - RELATIVEMONTHLY_RECURRENCEPATTERNTYPE - ABSOLUTEYEARLY_RECURRENCEPATTERNTYPE - RELATIVEYEARLY_RECURRENCEPATTERNTYPE -) - -func (i RecurrencePatternType) String() string { - return []string{"daily", "weekly", "absoluteMonthly", "relativeMonthly", "absoluteYearly", "relativeYearly"}[i] -} -func ParseRecurrencePatternType(v string) (any, error) { - result := DAILY_RECURRENCEPATTERNTYPE - switch v { - case "daily": - result = DAILY_RECURRENCEPATTERNTYPE - case "weekly": - result = WEEKLY_RECURRENCEPATTERNTYPE - case "absoluteMonthly": - result = ABSOLUTEMONTHLY_RECURRENCEPATTERNTYPE - case "relativeMonthly": - result = RELATIVEMONTHLY_RECURRENCEPATTERNTYPE - case "absoluteYearly": - result = ABSOLUTEYEARLY_RECURRENCEPATTERNTYPE - case "relativeYearly": - result = RELATIVEYEARLY_RECURRENCEPATTERNTYPE - default: - return 0, errors.New("Unknown RecurrencePatternType value: " + v) - } - return &result, nil -} -func SerializeRecurrencePatternType(values []RecurrencePatternType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RecurrencePatternType) isMultiValue() bool { - return false -} diff --git a/models/recurrence_range.go b/models/recurrence_range.go index 0fd403cae1a..cd73ddfdb39 100644 --- a/models/recurrence_range.go +++ b/models/recurrence_range.go @@ -103,12 +103,12 @@ func (m *RecurrenceRange) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRecurrenceRangeType) + val, err := n.GetEnumValue(ParseRecurrenceRange_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*RecurrenceRangeType)) + m.SetTypeEscaped(val.(*RecurrenceRange_type)) } return nil } @@ -159,13 +159,13 @@ func (m *RecurrenceRange) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a return nil } // GetTypeEscaped gets the type property value. The recurrence range. Possible values are: endDate, noEnd, numbered. Required. -func (m *RecurrenceRange) GetTypeEscaped()(*RecurrenceRangeType) { +func (m *RecurrenceRange) GetTypeEscaped()(*RecurrenceRange_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*RecurrenceRangeType) + return val.(*RecurrenceRange_type) } return nil } @@ -263,7 +263,7 @@ func (m *RecurrenceRange) SetStartDate(value *i878a80d2330e89d26896388a3f487eef2 } } // SetTypeEscaped sets the type property value. The recurrence range. Possible values are: endDate, noEnd, numbered. Required. -func (m *RecurrenceRange) SetTypeEscaped(value *RecurrenceRangeType)() { +func (m *RecurrenceRange) SetTypeEscaped(value *RecurrenceRange_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -280,12 +280,12 @@ type RecurrenceRangeable interface { GetOdataType()(*string) GetRecurrenceTimeZone()(*string) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) - GetTypeEscaped()(*RecurrenceRangeType) + GetTypeEscaped()(*RecurrenceRange_type) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetNumberOfOccurrences(value *int32)() SetOdataType(value *string)() SetRecurrenceTimeZone(value *string)() SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() - SetTypeEscaped(value *RecurrenceRangeType)() + SetTypeEscaped(value *RecurrenceRange_type)() } diff --git a/models/recurrence_range_type.go b/models/recurrence_range_type.go index 1e5a99ce19e..e69de29bb2d 100644 --- a/models/recurrence_range_type.go +++ b/models/recurrence_range_type.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type RecurrenceRangeType int - -const ( - ENDDATE_RECURRENCERANGETYPE RecurrenceRangeType = iota - NOEND_RECURRENCERANGETYPE - NUMBERED_RECURRENCERANGETYPE -) - -func (i RecurrenceRangeType) String() string { - return []string{"endDate", "noEnd", "numbered"}[i] -} -func ParseRecurrenceRangeType(v string) (any, error) { - result := ENDDATE_RECURRENCERANGETYPE - switch v { - case "endDate": - result = ENDDATE_RECURRENCERANGETYPE - case "noEnd": - result = NOEND_RECURRENCERANGETYPE - case "numbered": - result = NUMBERED_RECURRENCERANGETYPE - default: - return 0, errors.New("Unknown RecurrenceRangeType value: " + v) - } - return &result, nil -} -func SerializeRecurrenceRangeType(values []RecurrenceRangeType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RecurrenceRangeType) isMultiValue() bool { - return false -} diff --git a/models/reference_attachment.go b/models/reference_attachment.go index 692c0bdcc16..26fe873f966 100644 --- a/models/reference_attachment.go +++ b/models/reference_attachment.go @@ -35,12 +35,12 @@ func (m *ReferenceAttachment) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["permission"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseReferenceAttachmentPermission) + val, err := n.GetEnumValue(ParseReferenceAttachment_permission) if err != nil { return err } if val != nil { - m.SetPermission(val.(*ReferenceAttachmentPermission)) + m.SetPermission(val.(*ReferenceAttachment_permission)) } return nil } @@ -55,12 +55,12 @@ func (m *ReferenceAttachment) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["providerType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseReferenceAttachmentProvider) + val, err := n.GetEnumValue(ParseReferenceAttachment_providerType) if err != nil { return err } if val != nil { - m.SetProviderType(val.(*ReferenceAttachmentProvider)) + m.SetProviderType(val.(*ReferenceAttachment_providerType)) } return nil } @@ -98,13 +98,13 @@ func (m *ReferenceAttachment) GetIsFolder()(*bool) { return nil } // GetPermission gets the permission property value. Specifies the permissions granted for the attachment by the type of provider in providerType. Possible values are: other, view, edit, anonymousView, anonymousEdit, organizationView, organizationEdit. Optional. -func (m *ReferenceAttachment) GetPermission()(*ReferenceAttachmentPermission) { +func (m *ReferenceAttachment) GetPermission()(*ReferenceAttachment_permission) { val, err := m.GetBackingStore().Get("permission") if err != nil { panic(err) } if val != nil { - return val.(*ReferenceAttachmentPermission) + return val.(*ReferenceAttachment_permission) } return nil } @@ -120,13 +120,13 @@ func (m *ReferenceAttachment) GetPreviewUrl()(*string) { return nil } // GetProviderType gets the providerType property value. The type of provider that supports an attachment of this contentType. Possible values are: other, oneDriveBusiness, oneDriveConsumer, dropbox. Optional. -func (m *ReferenceAttachment) GetProviderType()(*ReferenceAttachmentProvider) { +func (m *ReferenceAttachment) GetProviderType()(*ReferenceAttachment_providerType) { val, err := m.GetBackingStore().Get("providerType") if err != nil { panic(err) } if val != nil { - return val.(*ReferenceAttachmentProvider) + return val.(*ReferenceAttachment_providerType) } return nil } @@ -206,7 +206,7 @@ func (m *ReferenceAttachment) SetIsFolder(value *bool)() { } } // SetPermission sets the permission property value. Specifies the permissions granted for the attachment by the type of provider in providerType. Possible values are: other, view, edit, anonymousView, anonymousEdit, organizationView, organizationEdit. Optional. -func (m *ReferenceAttachment) SetPermission(value *ReferenceAttachmentPermission)() { +func (m *ReferenceAttachment) SetPermission(value *ReferenceAttachment_permission)() { err := m.GetBackingStore().Set("permission", value) if err != nil { panic(err) @@ -220,7 +220,7 @@ func (m *ReferenceAttachment) SetPreviewUrl(value *string)() { } } // SetProviderType sets the providerType property value. The type of provider that supports an attachment of this contentType. Possible values are: other, oneDriveBusiness, oneDriveConsumer, dropbox. Optional. -func (m *ReferenceAttachment) SetProviderType(value *ReferenceAttachmentProvider)() { +func (m *ReferenceAttachment) SetProviderType(value *ReferenceAttachment_providerType)() { err := m.GetBackingStore().Set("providerType", value) if err != nil { panic(err) @@ -245,15 +245,15 @@ type ReferenceAttachmentable interface { Attachmentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIsFolder()(*bool) - GetPermission()(*ReferenceAttachmentPermission) + GetPermission()(*ReferenceAttachment_permission) GetPreviewUrl()(*string) - GetProviderType()(*ReferenceAttachmentProvider) + GetProviderType()(*ReferenceAttachment_providerType) GetSourceUrl()(*string) GetThumbnailUrl()(*string) SetIsFolder(value *bool)() - SetPermission(value *ReferenceAttachmentPermission)() + SetPermission(value *ReferenceAttachment_permission)() SetPreviewUrl(value *string)() - SetProviderType(value *ReferenceAttachmentProvider)() + SetProviderType(value *ReferenceAttachment_providerType)() SetSourceUrl(value *string)() SetThumbnailUrl(value *string)() } diff --git a/models/reference_attachment_permission.go b/models/reference_attachment_permission.go index 8d07d45900a..e69de29bb2d 100644 --- a/models/reference_attachment_permission.go +++ b/models/reference_attachment_permission.go @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ReferenceAttachmentPermission int - -const ( - OTHER_REFERENCEATTACHMENTPERMISSION ReferenceAttachmentPermission = iota - VIEW_REFERENCEATTACHMENTPERMISSION - EDIT_REFERENCEATTACHMENTPERMISSION - ANONYMOUSVIEW_REFERENCEATTACHMENTPERMISSION - ANONYMOUSEDIT_REFERENCEATTACHMENTPERMISSION - ORGANIZATIONVIEW_REFERENCEATTACHMENTPERMISSION - ORGANIZATIONEDIT_REFERENCEATTACHMENTPERMISSION -) - -func (i ReferenceAttachmentPermission) String() string { - return []string{"other", "view", "edit", "anonymousView", "anonymousEdit", "organizationView", "organizationEdit"}[i] -} -func ParseReferenceAttachmentPermission(v string) (any, error) { - result := OTHER_REFERENCEATTACHMENTPERMISSION - switch v { - case "other": - result = OTHER_REFERENCEATTACHMENTPERMISSION - case "view": - result = VIEW_REFERENCEATTACHMENTPERMISSION - case "edit": - result = EDIT_REFERENCEATTACHMENTPERMISSION - case "anonymousView": - result = ANONYMOUSVIEW_REFERENCEATTACHMENTPERMISSION - case "anonymousEdit": - result = ANONYMOUSEDIT_REFERENCEATTACHMENTPERMISSION - case "organizationView": - result = ORGANIZATIONVIEW_REFERENCEATTACHMENTPERMISSION - case "organizationEdit": - result = ORGANIZATIONEDIT_REFERENCEATTACHMENTPERMISSION - default: - return 0, errors.New("Unknown ReferenceAttachmentPermission value: " + v) - } - return &result, nil -} -func SerializeReferenceAttachmentPermission(values []ReferenceAttachmentPermission) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ReferenceAttachmentPermission) isMultiValue() bool { - return false -} diff --git a/models/reference_attachment_provider.go b/models/reference_attachment_provider.go deleted file mode 100644 index e9e2fc9e615..00000000000 --- a/models/reference_attachment_provider.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ReferenceAttachmentProvider int - -const ( - OTHER_REFERENCEATTACHMENTPROVIDER ReferenceAttachmentProvider = iota - ONEDRIVEBUSINESS_REFERENCEATTACHMENTPROVIDER - ONEDRIVECONSUMER_REFERENCEATTACHMENTPROVIDER - DROPBOX_REFERENCEATTACHMENTPROVIDER -) - -func (i ReferenceAttachmentProvider) String() string { - return []string{"other", "oneDriveBusiness", "oneDriveConsumer", "dropbox"}[i] -} -func ParseReferenceAttachmentProvider(v string) (any, error) { - result := OTHER_REFERENCEATTACHMENTPROVIDER - switch v { - case "other": - result = OTHER_REFERENCEATTACHMENTPROVIDER - case "oneDriveBusiness": - result = ONEDRIVEBUSINESS_REFERENCEATTACHMENTPROVIDER - case "oneDriveConsumer": - result = ONEDRIVECONSUMER_REFERENCEATTACHMENTPROVIDER - case "dropbox": - result = DROPBOX_REFERENCEATTACHMENTPROVIDER - default: - return 0, errors.New("Unknown ReferenceAttachmentProvider value: " + v) - } - return &result, nil -} -func SerializeReferenceAttachmentProvider(values []ReferenceAttachmentProvider) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ReferenceAttachmentProvider) isMultiValue() bool { - return false -} diff --git a/models/reference_attachment_provider_type.go b/models/reference_attachment_provider_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/registry_hive.go b/models/registry_hive.go deleted file mode 100644 index d29078e1b21..00000000000 --- a/models/registry_hive.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type RegistryHive int - -const ( - UNKNOWN_REGISTRYHIVE RegistryHive = iota - CURRENTCONFIG_REGISTRYHIVE - CURRENTUSER_REGISTRYHIVE - LOCALMACHINESAM_REGISTRYHIVE - LOCALMACHINESECURITY_REGISTRYHIVE - LOCALMACHINESOFTWARE_REGISTRYHIVE - LOCALMACHINESYSTEM_REGISTRYHIVE - USERSDEFAULT_REGISTRYHIVE - UNKNOWNFUTUREVALUE_REGISTRYHIVE -) - -func (i RegistryHive) String() string { - return []string{"unknown", "currentConfig", "currentUser", "localMachineSam", "localMachineSecurity", "localMachineSoftware", "localMachineSystem", "usersDefault", "unknownFutureValue"}[i] -} -func ParseRegistryHive(v string) (any, error) { - result := UNKNOWN_REGISTRYHIVE - switch v { - case "unknown": - result = UNKNOWN_REGISTRYHIVE - case "currentConfig": - result = CURRENTCONFIG_REGISTRYHIVE - case "currentUser": - result = CURRENTUSER_REGISTRYHIVE - case "localMachineSam": - result = LOCALMACHINESAM_REGISTRYHIVE - case "localMachineSecurity": - result = LOCALMACHINESECURITY_REGISTRYHIVE - case "localMachineSoftware": - result = LOCALMACHINESOFTWARE_REGISTRYHIVE - case "localMachineSystem": - result = LOCALMACHINESYSTEM_REGISTRYHIVE - case "usersDefault": - result = USERSDEFAULT_REGISTRYHIVE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_REGISTRYHIVE - default: - return 0, errors.New("Unknown RegistryHive value: " + v) - } - return &result, nil -} -func SerializeRegistryHive(values []RegistryHive) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RegistryHive) isMultiValue() bool { - return false -} diff --git a/models/registry_key_state.go b/models/registry_key_state.go index 6a7bfede153..fa00ac9cb3c 100644 --- a/models/registry_key_state.go +++ b/models/registry_key_state.go @@ -42,12 +42,12 @@ func (m *RegistryKeyState) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d411 func (m *RegistryKeyState) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["hive"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRegistryHive) + val, err := n.GetEnumValue(ParseRegistryKeyState_hive) if err != nil { return err } if val != nil { - m.SetHive(val.(*RegistryHive)) + m.SetHive(val.(*RegistryKeyState_hive)) } return nil } @@ -102,12 +102,12 @@ func (m *RegistryKeyState) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["operation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRegistryOperation) + val, err := n.GetEnumValue(ParseRegistryKeyState_operation) if err != nil { return err } if val != nil { - m.SetOperation(val.(*RegistryOperation)) + m.SetOperation(val.(*RegistryKeyState_operation)) } return nil } @@ -142,25 +142,25 @@ func (m *RegistryKeyState) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["valueType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRegistryValueType) + val, err := n.GetEnumValue(ParseRegistryKeyState_valueType) if err != nil { return err } if val != nil { - m.SetValueType(val.(*RegistryValueType)) + m.SetValueType(val.(*RegistryKeyState_valueType)) } return nil } return res } // GetHive gets the hive property value. A Windows registry hive : HKEYCURRENTCONFIG HKEYCURRENTUSER HKEYLOCALMACHINE/SAM HKEYLOCALMACHINE/Security HKEYLOCALMACHINE/Software HKEYLOCALMACHINE/System HKEY_USERS/.Default. Possible values are: unknown, currentConfig, currentUser, localMachineSam, localMachineSecurity, localMachineSoftware, localMachineSystem, usersDefault. -func (m *RegistryKeyState) GetHive()(*RegistryHive) { +func (m *RegistryKeyState) GetHive()(*RegistryKeyState_hive) { val, err := m.GetBackingStore().Get("hive") if err != nil { panic(err) } if val != nil { - return val.(*RegistryHive) + return val.(*RegistryKeyState_hive) } return nil } @@ -220,13 +220,13 @@ func (m *RegistryKeyState) GetOldValueName()(*string) { return nil } // GetOperation gets the operation property value. Operation that changed the registry key name and/or value. Possible values are: unknown, create, modify, delete. -func (m *RegistryKeyState) GetOperation()(*RegistryOperation) { +func (m *RegistryKeyState) GetOperation()(*RegistryKeyState_operation) { val, err := m.GetBackingStore().Get("operation") if err != nil { panic(err) } if val != nil { - return val.(*RegistryOperation) + return val.(*RegistryKeyState_operation) } return nil } @@ -264,13 +264,13 @@ func (m *RegistryKeyState) GetValueName()(*string) { return nil } // GetValueType gets the valueType property value. Registry key value type REGBINARY REGDWORD REGDWORDLITTLEENDIAN REGDWORDBIGENDIANREGEXPANDSZ REGLINK REGMULTISZ REGNONE REGQWORD REGQWORDLITTLEENDIAN REG_SZ Possible values are: unknown, binary, dword, dwordLittleEndian, dwordBigEndian, expandSz, link, multiSz, none, qword, qwordlittleEndian, sz. -func (m *RegistryKeyState) GetValueType()(*RegistryValueType) { +func (m *RegistryKeyState) GetValueType()(*RegistryKeyState_valueType) { val, err := m.GetBackingStore().Get("valueType") if err != nil { panic(err) } if val != nil { - return val.(*RegistryValueType) + return val.(*RegistryKeyState_valueType) } return nil } @@ -365,7 +365,7 @@ func (m *RegistryKeyState) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078 m.backingStore = value } // SetHive sets the hive property value. A Windows registry hive : HKEYCURRENTCONFIG HKEYCURRENTUSER HKEYLOCALMACHINE/SAM HKEYLOCALMACHINE/Security HKEYLOCALMACHINE/Software HKEYLOCALMACHINE/System HKEY_USERS/.Default. Possible values are: unknown, currentConfig, currentUser, localMachineSam, localMachineSecurity, localMachineSoftware, localMachineSystem, usersDefault. -func (m *RegistryKeyState) SetHive(value *RegistryHive)() { +func (m *RegistryKeyState) SetHive(value *RegistryKeyState_hive)() { err := m.GetBackingStore().Set("hive", value) if err != nil { panic(err) @@ -407,7 +407,7 @@ func (m *RegistryKeyState) SetOldValueName(value *string)() { } } // SetOperation sets the operation property value. Operation that changed the registry key name and/or value. Possible values are: unknown, create, modify, delete. -func (m *RegistryKeyState) SetOperation(value *RegistryOperation)() { +func (m *RegistryKeyState) SetOperation(value *RegistryKeyState_operation)() { err := m.GetBackingStore().Set("operation", value) if err != nil { panic(err) @@ -435,7 +435,7 @@ func (m *RegistryKeyState) SetValueName(value *string)() { } } // SetValueType sets the valueType property value. Registry key value type REGBINARY REGDWORD REGDWORDLITTLEENDIAN REGDWORDBIGENDIANREGEXPANDSZ REGLINK REGMULTISZ REGNONE REGQWORD REGQWORDLITTLEENDIAN REG_SZ Possible values are: unknown, binary, dword, dwordLittleEndian, dwordBigEndian, expandSz, link, multiSz, none, qword, qwordlittleEndian, sz. -func (m *RegistryKeyState) SetValueType(value *RegistryValueType)() { +func (m *RegistryKeyState) SetValueType(value *RegistryKeyState_valueType)() { err := m.GetBackingStore().Set("valueType", value) if err != nil { panic(err) @@ -447,27 +447,27 @@ type RegistryKeyStateable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetHive()(*RegistryHive) + GetHive()(*RegistryKeyState_hive) GetKey()(*string) GetOdataType()(*string) GetOldKey()(*string) GetOldValueData()(*string) GetOldValueName()(*string) - GetOperation()(*RegistryOperation) + GetOperation()(*RegistryKeyState_operation) GetProcessId()(*int32) GetValueData()(*string) GetValueName()(*string) - GetValueType()(*RegistryValueType) + GetValueType()(*RegistryKeyState_valueType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetHive(value *RegistryHive)() + SetHive(value *RegistryKeyState_hive)() SetKey(value *string)() SetOdataType(value *string)() SetOldKey(value *string)() SetOldValueData(value *string)() SetOldValueName(value *string)() - SetOperation(value *RegistryOperation)() + SetOperation(value *RegistryKeyState_operation)() SetProcessId(value *int32)() SetValueData(value *string)() SetValueName(value *string)() - SetValueType(value *RegistryValueType)() + SetValueType(value *RegistryKeyState_valueType)() } diff --git a/models/registry_key_state_hive.go b/models/registry_key_state_hive.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/registry_key_state_operation.go b/models/registry_key_state_operation.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/registry_key_state_value_type.go b/models/registry_key_state_value_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/registry_operation.go b/models/registry_operation.go deleted file mode 100644 index eae6bcf9c27..00000000000 --- a/models/registry_operation.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type RegistryOperation int - -const ( - UNKNOWN_REGISTRYOPERATION RegistryOperation = iota - CREATE_REGISTRYOPERATION - MODIFY_REGISTRYOPERATION - DELETE_REGISTRYOPERATION - UNKNOWNFUTUREVALUE_REGISTRYOPERATION -) - -func (i RegistryOperation) String() string { - return []string{"unknown", "create", "modify", "delete", "unknownFutureValue"}[i] -} -func ParseRegistryOperation(v string) (any, error) { - result := UNKNOWN_REGISTRYOPERATION - switch v { - case "unknown": - result = UNKNOWN_REGISTRYOPERATION - case "create": - result = CREATE_REGISTRYOPERATION - case "modify": - result = MODIFY_REGISTRYOPERATION - case "delete": - result = DELETE_REGISTRYOPERATION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_REGISTRYOPERATION - default: - return 0, errors.New("Unknown RegistryOperation value: " + v) - } - return &result, nil -} -func SerializeRegistryOperation(values []RegistryOperation) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RegistryOperation) isMultiValue() bool { - return false -} diff --git a/models/registry_value_type.go b/models/registry_value_type.go deleted file mode 100644 index cdb4a0b5afe..00000000000 --- a/models/registry_value_type.go +++ /dev/null @@ -1,70 +0,0 @@ -package models -import ( - "errors" -) -// -type RegistryValueType int - -const ( - UNKNOWN_REGISTRYVALUETYPE RegistryValueType = iota - BINARY_REGISTRYVALUETYPE - DWORD_REGISTRYVALUETYPE - DWORDLITTLEENDIAN_REGISTRYVALUETYPE - DWORDBIGENDIAN_REGISTRYVALUETYPE - EXPANDSZ_REGISTRYVALUETYPE - LINK_REGISTRYVALUETYPE - MULTISZ_REGISTRYVALUETYPE - NONE_REGISTRYVALUETYPE - QWORD_REGISTRYVALUETYPE - QWORDLITTLEENDIAN_REGISTRYVALUETYPE - SZ_REGISTRYVALUETYPE - UNKNOWNFUTUREVALUE_REGISTRYVALUETYPE -) - -func (i RegistryValueType) String() string { - return []string{"unknown", "binary", "dword", "dwordLittleEndian", "dwordBigEndian", "expandSz", "link", "multiSz", "none", "qword", "qwordlittleEndian", "sz", "unknownFutureValue"}[i] -} -func ParseRegistryValueType(v string) (any, error) { - result := UNKNOWN_REGISTRYVALUETYPE - switch v { - case "unknown": - result = UNKNOWN_REGISTRYVALUETYPE - case "binary": - result = BINARY_REGISTRYVALUETYPE - case "dword": - result = DWORD_REGISTRYVALUETYPE - case "dwordLittleEndian": - result = DWORDLITTLEENDIAN_REGISTRYVALUETYPE - case "dwordBigEndian": - result = DWORDBIGENDIAN_REGISTRYVALUETYPE - case "expandSz": - result = EXPANDSZ_REGISTRYVALUETYPE - case "link": - result = LINK_REGISTRYVALUETYPE - case "multiSz": - result = MULTISZ_REGISTRYVALUETYPE - case "none": - result = NONE_REGISTRYVALUETYPE - case "qword": - result = QWORD_REGISTRYVALUETYPE - case "qwordlittleEndian": - result = QWORDLITTLEENDIAN_REGISTRYVALUETYPE - case "sz": - result = SZ_REGISTRYVALUETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_REGISTRYVALUETYPE - default: - return 0, errors.New("Unknown RegistryValueType value: " + v) - } - return &result, nil -} -func SerializeRegistryValueType(values []RegistryValueType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RegistryValueType) isMultiValue() bool { - return false -} diff --git a/models/reject_reason.go b/models/reject_reason.go deleted file mode 100644 index 54374bb338d..00000000000 --- a/models/reject_reason.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type RejectReason int - -const ( - NONE_REJECTREASON RejectReason = iota - BUSY_REJECTREASON - FORBIDDEN_REJECTREASON - UNKNOWNFUTUREVALUE_REJECTREASON -) - -func (i RejectReason) String() string { - return []string{"none", "busy", "forbidden", "unknownFutureValue"}[i] -} -func ParseRejectReason(v string) (any, error) { - result := NONE_REJECTREASON - switch v { - case "none": - result = NONE_REJECTREASON - case "busy": - result = BUSY_REJECTREASON - case "forbidden": - result = FORBIDDEN_REJECTREASON - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_REJECTREASON - default: - return 0, errors.New("Unknown RejectReason value: " + v) - } - return &result, nil -} -func SerializeRejectReason(values []RejectReason) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RejectReason) isMultiValue() bool { - return false -} diff --git a/models/related_person.go b/models/related_person.go index ab8cc536505..ced5843354a 100644 --- a/models/related_person.go +++ b/models/related_person.go @@ -73,12 +73,12 @@ func (m *RelatedPerson) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["relationship"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePersonRelationship) + val, err := n.GetEnumValue(ParseRelatedPerson_relationship) if err != nil { return err } if val != nil { - m.SetRelationship(val.(*PersonRelationship)) + m.SetRelationship(val.(*RelatedPerson_relationship)) } return nil } @@ -116,13 +116,13 @@ func (m *RelatedPerson) GetOdataType()(*string) { return nil } // GetRelationship gets the relationship property value. Possible values are: manager, colleague, directReport, dotLineReport, assistant, dotLineManager, alternateContact, friend, spouse, sibling, child, parent, sponsor, emergencyContact, other, unknownFutureValue. -func (m *RelatedPerson) GetRelationship()(*PersonRelationship) { +func (m *RelatedPerson) GetRelationship()(*RelatedPerson_relationship) { val, err := m.GetBackingStore().Get("relationship") if err != nil { panic(err) } if val != nil { - return val.(*PersonRelationship) + return val.(*RelatedPerson_relationship) } return nil } @@ -215,7 +215,7 @@ func (m *RelatedPerson) SetOdataType(value *string)() { } } // SetRelationship sets the relationship property value. Possible values are: manager, colleague, directReport, dotLineReport, assistant, dotLineManager, alternateContact, friend, spouse, sibling, child, parent, sponsor, emergencyContact, other, unknownFutureValue. -func (m *RelatedPerson) SetRelationship(value *PersonRelationship)() { +func (m *RelatedPerson) SetRelationship(value *RelatedPerson_relationship)() { err := m.GetBackingStore().Set("relationship", value) if err != nil { panic(err) @@ -243,13 +243,13 @@ type RelatedPersonable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDisplayName()(*string) GetOdataType()(*string) - GetRelationship()(*PersonRelationship) + GetRelationship()(*RelatedPerson_relationship) GetUserId()(*string) GetUserPrincipalName()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetOdataType(value *string)() - SetRelationship(value *PersonRelationship)() + SetRelationship(value *RelatedPerson_relationship)() SetUserId(value *string)() SetUserPrincipalName(value *string)() } diff --git a/models/related_person_relationship.go b/models/related_person_relationship.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/remind_before_time_in_minutes_type.go b/models/remind_before_time_in_minutes_type.go deleted file mode 100644 index ff9a985087f..00000000000 --- a/models/remind_before_time_in_minutes_type.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type RemindBeforeTimeInMinutesType int - -const ( - MINS15_REMINDBEFORETIMEINMINUTESTYPE RemindBeforeTimeInMinutesType = iota - UNKNOWNFUTUREVALUE_REMINDBEFORETIMEINMINUTESTYPE -) - -func (i RemindBeforeTimeInMinutesType) String() string { - return []string{"mins15", "unknownFutureValue"}[i] -} -func ParseRemindBeforeTimeInMinutesType(v string) (any, error) { - result := MINS15_REMINDBEFORETIMEINMINUTESTYPE - switch v { - case "mins15": - result = MINS15_REMINDBEFORETIMEINMINUTESTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_REMINDBEFORETIMEINMINUTESTYPE - default: - return 0, errors.New("Unknown RemindBeforeTimeInMinutesType value: " + v) - } - return &result, nil -} -func SerializeRemindBeforeTimeInMinutesType(values []RemindBeforeTimeInMinutesType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RemindBeforeTimeInMinutesType) isMultiValue() bool { - return false -} diff --git a/models/reply_restriction.go b/models/reply_restriction.go deleted file mode 100644 index a1f759048c1..00000000000 --- a/models/reply_restriction.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ReplyRestriction int - -const ( - EVERYONE_REPLYRESTRICTION ReplyRestriction = iota - AUTHORANDMODERATORS_REPLYRESTRICTION - UNKNOWNFUTUREVALUE_REPLYRESTRICTION -) - -func (i ReplyRestriction) String() string { - return []string{"everyone", "authorAndModerators", "unknownFutureValue"}[i] -} -func ParseReplyRestriction(v string) (any, error) { - result := EVERYONE_REPLYRESTRICTION - switch v { - case "everyone": - result = EVERYONE_REPLYRESTRICTION - case "authorAndModerators": - result = AUTHORANDMODERATORS_REPLYRESTRICTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_REPLYRESTRICTION - default: - return 0, errors.New("Unknown ReplyRestriction value: " + v) - } - return &result, nil -} -func SerializeReplyRestriction(values []ReplyRestriction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ReplyRestriction) isMultiValue() bool { - return false -} diff --git a/models/request_signature_verification.go b/models/request_signature_verification.go index dbfc234c05e..b737adfe7b7 100644 --- a/models/request_signature_verification.go +++ b/models/request_signature_verification.go @@ -35,13 +35,13 @@ func (m *RequestSignatureVerification) GetAdditionalData()(map[string]any) { return val.(map[string]any) } // GetAllowedWeakAlgorithms gets the allowedWeakAlgorithms property value. Specifies whether this application accepts weak algorithms. The possible values are: rsaSha1, unknownFutureValue. -func (m *RequestSignatureVerification) GetAllowedWeakAlgorithms()(*WeakAlgorithms) { +func (m *RequestSignatureVerification) GetAllowedWeakAlgorithms()(*RequestSignatureVerification_allowedWeakAlgorithms) { val, err := m.GetBackingStore().Get("allowedWeakAlgorithms") if err != nil { panic(err) } if val != nil { - return val.(*WeakAlgorithms) + return val.(*RequestSignatureVerification_allowedWeakAlgorithms) } return nil } @@ -53,12 +53,12 @@ func (m *RequestSignatureVerification) GetBackingStore()(ie8677ce2c7e1b4c22e9c38 func (m *RequestSignatureVerification) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["allowedWeakAlgorithms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWeakAlgorithms) + val, err := n.GetEnumValue(ParseRequestSignatureVerification_allowedWeakAlgorithms) if err != nil { return err } if val != nil { - m.SetAllowedWeakAlgorithms(val.(*WeakAlgorithms)) + m.SetAllowedWeakAlgorithms(val.(*RequestSignatureVerification_allowedWeakAlgorithms)) } return nil } @@ -143,7 +143,7 @@ func (m *RequestSignatureVerification) SetAdditionalData(value map[string]any)() } } // SetAllowedWeakAlgorithms sets the allowedWeakAlgorithms property value. Specifies whether this application accepts weak algorithms. The possible values are: rsaSha1, unknownFutureValue. -func (m *RequestSignatureVerification) SetAllowedWeakAlgorithms(value *WeakAlgorithms)() { +func (m *RequestSignatureVerification) SetAllowedWeakAlgorithms(value *RequestSignatureVerification_allowedWeakAlgorithms)() { err := m.GetBackingStore().Set("allowedWeakAlgorithms", value) if err != nil { panic(err) @@ -172,11 +172,11 @@ type RequestSignatureVerificationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedWeakAlgorithms()(*WeakAlgorithms) + GetAllowedWeakAlgorithms()(*RequestSignatureVerification_allowedWeakAlgorithms) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetIsSignedRequestRequired()(*bool) GetOdataType()(*string) - SetAllowedWeakAlgorithms(value *WeakAlgorithms)() + SetAllowedWeakAlgorithms(value *RequestSignatureVerification_allowedWeakAlgorithms)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetIsSignedRequestRequired(value *bool)() SetOdataType(value *string)() diff --git a/models/request_signature_verification_allowed_weak_algorithms.go b/models/request_signature_verification_allowed_weak_algorithms.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/requirement_provider.go b/models/requirement_provider.go deleted file mode 100644 index 7ea416797fc..00000000000 --- a/models/requirement_provider.go +++ /dev/null @@ -1,94 +0,0 @@ -package models -import ( - "errors" -) -// -type RequirementProvider int - -const ( - USER_REQUIREMENTPROVIDER RequirementProvider = iota - REQUEST_REQUIREMENTPROVIDER - SERVICEPRINCIPAL_REQUIREMENTPROVIDER - V1CONDITIONALACCESS_REQUIREMENTPROVIDER - MULTICONDITIONALACCESS_REQUIREMENTPROVIDER - TENANTSESSIONRISKPOLICY_REQUIREMENTPROVIDER - ACCOUNTCOMPROMISEPOLICIES_REQUIREMENTPROVIDER - V1CONDITIONALACCESSDEPENDENCY_REQUIREMENTPROVIDER - V1CONDITIONALACCESSPOLICYIDREQUESTED_REQUIREMENTPROVIDER - MFAREGISTRATIONREQUIREDBYIDENTITYPROTECTIONPOLICY_REQUIREMENTPROVIDER - BASELINEPROTECTION_REQUIREMENTPROVIDER - MFAREGISTRATIONREQUIREDBYBASELINEPROTECTION_REQUIREMENTPROVIDER - MFAREGISTRATIONREQUIREDBYMULTICONDITIONALACCESS_REQUIREMENTPROVIDER - ENFORCEDFORCSPADMINS_REQUIREMENTPROVIDER - SECURITYDEFAULTS_REQUIREMENTPROVIDER - MFAREGISTRATIONREQUIREDBYSECURITYDEFAULTS_REQUIREMENTPROVIDER - PROOFUPCODEREQUEST_REQUIREMENTPROVIDER - CROSSTENANTOUTBOUNDRULE_REQUIREMENTPROVIDER - GPSLOCATIONCONDITION_REQUIREMENTPROVIDER - RISKBASEDPOLICY_REQUIREMENTPROVIDER - UNKNOWNFUTUREVALUE_REQUIREMENTPROVIDER -) - -func (i RequirementProvider) String() string { - return []string{"user", "request", "servicePrincipal", "v1ConditionalAccess", "multiConditionalAccess", "tenantSessionRiskPolicy", "accountCompromisePolicies", "v1ConditionalAccessDependency", "v1ConditionalAccessPolicyIdRequested", "mfaRegistrationRequiredByIdentityProtectionPolicy", "baselineProtection", "mfaRegistrationRequiredByBaselineProtection", "mfaRegistrationRequiredByMultiConditionalAccess", "enforcedForCspAdmins", "securityDefaults", "mfaRegistrationRequiredBySecurityDefaults", "proofUpCodeRequest", "crossTenantOutboundRule", "gpsLocationCondition", "riskBasedPolicy", "unknownFutureValue"}[i] -} -func ParseRequirementProvider(v string) (any, error) { - result := USER_REQUIREMENTPROVIDER - switch v { - case "user": - result = USER_REQUIREMENTPROVIDER - case "request": - result = REQUEST_REQUIREMENTPROVIDER - case "servicePrincipal": - result = SERVICEPRINCIPAL_REQUIREMENTPROVIDER - case "v1ConditionalAccess": - result = V1CONDITIONALACCESS_REQUIREMENTPROVIDER - case "multiConditionalAccess": - result = MULTICONDITIONALACCESS_REQUIREMENTPROVIDER - case "tenantSessionRiskPolicy": - result = TENANTSESSIONRISKPOLICY_REQUIREMENTPROVIDER - case "accountCompromisePolicies": - result = ACCOUNTCOMPROMISEPOLICIES_REQUIREMENTPROVIDER - case "v1ConditionalAccessDependency": - result = V1CONDITIONALACCESSDEPENDENCY_REQUIREMENTPROVIDER - case "v1ConditionalAccessPolicyIdRequested": - result = V1CONDITIONALACCESSPOLICYIDREQUESTED_REQUIREMENTPROVIDER - case "mfaRegistrationRequiredByIdentityProtectionPolicy": - result = MFAREGISTRATIONREQUIREDBYIDENTITYPROTECTIONPOLICY_REQUIREMENTPROVIDER - case "baselineProtection": - result = BASELINEPROTECTION_REQUIREMENTPROVIDER - case "mfaRegistrationRequiredByBaselineProtection": - result = MFAREGISTRATIONREQUIREDBYBASELINEPROTECTION_REQUIREMENTPROVIDER - case "mfaRegistrationRequiredByMultiConditionalAccess": - result = MFAREGISTRATIONREQUIREDBYMULTICONDITIONALACCESS_REQUIREMENTPROVIDER - case "enforcedForCspAdmins": - result = ENFORCEDFORCSPADMINS_REQUIREMENTPROVIDER - case "securityDefaults": - result = SECURITYDEFAULTS_REQUIREMENTPROVIDER - case "mfaRegistrationRequiredBySecurityDefaults": - result = MFAREGISTRATIONREQUIREDBYSECURITYDEFAULTS_REQUIREMENTPROVIDER - case "proofUpCodeRequest": - result = PROOFUPCODEREQUEST_REQUIREMENTPROVIDER - case "crossTenantOutboundRule": - result = CROSSTENANTOUTBOUNDRULE_REQUIREMENTPROVIDER - case "gpsLocationCondition": - result = GPSLOCATIONCONDITION_REQUIREMENTPROVIDER - case "riskBasedPolicy": - result = RISKBASEDPOLICY_REQUIREMENTPROVIDER - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_REQUIREMENTPROVIDER - default: - return 0, errors.New("Unknown RequirementProvider value: " + v) - } - return &result, nil -} -func SerializeRequirementProvider(values []RequirementProvider) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RequirementProvider) isMultiValue() bool { - return false -} diff --git a/models/response_status.go b/models/response_status.go index 22cb4dd5385..277d96e4281 100644 --- a/models/response_status.go +++ b/models/response_status.go @@ -53,12 +53,12 @@ func (m *ResponseStatus) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["response"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseResponseType) + val, err := n.GetEnumValue(ParseResponseStatus_response) if err != nil { return err } if val != nil { - m.SetResponse(val.(*ResponseType)) + m.SetResponse(val.(*ResponseStatus_response)) } return nil } @@ -86,13 +86,13 @@ func (m *ResponseStatus) GetOdataType()(*string) { return nil } // GetResponse gets the response property value. The response type. Possible values are: none, organizer, tentativelyAccepted, accepted, declined, notResponded.To differentiate between none and notResponded: none – from organizer's perspective. This value is used when the status of an attendee/participant is reported to the organizer of a meeting. notResponded – from attendee's perspective. Indicates the attendee has not responded to the meeting request. Clients can treat notResponded == none. As an example, if attendee Alex hasn't responded to a meeting request, getting Alex' response status for that event in Alex' calendar returns notResponded. Getting Alex' response from the calendar of any other attendee or the organizer's returns none. Getting the organizer's response for the event in anybody's calendar also returns none. -func (m *ResponseStatus) GetResponse()(*ResponseType) { +func (m *ResponseStatus) GetResponse()(*ResponseStatus_response) { val, err := m.GetBackingStore().Get("response") if err != nil { panic(err) } if val != nil { - return val.(*ResponseType) + return val.(*ResponseStatus_response) } return nil } @@ -155,7 +155,7 @@ func (m *ResponseStatus) SetOdataType(value *string)() { } } // SetResponse sets the response property value. The response type. Possible values are: none, organizer, tentativelyAccepted, accepted, declined, notResponded.To differentiate between none and notResponded: none – from organizer's perspective. This value is used when the status of an attendee/participant is reported to the organizer of a meeting. notResponded – from attendee's perspective. Indicates the attendee has not responded to the meeting request. Clients can treat notResponded == none. As an example, if attendee Alex hasn't responded to a meeting request, getting Alex' response status for that event in Alex' calendar returns notResponded. Getting Alex' response from the calendar of any other attendee or the organizer's returns none. Getting the organizer's response for the event in anybody's calendar also returns none. -func (m *ResponseStatus) SetResponse(value *ResponseType)() { +func (m *ResponseStatus) SetResponse(value *ResponseStatus_response)() { err := m.GetBackingStore().Set("response", value) if err != nil { panic(err) @@ -175,10 +175,10 @@ type ResponseStatusable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetResponse()(*ResponseType) + GetResponse()(*ResponseStatus_response) GetTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetResponse(value *ResponseType)() + SetResponse(value *ResponseStatus_response)() SetTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() } diff --git a/models/response_status_response.go b/models/response_status_response.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/response_type.go b/models/response_type.go deleted file mode 100644 index 2418aaf42e4..00000000000 --- a/models/response_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type ResponseType int - -const ( - NONE_RESPONSETYPE ResponseType = iota - ORGANIZER_RESPONSETYPE - TENTATIVELYACCEPTED_RESPONSETYPE - ACCEPTED_RESPONSETYPE - DECLINED_RESPONSETYPE - NOTRESPONDED_RESPONSETYPE -) - -func (i ResponseType) String() string { - return []string{"none", "organizer", "tentativelyAccepted", "accepted", "declined", "notResponded"}[i] -} -func ParseResponseType(v string) (any, error) { - result := NONE_RESPONSETYPE - switch v { - case "none": - result = NONE_RESPONSETYPE - case "organizer": - result = ORGANIZER_RESPONSETYPE - case "tentativelyAccepted": - result = TENTATIVELYACCEPTED_RESPONSETYPE - case "accepted": - result = ACCEPTED_RESPONSETYPE - case "declined": - result = DECLINED_RESPONSETYPE - case "notResponded": - result = NOTRESPONDED_RESPONSETYPE - default: - return 0, errors.New("Unknown ResponseType value: " + v) - } - return &result, nil -} -func SerializeResponseType(values []ResponseType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ResponseType) isMultiValue() bool { - return false -} diff --git a/models/retention_label_settings.go b/models/retention_label_settings.go index 2c9558db98d..e3d873962f4 100644 --- a/models/retention_label_settings.go +++ b/models/retention_label_settings.go @@ -38,9 +38,30 @@ func (m *RetentionLabelSettings) GetAdditionalData()(map[string]any) { func (m *RetentionLabelSettings) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetBehaviorDuringRetentionPeriod gets the behaviorDuringRetentionPeriod property value. Describes the item behavior during retention period. Possible values are: doNotRetain, retain, retainAsRecord, retainAsRegulatoryRecord, unknownFutureValue. Read-only. +func (m *RetentionLabelSettings) GetBehaviorDuringRetentionPeriod()(*RetentionLabelSettings_behaviorDuringRetentionPeriod) { + val, err := m.GetBackingStore().Get("behaviorDuringRetentionPeriod") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RetentionLabelSettings_behaviorDuringRetentionPeriod) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *RetentionLabelSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["behaviorDuringRetentionPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRetentionLabelSettings_behaviorDuringRetentionPeriod) + if err != nil { + return err + } + if val != nil { + m.SetBehaviorDuringRetentionPeriod(val.(*RetentionLabelSettings_behaviorDuringRetentionPeriod)) + } + return nil + } res["isContentUpdateAllowed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -171,6 +192,13 @@ func (m *RetentionLabelSettings) GetOdataType()(*string) { } // Serialize serializes information the current object func (m *RetentionLabelSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetBehaviorDuringRetentionPeriod() != nil { + cast := (*m.GetBehaviorDuringRetentionPeriod()).String() + err := writer.WriteStringValue("behaviorDuringRetentionPeriod", &cast) + if err != nil { + return err + } + } { err := writer.WriteBoolValue("isContentUpdateAllowed", m.GetIsContentUpdateAllowed()) if err != nil { @@ -226,6 +254,13 @@ func (m *RetentionLabelSettings) SetAdditionalData(value map[string]any)() { func (m *RetentionLabelSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetBehaviorDuringRetentionPeriod sets the behaviorDuringRetentionPeriod property value. Describes the item behavior during retention period. Possible values are: doNotRetain, retain, retainAsRecord, retainAsRegulatoryRecord, unknownFutureValue. Read-only. +func (m *RetentionLabelSettings) SetBehaviorDuringRetentionPeriod(value *RetentionLabelSettings_behaviorDuringRetentionPeriod)() { + err := m.GetBackingStore().Set("behaviorDuringRetentionPeriod", value) + if err != nil { + panic(err) + } +} // SetIsContentUpdateAllowed sets the isContentUpdateAllowed property value. Specifies whether updates to document content are allowed. Read-only. func (m *RetentionLabelSettings) SetIsContentUpdateAllowed(value *bool)() { err := m.GetBackingStore().Set("isContentUpdateAllowed", value) @@ -274,6 +309,7 @@ type RetentionLabelSettingsable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBehaviorDuringRetentionPeriod()(*RetentionLabelSettings_behaviorDuringRetentionPeriod) GetIsContentUpdateAllowed()(*bool) GetIsDeleteAllowed()(*bool) GetIsLabelUpdateAllowed()(*bool) @@ -281,6 +317,7 @@ type RetentionLabelSettingsable interface { GetIsRecordLocked()(*bool) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBehaviorDuringRetentionPeriod(value *RetentionLabelSettings_behaviorDuringRetentionPeriod)() SetIsContentUpdateAllowed(value *bool)() SetIsDeleteAllowed(value *bool)() SetIsLabelUpdateAllowed(value *bool)() diff --git a/models/retention_label_settings_behavior_during_retention_period.go b/models/retention_label_settings_behavior_during_retention_period.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_detail.go b/models/risk_detail.go deleted file mode 100644 index d04b37113d9..00000000000 --- a/models/risk_detail.go +++ /dev/null @@ -1,76 +0,0 @@ -package models -import ( - "errors" -) -// -type RiskDetail int - -const ( - NONE_RISKDETAIL RiskDetail = iota - ADMINGENERATEDTEMPORARYPASSWORD_RISKDETAIL - USERPERFORMEDSECUREDPASSWORDCHANGE_RISKDETAIL - USERPERFORMEDSECUREDPASSWORDRESET_RISKDETAIL - ADMINCONFIRMEDSIGNINSAFE_RISKDETAIL - AICONFIRMEDSIGNINSAFE_RISKDETAIL - USERPASSEDMFADRIVENBYRISKBASEDPOLICY_RISKDETAIL - ADMINDISMISSEDALLRISKFORUSER_RISKDETAIL - ADMINCONFIRMEDSIGNINCOMPROMISED_RISKDETAIL - HIDDEN_RISKDETAIL - ADMINCONFIRMEDUSERCOMPROMISED_RISKDETAIL - UNKNOWNFUTUREVALUE_RISKDETAIL - ADMINCONFIRMEDSERVICEPRINCIPALCOMPROMISED_RISKDETAIL - ADMINDISMISSEDALLRISKFORSERVICEPRINCIPAL_RISKDETAIL - M365DADMINDISMISSEDDETECTION_RISKDETAIL -) - -func (i RiskDetail) String() string { - return []string{"none", "adminGeneratedTemporaryPassword", "userPerformedSecuredPasswordChange", "userPerformedSecuredPasswordReset", "adminConfirmedSigninSafe", "aiConfirmedSigninSafe", "userPassedMFADrivenByRiskBasedPolicy", "adminDismissedAllRiskForUser", "adminConfirmedSigninCompromised", "hidden", "adminConfirmedUserCompromised", "unknownFutureValue", "adminConfirmedServicePrincipalCompromised", "adminDismissedAllRiskForServicePrincipal", "m365DAdminDismissedDetection"}[i] -} -func ParseRiskDetail(v string) (any, error) { - result := NONE_RISKDETAIL - switch v { - case "none": - result = NONE_RISKDETAIL - case "adminGeneratedTemporaryPassword": - result = ADMINGENERATEDTEMPORARYPASSWORD_RISKDETAIL - case "userPerformedSecuredPasswordChange": - result = USERPERFORMEDSECUREDPASSWORDCHANGE_RISKDETAIL - case "userPerformedSecuredPasswordReset": - result = USERPERFORMEDSECUREDPASSWORDRESET_RISKDETAIL - case "adminConfirmedSigninSafe": - result = ADMINCONFIRMEDSIGNINSAFE_RISKDETAIL - case "aiConfirmedSigninSafe": - result = AICONFIRMEDSIGNINSAFE_RISKDETAIL - case "userPassedMFADrivenByRiskBasedPolicy": - result = USERPASSEDMFADRIVENBYRISKBASEDPOLICY_RISKDETAIL - case "adminDismissedAllRiskForUser": - result = ADMINDISMISSEDALLRISKFORUSER_RISKDETAIL - case "adminConfirmedSigninCompromised": - result = ADMINCONFIRMEDSIGNINCOMPROMISED_RISKDETAIL - case "hidden": - result = HIDDEN_RISKDETAIL - case "adminConfirmedUserCompromised": - result = ADMINCONFIRMEDUSERCOMPROMISED_RISKDETAIL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RISKDETAIL - case "adminConfirmedServicePrincipalCompromised": - result = ADMINCONFIRMEDSERVICEPRINCIPALCOMPROMISED_RISKDETAIL - case "adminDismissedAllRiskForServicePrincipal": - result = ADMINDISMISSEDALLRISKFORSERVICEPRINCIPAL_RISKDETAIL - case "m365DAdminDismissedDetection": - result = M365DADMINDISMISSEDDETECTION_RISKDETAIL - default: - return 0, errors.New("Unknown RiskDetail value: " + v) - } - return &result, nil -} -func SerializeRiskDetail(values []RiskDetail) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RiskDetail) isMultiValue() bool { - return false -} diff --git a/models/risk_detection.go b/models/risk_detection.go index 18abbf76655..651ecaccda9 100644 --- a/models/risk_detection.go +++ b/models/risk_detection.go @@ -21,13 +21,13 @@ func CreateRiskDetectionFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 return NewRiskDetection(), nil } // GetActivity gets the activity property value. Indicates the activity type the detected risk is linked to. The possible values are signin, user, unknownFutureValue. -func (m *RiskDetection) GetActivity()(*ActivityType) { +func (m *RiskDetection) GetActivity()(*RiskDetection_activity) { val, err := m.GetBackingStore().Get("activity") if err != nil { panic(err) } if val != nil { - return val.(*ActivityType) + return val.(*RiskDetection_activity) } return nil } @@ -76,13 +76,13 @@ func (m *RiskDetection) GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6 return nil } // GetDetectionTimingType gets the detectionTimingType property value. Timing of the detected risk (real-time/offline). The possible values are notDefined, realtime, nearRealtime, offline, unknownFutureValue. -func (m *RiskDetection) GetDetectionTimingType()(*RiskDetectionTimingType) { +func (m *RiskDetection) GetDetectionTimingType()(*RiskDetection_detectionTimingType) { val, err := m.GetBackingStore().Get("detectionTimingType") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetectionTimingType) + return val.(*RiskDetection_detectionTimingType) } return nil } @@ -90,12 +90,12 @@ func (m *RiskDetection) GetDetectionTimingType()(*RiskDetectionTimingType) { func (m *RiskDetection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["activity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseActivityType) + val, err := n.GetEnumValue(ParseRiskDetection_activity) if err != nil { return err } if val != nil { - m.SetActivity(val.(*ActivityType)) + m.SetActivity(val.(*RiskDetection_activity)) } return nil } @@ -140,12 +140,12 @@ func (m *RiskDetection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["detectionTimingType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetectionTimingType) + val, err := n.GetEnumValue(ParseRiskDetection_detectionTimingType) if err != nil { return err } if val != nil { - m.SetDetectionTimingType(val.(*RiskDetectionTimingType)) + m.SetDetectionTimingType(val.(*RiskDetection_detectionTimingType)) } return nil } @@ -200,12 +200,12 @@ func (m *RiskDetection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["riskDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetail) + val, err := n.GetEnumValue(ParseRiskDetection_riskDetail) if err != nil { return err } if val != nil { - m.SetRiskDetail(val.(*RiskDetail)) + m.SetRiskDetail(val.(*RiskDetection_riskDetail)) } return nil } @@ -220,32 +220,32 @@ func (m *RiskDetection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["riskLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskLevel) + val, err := n.GetEnumValue(ParseRiskDetection_riskLevel) if err != nil { return err } if val != nil { - m.SetRiskLevel(val.(*RiskLevel)) + m.SetRiskLevel(val.(*RiskDetection_riskLevel)) } return nil } res["riskState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskState) + val, err := n.GetEnumValue(ParseRiskDetection_riskState) if err != nil { return err } if val != nil { - m.SetRiskState(val.(*RiskState)) + m.SetRiskState(val.(*RiskDetection_riskState)) } return nil } res["riskType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskEventType) + val, err := n.GetEnumValue(ParseRiskDetection_riskType) if err != nil { return err } if val != nil { - m.SetRiskType(val.(*RiskEventType)) + m.SetRiskType(val.(*RiskDetection_riskType)) } return nil } @@ -260,12 +260,12 @@ func (m *RiskDetection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["tokenIssuerType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTokenIssuerType) + val, err := n.GetEnumValue(ParseRiskDetection_tokenIssuerType) if err != nil { return err } if val != nil { - m.SetTokenIssuerType(val.(*TokenIssuerType)) + m.SetTokenIssuerType(val.(*RiskDetection_tokenIssuerType)) } return nil } @@ -357,13 +357,13 @@ func (m *RiskDetection) GetRequestId()(*string) { return nil } // GetRiskDetail gets the riskDetail property value. Details of the detected risk. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection. Note that you must use the Prefer: include - unknown -enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal , m365DAdminDismissedDetection. Note: Details for this property are only available for Microsoft Entra ID P2 customers. P1 customers will be returned hidden. -func (m *RiskDetection) GetRiskDetail()(*RiskDetail) { +func (m *RiskDetection) GetRiskDetail()(*RiskDetection_riskDetail) { val, err := m.GetBackingStore().Get("riskDetail") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetail) + return val.(*RiskDetection_riskDetail) } return nil } @@ -379,35 +379,35 @@ func (m *RiskDetection) GetRiskEventType()(*string) { return nil } // GetRiskLevel gets the riskLevel property value. Level of the detected risk. The possible values are low, medium, high, hidden, none, unknownFutureValue. Note: Details for this property are only available for Microsoft Entra ID P2 customers. P1 customers will be returned hidden. -func (m *RiskDetection) GetRiskLevel()(*RiskLevel) { +func (m *RiskDetection) GetRiskLevel()(*RiskDetection_riskLevel) { val, err := m.GetBackingStore().Get("riskLevel") if err != nil { panic(err) } if val != nil { - return val.(*RiskLevel) + return val.(*RiskDetection_riskLevel) } return nil } // GetRiskState gets the riskState property value. The state of a detected risky user or sign-in. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. -func (m *RiskDetection) GetRiskState()(*RiskState) { +func (m *RiskDetection) GetRiskState()(*RiskDetection_riskState) { val, err := m.GetBackingStore().Get("riskState") if err != nil { panic(err) } if val != nil { - return val.(*RiskState) + return val.(*RiskDetection_riskState) } return nil } // GetRiskType gets the riskType property value. The riskType property -func (m *RiskDetection) GetRiskType()(*RiskEventType) { +func (m *RiskDetection) GetRiskType()(*RiskDetection_riskType) { val, err := m.GetBackingStore().Get("riskType") if err != nil { panic(err) } if val != nil { - return val.(*RiskEventType) + return val.(*RiskDetection_riskType) } return nil } @@ -423,13 +423,13 @@ func (m *RiskDetection) GetSource()(*string) { return nil } // GetTokenIssuerType gets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. The possible values are AzureAD, ADFederationServices, and unknownFutureValue. -func (m *RiskDetection) GetTokenIssuerType()(*TokenIssuerType) { +func (m *RiskDetection) GetTokenIssuerType()(*RiskDetection_tokenIssuerType) { val, err := m.GetBackingStore().Get("tokenIssuerType") if err != nil { panic(err) } if val != nil { - return val.(*TokenIssuerType) + return val.(*RiskDetection_tokenIssuerType) } return nil } @@ -608,7 +608,7 @@ func (m *RiskDetection) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return nil } // SetActivity sets the activity property value. Indicates the activity type the detected risk is linked to. The possible values are signin, user, unknownFutureValue. -func (m *RiskDetection) SetActivity(value *ActivityType)() { +func (m *RiskDetection) SetActivity(value *RiskDetection_activity)() { err := m.GetBackingStore().Set("activity", value) if err != nil { panic(err) @@ -643,7 +643,7 @@ func (m *RiskDetection) SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad } } // SetDetectionTimingType sets the detectionTimingType property value. Timing of the detected risk (real-time/offline). The possible values are notDefined, realtime, nearRealtime, offline, unknownFutureValue. -func (m *RiskDetection) SetDetectionTimingType(value *RiskDetectionTimingType)() { +func (m *RiskDetection) SetDetectionTimingType(value *RiskDetection_detectionTimingType)() { err := m.GetBackingStore().Set("detectionTimingType", value) if err != nil { panic(err) @@ -685,7 +685,7 @@ func (m *RiskDetection) SetRequestId(value *string)() { } } // SetRiskDetail sets the riskDetail property value. Details of the detected risk. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal, m365DAdminDismissedDetection. Note that you must use the Prefer: include - unknown -enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal , m365DAdminDismissedDetection. Note: Details for this property are only available for Microsoft Entra ID P2 customers. P1 customers will be returned hidden. -func (m *RiskDetection) SetRiskDetail(value *RiskDetail)() { +func (m *RiskDetection) SetRiskDetail(value *RiskDetection_riskDetail)() { err := m.GetBackingStore().Set("riskDetail", value) if err != nil { panic(err) @@ -699,21 +699,21 @@ func (m *RiskDetection) SetRiskEventType(value *string)() { } } // SetRiskLevel sets the riskLevel property value. Level of the detected risk. The possible values are low, medium, high, hidden, none, unknownFutureValue. Note: Details for this property are only available for Microsoft Entra ID P2 customers. P1 customers will be returned hidden. -func (m *RiskDetection) SetRiskLevel(value *RiskLevel)() { +func (m *RiskDetection) SetRiskLevel(value *RiskDetection_riskLevel)() { err := m.GetBackingStore().Set("riskLevel", value) if err != nil { panic(err) } } // SetRiskState sets the riskState property value. The state of a detected risky user or sign-in. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. -func (m *RiskDetection) SetRiskState(value *RiskState)() { +func (m *RiskDetection) SetRiskState(value *RiskDetection_riskState)() { err := m.GetBackingStore().Set("riskState", value) if err != nil { panic(err) } } // SetRiskType sets the riskType property value. The riskType property -func (m *RiskDetection) SetRiskType(value *RiskEventType)() { +func (m *RiskDetection) SetRiskType(value *RiskDetection_riskType)() { err := m.GetBackingStore().Set("riskType", value) if err != nil { panic(err) @@ -727,7 +727,7 @@ func (m *RiskDetection) SetSource(value *string)() { } } // SetTokenIssuerType sets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. The possible values are AzureAD, ADFederationServices, and unknownFutureValue. -func (m *RiskDetection) SetTokenIssuerType(value *TokenIssuerType)() { +func (m *RiskDetection) SetTokenIssuerType(value *RiskDetection_tokenIssuerType)() { err := m.GetBackingStore().Set("tokenIssuerType", value) if err != nil { panic(err) @@ -758,45 +758,45 @@ func (m *RiskDetection) SetUserPrincipalName(value *string)() { type RiskDetectionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActivity()(*ActivityType) + GetActivity()(*RiskDetection_activity) GetActivityDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetAdditionalInfo()(*string) GetCorrelationId()(*string) GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetDetectionTimingType()(*RiskDetectionTimingType) + GetDetectionTimingType()(*RiskDetection_detectionTimingType) GetIpAddress()(*string) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLocation()(SignInLocationable) GetMitreTechniqueId()(*string) GetRequestId()(*string) - GetRiskDetail()(*RiskDetail) + GetRiskDetail()(*RiskDetection_riskDetail) GetRiskEventType()(*string) - GetRiskLevel()(*RiskLevel) - GetRiskState()(*RiskState) - GetRiskType()(*RiskEventType) + GetRiskLevel()(*RiskDetection_riskLevel) + GetRiskState()(*RiskDetection_riskState) + GetRiskType()(*RiskDetection_riskType) GetSource()(*string) - GetTokenIssuerType()(*TokenIssuerType) + GetTokenIssuerType()(*RiskDetection_tokenIssuerType) GetUserDisplayName()(*string) GetUserId()(*string) GetUserPrincipalName()(*string) - SetActivity(value *ActivityType)() + SetActivity(value *RiskDetection_activity)() SetActivityDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetAdditionalInfo(value *string)() SetCorrelationId(value *string)() SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetDetectionTimingType(value *RiskDetectionTimingType)() + SetDetectionTimingType(value *RiskDetection_detectionTimingType)() SetIpAddress(value *string)() SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLocation(value SignInLocationable)() SetMitreTechniqueId(value *string)() SetRequestId(value *string)() - SetRiskDetail(value *RiskDetail)() + SetRiskDetail(value *RiskDetection_riskDetail)() SetRiskEventType(value *string)() - SetRiskLevel(value *RiskLevel)() - SetRiskState(value *RiskState)() - SetRiskType(value *RiskEventType)() + SetRiskLevel(value *RiskDetection_riskLevel)() + SetRiskState(value *RiskDetection_riskState)() + SetRiskType(value *RiskDetection_riskType)() SetSource(value *string)() - SetTokenIssuerType(value *TokenIssuerType)() + SetTokenIssuerType(value *RiskDetection_tokenIssuerType)() SetUserDisplayName(value *string)() SetUserId(value *string)() SetUserPrincipalName(value *string)() diff --git a/models/risk_detection_activity.go b/models/risk_detection_activity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_detection_detection_timing_type.go b/models/risk_detection_detection_timing_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_detection_risk_detail.go b/models/risk_detection_risk_detail.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_detection_risk_level.go b/models/risk_detection_risk_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_detection_risk_state.go b/models/risk_detection_risk_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_detection_risk_type.go b/models/risk_detection_risk_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_detection_timing_type.go b/models/risk_detection_timing_type.go deleted file mode 100644 index 53b9e1f51fa..00000000000 --- a/models/risk_detection_timing_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type RiskDetectionTimingType int - -const ( - NOTDEFINED_RISKDETECTIONTIMINGTYPE RiskDetectionTimingType = iota - REALTIME_RISKDETECTIONTIMINGTYPE - NEARREALTIME_RISKDETECTIONTIMINGTYPE - OFFLINE_RISKDETECTIONTIMINGTYPE - UNKNOWNFUTUREVALUE_RISKDETECTIONTIMINGTYPE -) - -func (i RiskDetectionTimingType) String() string { - return []string{"notDefined", "realtime", "nearRealtime", "offline", "unknownFutureValue"}[i] -} -func ParseRiskDetectionTimingType(v string) (any, error) { - result := NOTDEFINED_RISKDETECTIONTIMINGTYPE - switch v { - case "notDefined": - result = NOTDEFINED_RISKDETECTIONTIMINGTYPE - case "realtime": - result = REALTIME_RISKDETECTIONTIMINGTYPE - case "nearRealtime": - result = NEARREALTIME_RISKDETECTIONTIMINGTYPE - case "offline": - result = OFFLINE_RISKDETECTIONTIMINGTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RISKDETECTIONTIMINGTYPE - default: - return 0, errors.New("Unknown RiskDetectionTimingType value: " + v) - } - return &result, nil -} -func SerializeRiskDetectionTimingType(values []RiskDetectionTimingType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RiskDetectionTimingType) isMultiValue() bool { - return false -} diff --git a/models/risk_detection_token_issuer_type.go b/models/risk_detection_token_issuer_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_event_type.go b/models/risk_event_type.go deleted file mode 100644 index 263459a7b1f..00000000000 --- a/models/risk_event_type.go +++ /dev/null @@ -1,76 +0,0 @@ -package models -import ( - "errors" -) -// -type RiskEventType int - -const ( - UNLIKELYTRAVEL_RISKEVENTTYPE RiskEventType = iota - ANONYMIZEDIPADDRESS_RISKEVENTTYPE - MALICIOUSIPADDRESS_RISKEVENTTYPE - UNFAMILIARFEATURES_RISKEVENTTYPE - MALWAREINFECTEDIPADDRESS_RISKEVENTTYPE - SUSPICIOUSIPADDRESS_RISKEVENTTYPE - LEAKEDCREDENTIALS_RISKEVENTTYPE - INVESTIGATIONSTHREATINTELLIGENCE_RISKEVENTTYPE - GENERIC_RISKEVENTTYPE - ADMINCONFIRMEDUSERCOMPROMISED_RISKEVENTTYPE - MCASIMPOSSIBLETRAVEL_RISKEVENTTYPE - MCASSUSPICIOUSINBOXMANIPULATIONRULES_RISKEVENTTYPE - INVESTIGATIONSTHREATINTELLIGENCESIGNINLINKED_RISKEVENTTYPE - MALICIOUSIPADDRESSVALIDCREDENTIALSBLOCKEDIP_RISKEVENTTYPE - UNKNOWNFUTUREVALUE_RISKEVENTTYPE -) - -func (i RiskEventType) String() string { - return []string{"unlikelyTravel", "anonymizedIPAddress", "maliciousIPAddress", "unfamiliarFeatures", "malwareInfectedIPAddress", "suspiciousIPAddress", "leakedCredentials", "investigationsThreatIntelligence", "generic", "adminConfirmedUserCompromised", "mcasImpossibleTravel", "mcasSuspiciousInboxManipulationRules", "investigationsThreatIntelligenceSigninLinked", "maliciousIPAddressValidCredentialsBlockedIP", "unknownFutureValue"}[i] -} -func ParseRiskEventType(v string) (any, error) { - result := UNLIKELYTRAVEL_RISKEVENTTYPE - switch v { - case "unlikelyTravel": - result = UNLIKELYTRAVEL_RISKEVENTTYPE - case "anonymizedIPAddress": - result = ANONYMIZEDIPADDRESS_RISKEVENTTYPE - case "maliciousIPAddress": - result = MALICIOUSIPADDRESS_RISKEVENTTYPE - case "unfamiliarFeatures": - result = UNFAMILIARFEATURES_RISKEVENTTYPE - case "malwareInfectedIPAddress": - result = MALWAREINFECTEDIPADDRESS_RISKEVENTTYPE - case "suspiciousIPAddress": - result = SUSPICIOUSIPADDRESS_RISKEVENTTYPE - case "leakedCredentials": - result = LEAKEDCREDENTIALS_RISKEVENTTYPE - case "investigationsThreatIntelligence": - result = INVESTIGATIONSTHREATINTELLIGENCE_RISKEVENTTYPE - case "generic": - result = GENERIC_RISKEVENTTYPE - case "adminConfirmedUserCompromised": - result = ADMINCONFIRMEDUSERCOMPROMISED_RISKEVENTTYPE - case "mcasImpossibleTravel": - result = MCASIMPOSSIBLETRAVEL_RISKEVENTTYPE - case "mcasSuspiciousInboxManipulationRules": - result = MCASSUSPICIOUSINBOXMANIPULATIONRULES_RISKEVENTTYPE - case "investigationsThreatIntelligenceSigninLinked": - result = INVESTIGATIONSTHREATINTELLIGENCESIGNINLINKED_RISKEVENTTYPE - case "maliciousIPAddressValidCredentialsBlockedIP": - result = MALICIOUSIPADDRESSVALIDCREDENTIALSBLOCKEDIP_RISKEVENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RISKEVENTTYPE - default: - return 0, errors.New("Unknown RiskEventType value: " + v) - } - return &result, nil -} -func SerializeRiskEventType(values []RiskEventType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RiskEventType) isMultiValue() bool { - return false -} diff --git a/models/risk_service_principal_activity.go b/models/risk_service_principal_activity.go index 986aaac5b62..62662289a55 100644 --- a/models/risk_service_principal_activity.go +++ b/models/risk_service_principal_activity.go @@ -39,13 +39,13 @@ func (m *RiskServicePrincipalActivity) GetBackingStore()(ie8677ce2c7e1b4c22e9c38 return m.backingStore } // GetDetail gets the detail property value. Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without that license will be returned hidden. The possible values are: none, hidden, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal. -func (m *RiskServicePrincipalActivity) GetDetail()(*RiskDetail) { +func (m *RiskServicePrincipalActivity) GetDetail()(*RiskServicePrincipalActivity_detail) { val, err := m.GetBackingStore().Get("detail") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetail) + return val.(*RiskServicePrincipalActivity_detail) } return nil } @@ -53,12 +53,12 @@ func (m *RiskServicePrincipalActivity) GetDetail()(*RiskDetail) { func (m *RiskServicePrincipalActivity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["detail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetail) + val, err := n.GetEnumValue(ParseRiskServicePrincipalActivity_detail) if err != nil { return err } if val != nil { - m.SetDetail(val.(*RiskDetail)) + m.SetDetail(val.(*RiskServicePrincipalActivity_detail)) } return nil } @@ -153,7 +153,7 @@ func (m *RiskServicePrincipalActivity) SetBackingStore(value ie8677ce2c7e1b4c22e m.backingStore = value } // SetDetail sets the detail property value. Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without that license will be returned hidden. The possible values are: none, hidden, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal. -func (m *RiskServicePrincipalActivity) SetDetail(value *RiskDetail)() { +func (m *RiskServicePrincipalActivity) SetDetail(value *RiskServicePrincipalActivity_detail)() { err := m.GetBackingStore().Set("detail", value) if err != nil { panic(err) @@ -179,11 +179,11 @@ type RiskServicePrincipalActivityable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDetail()(*RiskDetail) + GetDetail()(*RiskServicePrincipalActivity_detail) GetOdataType()(*string) GetRiskEventTypes()([]string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDetail(value *RiskDetail)() + SetDetail(value *RiskServicePrincipalActivity_detail)() SetOdataType(value *string)() SetRiskEventTypes(value []string)() } diff --git a/models/risk_service_principal_activity_detail.go b/models/risk_service_principal_activity_detail.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_state.go b/models/risk_state.go deleted file mode 100644 index 31b951f801e..00000000000 --- a/models/risk_state.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type RiskState int - -const ( - NONE_RISKSTATE RiskState = iota - CONFIRMEDSAFE_RISKSTATE - REMEDIATED_RISKSTATE - DISMISSED_RISKSTATE - ATRISK_RISKSTATE - CONFIRMEDCOMPROMISED_RISKSTATE - UNKNOWNFUTUREVALUE_RISKSTATE -) - -func (i RiskState) String() string { - return []string{"none", "confirmedSafe", "remediated", "dismissed", "atRisk", "confirmedCompromised", "unknownFutureValue"}[i] -} -func ParseRiskState(v string) (any, error) { - result := NONE_RISKSTATE - switch v { - case "none": - result = NONE_RISKSTATE - case "confirmedSafe": - result = CONFIRMEDSAFE_RISKSTATE - case "remediated": - result = REMEDIATED_RISKSTATE - case "dismissed": - result = DISMISSED_RISKSTATE - case "atRisk": - result = ATRISK_RISKSTATE - case "confirmedCompromised": - result = CONFIRMEDCOMPROMISED_RISKSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RISKSTATE - default: - return 0, errors.New("Unknown RiskState value: " + v) - } - return &result, nil -} -func SerializeRiskState(values []RiskState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RiskState) isMultiValue() bool { - return false -} diff --git a/models/risk_user_activity.go b/models/risk_user_activity.go index 1b0fd85b26d..26c97491aa7 100644 --- a/models/risk_user_activity.go +++ b/models/risk_user_activity.go @@ -39,24 +39,24 @@ func (m *RiskUserActivity) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d411 return m.backingStore } // GetDetail gets the detail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. -func (m *RiskUserActivity) GetDetail()(*RiskDetail) { +func (m *RiskUserActivity) GetDetail()(*RiskUserActivity_detail) { val, err := m.GetBackingStore().Get("detail") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetail) + return val.(*RiskUserActivity_detail) } return nil } // GetEventTypes gets the eventTypes property value. The eventTypes property -func (m *RiskUserActivity) GetEventTypes()([]RiskEventType) { +func (m *RiskUserActivity) GetEventTypes()([]RiskUserActivity_eventTypes) { val, err := m.GetBackingStore().Get("eventTypes") if err != nil { panic(err) } if val != nil { - return val.([]RiskEventType) + return val.([]RiskUserActivity_eventTypes) } return nil } @@ -64,25 +64,25 @@ func (m *RiskUserActivity) GetEventTypes()([]RiskEventType) { func (m *RiskUserActivity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["detail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetail) + val, err := n.GetEnumValue(ParseRiskUserActivity_detail) if err != nil { return err } if val != nil { - m.SetDetail(val.(*RiskDetail)) + m.SetDetail(val.(*RiskUserActivity_detail)) } return nil } res["eventTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseRiskEventType) + val, err := n.GetCollectionOfEnumValues(ParseRiskUserActivity_eventTypes) if err != nil { return err } if val != nil { - res := make([]RiskEventType, len(val)) + res := make([]RiskUserActivity_eventTypes, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*RiskEventType)) + res[i] = *(v.(*RiskUserActivity_eventTypes)) } } m.SetEventTypes(res) @@ -149,7 +149,7 @@ func (m *RiskUserActivity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } } if m.GetEventTypes() != nil { - err := writer.WriteCollectionOfStringValues("eventTypes", SerializeRiskEventType(m.GetEventTypes())) + err := writer.WriteCollectionOfStringValues("eventTypes", SerializeRiskUserActivity_eventTypes(m.GetEventTypes())) if err != nil { return err } @@ -186,14 +186,14 @@ func (m *RiskUserActivity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078 m.backingStore = value } // SetDetail sets the detail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. -func (m *RiskUserActivity) SetDetail(value *RiskDetail)() { +func (m *RiskUserActivity) SetDetail(value *RiskUserActivity_detail)() { err := m.GetBackingStore().Set("detail", value) if err != nil { panic(err) } } // SetEventTypes sets the eventTypes property value. The eventTypes property -func (m *RiskUserActivity) SetEventTypes(value []RiskEventType)() { +func (m *RiskUserActivity) SetEventTypes(value []RiskUserActivity_eventTypes)() { err := m.GetBackingStore().Set("eventTypes", value) if err != nil { panic(err) @@ -219,13 +219,13 @@ type RiskUserActivityable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDetail()(*RiskDetail) - GetEventTypes()([]RiskEventType) + GetDetail()(*RiskUserActivity_detail) + GetEventTypes()([]RiskUserActivity_eventTypes) GetOdataType()(*string) GetRiskEventTypes()([]string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDetail(value *RiskDetail)() - SetEventTypes(value []RiskEventType)() + SetDetail(value *RiskUserActivity_detail)() + SetEventTypes(value []RiskUserActivity_eventTypes)() SetOdataType(value *string)() SetRiskEventTypes(value []string)() } diff --git a/models/risk_user_activity_detail.go b/models/risk_user_activity_detail.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risk_user_activity_event_types.go b/models/risk_user_activity_event_types.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risky_service_principal.go b/models/risky_service_principal.go index 8dfc4328c24..e3836b87168 100644 --- a/models/risky_service_principal.go +++ b/models/risky_service_principal.go @@ -141,12 +141,12 @@ func (m *RiskyServicePrincipal) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["riskDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetail) + val, err := n.GetEnumValue(ParseRiskyServicePrincipal_riskDetail) if err != nil { return err } if val != nil { - m.SetRiskDetail(val.(*RiskDetail)) + m.SetRiskDetail(val.(*RiskyServicePrincipal_riskDetail)) } return nil } @@ -161,22 +161,22 @@ func (m *RiskyServicePrincipal) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["riskLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskLevel) + val, err := n.GetEnumValue(ParseRiskyServicePrincipal_riskLevel) if err != nil { return err } if val != nil { - m.SetRiskLevel(val.(*RiskLevel)) + m.SetRiskLevel(val.(*RiskyServicePrincipal_riskLevel)) } return nil } res["riskState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskState) + val, err := n.GetEnumValue(ParseRiskyServicePrincipal_riskState) if err != nil { return err } if val != nil { - m.SetRiskState(val.(*RiskState)) + m.SetRiskState(val.(*RiskyServicePrincipal_riskState)) } return nil } @@ -226,13 +226,13 @@ func (m *RiskyServicePrincipal) GetIsProcessing()(*bool) { return nil } // GetRiskDetail gets the riskDetail property value. Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: none, hidden, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal. -func (m *RiskyServicePrincipal) GetRiskDetail()(*RiskDetail) { +func (m *RiskyServicePrincipal) GetRiskDetail()(*RiskyServicePrincipal_riskDetail) { val, err := m.GetBackingStore().Get("riskDetail") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetail) + return val.(*RiskyServicePrincipal_riskDetail) } return nil } @@ -248,24 +248,24 @@ func (m *RiskyServicePrincipal) GetRiskLastUpdatedDateTime()(*i336074805fc853987 return nil } // GetRiskLevel gets the riskLevel property value. Level of the detected risky workload identity. The possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq). -func (m *RiskyServicePrincipal) GetRiskLevel()(*RiskLevel) { +func (m *RiskyServicePrincipal) GetRiskLevel()(*RiskyServicePrincipal_riskLevel) { val, err := m.GetBackingStore().Get("riskLevel") if err != nil { panic(err) } if val != nil { - return val.(*RiskLevel) + return val.(*RiskyServicePrincipal_riskLevel) } return nil } // GetRiskState gets the riskState property value. State of the service principal's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. -func (m *RiskyServicePrincipal) GetRiskState()(*RiskState) { +func (m *RiskyServicePrincipal) GetRiskState()(*RiskyServicePrincipal_riskState) { val, err := m.GetBackingStore().Get("riskState") if err != nil { panic(err) } if val != nil { - return val.(*RiskState) + return val.(*RiskyServicePrincipal_riskState) } return nil } @@ -406,7 +406,7 @@ func (m *RiskyServicePrincipal) SetIsProcessing(value *bool)() { } } // SetRiskDetail sets the riskDetail property value. Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: none, hidden, unknownFutureValue, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal. -func (m *RiskyServicePrincipal) SetRiskDetail(value *RiskDetail)() { +func (m *RiskyServicePrincipal) SetRiskDetail(value *RiskyServicePrincipal_riskDetail)() { err := m.GetBackingStore().Set("riskDetail", value) if err != nil { panic(err) @@ -420,14 +420,14 @@ func (m *RiskyServicePrincipal) SetRiskLastUpdatedDateTime(value *i336074805fc85 } } // SetRiskLevel sets the riskLevel property value. Level of the detected risky workload identity. The possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq). -func (m *RiskyServicePrincipal) SetRiskLevel(value *RiskLevel)() { +func (m *RiskyServicePrincipal) SetRiskLevel(value *RiskyServicePrincipal_riskLevel)() { err := m.GetBackingStore().Set("riskLevel", value) if err != nil { panic(err) } } // SetRiskState sets the riskState property value. State of the service principal's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. -func (m *RiskyServicePrincipal) SetRiskState(value *RiskState)() { +func (m *RiskyServicePrincipal) SetRiskState(value *RiskyServicePrincipal_riskState)() { err := m.GetBackingStore().Set("riskState", value) if err != nil { panic(err) @@ -450,10 +450,10 @@ type RiskyServicePrincipalable interface { GetHistory()([]RiskyServicePrincipalHistoryItemable) GetIsEnabled()(*bool) GetIsProcessing()(*bool) - GetRiskDetail()(*RiskDetail) + GetRiskDetail()(*RiskyServicePrincipal_riskDetail) GetRiskLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetRiskLevel()(*RiskLevel) - GetRiskState()(*RiskState) + GetRiskLevel()(*RiskyServicePrincipal_riskLevel) + GetRiskState()(*RiskyServicePrincipal_riskState) GetServicePrincipalType()(*string) SetAccountEnabled(value *bool)() SetAppId(value *string)() @@ -461,9 +461,9 @@ type RiskyServicePrincipalable interface { SetHistory(value []RiskyServicePrincipalHistoryItemable)() SetIsEnabled(value *bool)() SetIsProcessing(value *bool)() - SetRiskDetail(value *RiskDetail)() + SetRiskDetail(value *RiskyServicePrincipal_riskDetail)() SetRiskLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetRiskLevel(value *RiskLevel)() - SetRiskState(value *RiskState)() + SetRiskLevel(value *RiskyServicePrincipal_riskLevel)() + SetRiskState(value *RiskyServicePrincipal_riskState)() SetServicePrincipalType(value *string)() } diff --git a/models/risky_service_principal_risk_detail.go b/models/risky_service_principal_risk_detail.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risky_service_principal_risk_level.go b/models/risky_service_principal_risk_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risky_service_principal_risk_state.go b/models/risky_service_principal_risk_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risky_user.go b/models/risky_user.go index 15b6d3b9982..e2ff0aa4d56 100644 --- a/models/risky_user.go +++ b/models/risky_user.go @@ -78,12 +78,12 @@ func (m *RiskyUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["riskDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetail) + val, err := n.GetEnumValue(ParseRiskyUser_riskDetail) if err != nil { return err } if val != nil { - m.SetRiskDetail(val.(*RiskDetail)) + m.SetRiskDetail(val.(*RiskyUser_riskDetail)) } return nil } @@ -98,22 +98,22 @@ func (m *RiskyUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["riskLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskLevel) + val, err := n.GetEnumValue(ParseRiskyUser_riskLevel) if err != nil { return err } if val != nil { - m.SetRiskLevel(val.(*RiskLevel)) + m.SetRiskLevel(val.(*RiskyUser_riskLevel)) } return nil } res["riskState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskState) + val, err := n.GetEnumValue(ParseRiskyUser_riskState) if err != nil { return err } if val != nil { - m.SetRiskState(val.(*RiskState)) + m.SetRiskState(val.(*RiskyUser_riskState)) } return nil } @@ -173,13 +173,13 @@ func (m *RiskyUser) GetIsProcessing()(*bool) { return nil } // GetRiskDetail gets the riskDetail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. -func (m *RiskyUser) GetRiskDetail()(*RiskDetail) { +func (m *RiskyUser) GetRiskDetail()(*RiskyUser_riskDetail) { val, err := m.GetBackingStore().Get("riskDetail") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetail) + return val.(*RiskyUser_riskDetail) } return nil } @@ -195,24 +195,24 @@ func (m *RiskyUser) GetRiskLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad9 return nil } // GetRiskLevel gets the riskLevel property value. Level of the detected risky user. The possible values are low, medium, high, hidden, none, unknownFutureValue. -func (m *RiskyUser) GetRiskLevel()(*RiskLevel) { +func (m *RiskyUser) GetRiskLevel()(*RiskyUser_riskLevel) { val, err := m.GetBackingStore().Get("riskLevel") if err != nil { panic(err) } if val != nil { - return val.(*RiskLevel) + return val.(*RiskyUser_riskLevel) } return nil } // GetRiskState gets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. -func (m *RiskyUser) GetRiskState()(*RiskState) { +func (m *RiskyUser) GetRiskState()(*RiskyUser_riskState) { val, err := m.GetBackingStore().Get("riskState") if err != nil { panic(err) } if val != nil { - return val.(*RiskState) + return val.(*RiskyUser_riskState) } return nil } @@ -331,7 +331,7 @@ func (m *RiskyUser) SetIsProcessing(value *bool)() { } } // SetRiskDetail sets the riskDetail property value. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. -func (m *RiskyUser) SetRiskDetail(value *RiskDetail)() { +func (m *RiskyUser) SetRiskDetail(value *RiskyUser_riskDetail)() { err := m.GetBackingStore().Set("riskDetail", value) if err != nil { panic(err) @@ -345,14 +345,14 @@ func (m *RiskyUser) SetRiskLastUpdatedDateTime(value *i336074805fc853987abe6f7fe } } // SetRiskLevel sets the riskLevel property value. Level of the detected risky user. The possible values are low, medium, high, hidden, none, unknownFutureValue. -func (m *RiskyUser) SetRiskLevel(value *RiskLevel)() { +func (m *RiskyUser) SetRiskLevel(value *RiskyUser_riskLevel)() { err := m.GetBackingStore().Set("riskLevel", value) if err != nil { panic(err) } } // SetRiskState sets the riskState property value. State of the user's risk. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. -func (m *RiskyUser) SetRiskState(value *RiskState)() { +func (m *RiskyUser) SetRiskState(value *RiskyUser_riskState)() { err := m.GetBackingStore().Set("riskState", value) if err != nil { panic(err) @@ -379,19 +379,19 @@ type RiskyUserable interface { GetHistory()([]RiskyUserHistoryItemable) GetIsDeleted()(*bool) GetIsProcessing()(*bool) - GetRiskDetail()(*RiskDetail) + GetRiskDetail()(*RiskyUser_riskDetail) GetRiskLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetRiskLevel()(*RiskLevel) - GetRiskState()(*RiskState) + GetRiskLevel()(*RiskyUser_riskLevel) + GetRiskState()(*RiskyUser_riskState) GetUserDisplayName()(*string) GetUserPrincipalName()(*string) SetHistory(value []RiskyUserHistoryItemable)() SetIsDeleted(value *bool)() SetIsProcessing(value *bool)() - SetRiskDetail(value *RiskDetail)() + SetRiskDetail(value *RiskyUser_riskDetail)() SetRiskLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetRiskLevel(value *RiskLevel)() - SetRiskState(value *RiskState)() + SetRiskLevel(value *RiskyUser_riskLevel)() + SetRiskState(value *RiskyUser_riskState)() SetUserDisplayName(value *string)() SetUserPrincipalName(value *string)() } diff --git a/models/risky_user_risk_detail.go b/models/risky_user_risk_detail.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risky_user_risk_level.go b/models/risky_user_risk_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/risky_user_risk_state.go b/models/risky_user_risk_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/role_summary_status.go b/models/role_summary_status.go deleted file mode 100644 index 550a625fedb..00000000000 --- a/models/role_summary_status.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type RoleSummaryStatus int - -const ( - OK_ROLESUMMARYSTATUS RoleSummaryStatus = iota - BAD_ROLESUMMARYSTATUS -) - -func (i RoleSummaryStatus) String() string { - return []string{"ok", "bad"}[i] -} -func ParseRoleSummaryStatus(v string) (any, error) { - result := OK_ROLESUMMARYSTATUS - switch v { - case "ok": - result = OK_ROLESUMMARYSTATUS - case "bad": - result = BAD_ROLESUMMARYSTATUS - default: - return 0, errors.New("Unknown RoleSummaryStatus value: " + v) - } - return &result, nil -} -func SerializeRoleSummaryStatus(values []RoleSummaryStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RoleSummaryStatus) isMultiValue() bool { - return false -} diff --git a/models/room.go b/models/room.go index e4358054e62..0b517ead621 100644 --- a/models/room.go +++ b/models/room.go @@ -33,13 +33,13 @@ func (m *Room) GetAudioDeviceName()(*string) { return nil } // GetBookingType gets the bookingType property value. Type of room. Possible values are standard, and reserved. -func (m *Room) GetBookingType()(*BookingType) { +func (m *Room) GetBookingType()(*Room_bookingType) { val, err := m.GetBackingStore().Get("bookingType") if err != nil { panic(err) } if val != nil { - return val.(*BookingType) + return val.(*Room_bookingType) } return nil } @@ -101,12 +101,12 @@ func (m *Room) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["bookingType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBookingType) + val, err := n.GetEnumValue(ParseRoom_bookingType) if err != nil { return err } if val != nil { - m.SetBookingType(val.(*BookingType)) + m.SetBookingType(val.(*Room_bookingType)) } return nil } @@ -400,7 +400,7 @@ func (m *Room) SetAudioDeviceName(value *string)() { } } // SetBookingType sets the bookingType property value. Type of room. Possible values are standard, and reserved. -func (m *Room) SetBookingType(value *BookingType)() { +func (m *Room) SetBookingType(value *Room_bookingType)() { err := m.GetBackingStore().Set("bookingType", value) if err != nil { panic(err) @@ -488,7 +488,7 @@ type Roomable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable Placeable GetAudioDeviceName()(*string) - GetBookingType()(*BookingType) + GetBookingType()(*Room_bookingType) GetBuilding()(*string) GetCapacity()(*int32) GetDisplayDeviceName()(*string) @@ -501,7 +501,7 @@ type Roomable interface { GetTags()([]string) GetVideoDeviceName()(*string) SetAudioDeviceName(value *string)() - SetBookingType(value *BookingType)() + SetBookingType(value *Room_bookingType)() SetBuilding(value *string)() SetCapacity(value *int32)() SetDisplayDeviceName(value *string)() diff --git a/models/room_booking_type.go b/models/room_booking_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/routing_policy.go b/models/routing_policy.go deleted file mode 100644 index 6bda53bb974..00000000000 --- a/models/routing_policy.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type RoutingPolicy int - -const ( - NONE_ROUTINGPOLICY RoutingPolicy = iota - NOMISSEDCALL_ROUTINGPOLICY - DISABLEFORWARDINGEXCEPTPHONE_ROUTINGPOLICY - DISABLEFORWARDING_ROUTINGPOLICY - PREFERSKYPEFORBUSINESS_ROUTINGPOLICY - UNKNOWNFUTUREVALUE_ROUTINGPOLICY -) - -func (i RoutingPolicy) String() string { - return []string{"none", "noMissedCall", "disableForwardingExceptPhone", "disableForwarding", "preferSkypeForBusiness", "unknownFutureValue"}[i] -} -func ParseRoutingPolicy(v string) (any, error) { - result := NONE_ROUTINGPOLICY - switch v { - case "none": - result = NONE_ROUTINGPOLICY - case "noMissedCall": - result = NOMISSEDCALL_ROUTINGPOLICY - case "disableForwardingExceptPhone": - result = DISABLEFORWARDINGEXCEPTPHONE_ROUTINGPOLICY - case "disableForwarding": - result = DISABLEFORWARDING_ROUTINGPOLICY - case "preferSkypeForBusiness": - result = PREFERSKYPEFORBUSINESS_ROUTINGPOLICY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ROUTINGPOLICY - default: - return 0, errors.New("Unknown RoutingPolicy value: " + v) - } - return &result, nil -} -func SerializeRoutingPolicy(values []RoutingPolicy) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RoutingPolicy) isMultiValue() bool { - return false -} diff --git a/models/rule_mode.go b/models/rule_mode.go deleted file mode 100644 index 6765762d98b..00000000000 --- a/models/rule_mode.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type RuleMode int - -const ( - AUDIT_RULEMODE RuleMode = iota - AUDITANDNOTIFY_RULEMODE - ENFORCE_RULEMODE - PENDINGDELETION_RULEMODE - TEST_RULEMODE -) - -func (i RuleMode) String() string { - return []string{"audit", "auditAndNotify", "enforce", "pendingDeletion", "test"}[i] -} -func ParseRuleMode(v string) (any, error) { - result := AUDIT_RULEMODE - switch v { - case "audit": - result = AUDIT_RULEMODE - case "auditAndNotify": - result = AUDITANDNOTIFY_RULEMODE - case "enforce": - result = ENFORCE_RULEMODE - case "pendingDeletion": - result = PENDINGDELETION_RULEMODE - case "test": - result = TEST_RULEMODE - default: - return 0, errors.New("Unknown RuleMode value: " + v) - } - return &result, nil -} -func SerializeRuleMode(values []RuleMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RuleMode) isMultiValue() bool { - return false -} diff --git a/models/saml_or_ws_fed_provider.go b/models/saml_or_ws_fed_provider.go index 4dd4640302f..361993d00eb 100644 --- a/models/saml_or_ws_fed_provider.go +++ b/models/saml_or_ws_fed_provider.go @@ -75,12 +75,12 @@ func (m *SamlOrWsFedProvider) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["preferredAuthenticationProtocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationProtocol) + val, err := n.GetEnumValue(ParseSamlOrWsFedProvider_preferredAuthenticationProtocol) if err != nil { return err } if val != nil { - m.SetPreferredAuthenticationProtocol(val.(*AuthenticationProtocol)) + m.SetPreferredAuthenticationProtocol(val.(*SamlOrWsFedProvider_preferredAuthenticationProtocol)) } return nil } @@ -130,13 +130,13 @@ func (m *SamlOrWsFedProvider) GetPassiveSignInUri()(*string) { return nil } // GetPreferredAuthenticationProtocol gets the preferredAuthenticationProtocol property value. Preferred authentication protocol. Supported values include saml or wsfed. -func (m *SamlOrWsFedProvider) GetPreferredAuthenticationProtocol()(*AuthenticationProtocol) { +func (m *SamlOrWsFedProvider) GetPreferredAuthenticationProtocol()(*SamlOrWsFedProvider_preferredAuthenticationProtocol) { val, err := m.GetBackingStore().Get("preferredAuthenticationProtocol") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationProtocol) + return val.(*SamlOrWsFedProvider_preferredAuthenticationProtocol) } return nil } @@ -212,7 +212,7 @@ func (m *SamlOrWsFedProvider) SetPassiveSignInUri(value *string)() { } } // SetPreferredAuthenticationProtocol sets the preferredAuthenticationProtocol property value. Preferred authentication protocol. Supported values include saml or wsfed. -func (m *SamlOrWsFedProvider) SetPreferredAuthenticationProtocol(value *AuthenticationProtocol)() { +func (m *SamlOrWsFedProvider) SetPreferredAuthenticationProtocol(value *SamlOrWsFedProvider_preferredAuthenticationProtocol)() { err := m.GetBackingStore().Set("preferredAuthenticationProtocol", value) if err != nil { panic(err) @@ -232,11 +232,11 @@ type SamlOrWsFedProviderable interface { GetIssuerUri()(*string) GetMetadataExchangeUri()(*string) GetPassiveSignInUri()(*string) - GetPreferredAuthenticationProtocol()(*AuthenticationProtocol) + GetPreferredAuthenticationProtocol()(*SamlOrWsFedProvider_preferredAuthenticationProtocol) GetSigningCertificate()(*string) SetIssuerUri(value *string)() SetMetadataExchangeUri(value *string)() SetPassiveSignInUri(value *string)() - SetPreferredAuthenticationProtocol(value *AuthenticationProtocol)() + SetPreferredAuthenticationProtocol(value *SamlOrWsFedProvider_preferredAuthenticationProtocol)() SetSigningCertificate(value *string)() } diff --git a/models/saml_or_ws_fed_provider_preferred_authentication_protocol.go b/models/saml_or_ws_fed_provider_preferred_authentication_protocol.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/schedule.go b/models/schedule.go index 200f608a63b..0ca1049b9db 100644 --- a/models/schedule.go +++ b/models/schedule.go @@ -160,12 +160,12 @@ func (m *Schedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["provisionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOperationStatus) + val, err := n.GetEnumValue(ParseSchedule_provisionStatus) if err != nil { return err } if val != nil { - m.SetProvisionStatus(val.(*OperationStatus)) + m.SetProvisionStatus(val.(*Schedule_provisionStatus)) } return nil } @@ -212,12 +212,12 @@ func (m *Schedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["startDayOfWeek"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDayOfWeek) + val, err := n.GetEnumValue(ParseSchedule_startDayOfWeek) if err != nil { return err } if val != nil { - m.SetStartDayOfWeek(val.(*DayOfWeek)) + m.SetStartDayOfWeek(val.(*Schedule_startDayOfWeek)) } return nil } @@ -425,13 +425,13 @@ func (m *Schedule) GetOpenShiftsEnabled()(*bool) { return nil } // GetProvisionStatus gets the provisionStatus property value. The status of the schedule provisioning. The possible values are notStarted, running, completed, failed. -func (m *Schedule) GetProvisionStatus()(*OperationStatus) { +func (m *Schedule) GetProvisionStatus()(*Schedule_provisionStatus) { val, err := m.GetBackingStore().Get("provisionStatus") if err != nil { panic(err) } if val != nil { - return val.(*OperationStatus) + return val.(*Schedule_provisionStatus) } return nil } @@ -469,13 +469,13 @@ func (m *Schedule) GetShifts()([]Shiftable) { return nil } // GetStartDayOfWeek gets the startDayOfWeek property value. Indicates the start day of the week. -func (m *Schedule) GetStartDayOfWeek()(*DayOfWeek) { +func (m *Schedule) GetStartDayOfWeek()(*Schedule_startDayOfWeek) { val, err := m.GetBackingStore().Get("startDayOfWeek") if err != nil { panic(err) } if val != nil { - return val.(*DayOfWeek) + return val.(*Schedule_startDayOfWeek) } return nil } @@ -864,7 +864,7 @@ func (m *Schedule) SetOpenShiftsEnabled(value *bool)() { } } // SetProvisionStatus sets the provisionStatus property value. The status of the schedule provisioning. The possible values are notStarted, running, completed, failed. -func (m *Schedule) SetProvisionStatus(value *OperationStatus)() { +func (m *Schedule) SetProvisionStatus(value *Schedule_provisionStatus)() { err := m.GetBackingStore().Set("provisionStatus", value) if err != nil { panic(err) @@ -892,7 +892,7 @@ func (m *Schedule) SetShifts(value []Shiftable)() { } } // SetStartDayOfWeek sets the startDayOfWeek property value. Indicates the start day of the week. -func (m *Schedule) SetStartDayOfWeek(value *DayOfWeek)() { +func (m *Schedule) SetStartDayOfWeek(value *Schedule_startDayOfWeek)() { err := m.GetBackingStore().Set("startDayOfWeek", value) if err != nil { panic(err) @@ -987,11 +987,11 @@ type Scheduleable interface { GetOpenShiftChangeRequests()([]OpenShiftChangeRequestable) GetOpenShifts()([]OpenShiftable) GetOpenShiftsEnabled()(*bool) - GetProvisionStatus()(*OperationStatus) + GetProvisionStatus()(*Schedule_provisionStatus) GetProvisionStatusCode()(*string) GetSchedulingGroups()([]SchedulingGroupable) GetShifts()([]Shiftable) - GetStartDayOfWeek()(*DayOfWeek) + GetStartDayOfWeek()(*Schedule_startDayOfWeek) GetSwapShiftsChangeRequests()([]SwapShiftsChangeRequestable) GetSwapShiftsRequestsEnabled()(*bool) GetTimeCards()([]TimeCardable) @@ -1011,11 +1011,11 @@ type Scheduleable interface { SetOpenShiftChangeRequests(value []OpenShiftChangeRequestable)() SetOpenShifts(value []OpenShiftable)() SetOpenShiftsEnabled(value *bool)() - SetProvisionStatus(value *OperationStatus)() + SetProvisionStatus(value *Schedule_provisionStatus)() SetProvisionStatusCode(value *string)() SetSchedulingGroups(value []SchedulingGroupable)() SetShifts(value []Shiftable)() - SetStartDayOfWeek(value *DayOfWeek)() + SetStartDayOfWeek(value *Schedule_startDayOfWeek)() SetSwapShiftsChangeRequests(value []SwapShiftsChangeRequestable)() SetSwapShiftsRequestsEnabled(value *bool)() SetTimeCards(value []TimeCardable)() diff --git a/models/schedule_change_request.go b/models/schedule_change_request.go index 299d30b78c8..a541d37a02a 100644 --- a/models/schedule_change_request.go +++ b/models/schedule_change_request.go @@ -47,13 +47,13 @@ func CreateScheduleChangeRequestFromDiscriminatorValue(parseNode i878a80d2330e89 return NewScheduleChangeRequest(), nil } // GetAssignedTo gets the assignedTo property value. The assignedTo property -func (m *ScheduleChangeRequest) GetAssignedTo()(*ScheduleChangeRequestActor) { +func (m *ScheduleChangeRequest) GetAssignedTo()(*ScheduleChangeRequest_assignedTo) { val, err := m.GetBackingStore().Get("assignedTo") if err != nil { panic(err) } if val != nil { - return val.(*ScheduleChangeRequestActor) + return val.(*ScheduleChangeRequest_assignedTo) } return nil } @@ -61,12 +61,12 @@ func (m *ScheduleChangeRequest) GetAssignedTo()(*ScheduleChangeRequestActor) { func (m *ScheduleChangeRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ChangeTrackedEntity.GetFieldDeserializers() res["assignedTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseScheduleChangeRequestActor) + val, err := n.GetEnumValue(ParseScheduleChangeRequest_assignedTo) if err != nil { return err } if val != nil { - m.SetAssignedTo(val.(*ScheduleChangeRequestActor)) + m.SetAssignedTo(val.(*ScheduleChangeRequest_assignedTo)) } return nil } @@ -131,12 +131,12 @@ func (m *ScheduleChangeRequest) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseScheduleChangeState) + val, err := n.GetEnumValue(ParseScheduleChangeRequest_state) if err != nil { return err } if val != nil { - m.SetState(val.(*ScheduleChangeState)) + m.SetState(val.(*ScheduleChangeRequest_state)) } return nil } @@ -209,13 +209,13 @@ func (m *ScheduleChangeRequest) GetSenderUserId()(*string) { return nil } // GetState gets the state property value. The state property -func (m *ScheduleChangeRequest) GetState()(*ScheduleChangeState) { +func (m *ScheduleChangeRequest) GetState()(*ScheduleChangeRequest_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*ScheduleChangeState) + return val.(*ScheduleChangeRequest_state) } return nil } @@ -254,7 +254,7 @@ func (m *ScheduleChangeRequest) Serialize(writer i878a80d2330e89d26896388a3f487e return nil } // SetAssignedTo sets the assignedTo property value. The assignedTo property -func (m *ScheduleChangeRequest) SetAssignedTo(value *ScheduleChangeRequestActor)() { +func (m *ScheduleChangeRequest) SetAssignedTo(value *ScheduleChangeRequest_assignedTo)() { err := m.GetBackingStore().Set("assignedTo", value) if err != nil { panic(err) @@ -303,7 +303,7 @@ func (m *ScheduleChangeRequest) SetSenderUserId(value *string)() { } } // SetState sets the state property value. The state property -func (m *ScheduleChangeRequest) SetState(value *ScheduleChangeState)() { +func (m *ScheduleChangeRequest) SetState(value *ScheduleChangeRequest_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -313,20 +313,20 @@ func (m *ScheduleChangeRequest) SetState(value *ScheduleChangeState)() { type ScheduleChangeRequestable interface { ChangeTrackedEntityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAssignedTo()(*ScheduleChangeRequestActor) + GetAssignedTo()(*ScheduleChangeRequest_assignedTo) GetManagerActionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetManagerActionMessage()(*string) GetManagerUserId()(*string) GetSenderDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSenderMessage()(*string) GetSenderUserId()(*string) - GetState()(*ScheduleChangeState) - SetAssignedTo(value *ScheduleChangeRequestActor)() + GetState()(*ScheduleChangeRequest_state) + SetAssignedTo(value *ScheduleChangeRequest_assignedTo)() SetManagerActionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetManagerActionMessage(value *string)() SetManagerUserId(value *string)() SetSenderDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSenderMessage(value *string)() SetSenderUserId(value *string)() - SetState(value *ScheduleChangeState)() + SetState(value *ScheduleChangeRequest_state)() } diff --git a/models/schedule_change_request_actor.go b/models/schedule_change_request_actor.go deleted file mode 100644 index 101316e5698..00000000000 --- a/models/schedule_change_request_actor.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type ScheduleChangeRequestActor int - -const ( - SENDER_SCHEDULECHANGEREQUESTACTOR ScheduleChangeRequestActor = iota - RECIPIENT_SCHEDULECHANGEREQUESTACTOR - MANAGER_SCHEDULECHANGEREQUESTACTOR - SYSTEM_SCHEDULECHANGEREQUESTACTOR - UNKNOWNFUTUREVALUE_SCHEDULECHANGEREQUESTACTOR -) - -func (i ScheduleChangeRequestActor) String() string { - return []string{"sender", "recipient", "manager", "system", "unknownFutureValue"}[i] -} -func ParseScheduleChangeRequestActor(v string) (any, error) { - result := SENDER_SCHEDULECHANGEREQUESTACTOR - switch v { - case "sender": - result = SENDER_SCHEDULECHANGEREQUESTACTOR - case "recipient": - result = RECIPIENT_SCHEDULECHANGEREQUESTACTOR - case "manager": - result = MANAGER_SCHEDULECHANGEREQUESTACTOR - case "system": - result = SYSTEM_SCHEDULECHANGEREQUESTACTOR - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SCHEDULECHANGEREQUESTACTOR - default: - return 0, errors.New("Unknown ScheduleChangeRequestActor value: " + v) - } - return &result, nil -} -func SerializeScheduleChangeRequestActor(values []ScheduleChangeRequestActor) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ScheduleChangeRequestActor) isMultiValue() bool { - return false -} diff --git a/models/schedule_change_request_assigned_to.go b/models/schedule_change_request_assigned_to.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/schedule_change_request_state.go b/models/schedule_change_request_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/schedule_change_state.go b/models/schedule_change_state.go deleted file mode 100644 index 0c63b07901a..00000000000 --- a/models/schedule_change_state.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type ScheduleChangeState int - -const ( - PENDING_SCHEDULECHANGESTATE ScheduleChangeState = iota - APPROVED_SCHEDULECHANGESTATE - DECLINED_SCHEDULECHANGESTATE - UNKNOWNFUTUREVALUE_SCHEDULECHANGESTATE -) - -func (i ScheduleChangeState) String() string { - return []string{"pending", "approved", "declined", "unknownFutureValue"}[i] -} -func ParseScheduleChangeState(v string) (any, error) { - result := PENDING_SCHEDULECHANGESTATE - switch v { - case "pending": - result = PENDING_SCHEDULECHANGESTATE - case "approved": - result = APPROVED_SCHEDULECHANGESTATE - case "declined": - result = DECLINED_SCHEDULECHANGESTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SCHEDULECHANGESTATE - default: - return 0, errors.New("Unknown ScheduleChangeState value: " + v) - } - return &result, nil -} -func SerializeScheduleChangeState(values []ScheduleChangeState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ScheduleChangeState) isMultiValue() bool { - return false -} diff --git a/models/schedule_item.go b/models/schedule_item.go index af91566b6c7..addafa50537 100644 --- a/models/schedule_item.go +++ b/models/schedule_item.go @@ -103,12 +103,12 @@ func (m *ScheduleItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFreeBusyStatus) + val, err := n.GetEnumValue(ParseScheduleItem_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*FreeBusyStatus)) + m.SetStatus(val.(*ScheduleItem_status)) } return nil } @@ -169,13 +169,13 @@ func (m *ScheduleItem) GetStart()(DateTimeTimeZoneable) { return nil } // GetStatus gets the status property value. The availability status of the user or resource during the corresponding event. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown. -func (m *ScheduleItem) GetStatus()(*FreeBusyStatus) { +func (m *ScheduleItem) GetStatus()(*ScheduleItem_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*FreeBusyStatus) + return val.(*ScheduleItem_status) } return nil } @@ -290,7 +290,7 @@ func (m *ScheduleItem) SetStart(value DateTimeTimeZoneable)() { } } // SetStatus sets the status property value. The availability status of the user or resource during the corresponding event. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown. -func (m *ScheduleItem) SetStatus(value *FreeBusyStatus)() { +func (m *ScheduleItem) SetStatus(value *ScheduleItem_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -314,7 +314,7 @@ type ScheduleItemable interface { GetLocation()(*string) GetOdataType()(*string) GetStart()(DateTimeTimeZoneable) - GetStatus()(*FreeBusyStatus) + GetStatus()(*ScheduleItem_status) GetSubject()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetEnd(value DateTimeTimeZoneable)() @@ -322,6 +322,6 @@ type ScheduleItemable interface { SetLocation(value *string)() SetOdataType(value *string)() SetStart(value DateTimeTimeZoneable)() - SetStatus(value *FreeBusyStatus)() + SetStatus(value *ScheduleItem_status)() SetSubject(value *string)() } diff --git a/models/schedule_item_status.go b/models/schedule_item_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/schedule_provision_status.go b/models/schedule_provision_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/schedule_request_actions.go b/models/schedule_request_actions.go deleted file mode 100644 index 0ef6467903d..00000000000 --- a/models/schedule_request_actions.go +++ /dev/null @@ -1,61 +0,0 @@ -package models -import ( - "errors" -) -// -type ScheduleRequestActions int - -const ( - ADMINASSIGN_SCHEDULEREQUESTACTIONS ScheduleRequestActions = iota - ADMINUPDATE_SCHEDULEREQUESTACTIONS - ADMINREMOVE_SCHEDULEREQUESTACTIONS - SELFACTIVATE_SCHEDULEREQUESTACTIONS - SELFDEACTIVATE_SCHEDULEREQUESTACTIONS - ADMINEXTEND_SCHEDULEREQUESTACTIONS - ADMINRENEW_SCHEDULEREQUESTACTIONS - SELFEXTEND_SCHEDULEREQUESTACTIONS - SELFRENEW_SCHEDULEREQUESTACTIONS - UNKNOWNFUTUREVALUE_SCHEDULEREQUESTACTIONS -) - -func (i ScheduleRequestActions) String() string { - return []string{"adminAssign", "adminUpdate", "adminRemove", "selfActivate", "selfDeactivate", "adminExtend", "adminRenew", "selfExtend", "selfRenew", "unknownFutureValue"}[i] -} -func ParseScheduleRequestActions(v string) (any, error) { - result := ADMINASSIGN_SCHEDULEREQUESTACTIONS - switch v { - case "adminAssign": - result = ADMINASSIGN_SCHEDULEREQUESTACTIONS - case "adminUpdate": - result = ADMINUPDATE_SCHEDULEREQUESTACTIONS - case "adminRemove": - result = ADMINREMOVE_SCHEDULEREQUESTACTIONS - case "selfActivate": - result = SELFACTIVATE_SCHEDULEREQUESTACTIONS - case "selfDeactivate": - result = SELFDEACTIVATE_SCHEDULEREQUESTACTIONS - case "adminExtend": - result = ADMINEXTEND_SCHEDULEREQUESTACTIONS - case "adminRenew": - result = ADMINRENEW_SCHEDULEREQUESTACTIONS - case "selfExtend": - result = SELFEXTEND_SCHEDULEREQUESTACTIONS - case "selfRenew": - result = SELFRENEW_SCHEDULEREQUESTACTIONS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SCHEDULEREQUESTACTIONS - default: - return 0, errors.New("Unknown ScheduleRequestActions value: " + v) - } - return &result, nil -} -func SerializeScheduleRequestActions(values []ScheduleRequestActions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ScheduleRequestActions) isMultiValue() bool { - return false -} diff --git a/models/schedule_start_day_of_week.go b/models/schedule_start_day_of_week.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/search/answer_variant.go b/models/search/answer_variant.go index 30cafcbefa4..ac0643b9470 100644 --- a/models/search/answer_variant.go +++ b/models/search/answer_variant.go @@ -2,7 +2,6 @@ package search import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -105,12 +104,12 @@ func (m *AnswerVariant) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["platform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseDevicePlatformType) + val, err := n.GetEnumValue(ParseAnswerVariant_platform) if err != nil { return err } if val != nil { - m.SetPlatform(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType)) + m.SetPlatform(val.(*AnswerVariant_platform)) } return nil } @@ -149,13 +148,13 @@ func (m *AnswerVariant) GetOdataType()(*string) { return nil } // GetPlatform gets the platform property value. The platform property -func (m *AnswerVariant) GetPlatform()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType) { +func (m *AnswerVariant) GetPlatform()(*AnswerVariant_platform) { val, err := m.GetBackingStore().Get("platform") if err != nil { panic(err) } if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType) + return val.(*AnswerVariant_platform) } return nil } @@ -257,7 +256,7 @@ func (m *AnswerVariant) SetOdataType(value *string)() { } } // SetPlatform sets the platform property value. The platform property -func (m *AnswerVariant) SetPlatform(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType)() { +func (m *AnswerVariant) SetPlatform(value *AnswerVariant_platform)() { err := m.GetBackingStore().Set("platform", value) if err != nil { panic(err) @@ -280,13 +279,13 @@ type AnswerVariantable interface { GetDisplayName()(*string) GetLanguageTag()(*string) GetOdataType()(*string) - GetPlatform()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType) + GetPlatform()(*AnswerVariant_platform) GetWebUrl()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDescription(value *string)() SetDisplayName(value *string)() SetLanguageTag(value *string)() SetOdataType(value *string)() - SetPlatform(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DevicePlatformType)() + SetPlatform(value *AnswerVariant_platform)() SetWebUrl(value *string)() } diff --git a/models/search/answer_variant_platform.go b/models/search/answer_variant_platform.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/search_alteration_type.go b/models/search_alteration_type.go deleted file mode 100644 index 193fab0b793..00000000000 --- a/models/search_alteration_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type SearchAlterationType int - -const ( - SUGGESTION_SEARCHALTERATIONTYPE SearchAlterationType = iota - MODIFICATION_SEARCHALTERATIONTYPE - UNKNOWNFUTUREVALUE_SEARCHALTERATIONTYPE -) - -func (i SearchAlterationType) String() string { - return []string{"suggestion", "modification", "unknownFutureValue"}[i] -} -func ParseSearchAlterationType(v string) (any, error) { - result := SUGGESTION_SEARCHALTERATIONTYPE - switch v { - case "suggestion": - result = SUGGESTION_SEARCHALTERATIONTYPE - case "modification": - result = MODIFICATION_SEARCHALTERATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SEARCHALTERATIONTYPE - default: - return 0, errors.New("Unknown SearchAlterationType value: " + v) - } - return &result, nil -} -func SerializeSearchAlterationType(values []SearchAlterationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SearchAlterationType) isMultiValue() bool { - return false -} diff --git a/models/search_content.go b/models/search_content.go deleted file mode 100644 index 1c15a7bc66d..00000000000 --- a/models/search_content.go +++ /dev/null @@ -1,50 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type SearchContent int - -const ( - SHAREDCONTENT_SEARCHCONTENT SearchContent = iota - PRIVATECONTENT_SEARCHCONTENT - UNKNOWNFUTUREVALUE_SEARCHCONTENT -) - -func (i SearchContent) String() string { - var values []string - for p := SearchContent(1); p <= UNKNOWNFUTUREVALUE_SEARCHCONTENT; p <<= 1 { - if i&p == p { - values = append(values, []string{"sharedContent", "privateContent", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseSearchContent(v string) (any, error) { - var result SearchContent - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "sharedContent": - result |= SHAREDCONTENT_SEARCHCONTENT - case "privateContent": - result |= PRIVATECONTENT_SEARCHCONTENT - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_SEARCHCONTENT - default: - return 0, errors.New("Unknown SearchContent value: " + v) - } - } - return &result, nil -} -func SerializeSearchContent(values []SearchContent) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SearchContent) isMultiValue() bool { - return true -} diff --git a/models/search_request.go b/models/search_request.go index f1aaedbaada..2df8a6f22fc 100644 --- a/models/search_request.go +++ b/models/search_request.go @@ -94,13 +94,13 @@ func (m *SearchRequest) GetEnableTopResults()(*bool) { return nil } // GetEntityTypes gets the entityTypes property value. One or more types of resources expected in the response. Possible values are: list, site, listItem, message, event, drive, driveItem, person, externalItem, acronym, bookmark, chatMessage. For details about combinations of two or more entity types that are supported in the same search request, see known limitations. Required. -func (m *SearchRequest) GetEntityTypes()([]EntityType) { +func (m *SearchRequest) GetEntityTypes()([]SearchRequest_entityTypes) { val, err := m.GetBackingStore().Get("entityTypes") if err != nil { panic(err) } if val != nil { - return val.([]EntityType) + return val.([]SearchRequest_entityTypes) } return nil } @@ -182,15 +182,15 @@ func (m *SearchRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["entityTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseEntityType) + val, err := n.GetCollectionOfEnumValues(ParseSearchRequest_entityTypes) if err != nil { return err } if val != nil { - res := make([]EntityType, len(val)) + res := make([]SearchRequest_entityTypes, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*EntityType)) + res[i] = *(v.(*SearchRequest_entityTypes)) } } m.SetEntityTypes(res) @@ -514,7 +514,7 @@ func (m *SearchRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } } if m.GetEntityTypes() != nil { - err := writer.WriteCollectionOfStringValues("entityTypes", SerializeEntityType(m.GetEntityTypes())) + err := writer.WriteCollectionOfStringValues("entityTypes", SerializeSearchRequest_entityTypes(m.GetEntityTypes())) if err != nil { return err } @@ -652,7 +652,7 @@ func (m *SearchRequest) SetEnableTopResults(value *bool)() { } } // SetEntityTypes sets the entityTypes property value. One or more types of resources expected in the response. Possible values are: list, site, listItem, message, event, drive, driveItem, person, externalItem, acronym, bookmark, chatMessage. For details about combinations of two or more entity types that are supported in the same search request, see known limitations. Required. -func (m *SearchRequest) SetEntityTypes(value []EntityType)() { +func (m *SearchRequest) SetEntityTypes(value []SearchRequest_entityTypes)() { err := m.GetBackingStore().Set("entityTypes", value) if err != nil { panic(err) @@ -753,7 +753,7 @@ type SearchRequestable interface { GetCollapseProperties()([]CollapsePropertyable) GetContentSources()([]string) GetEnableTopResults()(*bool) - GetEntityTypes()([]EntityType) + GetEntityTypes()([]SearchRequest_entityTypes) GetFields()([]string) GetFrom()(*int32) GetOdataType()(*string) @@ -772,7 +772,7 @@ type SearchRequestable interface { SetCollapseProperties(value []CollapsePropertyable)() SetContentSources(value []string)() SetEnableTopResults(value *bool)() - SetEntityTypes(value []EntityType)() + SetEntityTypes(value []SearchRequest_entityTypes)() SetFields(value []string)() SetFrom(value *int32)() SetOdataType(value *string)() diff --git a/models/search_request_entity_types.go b/models/search_request_entity_types.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/section_emphasis_type.go b/models/section_emphasis_type.go deleted file mode 100644 index 19a7cdd387f..00000000000 --- a/models/section_emphasis_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type SectionEmphasisType int - -const ( - NONE_SECTIONEMPHASISTYPE SectionEmphasisType = iota - NEUTRAL_SECTIONEMPHASISTYPE - SOFT_SECTIONEMPHASISTYPE - STRONG_SECTIONEMPHASISTYPE - UNKNOWNFUTUREVALUE_SECTIONEMPHASISTYPE -) - -func (i SectionEmphasisType) String() string { - return []string{"none", "neutral", "soft", "strong", "unknownFutureValue"}[i] -} -func ParseSectionEmphasisType(v string) (any, error) { - result := NONE_SECTIONEMPHASISTYPE - switch v { - case "none": - result = NONE_SECTIONEMPHASISTYPE - case "neutral": - result = NEUTRAL_SECTIONEMPHASISTYPE - case "soft": - result = SOFT_SECTIONEMPHASISTYPE - case "strong": - result = STRONG_SECTIONEMPHASISTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SECTIONEMPHASISTYPE - default: - return 0, errors.New("Unknown SectionEmphasisType value: " + v) - } - return &result, nil -} -func SerializeSectionEmphasisType(values []SectionEmphasisType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SectionEmphasisType) isMultiValue() bool { - return false -} diff --git a/models/security/action_after_retention_period.go b/models/security/action_after_retention_period.go deleted file mode 100644 index 78388ca6d3e..00000000000 --- a/models/security/action_after_retention_period.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type ActionAfterRetentionPeriod int - -const ( - NONE_ACTIONAFTERRETENTIONPERIOD ActionAfterRetentionPeriod = iota - DELETE_ACTIONAFTERRETENTIONPERIOD - STARTDISPOSITIONREVIEW_ACTIONAFTERRETENTIONPERIOD - RELABEL_ACTIONAFTERRETENTIONPERIOD - UNKNOWNFUTUREVALUE_ACTIONAFTERRETENTIONPERIOD -) - -func (i ActionAfterRetentionPeriod) String() string { - return []string{"none", "delete", "startDispositionReview", "relabel", "unknownFutureValue"}[i] -} -func ParseActionAfterRetentionPeriod(v string) (any, error) { - result := NONE_ACTIONAFTERRETENTIONPERIOD - switch v { - case "none": - result = NONE_ACTIONAFTERRETENTIONPERIOD - case "delete": - result = DELETE_ACTIONAFTERRETENTIONPERIOD - case "startDispositionReview": - result = STARTDISPOSITIONREVIEW_ACTIONAFTERRETENTIONPERIOD - case "relabel": - result = RELABEL_ACTIONAFTERRETENTIONPERIOD - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACTIONAFTERRETENTIONPERIOD - default: - return 0, errors.New("Unknown ActionAfterRetentionPeriod value: " + v) - } - return &result, nil -} -func SerializeActionAfterRetentionPeriod(values []ActionAfterRetentionPeriod) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ActionAfterRetentionPeriod) isMultiValue() bool { - return false -} diff --git a/models/security/additional_data_options.go b/models/security/additional_data_options.go deleted file mode 100644 index 4fee6d2d15f..00000000000 --- a/models/security/additional_data_options.go +++ /dev/null @@ -1,50 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type AdditionalDataOptions int - -const ( - ALLVERSIONS_ADDITIONALDATAOPTIONS AdditionalDataOptions = iota - LINKEDFILES_ADDITIONALDATAOPTIONS - UNKNOWNFUTUREVALUE_ADDITIONALDATAOPTIONS -) - -func (i AdditionalDataOptions) String() string { - var values []string - for p := AdditionalDataOptions(1); p <= UNKNOWNFUTUREVALUE_ADDITIONALDATAOPTIONS; p <<= 1 { - if i&p == p { - values = append(values, []string{"allVersions", "linkedFiles", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseAdditionalDataOptions(v string) (any, error) { - var result AdditionalDataOptions - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "allVersions": - result |= ALLVERSIONS_ADDITIONALDATAOPTIONS - case "linkedFiles": - result |= LINKEDFILES_ADDITIONALDATAOPTIONS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_ADDITIONALDATAOPTIONS - default: - return 0, errors.New("Unknown AdditionalDataOptions value: " + v) - } - } - return &result, nil -} -func SerializeAdditionalDataOptions(values []AdditionalDataOptions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AdditionalDataOptions) isMultiValue() bool { - return true -} diff --git a/models/security/additional_options.go b/models/security/additional_options.go deleted file mode 100644 index dbb079badaa..00000000000 --- a/models/security/additional_options.go +++ /dev/null @@ -1,62 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type AdditionalOptions int - -const ( - NONE_ADDITIONALOPTIONS AdditionalOptions = iota - TEAMSANDYAMMERCONVERSATIONS_ADDITIONALOPTIONS - CLOUDATTACHMENTS_ADDITIONALOPTIONS - ALLDOCUMENTVERSIONS_ADDITIONALOPTIONS - SUBFOLDERCONTENTS_ADDITIONALOPTIONS - LISTATTACHMENTS_ADDITIONALOPTIONS - UNKNOWNFUTUREVALUE_ADDITIONALOPTIONS -) - -func (i AdditionalOptions) String() string { - var values []string - for p := AdditionalOptions(1); p <= UNKNOWNFUTUREVALUE_ADDITIONALOPTIONS; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "teamsAndYammerConversations", "cloudAttachments", "allDocumentVersions", "subfolderContents", "listAttachments", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseAdditionalOptions(v string) (any, error) { - var result AdditionalOptions - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_ADDITIONALOPTIONS - case "teamsAndYammerConversations": - result |= TEAMSANDYAMMERCONVERSATIONS_ADDITIONALOPTIONS - case "cloudAttachments": - result |= CLOUDATTACHMENTS_ADDITIONALOPTIONS - case "allDocumentVersions": - result |= ALLDOCUMENTVERSIONS_ADDITIONALOPTIONS - case "subfolderContents": - result |= SUBFOLDERCONTENTS_ADDITIONALOPTIONS - case "listAttachments": - result |= LISTATTACHMENTS_ADDITIONALOPTIONS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_ADDITIONALOPTIONS - default: - return 0, errors.New("Unknown AdditionalOptions value: " + v) - } - } - return &result, nil -} -func SerializeAdditionalOptions(values []AdditionalOptions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AdditionalOptions) isMultiValue() bool { - return true -} diff --git a/models/security/alert.go b/models/security/alert.go index d8ea98a1560..8578e1ff976 100644 --- a/models/security/alert.go +++ b/models/security/alert.go @@ -77,13 +77,13 @@ func (m *Alert) GetCategory()(*string) { return nil } // GetClassification gets the classification property value. Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. -func (m *Alert) GetClassification()(*AlertClassification) { +func (m *Alert) GetClassification()(*Alert_classification) { val, err := m.GetBackingStore().Get("classification") if err != nil { panic(err) } if val != nil { - return val.(*AlertClassification) + return val.(*Alert_classification) } return nil } @@ -121,13 +121,13 @@ func (m *Alert) GetDescription()(*string) { return nil } // GetDetectionSource gets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. -func (m *Alert) GetDetectionSource()(*DetectionSource) { +func (m *Alert) GetDetectionSource()(*Alert_detectionSource) { val, err := m.GetBackingStore().Get("detectionSource") if err != nil { panic(err) } if val != nil { - return val.(*DetectionSource) + return val.(*Alert_detectionSource) } return nil } @@ -143,13 +143,13 @@ func (m *Alert) GetDetectorId()(*string) { return nil } // GetDetermination gets the determination property value. Specifies the result of the investigation, whether the alert represents a true attack and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. -func (m *Alert) GetDetermination()(*AlertDetermination) { +func (m *Alert) GetDetermination()(*Alert_determination) { val, err := m.GetBackingStore().Get("determination") if err != nil { panic(err) } if val != nil { - return val.(*AlertDetermination) + return val.(*Alert_determination) } return nil } @@ -218,12 +218,12 @@ func (m *Alert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["classification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertClassification) + val, err := n.GetEnumValue(ParseAlert_classification) if err != nil { return err } if val != nil { - m.SetClassification(val.(*AlertClassification)) + m.SetClassification(val.(*Alert_classification)) } return nil } @@ -264,12 +264,12 @@ func (m *Alert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["detectionSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDetectionSource) + val, err := n.GetEnumValue(ParseAlert_detectionSource) if err != nil { return err } if val != nil { - m.SetDetectionSource(val.(*DetectionSource)) + m.SetDetectionSource(val.(*Alert_detectionSource)) } return nil } @@ -284,12 +284,12 @@ func (m *Alert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["determination"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertDetermination) + val, err := n.GetEnumValue(ParseAlert_determination) if err != nil { return err } if val != nil { - m.SetDetermination(val.(*AlertDetermination)) + m.SetDetermination(val.(*Alert_determination)) } return nil } @@ -949,7 +949,7 @@ func (m *Alert) SetCategory(value *string)() { } } // SetClassification sets the classification property value. Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. -func (m *Alert) SetClassification(value *AlertClassification)() { +func (m *Alert) SetClassification(value *Alert_classification)() { err := m.GetBackingStore().Set("classification", value) if err != nil { panic(err) @@ -977,7 +977,7 @@ func (m *Alert) SetDescription(value *string)() { } } // SetDetectionSource sets the detectionSource property value. Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. -func (m *Alert) SetDetectionSource(value *DetectionSource)() { +func (m *Alert) SetDetectionSource(value *Alert_detectionSource)() { err := m.GetBackingStore().Set("detectionSource", value) if err != nil { panic(err) @@ -991,7 +991,7 @@ func (m *Alert) SetDetectorId(value *string)() { } } // SetDetermination sets the determination property value. Specifies the result of the investigation, whether the alert represents a true attack and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. -func (m *Alert) SetDetermination(value *AlertDetermination)() { +func (m *Alert) SetDetermination(value *Alert_determination)() { err := m.GetBackingStore().Set("determination", value) if err != nil { panic(err) @@ -1139,13 +1139,13 @@ type Alertable interface { GetAlertWebUrl()(*string) GetAssignedTo()(*string) GetCategory()(*string) - GetClassification()(*AlertClassification) + GetClassification()(*Alert_classification) GetComments()([]AlertCommentable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDescription()(*string) - GetDetectionSource()(*DetectionSource) + GetDetectionSource()(*Alert_detectionSource) GetDetectorId()(*string) - GetDetermination()(*AlertDetermination) + GetDetermination()(*Alert_determination) GetEvidence()([]AlertEvidenceable) GetFirstActivityDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetIncidentId()(*string) @@ -1170,13 +1170,13 @@ type Alertable interface { SetAlertWebUrl(value *string)() SetAssignedTo(value *string)() SetCategory(value *string)() - SetClassification(value *AlertClassification)() + SetClassification(value *Alert_classification)() SetComments(value []AlertCommentable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() - SetDetectionSource(value *DetectionSource)() + SetDetectionSource(value *Alert_detectionSource)() SetDetectorId(value *string)() - SetDetermination(value *AlertDetermination)() + SetDetermination(value *Alert_determination)() SetEvidence(value []AlertEvidenceable)() SetFirstActivityDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetIncidentId(value *string)() diff --git a/models/security/alert_classification.go b/models/security/alert_classification.go index a394af6aa56..e69de29bb2d 100644 --- a/models/security/alert_classification.go +++ b/models/security/alert_classification.go @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type AlertClassification int - -const ( - UNKNOWN_ALERTCLASSIFICATION AlertClassification = iota - FALSEPOSITIVE_ALERTCLASSIFICATION - TRUEPOSITIVE_ALERTCLASSIFICATION - INFORMATIONALEXPECTEDACTIVITY_ALERTCLASSIFICATION - UNKNOWNFUTUREVALUE_ALERTCLASSIFICATION -) - -func (i AlertClassification) String() string { - return []string{"unknown", "falsePositive", "truePositive", "informationalExpectedActivity", "unknownFutureValue"}[i] -} -func ParseAlertClassification(v string) (any, error) { - result := UNKNOWN_ALERTCLASSIFICATION - switch v { - case "unknown": - result = UNKNOWN_ALERTCLASSIFICATION - case "falsePositive": - result = FALSEPOSITIVE_ALERTCLASSIFICATION - case "truePositive": - result = TRUEPOSITIVE_ALERTCLASSIFICATION - case "informationalExpectedActivity": - result = INFORMATIONALEXPECTEDACTIVITY_ALERTCLASSIFICATION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ALERTCLASSIFICATION - default: - return 0, errors.New("Unknown AlertClassification value: " + v) - } - return &result, nil -} -func SerializeAlertClassification(values []AlertClassification) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AlertClassification) isMultiValue() bool { - return false -} diff --git a/models/security/alert_detection_source.go b/models/security/alert_detection_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/alert_determination.go b/models/security/alert_determination.go index 6a51366e322..e69de29bb2d 100644 --- a/models/security/alert_determination.go +++ b/models/security/alert_determination.go @@ -1,79 +0,0 @@ -package security -import ( - "errors" -) -// -type AlertDetermination int - -const ( - UNKNOWN_ALERTDETERMINATION AlertDetermination = iota - APT_ALERTDETERMINATION - MALWARE_ALERTDETERMINATION - SECURITYPERSONNEL_ALERTDETERMINATION - SECURITYTESTING_ALERTDETERMINATION - UNWANTEDSOFTWARE_ALERTDETERMINATION - OTHER_ALERTDETERMINATION - MULTISTAGEDATTACK_ALERTDETERMINATION - COMPROMISEDACCOUNT_ALERTDETERMINATION - PHISHING_ALERTDETERMINATION - MALICIOUSUSERACTIVITY_ALERTDETERMINATION - NOTMALICIOUS_ALERTDETERMINATION - NOTENOUGHDATATOVALIDATE_ALERTDETERMINATION - CONFIRMEDACTIVITY_ALERTDETERMINATION - LINEOFBUSINESSAPPLICATION_ALERTDETERMINATION - UNKNOWNFUTUREVALUE_ALERTDETERMINATION -) - -func (i AlertDetermination) String() string { - return []string{"unknown", "apt", "malware", "securityPersonnel", "securityTesting", "unwantedSoftware", "other", "multiStagedAttack", "compromisedAccount", "phishing", "maliciousUserActivity", "notMalicious", "notEnoughDataToValidate", "confirmedActivity", "lineOfBusinessApplication", "unknownFutureValue"}[i] -} -func ParseAlertDetermination(v string) (any, error) { - result := UNKNOWN_ALERTDETERMINATION - switch v { - case "unknown": - result = UNKNOWN_ALERTDETERMINATION - case "apt": - result = APT_ALERTDETERMINATION - case "malware": - result = MALWARE_ALERTDETERMINATION - case "securityPersonnel": - result = SECURITYPERSONNEL_ALERTDETERMINATION - case "securityTesting": - result = SECURITYTESTING_ALERTDETERMINATION - case "unwantedSoftware": - result = UNWANTEDSOFTWARE_ALERTDETERMINATION - case "other": - result = OTHER_ALERTDETERMINATION - case "multiStagedAttack": - result = MULTISTAGEDATTACK_ALERTDETERMINATION - case "compromisedAccount": - result = COMPROMISEDACCOUNT_ALERTDETERMINATION - case "phishing": - result = PHISHING_ALERTDETERMINATION - case "maliciousUserActivity": - result = MALICIOUSUSERACTIVITY_ALERTDETERMINATION - case "notMalicious": - result = NOTMALICIOUS_ALERTDETERMINATION - case "notEnoughDataToValidate": - result = NOTENOUGHDATATOVALIDATE_ALERTDETERMINATION - case "confirmedActivity": - result = CONFIRMEDACTIVITY_ALERTDETERMINATION - case "lineOfBusinessApplication": - result = LINEOFBUSINESSAPPLICATION_ALERTDETERMINATION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ALERTDETERMINATION - default: - return 0, errors.New("Unknown AlertDetermination value: " + v) - } - return &result, nil -} -func SerializeAlertDetermination(values []AlertDetermination) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AlertDetermination) isMultiValue() bool { - return false -} diff --git a/models/security/audit_log_query.go b/models/security/audit_log_query.go index 16d61fdbdd6..633c04632fa 100644 --- a/models/security/audit_log_query.go +++ b/models/security/audit_log_query.go @@ -167,15 +167,15 @@ func (m *AuditLogQuery) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["recordTypeFilters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseAuditLogRecordType) + val, err := n.GetCollectionOfEnumValues(ParseAuditLogQuery_recordTypeFilters) if err != nil { return err } if val != nil { - res := make([]AuditLogRecordType, len(val)) + res := make([]AuditLogQuery_recordTypeFilters, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*AuditLogRecordType)) + res[i] = *(v.(*AuditLogQuery_recordTypeFilters)) } } m.SetRecordTypeFilters(res) @@ -199,12 +199,12 @@ func (m *AuditLogQuery) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuditLogQueryStatus) + val, err := n.GetEnumValue(ParseAuditLogQuery_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AuditLogQueryStatus)) + m.SetStatus(val.(*AuditLogQuery_status)) } return nil } @@ -304,13 +304,13 @@ func (m *AuditLogQuery) GetRecords()([]AuditLogRecordable) { return nil } // GetRecordTypeFilters gets the recordTypeFilters property value. The recordTypeFilters property -func (m *AuditLogQuery) GetRecordTypeFilters()([]AuditLogRecordType) { +func (m *AuditLogQuery) GetRecordTypeFilters()([]AuditLogQuery_recordTypeFilters) { val, err := m.GetBackingStore().Get("recordTypeFilters") if err != nil { panic(err) } if val != nil { - return val.([]AuditLogRecordType) + return val.([]AuditLogQuery_recordTypeFilters) } return nil } @@ -326,13 +326,13 @@ func (m *AuditLogQuery) GetServiceFilters()([]string) { return nil } // GetStatus gets the status property value. The status property -func (m *AuditLogQuery) GetStatus()(*AuditLogQueryStatus) { +func (m *AuditLogQuery) GetStatus()(*AuditLogQuery_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AuditLogQueryStatus) + return val.(*AuditLogQuery_status) } return nil } @@ -414,7 +414,7 @@ func (m *AuditLogQuery) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } } if m.GetRecordTypeFilters() != nil { - err = writer.WriteCollectionOfStringValues("recordTypeFilters", SerializeAuditLogRecordType(m.GetRecordTypeFilters())) + err = writer.WriteCollectionOfStringValues("recordTypeFilters", SerializeAuditLogQuery_recordTypeFilters(m.GetRecordTypeFilters())) if err != nil { return err } @@ -504,7 +504,7 @@ func (m *AuditLogQuery) SetRecords(value []AuditLogRecordable)() { } } // SetRecordTypeFilters sets the recordTypeFilters property value. The recordTypeFilters property -func (m *AuditLogQuery) SetRecordTypeFilters(value []AuditLogRecordType)() { +func (m *AuditLogQuery) SetRecordTypeFilters(value []AuditLogQuery_recordTypeFilters)() { err := m.GetBackingStore().Set("recordTypeFilters", value) if err != nil { panic(err) @@ -518,7 +518,7 @@ func (m *AuditLogQuery) SetServiceFilters(value []string)() { } } // SetStatus sets the status property value. The status property -func (m *AuditLogQuery) SetStatus(value *AuditLogQueryStatus)() { +func (m *AuditLogQuery) SetStatus(value *AuditLogQuery_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -544,9 +544,9 @@ type AuditLogQueryable interface { GetObjectIdFilters()([]string) GetOperationFilters()([]string) GetRecords()([]AuditLogRecordable) - GetRecordTypeFilters()([]AuditLogRecordType) + GetRecordTypeFilters()([]AuditLogQuery_recordTypeFilters) GetServiceFilters()([]string) - GetStatus()(*AuditLogQueryStatus) + GetStatus()(*AuditLogQuery_status) GetUserPrincipalNameFilters()([]string) SetAdministrativeUnitIdFilters(value []string)() SetDisplayName(value *string)() @@ -557,8 +557,8 @@ type AuditLogQueryable interface { SetObjectIdFilters(value []string)() SetOperationFilters(value []string)() SetRecords(value []AuditLogRecordable)() - SetRecordTypeFilters(value []AuditLogRecordType)() + SetRecordTypeFilters(value []AuditLogQuery_recordTypeFilters)() SetServiceFilters(value []string)() - SetStatus(value *AuditLogQueryStatus)() + SetStatus(value *AuditLogQuery_status)() SetUserPrincipalNameFilters(value []string)() } diff --git a/models/security/audit_log_query_record_type_filters.go b/models/security/audit_log_query_record_type_filters.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/audit_log_query_status.go b/models/security/audit_log_query_status.go index d4ed519a4c3..e69de29bb2d 100644 --- a/models/security/audit_log_query_status.go +++ b/models/security/audit_log_query_status.go @@ -1,49 +0,0 @@ -package security -import ( - "errors" -) -// -type AuditLogQueryStatus int - -const ( - NOTSTARTED_AUDITLOGQUERYSTATUS AuditLogQueryStatus = iota - RUNNING_AUDITLOGQUERYSTATUS - SUCCEEDED_AUDITLOGQUERYSTATUS - FAILED_AUDITLOGQUERYSTATUS - CANCELLED_AUDITLOGQUERYSTATUS - UNKNOWNFUTUREVALUE_AUDITLOGQUERYSTATUS -) - -func (i AuditLogQueryStatus) String() string { - return []string{"notStarted", "running", "succeeded", "failed", "cancelled", "unknownFutureValue"}[i] -} -func ParseAuditLogQueryStatus(v string) (any, error) { - result := NOTSTARTED_AUDITLOGQUERYSTATUS - switch v { - case "notStarted": - result = NOTSTARTED_AUDITLOGQUERYSTATUS - case "running": - result = RUNNING_AUDITLOGQUERYSTATUS - case "succeeded": - result = SUCCEEDED_AUDITLOGQUERYSTATUS - case "failed": - result = FAILED_AUDITLOGQUERYSTATUS - case "cancelled": - result = CANCELLED_AUDITLOGQUERYSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUDITLOGQUERYSTATUS - default: - return 0, errors.New("Unknown AuditLogQueryStatus value: " + v) - } - return &result, nil -} -func SerializeAuditLogQueryStatus(values []AuditLogQueryStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuditLogQueryStatus) isMultiValue() bool { - return false -} diff --git a/models/security/audit_log_record.go b/models/security/audit_log_record.go index cc1ff9828ca..5f37963583c 100644 --- a/models/security/audit_log_record.go +++ b/models/security/audit_log_record.go @@ -44,13 +44,13 @@ func (m *AuditLogRecord) GetAuditData()(AuditDataable) { return nil } // GetAuditLogRecordType gets the auditLogRecordType property value. The auditLogRecordType property -func (m *AuditLogRecord) GetAuditLogRecordType()(*AuditLogRecordType) { +func (m *AuditLogRecord) GetAuditLogRecordType()(*AuditLogRecord_auditLogRecordType) { val, err := m.GetBackingStore().Get("auditLogRecordType") if err != nil { panic(err) } if val != nil { - return val.(*AuditLogRecordType) + return val.(*AuditLogRecord_auditLogRecordType) } return nil } @@ -106,12 +106,12 @@ func (m *AuditLogRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["auditLogRecordType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuditLogRecordType) + val, err := n.GetEnumValue(ParseAuditLogRecord_auditLogRecordType) if err != nil { return err } if val != nil { - m.SetAuditLogRecordType(val.(*AuditLogRecordType)) + m.SetAuditLogRecordType(val.(*AuditLogRecord_auditLogRecordType)) } return nil } @@ -196,12 +196,12 @@ func (m *AuditLogRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["userType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuditLogUserType) + val, err := n.GetEnumValue(ParseAuditLogRecord_userType) if err != nil { return err } if val != nil { - m.SetUserType(val.(*AuditLogUserType)) + m.SetUserType(val.(*AuditLogRecord_userType)) } return nil } @@ -274,13 +274,13 @@ func (m *AuditLogRecord) GetUserPrincipalName()(*string) { return nil } // GetUserType gets the userType property value. The userType property -func (m *AuditLogRecord) GetUserType()(*AuditLogUserType) { +func (m *AuditLogRecord) GetUserType()(*AuditLogRecord_userType) { val, err := m.GetBackingStore().Get("userType") if err != nil { panic(err) } if val != nil { - return val.(*AuditLogUserType) + return val.(*AuditLogRecord_userType) } return nil } @@ -381,7 +381,7 @@ func (m *AuditLogRecord) SetAuditData(value AuditDataable)() { } } // SetAuditLogRecordType sets the auditLogRecordType property value. The auditLogRecordType property -func (m *AuditLogRecord) SetAuditLogRecordType(value *AuditLogRecordType)() { +func (m *AuditLogRecord) SetAuditLogRecordType(value *AuditLogRecord_auditLogRecordType)() { err := m.GetBackingStore().Set("auditLogRecordType", value) if err != nil { panic(err) @@ -444,7 +444,7 @@ func (m *AuditLogRecord) SetUserPrincipalName(value *string)() { } } // SetUserType sets the userType property value. The userType property -func (m *AuditLogRecord) SetUserType(value *AuditLogUserType)() { +func (m *AuditLogRecord) SetUserType(value *AuditLogRecord_userType)() { err := m.GetBackingStore().Set("userType", value) if err != nil { panic(err) @@ -456,7 +456,7 @@ type AuditLogRecordable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAdministrativeUnits()([]string) GetAuditData()(AuditDataable) - GetAuditLogRecordType()(*AuditLogRecordType) + GetAuditLogRecordType()(*AuditLogRecord_auditLogRecordType) GetClientIp()(*string) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetObjectId()(*string) @@ -465,10 +465,10 @@ type AuditLogRecordable interface { GetService()(*string) GetUserId()(*string) GetUserPrincipalName()(*string) - GetUserType()(*AuditLogUserType) + GetUserType()(*AuditLogRecord_userType) SetAdministrativeUnits(value []string)() SetAuditData(value AuditDataable)() - SetAuditLogRecordType(value *AuditLogRecordType)() + SetAuditLogRecordType(value *AuditLogRecord_auditLogRecordType)() SetClientIp(value *string)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetObjectId(value *string)() @@ -477,5 +477,5 @@ type AuditLogRecordable interface { SetService(value *string)() SetUserId(value *string)() SetUserPrincipalName(value *string)() - SetUserType(value *AuditLogUserType)() + SetUserType(value *AuditLogRecord_userType)() } diff --git a/models/security/audit_log_record_audit_log_record_type.go b/models/security/audit_log_record_audit_log_record_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/audit_log_record_type.go b/models/security/audit_log_record_type.go deleted file mode 100644 index 34db9e37edd..00000000000 --- a/models/security/audit_log_record_type.go +++ /dev/null @@ -1,790 +0,0 @@ -package security -import ( - "errors" -) -// -type AuditLogRecordType int - -const ( - EXCHANGEADMIN_AUDITLOGRECORDTYPE AuditLogRecordType = iota - EXCHANGEITEM_AUDITLOGRECORDTYPE - EXCHANGEITEMGROUP_AUDITLOGRECORDTYPE - SHAREPOINT_AUDITLOGRECORDTYPE - SYNTHETICPROBE_AUDITLOGRECORDTYPE - SHAREPOINTFILEOPERATION_AUDITLOGRECORDTYPE - ONEDRIVE_AUDITLOGRECORDTYPE - AZUREACTIVEDIRECTORY_AUDITLOGRECORDTYPE - AZUREACTIVEDIRECTORYACCOUNTLOGON_AUDITLOGRECORDTYPE - DATACENTERSECURITYCMDLET_AUDITLOGRECORDTYPE - COMPLIANCEDLPSHAREPOINT_AUDITLOGRECORDTYPE - SWAY_AUDITLOGRECORDTYPE - COMPLIANCEDLPEXCHANGE_AUDITLOGRECORDTYPE - SHAREPOINTSHARINGOPERATION_AUDITLOGRECORDTYPE - AZUREACTIVEDIRECTORYSTSLOGON_AUDITLOGRECORDTYPE - SKYPEFORBUSINESSPSTNUSAGE_AUDITLOGRECORDTYPE - SKYPEFORBUSINESSUSERSBLOCKED_AUDITLOGRECORDTYPE - SECURITYCOMPLIANCECENTEREOPCMDLET_AUDITLOGRECORDTYPE - EXCHANGEAGGREGATEDOPERATION_AUDITLOGRECORDTYPE - POWERBIAUDIT_AUDITLOGRECORDTYPE - CRM_AUDITLOGRECORDTYPE - YAMMER_AUDITLOGRECORDTYPE - SKYPEFORBUSINESSCMDLETS_AUDITLOGRECORDTYPE - DISCOVERY_AUDITLOGRECORDTYPE - MICROSOFTTEAMS_AUDITLOGRECORDTYPE - THREATINTELLIGENCE_AUDITLOGRECORDTYPE - MAILSUBMISSION_AUDITLOGRECORDTYPE - MICROSOFTFLOW_AUDITLOGRECORDTYPE - AED_AUDITLOGRECORDTYPE - MICROSOFTSTREAM_AUDITLOGRECORDTYPE - COMPLIANCEDLPSHAREPOINTCLASSIFICATION_AUDITLOGRECORDTYPE - THREATFINDER_AUDITLOGRECORDTYPE - PROJECT_AUDITLOGRECORDTYPE - SHAREPOINTLISTOPERATION_AUDITLOGRECORDTYPE - SHAREPOINTCOMMENTOPERATION_AUDITLOGRECORDTYPE - DATAGOVERNANCE_AUDITLOGRECORDTYPE - KAIZALA_AUDITLOGRECORDTYPE - SECURITYCOMPLIANCEALERTS_AUDITLOGRECORDTYPE - THREATINTELLIGENCEURL_AUDITLOGRECORDTYPE - SECURITYCOMPLIANCEINSIGHTS_AUDITLOGRECORDTYPE - MIPLABEL_AUDITLOGRECORDTYPE - WORKPLACEANALYTICS_AUDITLOGRECORDTYPE - POWERAPPSAPP_AUDITLOGRECORDTYPE - POWERAPPSPLAN_AUDITLOGRECORDTYPE - THREATINTELLIGENCEATPCONTENT_AUDITLOGRECORDTYPE - LABELCONTENTEXPLORER_AUDITLOGRECORDTYPE - TEAMSHEALTHCARE_AUDITLOGRECORDTYPE - EXCHANGEITEMAGGREGATED_AUDITLOGRECORDTYPE - HYGIENEEVENT_AUDITLOGRECORDTYPE - DATAINSIGHTSRESTAPIAUDIT_AUDITLOGRECORDTYPE - INFORMATIONBARRIERPOLICYAPPLICATION_AUDITLOGRECORDTYPE - SHAREPOINTLISTITEMOPERATION_AUDITLOGRECORDTYPE - SHAREPOINTCONTENTTYPEOPERATION_AUDITLOGRECORDTYPE - SHAREPOINTFIELDOPERATION_AUDITLOGRECORDTYPE - MICROSOFTTEAMSADMIN_AUDITLOGRECORDTYPE - HRSIGNAL_AUDITLOGRECORDTYPE - MICROSOFTTEAMSDEVICE_AUDITLOGRECORDTYPE - MICROSOFTTEAMSANALYTICS_AUDITLOGRECORDTYPE - INFORMATIONWORKERPROTECTION_AUDITLOGRECORDTYPE - CAMPAIGN_AUDITLOGRECORDTYPE - DLPENDPOINT_AUDITLOGRECORDTYPE - AIRINVESTIGATION_AUDITLOGRECORDTYPE - QUARANTINE_AUDITLOGRECORDTYPE - MICROSOFTFORMS_AUDITLOGRECORDTYPE - APPLICATIONAUDIT_AUDITLOGRECORDTYPE - COMPLIANCESUPERVISIONEXCHANGE_AUDITLOGRECORDTYPE - CUSTOMERKEYSERVICEENCRYPTION_AUDITLOGRECORDTYPE - OFFICENATIVE_AUDITLOGRECORDTYPE - MIPAUTOLABELSHAREPOINTITEM_AUDITLOGRECORDTYPE - MIPAUTOLABELSHAREPOINTPOLICYLOCATION_AUDITLOGRECORDTYPE - MICROSOFTTEAMSSHIFTS_AUDITLOGRECORDTYPE - SECURESCORE_AUDITLOGRECORDTYPE - MIPAUTOLABELEXCHANGEITEM_AUDITLOGRECORDTYPE - CORTANABRIEFING_AUDITLOGRECORDTYPE - SEARCH_AUDITLOGRECORDTYPE - WDATPALERTS_AUDITLOGRECORDTYPE - POWERPLATFORMADMINDLP_AUDITLOGRECORDTYPE - POWERPLATFORMADMINENVIRONMENT_AUDITLOGRECORDTYPE - MDATPAUDIT_AUDITLOGRECORDTYPE - SENSITIVITYLABELPOLICYMATCH_AUDITLOGRECORDTYPE - SENSITIVITYLABELACTION_AUDITLOGRECORDTYPE - SENSITIVITYLABELEDFILEACTION_AUDITLOGRECORDTYPE - ATTACKSIM_AUDITLOGRECORDTYPE - AIRMANUALINVESTIGATION_AUDITLOGRECORDTYPE - SECURITYCOMPLIANCERBAC_AUDITLOGRECORDTYPE - USERTRAINING_AUDITLOGRECORDTYPE - AIRADMINACTIONINVESTIGATION_AUDITLOGRECORDTYPE - MSTIC_AUDITLOGRECORDTYPE - PHYSICALBADGINGSIGNAL_AUDITLOGRECORDTYPE - TEAMSEASYAPPROVALS_AUDITLOGRECORDTYPE - AIPDISCOVER_AUDITLOGRECORDTYPE - AIPSENSITIVITYLABELACTION_AUDITLOGRECORDTYPE - AIPPROTECTIONACTION_AUDITLOGRECORDTYPE - AIPFILEDELETED_AUDITLOGRECORDTYPE - AIPHEARTBEAT_AUDITLOGRECORDTYPE - MCASALERTS_AUDITLOGRECORDTYPE - ONPREMISESFILESHARESCANNERDLP_AUDITLOGRECORDTYPE - ONPREMISESSHAREPOINTSCANNERDLP_AUDITLOGRECORDTYPE - EXCHANGESEARCH_AUDITLOGRECORDTYPE - SHAREPOINTSEARCH_AUDITLOGRECORDTYPE - PRIVACYDATAMINIMIZATION_AUDITLOGRECORDTYPE - LABELANALYTICSAGGREGATE_AUDITLOGRECORDTYPE - MYANALYTICSSETTINGS_AUDITLOGRECORDTYPE - SECURITYCOMPLIANCEUSERCHANGE_AUDITLOGRECORDTYPE - COMPLIANCEDLPEXCHANGECLASSIFICATION_AUDITLOGRECORDTYPE - COMPLIANCEDLPENDPOINT_AUDITLOGRECORDTYPE - MIPEXACTDATAMATCH_AUDITLOGRECORDTYPE - MSDERESPONSEACTIONS_AUDITLOGRECORDTYPE - MSDEGENERALSETTINGS_AUDITLOGRECORDTYPE - MSDEINDICATORSSETTINGS_AUDITLOGRECORDTYPE - MS365DCUSTOMDETECTION_AUDITLOGRECORDTYPE - MSDEROLESSETTINGS_AUDITLOGRECORDTYPE - MAPGALERTS_AUDITLOGRECORDTYPE - MAPGPOLICY_AUDITLOGRECORDTYPE - MAPGREMEDIATION_AUDITLOGRECORDTYPE - PRIVACYREMEDIATIONACTION_AUDITLOGRECORDTYPE - PRIVACYDIGESTEMAIL_AUDITLOGRECORDTYPE - MIPAUTOLABELSIMULATIONPROGRESS_AUDITLOGRECORDTYPE - MIPAUTOLABELSIMULATIONCOMPLETION_AUDITLOGRECORDTYPE - MIPAUTOLABELPROGRESSFEEDBACK_AUDITLOGRECORDTYPE - DLPSENSITIVEINFORMATIONTYPE_AUDITLOGRECORDTYPE - MIPAUTOLABELSIMULATIONSTATISTICS_AUDITLOGRECORDTYPE - LARGECONTENTMETADATA_AUDITLOGRECORDTYPE - MICROSOFT365GROUP_AUDITLOGRECORDTYPE - CDPMLINFERENCINGRESULT_AUDITLOGRECORDTYPE - FILTERINGMAILMETADATA_AUDITLOGRECORDTYPE - CDPCLASSIFICATIONMAILITEM_AUDITLOGRECORDTYPE - CDPCLASSIFICATIONDOCUMENT_AUDITLOGRECORDTYPE - OFFICESCRIPTSRUNACTION_AUDITLOGRECORDTYPE - FILTERINGPOSTMAILDELIVERYACTION_AUDITLOGRECORDTYPE - CDPUNIFIEDFEEDBACK_AUDITLOGRECORDTYPE - TENANTALLOWBLOCKLIST_AUDITLOGRECORDTYPE - CONSUMPTIONRESOURCE_AUDITLOGRECORDTYPE - HEALTHCARESIGNAL_AUDITLOGRECORDTYPE - DLPIMPORTRESULT_AUDITLOGRECORDTYPE - CDPCOMPLIANCEPOLICYEXECUTION_AUDITLOGRECORDTYPE - MULTISTAGEDISPOSITION_AUDITLOGRECORDTYPE - PRIVACYDATAMATCH_AUDITLOGRECORDTYPE - FILTERINGDOCMETADATA_AUDITLOGRECORDTYPE - FILTERINGEMAILFEATURES_AUDITLOGRECORDTYPE - POWERBIDLP_AUDITLOGRECORDTYPE - FILTERINGURLINFO_AUDITLOGRECORDTYPE - FILTERINGATTACHMENTINFO_AUDITLOGRECORDTYPE - COREREPORTINGSETTINGS_AUDITLOGRECORDTYPE - COMPLIANCECONNECTOR_AUDITLOGRECORDTYPE - POWERPLATFORMLOCKBOXRESOURCEACCESSREQUEST_AUDITLOGRECORDTYPE - POWERPLATFORMLOCKBOXRESOURCECOMMAND_AUDITLOGRECORDTYPE - CDPPREDICTIVECODINGLABEL_AUDITLOGRECORDTYPE - CDPCOMPLIANCEPOLICYUSERFEEDBACK_AUDITLOGRECORDTYPE - WEBPAGEACTIVITYENDPOINT_AUDITLOGRECORDTYPE - OMEPORTAL_AUDITLOGRECORDTYPE - CMIMPROVEMENTACTIONCHANGE_AUDITLOGRECORDTYPE - FILTERINGURLCLICK_AUDITLOGRECORDTYPE - MIPLABELANALYTICSAUDITRECORD_AUDITLOGRECORDTYPE - FILTERINGENTITYEVENT_AUDITLOGRECORDTYPE - FILTERINGRULEHITS_AUDITLOGRECORDTYPE - FILTERINGMAILSUBMISSION_AUDITLOGRECORDTYPE - LABELEXPLORER_AUDITLOGRECORDTYPE - MICROSOFTMANAGEDSERVICEPLATFORM_AUDITLOGRECORDTYPE - POWERPLATFORMSERVICEACTIVITY_AUDITLOGRECORDTYPE - SCOREPLATFORMGENERICAUDITRECORD_AUDITLOGRECORDTYPE - FILTERINGTIMETRAVELDOCMETADATA_AUDITLOGRECORDTYPE - ALERT_AUDITLOGRECORDTYPE - ALERTSTATUS_AUDITLOGRECORDTYPE - ALERTINCIDENT_AUDITLOGRECORDTYPE - INCIDENTSTATUS_AUDITLOGRECORDTYPE - CASEESCAPED_AUDITLOGRECORDTYPE - CASEINVESTIGATION_AUDITLOGRECORDTYPE - RECORDSMANAGEMENT_AUDITLOGRECORDTYPE - PRIVACYREMEDIATION_AUDITLOGRECORDTYPE - DATASHAREOPERATION_AUDITLOGRECORDTYPE - CDPDLPSENSITIVE_AUDITLOGRECORDTYPE - EHRCONNECTOR_AUDITLOGRECORDTYPE - FILTERINGMAILGRADINGRESULT_AUDITLOGRECORDTYPE - PUBLICFOLDER_AUDITLOGRECORDTYPE - PRIVACYTENANTAUDITHISTORYRECORD_AUDITLOGRECORDTYPE - AIPSCANNERDISCOVEREVENT_AUDITLOGRECORDTYPE - EDUDATALAKEDOWNLOADOPERATION_AUDITLOGRECORDTYPE - M365COMPLIANCECONNECTOR_AUDITLOGRECORDTYPE - MICROSOFTGRAPHDATACONNECTOPERATION_AUDITLOGRECORDTYPE - MICROSOFTPURVIEW_AUDITLOGRECORDTYPE - FILTERINGEMAILCONTENTFEATURES_AUDITLOGRECORDTYPE - POWERPAGESSITE_AUDITLOGRECORDTYPE - POWERAPPSRESOURCE_AUDITLOGRECORDTYPE - PLANNERPLAN_AUDITLOGRECORDTYPE - PLANNERCOPYPLAN_AUDITLOGRECORDTYPE - PLANNERTASK_AUDITLOGRECORDTYPE - PLANNERROSTER_AUDITLOGRECORDTYPE - PLANNERPLANLIST_AUDITLOGRECORDTYPE - PLANNERTASKLIST_AUDITLOGRECORDTYPE - PLANNERTENANTSETTINGS_AUDITLOGRECORDTYPE - PROJECTFORTHEWEBPROJECT_AUDITLOGRECORDTYPE - PROJECTFORTHEWEBTASK_AUDITLOGRECORDTYPE - PROJECTFORTHEWEBROADMAP_AUDITLOGRECORDTYPE - PROJECTFORTHEWEBROADMAPITEM_AUDITLOGRECORDTYPE - PROJECTFORTHEWEBPROJECTSETTINGS_AUDITLOGRECORDTYPE - PROJECTFORTHEWEBROADMAPSETTINGS_AUDITLOGRECORDTYPE - QUARANTINEMETADATA_AUDITLOGRECORDTYPE - MICROSOFTTODOAUDIT_AUDITLOGRECORDTYPE - TIMETRAVELFILTERINGDOCMETADATA_AUDITLOGRECORDTYPE - TEAMSQUARANTINEMETADATA_AUDITLOGRECORDTYPE - SHAREPOINTAPPPERMISSIONOPERATION_AUDITLOGRECORDTYPE - MICROSOFTTEAMSSENSITIVITYLABELACTION_AUDITLOGRECORDTYPE - FILTERINGTEAMSMETADATA_AUDITLOGRECORDTYPE - FILTERINGTEAMSURLINFO_AUDITLOGRECORDTYPE - FILTERINGTEAMSPOSTDELIVERYACTION_AUDITLOGRECORDTYPE - MDCASSESSMENTS_AUDITLOGRECORDTYPE - MDCREGULATORYCOMPLIANCESTANDARDS_AUDITLOGRECORDTYPE - MDCREGULATORYCOMPLIANCECONTROLS_AUDITLOGRECORDTYPE - MDCREGULATORYCOMPLIANCEASSESSMENTS_AUDITLOGRECORDTYPE - MDCSECURITYCONNECTORS_AUDITLOGRECORDTYPE - MDADATASECURITYSIGNAL_AUDITLOGRECORDTYPE - VIVAGOALS_AUDITLOGRECORDTYPE - FILTERINGRUNTIMEINFO_AUDITLOGRECORDTYPE - ATTACKSIMADMIN_AUDITLOGRECORDTYPE - MICROSOFTGRAPHDATACONNECTCONSENT_AUDITLOGRECORDTYPE - FILTERINGATPDETONATIONINFO_AUDITLOGRECORDTYPE - PRIVACYPORTAL_AUDITLOGRECORDTYPE - MANAGEDTENANTS_AUDITLOGRECORDTYPE - UNIFIEDSIMULATIONMATCHEDITEM_AUDITLOGRECORDTYPE - UNIFIEDSIMULATIONSUMMARY_AUDITLOGRECORDTYPE - UPDATEQUARANTINEMETADATA_AUDITLOGRECORDTYPE - MS365DSUPPRESSIONRULE_AUDITLOGRECORDTYPE - PURVIEWDATAMAPOPERATION_AUDITLOGRECORDTYPE - FILTERINGURLPOSTCLICKACTION_AUDITLOGRECORDTYPE - IRMUSERDEFINEDDETECTIONSIGNAL_AUDITLOGRECORDTYPE - TEAMSUPDATES_AUDITLOGRECORDTYPE - PLANNERROSTERSENSITIVITYLABEL_AUDITLOGRECORDTYPE - MS365DINCIDENT_AUDITLOGRECORDTYPE - FILTERINGDELISTINGMETADATA_AUDITLOGRECORDTYPE - COMPLIANCEDLPSHAREPOINTCLASSIFICATIONEXTENDED_AUDITLOGRECORDTYPE - MICROSOFTDEFENDERFORIDENTITYAUDIT_AUDITLOGRECORDTYPE - SUPERVISORYREVIEWDAYXINSIGHT_AUDITLOGRECORDTYPE - DEFENDEREXPERTSFORXDRADMIN_AUDITLOGRECORDTYPE - CDPEDGEBLOCKEDMESSAGE_AUDITLOGRECORDTYPE - HOSTEDRPA_AUDITLOGRECORDTYPE - CDPCONTENTEXPLORERAGGREGATERECORD_AUDITLOGRECORDTYPE - CDPHYGIENEATTACHMENTINFO_AUDITLOGRECORDTYPE - CDPHYGIENESUMMARY_AUDITLOGRECORDTYPE - CDPPOSTMAILDELIVERYACTION_AUDITLOGRECORDTYPE - CDPEMAILFEATURES_AUDITLOGRECORDTYPE - CDPHYGIENEURLINFO_AUDITLOGRECORDTYPE - CDPURLCLICK_AUDITLOGRECORDTYPE - CDPPACKAGEMANAGERHYGIENEEVENT_AUDITLOGRECORDTYPE - FILTERINGDOCSCAN_AUDITLOGRECORDTYPE - TIMETRAVELFILTERINGDOCSCAN_AUDITLOGRECORDTYPE - MAPGONBOARD_AUDITLOGRECORDTYPE - VFAMCREATEPOLICY_AUDITLOGRECORDTYPE - VFAMUPDATEPOLICY_AUDITLOGRECORDTYPE - VFAMDELETEPOLICY_AUDITLOGRECORDTYPE - M365DAAD_AUDITLOGRECORDTYPE - CDPCOLDCRAWLSTATUS_AUDITLOGRECORDTYPE - UNKNOWNFUTUREVALUE_AUDITLOGRECORDTYPE -) - -func (i AuditLogRecordType) String() string { - return []string{"ExchangeAdmin", "ExchangeItem", "ExchangeItemGroup", "SharePoint", "SyntheticProbe", "SharePointFileOperation", "OneDrive", "AzureActiveDirectory", "AzureActiveDirectoryAccountLogon", "DataCenterSecurityCmdlet", "ComplianceDLPSharePoint", "Sway", "ComplianceDLPExchange", "SharePointSharingOperation", "AzureActiveDirectoryStsLogon", "SkypeForBusinessPSTNUsage", "SkypeForBusinessUsersBlocked", "SecurityComplianceCenterEOPCmdlet", "ExchangeAggregatedOperation", "PowerBIAudit", "CRM", "Yammer", "SkypeForBusinessCmdlets", "Discovery", "MicrosoftTeams", "ThreatIntelligence", "MailSubmission", "MicrosoftFlow", "AeD", "MicrosoftStream", "ComplianceDLPSharePointClassification", "ThreatFinder", "Project", "SharePointListOperation", "SharePointCommentOperation", "DataGovernance", "Kaizala", "SecurityComplianceAlerts", "ThreatIntelligenceUrl", "SecurityComplianceInsights", "MIPLabel", "WorkplaceAnalytics", "PowerAppsApp", "PowerAppsPlan", "ThreatIntelligenceAtpContent", "LabelContentExplorer", "TeamsHealthcare", "ExchangeItemAggregated", "HygieneEvent", "DataInsightsRestApiAudit", "InformationBarrierPolicyApplication", "SharePointListItemOperation", "SharePointContentTypeOperation", "SharePointFieldOperation", "MicrosoftTeamsAdmin", "HRSignal", "MicrosoftTeamsDevice", "MicrosoftTeamsAnalytics", "InformationWorkerProtection", "Campaign", "DLPEndpoint", "AirInvestigation", "Quarantine", "MicrosoftForms", "ApplicationAudit", "ComplianceSupervisionExchange", "CustomerKeyServiceEncryption", "OfficeNative", "MipAutoLabelSharePointItem", "MipAutoLabelSharePointPolicyLocation", "MicrosoftTeamsShifts", "SecureScore", "MipAutoLabelExchangeItem", "CortanaBriefing", "Search", "WDATPAlerts", "PowerPlatformAdminDlp", "PowerPlatformAdminEnvironment", "MDATPAudit", "SensitivityLabelPolicyMatch", "SensitivityLabelAction", "SensitivityLabeledFileAction", "AttackSim", "AirManualInvestigation", "SecurityComplianceRBAC", "UserTraining", "AirAdminActionInvestigation", "MSTIC", "PhysicalBadgingSignal", "TeamsEasyApprovals", "AipDiscover", "AipSensitivityLabelAction", "AipProtectionAction", "AipFileDeleted", "AipHeartBeat", "MCASAlerts", "OnPremisesFileShareScannerDlp", "OnPremisesSharePointScannerDlp", "ExchangeSearch", "SharePointSearch", "PrivacyDataMinimization", "LabelAnalyticsAggregate", "MyAnalyticsSettings", "SecurityComplianceUserChange", "ComplianceDLPExchangeClassification", "ComplianceDLPEndpoint", "MipExactDataMatch", "MSDEResponseActions", "MSDEGeneralSettings", "MSDEIndicatorsSettings", "MS365DCustomDetection", "MSDERolesSettings", "MAPGAlerts", "MAPGPolicy", "MAPGRemediation", "PrivacyRemediationAction", "PrivacyDigestEmail", "MipAutoLabelSimulationProgress", "MipAutoLabelSimulationCompletion", "MipAutoLabelProgressFeedback", "DlpSensitiveInformationType", "MipAutoLabelSimulationStatistics", "LargeContentMetadata", "Microsoft365Group", "CDPMlInferencingResult", "FilteringMailMetadata", "CDPClassificationMailItem", "CDPClassificationDocument", "OfficeScriptsRunAction", "FilteringPostMailDeliveryAction", "CDPUnifiedFeedback", "TenantAllowBlockList", "ConsumptionResource", "HealthcareSignal", "DlpImportResult", "CDPCompliancePolicyExecution", "MultiStageDisposition", "PrivacyDataMatch", "FilteringDocMetadata", "FilteringEmailFeatures", "PowerBIDlp", "FilteringUrlInfo", "FilteringAttachmentInfo", "CoreReportingSettings", "ComplianceConnector", "PowerPlatformLockboxResourceAccessRequest", "PowerPlatformLockboxResourceCommand", "CDPPredictiveCodingLabel", "CDPCompliancePolicyUserFeedback", "WebpageActivityEndpoint", "OMEPortal", "CMImprovementActionChange", "FilteringUrlClick", "MipLabelAnalyticsAuditRecord", "FilteringEntityEvent", "FilteringRuleHits", "FilteringMailSubmission", "LabelExplorer", "MicrosoftManagedServicePlatform", "PowerPlatformServiceActivity", "ScorePlatformGenericAuditRecord", "FilteringTimeTravelDocMetadata", "Alert", "AlertStatus", "AlertIncident", "IncidentStatus", "Case", "CaseInvestigation", "RecordsManagement", "PrivacyRemediation", "DataShareOperation", "CdpDlpSensitive", "EHRConnector", "FilteringMailGradingResult", "PublicFolder", "PrivacyTenantAuditHistoryRecord", "AipScannerDiscoverEvent", "EduDataLakeDownloadOperation", "M365ComplianceConnector", "MicrosoftGraphDataConnectOperation", "MicrosoftPurview", "FilteringEmailContentFeatures", "PowerPagesSite", "PowerAppsResource", "PlannerPlan", "PlannerCopyPlan", "PlannerTask", "PlannerRoster", "PlannerPlanList", "PlannerTaskList", "PlannerTenantSettings", "ProjectForTheWebProject", "ProjectForTheWebTask", "ProjectForTheWebRoadmap", "ProjectForTheWebRoadmapItem", "ProjectForTheWebProjectSettings", "ProjectForTheWebRoadmapSettings", "QuarantineMetadata", "MicrosoftTodoAudit", "TimeTravelFilteringDocMetadata", "TeamsQuarantineMetadata", "SharePointAppPermissionOperation", "MicrosoftTeamsSensitivityLabelAction", "FilteringTeamsMetadata", "FilteringTeamsUrlInfo", "FilteringTeamsPostDeliveryAction", "MDCAssessments", "MDCRegulatoryComplianceStandards", "MDCRegulatoryComplianceControls", "MDCRegulatoryComplianceAssessments", "MDCSecurityConnectors", "MDADataSecuritySignal", "VivaGoals", "FilteringRuntimeInfo", "AttackSimAdmin", "MicrosoftGraphDataConnectConsent", "FilteringAtpDetonationInfo", "PrivacyPortal", "ManagedTenants", "UnifiedSimulationMatchedItem", "UnifiedSimulationSummary", "UpdateQuarantineMetadata", "MS365DSuppressionRule", "PurviewDataMapOperation", "FilteringUrlPostClickAction", "IrmUserDefinedDetectionSignal", "TeamsUpdates", "PlannerRosterSensitivityLabel", "MS365DIncident", "FilteringDelistingMetadata", "ComplianceDLPSharePointClassificationExtended", "MicrosoftDefenderForIdentityAudit", "SupervisoryReviewDayXInsight", "DefenderExpertsforXDRAdmin", "CDPEdgeBlockedMessage", "HostedRpa", "CdpContentExplorerAggregateRecord", "CDPHygieneAttachmentInfo", "CDPHygieneSummary", "CDPPostMailDeliveryAction", "CDPEmailFeatures", "CDPHygieneUrlInfo", "CDPUrlClick", "CDPPackageManagerHygieneEvent", "FilteringDocScan", "TimeTravelFilteringDocScan", "MAPGOnboard", "VfamCreatePolicy", "VfamUpdatePolicy", "VfamDeletePolicy", "M365DAAD", "CdpColdCrawlStatus", "unknownFutureValue"}[i] -} -func ParseAuditLogRecordType(v string) (any, error) { - result := EXCHANGEADMIN_AUDITLOGRECORDTYPE - switch v { - case "ExchangeAdmin": - result = EXCHANGEADMIN_AUDITLOGRECORDTYPE - case "ExchangeItem": - result = EXCHANGEITEM_AUDITLOGRECORDTYPE - case "ExchangeItemGroup": - result = EXCHANGEITEMGROUP_AUDITLOGRECORDTYPE - case "SharePoint": - result = SHAREPOINT_AUDITLOGRECORDTYPE - case "SyntheticProbe": - result = SYNTHETICPROBE_AUDITLOGRECORDTYPE - case "SharePointFileOperation": - result = SHAREPOINTFILEOPERATION_AUDITLOGRECORDTYPE - case "OneDrive": - result = ONEDRIVE_AUDITLOGRECORDTYPE - case "AzureActiveDirectory": - result = AZUREACTIVEDIRECTORY_AUDITLOGRECORDTYPE - case "AzureActiveDirectoryAccountLogon": - result = AZUREACTIVEDIRECTORYACCOUNTLOGON_AUDITLOGRECORDTYPE - case "DataCenterSecurityCmdlet": - result = DATACENTERSECURITYCMDLET_AUDITLOGRECORDTYPE - case "ComplianceDLPSharePoint": - result = COMPLIANCEDLPSHAREPOINT_AUDITLOGRECORDTYPE - case "Sway": - result = SWAY_AUDITLOGRECORDTYPE - case "ComplianceDLPExchange": - result = COMPLIANCEDLPEXCHANGE_AUDITLOGRECORDTYPE - case "SharePointSharingOperation": - result = SHAREPOINTSHARINGOPERATION_AUDITLOGRECORDTYPE - case "AzureActiveDirectoryStsLogon": - result = AZUREACTIVEDIRECTORYSTSLOGON_AUDITLOGRECORDTYPE - case "SkypeForBusinessPSTNUsage": - result = SKYPEFORBUSINESSPSTNUSAGE_AUDITLOGRECORDTYPE - case "SkypeForBusinessUsersBlocked": - result = SKYPEFORBUSINESSUSERSBLOCKED_AUDITLOGRECORDTYPE - case "SecurityComplianceCenterEOPCmdlet": - result = SECURITYCOMPLIANCECENTEREOPCMDLET_AUDITLOGRECORDTYPE - case "ExchangeAggregatedOperation": - result = EXCHANGEAGGREGATEDOPERATION_AUDITLOGRECORDTYPE - case "PowerBIAudit": - result = POWERBIAUDIT_AUDITLOGRECORDTYPE - case "CRM": - result = CRM_AUDITLOGRECORDTYPE - case "Yammer": - result = YAMMER_AUDITLOGRECORDTYPE - case "SkypeForBusinessCmdlets": - result = SKYPEFORBUSINESSCMDLETS_AUDITLOGRECORDTYPE - case "Discovery": - result = DISCOVERY_AUDITLOGRECORDTYPE - case "MicrosoftTeams": - result = MICROSOFTTEAMS_AUDITLOGRECORDTYPE - case "ThreatIntelligence": - result = THREATINTELLIGENCE_AUDITLOGRECORDTYPE - case "MailSubmission": - result = MAILSUBMISSION_AUDITLOGRECORDTYPE - case "MicrosoftFlow": - result = MICROSOFTFLOW_AUDITLOGRECORDTYPE - case "AeD": - result = AED_AUDITLOGRECORDTYPE - case "MicrosoftStream": - result = MICROSOFTSTREAM_AUDITLOGRECORDTYPE - case "ComplianceDLPSharePointClassification": - result = COMPLIANCEDLPSHAREPOINTCLASSIFICATION_AUDITLOGRECORDTYPE - case "ThreatFinder": - result = THREATFINDER_AUDITLOGRECORDTYPE - case "Project": - result = PROJECT_AUDITLOGRECORDTYPE - case "SharePointListOperation": - result = SHAREPOINTLISTOPERATION_AUDITLOGRECORDTYPE - case "SharePointCommentOperation": - result = SHAREPOINTCOMMENTOPERATION_AUDITLOGRECORDTYPE - case "DataGovernance": - result = DATAGOVERNANCE_AUDITLOGRECORDTYPE - case "Kaizala": - result = KAIZALA_AUDITLOGRECORDTYPE - case "SecurityComplianceAlerts": - result = SECURITYCOMPLIANCEALERTS_AUDITLOGRECORDTYPE - case "ThreatIntelligenceUrl": - result = THREATINTELLIGENCEURL_AUDITLOGRECORDTYPE - case "SecurityComplianceInsights": - result = SECURITYCOMPLIANCEINSIGHTS_AUDITLOGRECORDTYPE - case "MIPLabel": - result = MIPLABEL_AUDITLOGRECORDTYPE - case "WorkplaceAnalytics": - result = WORKPLACEANALYTICS_AUDITLOGRECORDTYPE - case "PowerAppsApp": - result = POWERAPPSAPP_AUDITLOGRECORDTYPE - case "PowerAppsPlan": - result = POWERAPPSPLAN_AUDITLOGRECORDTYPE - case "ThreatIntelligenceAtpContent": - result = THREATINTELLIGENCEATPCONTENT_AUDITLOGRECORDTYPE - case "LabelContentExplorer": - result = LABELCONTENTEXPLORER_AUDITLOGRECORDTYPE - case "TeamsHealthcare": - result = TEAMSHEALTHCARE_AUDITLOGRECORDTYPE - case "ExchangeItemAggregated": - result = EXCHANGEITEMAGGREGATED_AUDITLOGRECORDTYPE - case "HygieneEvent": - result = HYGIENEEVENT_AUDITLOGRECORDTYPE - case "DataInsightsRestApiAudit": - result = DATAINSIGHTSRESTAPIAUDIT_AUDITLOGRECORDTYPE - case "InformationBarrierPolicyApplication": - result = INFORMATIONBARRIERPOLICYAPPLICATION_AUDITLOGRECORDTYPE - case "SharePointListItemOperation": - result = SHAREPOINTLISTITEMOPERATION_AUDITLOGRECORDTYPE - case "SharePointContentTypeOperation": - result = SHAREPOINTCONTENTTYPEOPERATION_AUDITLOGRECORDTYPE - case "SharePointFieldOperation": - result = SHAREPOINTFIELDOPERATION_AUDITLOGRECORDTYPE - case "MicrosoftTeamsAdmin": - result = MICROSOFTTEAMSADMIN_AUDITLOGRECORDTYPE - case "HRSignal": - result = HRSIGNAL_AUDITLOGRECORDTYPE - case "MicrosoftTeamsDevice": - result = MICROSOFTTEAMSDEVICE_AUDITLOGRECORDTYPE - case "MicrosoftTeamsAnalytics": - result = MICROSOFTTEAMSANALYTICS_AUDITLOGRECORDTYPE - case "InformationWorkerProtection": - result = INFORMATIONWORKERPROTECTION_AUDITLOGRECORDTYPE - case "Campaign": - result = CAMPAIGN_AUDITLOGRECORDTYPE - case "DLPEndpoint": - result = DLPENDPOINT_AUDITLOGRECORDTYPE - case "AirInvestigation": - result = AIRINVESTIGATION_AUDITLOGRECORDTYPE - case "Quarantine": - result = QUARANTINE_AUDITLOGRECORDTYPE - case "MicrosoftForms": - result = MICROSOFTFORMS_AUDITLOGRECORDTYPE - case "ApplicationAudit": - result = APPLICATIONAUDIT_AUDITLOGRECORDTYPE - case "ComplianceSupervisionExchange": - result = COMPLIANCESUPERVISIONEXCHANGE_AUDITLOGRECORDTYPE - case "CustomerKeyServiceEncryption": - result = CUSTOMERKEYSERVICEENCRYPTION_AUDITLOGRECORDTYPE - case "OfficeNative": - result = OFFICENATIVE_AUDITLOGRECORDTYPE - case "MipAutoLabelSharePointItem": - result = MIPAUTOLABELSHAREPOINTITEM_AUDITLOGRECORDTYPE - case "MipAutoLabelSharePointPolicyLocation": - result = MIPAUTOLABELSHAREPOINTPOLICYLOCATION_AUDITLOGRECORDTYPE - case "MicrosoftTeamsShifts": - result = MICROSOFTTEAMSSHIFTS_AUDITLOGRECORDTYPE - case "SecureScore": - result = SECURESCORE_AUDITLOGRECORDTYPE - case "MipAutoLabelExchangeItem": - result = MIPAUTOLABELEXCHANGEITEM_AUDITLOGRECORDTYPE - case "CortanaBriefing": - result = CORTANABRIEFING_AUDITLOGRECORDTYPE - case "Search": - result = SEARCH_AUDITLOGRECORDTYPE - case "WDATPAlerts": - result = WDATPALERTS_AUDITLOGRECORDTYPE - case "PowerPlatformAdminDlp": - result = POWERPLATFORMADMINDLP_AUDITLOGRECORDTYPE - case "PowerPlatformAdminEnvironment": - result = POWERPLATFORMADMINENVIRONMENT_AUDITLOGRECORDTYPE - case "MDATPAudit": - result = MDATPAUDIT_AUDITLOGRECORDTYPE - case "SensitivityLabelPolicyMatch": - result = SENSITIVITYLABELPOLICYMATCH_AUDITLOGRECORDTYPE - case "SensitivityLabelAction": - result = SENSITIVITYLABELACTION_AUDITLOGRECORDTYPE - case "SensitivityLabeledFileAction": - result = SENSITIVITYLABELEDFILEACTION_AUDITLOGRECORDTYPE - case "AttackSim": - result = ATTACKSIM_AUDITLOGRECORDTYPE - case "AirManualInvestigation": - result = AIRMANUALINVESTIGATION_AUDITLOGRECORDTYPE - case "SecurityComplianceRBAC": - result = SECURITYCOMPLIANCERBAC_AUDITLOGRECORDTYPE - case "UserTraining": - result = USERTRAINING_AUDITLOGRECORDTYPE - case "AirAdminActionInvestigation": - result = AIRADMINACTIONINVESTIGATION_AUDITLOGRECORDTYPE - case "MSTIC": - result = MSTIC_AUDITLOGRECORDTYPE - case "PhysicalBadgingSignal": - result = PHYSICALBADGINGSIGNAL_AUDITLOGRECORDTYPE - case "TeamsEasyApprovals": - result = TEAMSEASYAPPROVALS_AUDITLOGRECORDTYPE - case "AipDiscover": - result = AIPDISCOVER_AUDITLOGRECORDTYPE - case "AipSensitivityLabelAction": - result = AIPSENSITIVITYLABELACTION_AUDITLOGRECORDTYPE - case "AipProtectionAction": - result = AIPPROTECTIONACTION_AUDITLOGRECORDTYPE - case "AipFileDeleted": - result = AIPFILEDELETED_AUDITLOGRECORDTYPE - case "AipHeartBeat": - result = AIPHEARTBEAT_AUDITLOGRECORDTYPE - case "MCASAlerts": - result = MCASALERTS_AUDITLOGRECORDTYPE - case "OnPremisesFileShareScannerDlp": - result = ONPREMISESFILESHARESCANNERDLP_AUDITLOGRECORDTYPE - case "OnPremisesSharePointScannerDlp": - result = ONPREMISESSHAREPOINTSCANNERDLP_AUDITLOGRECORDTYPE - case "ExchangeSearch": - result = EXCHANGESEARCH_AUDITLOGRECORDTYPE - case "SharePointSearch": - result = SHAREPOINTSEARCH_AUDITLOGRECORDTYPE - case "PrivacyDataMinimization": - result = PRIVACYDATAMINIMIZATION_AUDITLOGRECORDTYPE - case "LabelAnalyticsAggregate": - result = LABELANALYTICSAGGREGATE_AUDITLOGRECORDTYPE - case "MyAnalyticsSettings": - result = MYANALYTICSSETTINGS_AUDITLOGRECORDTYPE - case "SecurityComplianceUserChange": - result = SECURITYCOMPLIANCEUSERCHANGE_AUDITLOGRECORDTYPE - case "ComplianceDLPExchangeClassification": - result = COMPLIANCEDLPEXCHANGECLASSIFICATION_AUDITLOGRECORDTYPE - case "ComplianceDLPEndpoint": - result = COMPLIANCEDLPENDPOINT_AUDITLOGRECORDTYPE - case "MipExactDataMatch": - result = MIPEXACTDATAMATCH_AUDITLOGRECORDTYPE - case "MSDEResponseActions": - result = MSDERESPONSEACTIONS_AUDITLOGRECORDTYPE - case "MSDEGeneralSettings": - result = MSDEGENERALSETTINGS_AUDITLOGRECORDTYPE - case "MSDEIndicatorsSettings": - result = MSDEINDICATORSSETTINGS_AUDITLOGRECORDTYPE - case "MS365DCustomDetection": - result = MS365DCUSTOMDETECTION_AUDITLOGRECORDTYPE - case "MSDERolesSettings": - result = MSDEROLESSETTINGS_AUDITLOGRECORDTYPE - case "MAPGAlerts": - result = MAPGALERTS_AUDITLOGRECORDTYPE - case "MAPGPolicy": - result = MAPGPOLICY_AUDITLOGRECORDTYPE - case "MAPGRemediation": - result = MAPGREMEDIATION_AUDITLOGRECORDTYPE - case "PrivacyRemediationAction": - result = PRIVACYREMEDIATIONACTION_AUDITLOGRECORDTYPE - case "PrivacyDigestEmail": - result = PRIVACYDIGESTEMAIL_AUDITLOGRECORDTYPE - case "MipAutoLabelSimulationProgress": - result = MIPAUTOLABELSIMULATIONPROGRESS_AUDITLOGRECORDTYPE - case "MipAutoLabelSimulationCompletion": - result = MIPAUTOLABELSIMULATIONCOMPLETION_AUDITLOGRECORDTYPE - case "MipAutoLabelProgressFeedback": - result = MIPAUTOLABELPROGRESSFEEDBACK_AUDITLOGRECORDTYPE - case "DlpSensitiveInformationType": - result = DLPSENSITIVEINFORMATIONTYPE_AUDITLOGRECORDTYPE - case "MipAutoLabelSimulationStatistics": - result = MIPAUTOLABELSIMULATIONSTATISTICS_AUDITLOGRECORDTYPE - case "LargeContentMetadata": - result = LARGECONTENTMETADATA_AUDITLOGRECORDTYPE - case "Microsoft365Group": - result = MICROSOFT365GROUP_AUDITLOGRECORDTYPE - case "CDPMlInferencingResult": - result = CDPMLINFERENCINGRESULT_AUDITLOGRECORDTYPE - case "FilteringMailMetadata": - result = FILTERINGMAILMETADATA_AUDITLOGRECORDTYPE - case "CDPClassificationMailItem": - result = CDPCLASSIFICATIONMAILITEM_AUDITLOGRECORDTYPE - case "CDPClassificationDocument": - result = CDPCLASSIFICATIONDOCUMENT_AUDITLOGRECORDTYPE - case "OfficeScriptsRunAction": - result = OFFICESCRIPTSRUNACTION_AUDITLOGRECORDTYPE - case "FilteringPostMailDeliveryAction": - result = FILTERINGPOSTMAILDELIVERYACTION_AUDITLOGRECORDTYPE - case "CDPUnifiedFeedback": - result = CDPUNIFIEDFEEDBACK_AUDITLOGRECORDTYPE - case "TenantAllowBlockList": - result = TENANTALLOWBLOCKLIST_AUDITLOGRECORDTYPE - case "ConsumptionResource": - result = CONSUMPTIONRESOURCE_AUDITLOGRECORDTYPE - case "HealthcareSignal": - result = HEALTHCARESIGNAL_AUDITLOGRECORDTYPE - case "DlpImportResult": - result = DLPIMPORTRESULT_AUDITLOGRECORDTYPE - case "CDPCompliancePolicyExecution": - result = CDPCOMPLIANCEPOLICYEXECUTION_AUDITLOGRECORDTYPE - case "MultiStageDisposition": - result = MULTISTAGEDISPOSITION_AUDITLOGRECORDTYPE - case "PrivacyDataMatch": - result = PRIVACYDATAMATCH_AUDITLOGRECORDTYPE - case "FilteringDocMetadata": - result = FILTERINGDOCMETADATA_AUDITLOGRECORDTYPE - case "FilteringEmailFeatures": - result = FILTERINGEMAILFEATURES_AUDITLOGRECORDTYPE - case "PowerBIDlp": - result = POWERBIDLP_AUDITLOGRECORDTYPE - case "FilteringUrlInfo": - result = FILTERINGURLINFO_AUDITLOGRECORDTYPE - case "FilteringAttachmentInfo": - result = FILTERINGATTACHMENTINFO_AUDITLOGRECORDTYPE - case "CoreReportingSettings": - result = COREREPORTINGSETTINGS_AUDITLOGRECORDTYPE - case "ComplianceConnector": - result = COMPLIANCECONNECTOR_AUDITLOGRECORDTYPE - case "PowerPlatformLockboxResourceAccessRequest": - result = POWERPLATFORMLOCKBOXRESOURCEACCESSREQUEST_AUDITLOGRECORDTYPE - case "PowerPlatformLockboxResourceCommand": - result = POWERPLATFORMLOCKBOXRESOURCECOMMAND_AUDITLOGRECORDTYPE - case "CDPPredictiveCodingLabel": - result = CDPPREDICTIVECODINGLABEL_AUDITLOGRECORDTYPE - case "CDPCompliancePolicyUserFeedback": - result = CDPCOMPLIANCEPOLICYUSERFEEDBACK_AUDITLOGRECORDTYPE - case "WebpageActivityEndpoint": - result = WEBPAGEACTIVITYENDPOINT_AUDITLOGRECORDTYPE - case "OMEPortal": - result = OMEPORTAL_AUDITLOGRECORDTYPE - case "CMImprovementActionChange": - result = CMIMPROVEMENTACTIONCHANGE_AUDITLOGRECORDTYPE - case "FilteringUrlClick": - result = FILTERINGURLCLICK_AUDITLOGRECORDTYPE - case "MipLabelAnalyticsAuditRecord": - result = MIPLABELANALYTICSAUDITRECORD_AUDITLOGRECORDTYPE - case "FilteringEntityEvent": - result = FILTERINGENTITYEVENT_AUDITLOGRECORDTYPE - case "FilteringRuleHits": - result = FILTERINGRULEHITS_AUDITLOGRECORDTYPE - case "FilteringMailSubmission": - result = FILTERINGMAILSUBMISSION_AUDITLOGRECORDTYPE - case "LabelExplorer": - result = LABELEXPLORER_AUDITLOGRECORDTYPE - case "MicrosoftManagedServicePlatform": - result = MICROSOFTMANAGEDSERVICEPLATFORM_AUDITLOGRECORDTYPE - case "PowerPlatformServiceActivity": - result = POWERPLATFORMSERVICEACTIVITY_AUDITLOGRECORDTYPE - case "ScorePlatformGenericAuditRecord": - result = SCOREPLATFORMGENERICAUDITRECORD_AUDITLOGRECORDTYPE - case "FilteringTimeTravelDocMetadata": - result = FILTERINGTIMETRAVELDOCMETADATA_AUDITLOGRECORDTYPE - case "Alert": - result = ALERT_AUDITLOGRECORDTYPE - case "AlertStatus": - result = ALERTSTATUS_AUDITLOGRECORDTYPE - case "AlertIncident": - result = ALERTINCIDENT_AUDITLOGRECORDTYPE - case "IncidentStatus": - result = INCIDENTSTATUS_AUDITLOGRECORDTYPE - case "Case": - result = CASEESCAPED_AUDITLOGRECORDTYPE - case "CaseInvestigation": - result = CASEINVESTIGATION_AUDITLOGRECORDTYPE - case "RecordsManagement": - result = RECORDSMANAGEMENT_AUDITLOGRECORDTYPE - case "PrivacyRemediation": - result = PRIVACYREMEDIATION_AUDITLOGRECORDTYPE - case "DataShareOperation": - result = DATASHAREOPERATION_AUDITLOGRECORDTYPE - case "CdpDlpSensitive": - result = CDPDLPSENSITIVE_AUDITLOGRECORDTYPE - case "EHRConnector": - result = EHRCONNECTOR_AUDITLOGRECORDTYPE - case "FilteringMailGradingResult": - result = FILTERINGMAILGRADINGRESULT_AUDITLOGRECORDTYPE - case "PublicFolder": - result = PUBLICFOLDER_AUDITLOGRECORDTYPE - case "PrivacyTenantAuditHistoryRecord": - result = PRIVACYTENANTAUDITHISTORYRECORD_AUDITLOGRECORDTYPE - case "AipScannerDiscoverEvent": - result = AIPSCANNERDISCOVEREVENT_AUDITLOGRECORDTYPE - case "EduDataLakeDownloadOperation": - result = EDUDATALAKEDOWNLOADOPERATION_AUDITLOGRECORDTYPE - case "M365ComplianceConnector": - result = M365COMPLIANCECONNECTOR_AUDITLOGRECORDTYPE - case "MicrosoftGraphDataConnectOperation": - result = MICROSOFTGRAPHDATACONNECTOPERATION_AUDITLOGRECORDTYPE - case "MicrosoftPurview": - result = MICROSOFTPURVIEW_AUDITLOGRECORDTYPE - case "FilteringEmailContentFeatures": - result = FILTERINGEMAILCONTENTFEATURES_AUDITLOGRECORDTYPE - case "PowerPagesSite": - result = POWERPAGESSITE_AUDITLOGRECORDTYPE - case "PowerAppsResource": - result = POWERAPPSRESOURCE_AUDITLOGRECORDTYPE - case "PlannerPlan": - result = PLANNERPLAN_AUDITLOGRECORDTYPE - case "PlannerCopyPlan": - result = PLANNERCOPYPLAN_AUDITLOGRECORDTYPE - case "PlannerTask": - result = PLANNERTASK_AUDITLOGRECORDTYPE - case "PlannerRoster": - result = PLANNERROSTER_AUDITLOGRECORDTYPE - case "PlannerPlanList": - result = PLANNERPLANLIST_AUDITLOGRECORDTYPE - case "PlannerTaskList": - result = PLANNERTASKLIST_AUDITLOGRECORDTYPE - case "PlannerTenantSettings": - result = PLANNERTENANTSETTINGS_AUDITLOGRECORDTYPE - case "ProjectForTheWebProject": - result = PROJECTFORTHEWEBPROJECT_AUDITLOGRECORDTYPE - case "ProjectForTheWebTask": - result = PROJECTFORTHEWEBTASK_AUDITLOGRECORDTYPE - case "ProjectForTheWebRoadmap": - result = PROJECTFORTHEWEBROADMAP_AUDITLOGRECORDTYPE - case "ProjectForTheWebRoadmapItem": - result = PROJECTFORTHEWEBROADMAPITEM_AUDITLOGRECORDTYPE - case "ProjectForTheWebProjectSettings": - result = PROJECTFORTHEWEBPROJECTSETTINGS_AUDITLOGRECORDTYPE - case "ProjectForTheWebRoadmapSettings": - result = PROJECTFORTHEWEBROADMAPSETTINGS_AUDITLOGRECORDTYPE - case "QuarantineMetadata": - result = QUARANTINEMETADATA_AUDITLOGRECORDTYPE - case "MicrosoftTodoAudit": - result = MICROSOFTTODOAUDIT_AUDITLOGRECORDTYPE - case "TimeTravelFilteringDocMetadata": - result = TIMETRAVELFILTERINGDOCMETADATA_AUDITLOGRECORDTYPE - case "TeamsQuarantineMetadata": - result = TEAMSQUARANTINEMETADATA_AUDITLOGRECORDTYPE - case "SharePointAppPermissionOperation": - result = SHAREPOINTAPPPERMISSIONOPERATION_AUDITLOGRECORDTYPE - case "MicrosoftTeamsSensitivityLabelAction": - result = MICROSOFTTEAMSSENSITIVITYLABELACTION_AUDITLOGRECORDTYPE - case "FilteringTeamsMetadata": - result = FILTERINGTEAMSMETADATA_AUDITLOGRECORDTYPE - case "FilteringTeamsUrlInfo": - result = FILTERINGTEAMSURLINFO_AUDITLOGRECORDTYPE - case "FilteringTeamsPostDeliveryAction": - result = FILTERINGTEAMSPOSTDELIVERYACTION_AUDITLOGRECORDTYPE - case "MDCAssessments": - result = MDCASSESSMENTS_AUDITLOGRECORDTYPE - case "MDCRegulatoryComplianceStandards": - result = MDCREGULATORYCOMPLIANCESTANDARDS_AUDITLOGRECORDTYPE - case "MDCRegulatoryComplianceControls": - result = MDCREGULATORYCOMPLIANCECONTROLS_AUDITLOGRECORDTYPE - case "MDCRegulatoryComplianceAssessments": - result = MDCREGULATORYCOMPLIANCEASSESSMENTS_AUDITLOGRECORDTYPE - case "MDCSecurityConnectors": - result = MDCSECURITYCONNECTORS_AUDITLOGRECORDTYPE - case "MDADataSecuritySignal": - result = MDADATASECURITYSIGNAL_AUDITLOGRECORDTYPE - case "VivaGoals": - result = VIVAGOALS_AUDITLOGRECORDTYPE - case "FilteringRuntimeInfo": - result = FILTERINGRUNTIMEINFO_AUDITLOGRECORDTYPE - case "AttackSimAdmin": - result = ATTACKSIMADMIN_AUDITLOGRECORDTYPE - case "MicrosoftGraphDataConnectConsent": - result = MICROSOFTGRAPHDATACONNECTCONSENT_AUDITLOGRECORDTYPE - case "FilteringAtpDetonationInfo": - result = FILTERINGATPDETONATIONINFO_AUDITLOGRECORDTYPE - case "PrivacyPortal": - result = PRIVACYPORTAL_AUDITLOGRECORDTYPE - case "ManagedTenants": - result = MANAGEDTENANTS_AUDITLOGRECORDTYPE - case "UnifiedSimulationMatchedItem": - result = UNIFIEDSIMULATIONMATCHEDITEM_AUDITLOGRECORDTYPE - case "UnifiedSimulationSummary": - result = UNIFIEDSIMULATIONSUMMARY_AUDITLOGRECORDTYPE - case "UpdateQuarantineMetadata": - result = UPDATEQUARANTINEMETADATA_AUDITLOGRECORDTYPE - case "MS365DSuppressionRule": - result = MS365DSUPPRESSIONRULE_AUDITLOGRECORDTYPE - case "PurviewDataMapOperation": - result = PURVIEWDATAMAPOPERATION_AUDITLOGRECORDTYPE - case "FilteringUrlPostClickAction": - result = FILTERINGURLPOSTCLICKACTION_AUDITLOGRECORDTYPE - case "IrmUserDefinedDetectionSignal": - result = IRMUSERDEFINEDDETECTIONSIGNAL_AUDITLOGRECORDTYPE - case "TeamsUpdates": - result = TEAMSUPDATES_AUDITLOGRECORDTYPE - case "PlannerRosterSensitivityLabel": - result = PLANNERROSTERSENSITIVITYLABEL_AUDITLOGRECORDTYPE - case "MS365DIncident": - result = MS365DINCIDENT_AUDITLOGRECORDTYPE - case "FilteringDelistingMetadata": - result = FILTERINGDELISTINGMETADATA_AUDITLOGRECORDTYPE - case "ComplianceDLPSharePointClassificationExtended": - result = COMPLIANCEDLPSHAREPOINTCLASSIFICATIONEXTENDED_AUDITLOGRECORDTYPE - case "MicrosoftDefenderForIdentityAudit": - result = MICROSOFTDEFENDERFORIDENTITYAUDIT_AUDITLOGRECORDTYPE - case "SupervisoryReviewDayXInsight": - result = SUPERVISORYREVIEWDAYXINSIGHT_AUDITLOGRECORDTYPE - case "DefenderExpertsforXDRAdmin": - result = DEFENDEREXPERTSFORXDRADMIN_AUDITLOGRECORDTYPE - case "CDPEdgeBlockedMessage": - result = CDPEDGEBLOCKEDMESSAGE_AUDITLOGRECORDTYPE - case "HostedRpa": - result = HOSTEDRPA_AUDITLOGRECORDTYPE - case "CdpContentExplorerAggregateRecord": - result = CDPCONTENTEXPLORERAGGREGATERECORD_AUDITLOGRECORDTYPE - case "CDPHygieneAttachmentInfo": - result = CDPHYGIENEATTACHMENTINFO_AUDITLOGRECORDTYPE - case "CDPHygieneSummary": - result = CDPHYGIENESUMMARY_AUDITLOGRECORDTYPE - case "CDPPostMailDeliveryAction": - result = CDPPOSTMAILDELIVERYACTION_AUDITLOGRECORDTYPE - case "CDPEmailFeatures": - result = CDPEMAILFEATURES_AUDITLOGRECORDTYPE - case "CDPHygieneUrlInfo": - result = CDPHYGIENEURLINFO_AUDITLOGRECORDTYPE - case "CDPUrlClick": - result = CDPURLCLICK_AUDITLOGRECORDTYPE - case "CDPPackageManagerHygieneEvent": - result = CDPPACKAGEMANAGERHYGIENEEVENT_AUDITLOGRECORDTYPE - case "FilteringDocScan": - result = FILTERINGDOCSCAN_AUDITLOGRECORDTYPE - case "TimeTravelFilteringDocScan": - result = TIMETRAVELFILTERINGDOCSCAN_AUDITLOGRECORDTYPE - case "MAPGOnboard": - result = MAPGONBOARD_AUDITLOGRECORDTYPE - case "VfamCreatePolicy": - result = VFAMCREATEPOLICY_AUDITLOGRECORDTYPE - case "VfamUpdatePolicy": - result = VFAMUPDATEPOLICY_AUDITLOGRECORDTYPE - case "VfamDeletePolicy": - result = VFAMDELETEPOLICY_AUDITLOGRECORDTYPE - case "M365DAAD": - result = M365DAAD_AUDITLOGRECORDTYPE - case "CdpColdCrawlStatus": - result = CDPCOLDCRAWLSTATUS_AUDITLOGRECORDTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUDITLOGRECORDTYPE - default: - return 0, errors.New("Unknown AuditLogRecordType value: " + v) - } - return &result, nil -} -func SerializeAuditLogRecordType(values []AuditLogRecordType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuditLogRecordType) isMultiValue() bool { - return false -} diff --git a/models/security/audit_log_record_user_type.go b/models/security/audit_log_record_user_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/audit_log_user_type.go b/models/security/audit_log_user_type.go deleted file mode 100644 index 883b169e09e..00000000000 --- a/models/security/audit_log_user_type.go +++ /dev/null @@ -1,67 +0,0 @@ -package security -import ( - "errors" -) -// -type AuditLogUserType int - -const ( - REGULAR_AUDITLOGUSERTYPE AuditLogUserType = iota - RESERVED_AUDITLOGUSERTYPE - ADMIN_AUDITLOGUSERTYPE - DCADMIN_AUDITLOGUSERTYPE - SYSTEM_AUDITLOGUSERTYPE - APPLICATION_AUDITLOGUSERTYPE - SERVICEPRINCIPAL_AUDITLOGUSERTYPE - CUSTOMPOLICY_AUDITLOGUSERTYPE - SYSTEMPOLICY_AUDITLOGUSERTYPE - PARTNERTECHNICIAN_AUDITLOGUSERTYPE - GUEST_AUDITLOGUSERTYPE - UNKNOWNFUTUREVALUE_AUDITLOGUSERTYPE -) - -func (i AuditLogUserType) String() string { - return []string{"Regular", "Reserved", "Admin", "DcAdmin", "System", "Application", "ServicePrincipal", "CustomPolicy", "SystemPolicy", "PartnerTechnician", "Guest", "unknownFutureValue"}[i] -} -func ParseAuditLogUserType(v string) (any, error) { - result := REGULAR_AUDITLOGUSERTYPE - switch v { - case "Regular": - result = REGULAR_AUDITLOGUSERTYPE - case "Reserved": - result = RESERVED_AUDITLOGUSERTYPE - case "Admin": - result = ADMIN_AUDITLOGUSERTYPE - case "DcAdmin": - result = DCADMIN_AUDITLOGUSERTYPE - case "System": - result = SYSTEM_AUDITLOGUSERTYPE - case "Application": - result = APPLICATION_AUDITLOGUSERTYPE - case "ServicePrincipal": - result = SERVICEPRINCIPAL_AUDITLOGUSERTYPE - case "CustomPolicy": - result = CUSTOMPOLICY_AUDITLOGUSERTYPE - case "SystemPolicy": - result = SYSTEMPOLICY_AUDITLOGUSERTYPE - case "PartnerTechnician": - result = PARTNERTECHNICIAN_AUDITLOGUSERTYPE - case "Guest": - result = GUEST_AUDITLOGUSERTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_AUDITLOGUSERTYPE - default: - return 0, errors.New("Unknown AuditLogUserType value: " + v) - } - return &result, nil -} -func SerializeAuditLogUserType(values []AuditLogUserType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AuditLogUserType) isMultiValue() bool { - return false -} diff --git a/models/security/behavior_during_retention_period.go b/models/security/behavior_during_retention_period.go deleted file mode 100644 index c18cb55eefb..00000000000 --- a/models/security/behavior_during_retention_period.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type BehaviorDuringRetentionPeriod int - -const ( - DONOTRETAIN_BEHAVIORDURINGRETENTIONPERIOD BehaviorDuringRetentionPeriod = iota - RETAIN_BEHAVIORDURINGRETENTIONPERIOD - RETAINASRECORD_BEHAVIORDURINGRETENTIONPERIOD - RETAINASREGULATORYRECORD_BEHAVIORDURINGRETENTIONPERIOD - UNKNOWNFUTUREVALUE_BEHAVIORDURINGRETENTIONPERIOD -) - -func (i BehaviorDuringRetentionPeriod) String() string { - return []string{"doNotRetain", "retain", "retainAsRecord", "retainAsRegulatoryRecord", "unknownFutureValue"}[i] -} -func ParseBehaviorDuringRetentionPeriod(v string) (any, error) { - result := DONOTRETAIN_BEHAVIORDURINGRETENTIONPERIOD - switch v { - case "doNotRetain": - result = DONOTRETAIN_BEHAVIORDURINGRETENTIONPERIOD - case "retain": - result = RETAIN_BEHAVIORDURINGRETENTIONPERIOD - case "retainAsRecord": - result = RETAINASRECORD_BEHAVIORDURINGRETENTIONPERIOD - case "retainAsRegulatoryRecord": - result = RETAINASREGULATORYRECORD_BEHAVIORDURINGRETENTIONPERIOD - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_BEHAVIORDURINGRETENTIONPERIOD - default: - return 0, errors.New("Unknown BehaviorDuringRetentionPeriod value: " + v) - } - return &result, nil -} -func SerializeBehaviorDuringRetentionPeriod(values []BehaviorDuringRetentionPeriod) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i BehaviorDuringRetentionPeriod) isMultiValue() bool { - return false -} diff --git a/models/security/case_action.go b/models/security/case_action.go deleted file mode 100644 index 394cc83e142..00000000000 --- a/models/security/case_action.go +++ /dev/null @@ -1,64 +0,0 @@ -package security -import ( - "errors" -) -// -type CaseAction int - -const ( - CONTENTEXPORT_CASEACTION CaseAction = iota - APPLYTAGS_CASEACTION - CONVERTTOPDF_CASEACTION - INDEX_CASEACTION - ESTIMATESTATISTICS_CASEACTION - ADDTOREVIEWSET_CASEACTION - HOLDUPDATE_CASEACTION - UNKNOWNFUTUREVALUE_CASEACTION - PURGEDATA_CASEACTION - EXPORTREPORT_CASEACTION - EXPORTRESULT_CASEACTION -) - -func (i CaseAction) String() string { - return []string{"contentExport", "applyTags", "convertToPdf", "index", "estimateStatistics", "addToReviewSet", "holdUpdate", "unknownFutureValue", "purgeData", "exportReport", "exportResult"}[i] -} -func ParseCaseAction(v string) (any, error) { - result := CONTENTEXPORT_CASEACTION - switch v { - case "contentExport": - result = CONTENTEXPORT_CASEACTION - case "applyTags": - result = APPLYTAGS_CASEACTION - case "convertToPdf": - result = CONVERTTOPDF_CASEACTION - case "index": - result = INDEX_CASEACTION - case "estimateStatistics": - result = ESTIMATESTATISTICS_CASEACTION - case "addToReviewSet": - result = ADDTOREVIEWSET_CASEACTION - case "holdUpdate": - result = HOLDUPDATE_CASEACTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CASEACTION - case "purgeData": - result = PURGEDATA_CASEACTION - case "exportReport": - result = EXPORTREPORT_CASEACTION - case "exportResult": - result = EXPORTRESULT_CASEACTION - default: - return 0, errors.New("Unknown CaseAction value: " + v) - } - return &result, nil -} -func SerializeCaseAction(values []CaseAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CaseAction) isMultiValue() bool { - return false -} diff --git a/models/security/case_escaped.go b/models/security/case_escaped.go index 2a5d3743f14..ec910c4021a 100644 --- a/models/security/case_escaped.go +++ b/models/security/case_escaped.go @@ -126,12 +126,12 @@ func (m *CaseEscaped) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCaseStatus) + val, err := n.GetEnumValue(ParseCase_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CaseStatus)) + m.SetStatus(val.(*Case_status)) } return nil } @@ -160,13 +160,13 @@ func (m *CaseEscaped) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97 return nil } // GetStatus gets the status property value. The status property -func (m *CaseEscaped) GetStatus()(*CaseStatus) { +func (m *CaseEscaped) GetStatus()(*Case_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CaseStatus) + return val.(*Case_status) } return nil } @@ -251,7 +251,7 @@ func (m *CaseEscaped) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3 } } // SetStatus sets the status property value. The status property -func (m *CaseEscaped) SetStatus(value *CaseStatus)() { +func (m *CaseEscaped) SetStatus(value *Case_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -266,11 +266,11 @@ type CaseEscapedable interface { GetDisplayName()(*string) GetLastModifiedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*CaseStatus) + GetStatus()(*Case_status) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() SetDisplayName(value *string)() SetLastModifiedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *CaseStatus)() + SetStatus(value *Case_status)() } diff --git a/models/security/case_operation.go b/models/security/case_operation.go index e27a415b57b..481f2463336 100644 --- a/models/security/case_operation.go +++ b/models/security/case_operation.go @@ -54,13 +54,13 @@ func CreateCaseOperationFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 return NewCaseOperation(), nil } // GetAction gets the action property value. The type of action the operation represents. Possible values are: addToReviewSet,applyTags,contentExport,convertToPdf,estimateStatistics, purgeData -func (m *CaseOperation) GetAction()(*CaseAction) { +func (m *CaseOperation) GetAction()(*CaseOperation_action) { val, err := m.GetBackingStore().Get("action") if err != nil { panic(err) } if val != nil { - return val.(*CaseAction) + return val.(*CaseOperation_action) } return nil } @@ -101,12 +101,12 @@ func (m *CaseOperation) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a func (m *CaseOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCaseAction) + val, err := n.GetEnumValue(ParseCaseOperation_action) if err != nil { return err } if val != nil { - m.SetAction(val.(*CaseAction)) + m.SetAction(val.(*CaseOperation_action)) } return nil } @@ -161,12 +161,12 @@ func (m *CaseOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCaseOperationStatus) + val, err := n.GetEnumValue(ParseCaseOperation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*CaseOperationStatus)) + m.SetStatus(val.(*CaseOperation_status)) } return nil } @@ -195,13 +195,13 @@ func (m *CaseOperation) GetResultInfo()(ie233ee762e29b4ba6970aa2a2efce4b7fde1169 return nil } // GetStatus gets the status property value. The status of the case operation. Possible values are: notStarted, submissionFailed, running, succeeded, partiallySucceeded, failed. -func (m *CaseOperation) GetStatus()(*CaseOperationStatus) { +func (m *CaseOperation) GetStatus()(*CaseOperation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*CaseOperationStatus) + return val.(*CaseOperation_status) } return nil } @@ -258,7 +258,7 @@ func (m *CaseOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return nil } // SetAction sets the action property value. The type of action the operation represents. Possible values are: addToReviewSet,applyTags,contentExport,convertToPdf,estimateStatistics, purgeData -func (m *CaseOperation) SetAction(value *CaseAction)() { +func (m *CaseOperation) SetAction(value *CaseOperation_action)() { err := m.GetBackingStore().Set("action", value) if err != nil { panic(err) @@ -300,7 +300,7 @@ func (m *CaseOperation) SetResultInfo(value ie233ee762e29b4ba6970aa2a2efce4b7fde } } // SetStatus sets the status property value. The status of the case operation. Possible values are: notStarted, submissionFailed, running, succeeded, partiallySucceeded, failed. -func (m *CaseOperation) SetStatus(value *CaseOperationStatus)() { +func (m *CaseOperation) SetStatus(value *CaseOperation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -310,18 +310,18 @@ func (m *CaseOperation) SetStatus(value *CaseOperationStatus)() { type CaseOperationable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAction()(*CaseAction) + GetAction()(*CaseOperation_action) GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCreatedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPercentProgress()(*int32) GetResultInfo()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResultInfoable) - GetStatus()(*CaseOperationStatus) - SetAction(value *CaseAction)() + GetStatus()(*CaseOperation_status) + SetAction(value *CaseOperation_action)() SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPercentProgress(value *int32)() SetResultInfo(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResultInfoable)() - SetStatus(value *CaseOperationStatus)() + SetStatus(value *CaseOperation_status)() } diff --git a/models/security/case_operation_action.go b/models/security/case_operation_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/case_operation_status.go b/models/security/case_operation_status.go index 1c26d00e772..e69de29bb2d 100644 --- a/models/security/case_operation_status.go +++ b/models/security/case_operation_status.go @@ -1,52 +0,0 @@ -package security -import ( - "errors" -) -// -type CaseOperationStatus int - -const ( - NOTSTARTED_CASEOPERATIONSTATUS CaseOperationStatus = iota - SUBMISSIONFAILED_CASEOPERATIONSTATUS - RUNNING_CASEOPERATIONSTATUS - SUCCEEDED_CASEOPERATIONSTATUS - PARTIALLYSUCCEEDED_CASEOPERATIONSTATUS - FAILED_CASEOPERATIONSTATUS - UNKNOWNFUTUREVALUE_CASEOPERATIONSTATUS -) - -func (i CaseOperationStatus) String() string { - return []string{"notStarted", "submissionFailed", "running", "succeeded", "partiallySucceeded", "failed", "unknownFutureValue"}[i] -} -func ParseCaseOperationStatus(v string) (any, error) { - result := NOTSTARTED_CASEOPERATIONSTATUS - switch v { - case "notStarted": - result = NOTSTARTED_CASEOPERATIONSTATUS - case "submissionFailed": - result = SUBMISSIONFAILED_CASEOPERATIONSTATUS - case "running": - result = RUNNING_CASEOPERATIONSTATUS - case "succeeded": - result = SUCCEEDED_CASEOPERATIONSTATUS - case "partiallySucceeded": - result = PARTIALLYSUCCEEDED_CASEOPERATIONSTATUS - case "failed": - result = FAILED_CASEOPERATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CASEOPERATIONSTATUS - default: - return 0, errors.New("Unknown CaseOperationStatus value: " + v) - } - return &result, nil -} -func SerializeCaseOperationStatus(values []CaseOperationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CaseOperationStatus) isMultiValue() bool { - return false -} diff --git a/models/security/case_status.go b/models/security/case_status.go index f2a640e28d1..e69de29bb2d 100644 --- a/models/security/case_status.go +++ b/models/security/case_status.go @@ -1,52 +0,0 @@ -package security -import ( - "errors" -) -// -type CaseStatus int - -const ( - UNKNOWN_CASESTATUS CaseStatus = iota - ACTIVE_CASESTATUS - PENDINGDELETE_CASESTATUS - CLOSING_CASESTATUS - CLOSED_CASESTATUS - CLOSEDWITHERROR_CASESTATUS - UNKNOWNFUTUREVALUE_CASESTATUS -) - -func (i CaseStatus) String() string { - return []string{"unknown", "active", "pendingDelete", "closing", "closed", "closedWithError", "unknownFutureValue"}[i] -} -func ParseCaseStatus(v string) (any, error) { - result := UNKNOWN_CASESTATUS - switch v { - case "unknown": - result = UNKNOWN_CASESTATUS - case "active": - result = ACTIVE_CASESTATUS - case "pendingDelete": - result = PENDINGDELETE_CASESTATUS - case "closing": - result = CLOSING_CASESTATUS - case "closed": - result = CLOSED_CASESTATUS - case "closedWithError": - result = CLOSEDWITHERROR_CASESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CASESTATUS - default: - return 0, errors.New("Unknown CaseStatus value: " + v) - } - return &result, nil -} -func SerializeCaseStatus(values []CaseStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CaseStatus) isMultiValue() bool { - return false -} diff --git a/models/security/child_selectability.go b/models/security/child_selectability.go deleted file mode 100644 index 2c7bb673c8f..00000000000 --- a/models/security/child_selectability.go +++ /dev/null @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type ChildSelectability int - -const ( - ONE_CHILDSELECTABILITY ChildSelectability = iota - MANY_CHILDSELECTABILITY - UNKNOWNFUTUREVALUE_CHILDSELECTABILITY -) - -func (i ChildSelectability) String() string { - return []string{"One", "Many", "unknownFutureValue"}[i] -} -func ParseChildSelectability(v string) (any, error) { - result := ONE_CHILDSELECTABILITY - switch v { - case "One": - result = ONE_CHILDSELECTABILITY - case "Many": - result = MANY_CHILDSELECTABILITY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CHILDSELECTABILITY - default: - return 0, errors.New("Unknown ChildSelectability value: " + v) - } - return &result, nil -} -func SerializeChildSelectability(values []ChildSelectability) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ChildSelectability) isMultiValue() bool { - return false -} diff --git a/models/security/container_port_protocol.go b/models/security/container_port_protocol.go deleted file mode 100644 index f3c1fbb7a5d..00000000000 --- a/models/security/container_port_protocol.go +++ /dev/null @@ -1,43 +0,0 @@ -package security -import ( - "errors" -) -// -type ContainerPortProtocol int - -const ( - UDP_CONTAINERPORTPROTOCOL ContainerPortProtocol = iota - TCP_CONTAINERPORTPROTOCOL - SCTP_CONTAINERPORTPROTOCOL - UNKNOWNFUTUREVALUE_CONTAINERPORTPROTOCOL -) - -func (i ContainerPortProtocol) String() string { - return []string{"udp", "tcp", "sctp", "unknownFutureValue"}[i] -} -func ParseContainerPortProtocol(v string) (any, error) { - result := UDP_CONTAINERPORTPROTOCOL - switch v { - case "udp": - result = UDP_CONTAINERPORTPROTOCOL - case "tcp": - result = TCP_CONTAINERPORTPROTOCOL - case "sctp": - result = SCTP_CONTAINERPORTPROTOCOL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONTAINERPORTPROTOCOL - default: - return 0, errors.New("Unknown ContainerPortProtocol value: " + v) - } - return &result, nil -} -func SerializeContainerPortProtocol(values []ContainerPortProtocol) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ContainerPortProtocol) isMultiValue() bool { - return false -} diff --git a/models/security/content_format.go b/models/security/content_format.go deleted file mode 100644 index 3199d1f0e96..00000000000 --- a/models/security/content_format.go +++ /dev/null @@ -1,43 +0,0 @@ -package security -import ( - "errors" -) -// -type ContentFormat int - -const ( - TEXT_CONTENTFORMAT ContentFormat = iota - HTML_CONTENTFORMAT - MARKDOWN_CONTENTFORMAT - UNKNOWNFUTUREVALUE_CONTENTFORMAT -) - -func (i ContentFormat) String() string { - return []string{"text", "html", "markdown", "unknownFutureValue"}[i] -} -func ParseContentFormat(v string) (any, error) { - result := TEXT_CONTENTFORMAT - switch v { - case "text": - result = TEXT_CONTENTFORMAT - case "html": - result = HTML_CONTENTFORMAT - case "markdown": - result = MARKDOWN_CONTENTFORMAT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CONTENTFORMAT - default: - return 0, errors.New("Unknown ContentFormat value: " + v) - } - return &result, nil -} -func SerializeContentFormat(values []ContentFormat) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ContentFormat) isMultiValue() bool { - return false -} diff --git a/models/security/cvss_summary.go b/models/security/cvss_summary.go index 34e0ec433d4..efd7fc4dd7b 100644 --- a/models/security/cvss_summary.go +++ b/models/security/cvss_summary.go @@ -62,12 +62,12 @@ func (m *CvssSummary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVulnerabilitySeverity) + val, err := n.GetEnumValue(ParseCvssSummary_severity) if err != nil { return err } if val != nil { - m.SetSeverity(val.(*VulnerabilitySeverity)) + m.SetSeverity(val.(*CvssSummary_severity)) } return nil } @@ -106,13 +106,13 @@ func (m *CvssSummary) GetScore()(*float64) { return nil } // GetSeverity gets the severity property value. The CVSS severity rating for this vulnerability. The possible values are: none, low, medium, high, critical, unknownFutureValue. -func (m *CvssSummary) GetSeverity()(*VulnerabilitySeverity) { +func (m *CvssSummary) GetSeverity()(*CvssSummary_severity) { val, err := m.GetBackingStore().Get("severity") if err != nil { panic(err) } if val != nil { - return val.(*VulnerabilitySeverity) + return val.(*CvssSummary_severity) } return nil } @@ -188,7 +188,7 @@ func (m *CvssSummary) SetScore(value *float64)() { } } // SetSeverity sets the severity property value. The CVSS severity rating for this vulnerability. The possible values are: none, low, medium, high, critical, unknownFutureValue. -func (m *CvssSummary) SetSeverity(value *VulnerabilitySeverity)() { +func (m *CvssSummary) SetSeverity(value *CvssSummary_severity)() { err := m.GetBackingStore().Set("severity", value) if err != nil { panic(err) @@ -209,11 +209,11 @@ type CvssSummaryable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetScore()(*float64) - GetSeverity()(*VulnerabilitySeverity) + GetSeverity()(*CvssSummary_severity) GetVectorString()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetScore(value *float64)() - SetSeverity(value *VulnerabilitySeverity)() + SetSeverity(value *CvssSummary_severity)() SetVectorString(value *string)() } diff --git a/models/security/cvss_summary_severity.go b/models/security/cvss_summary_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/data_source.go b/models/security/data_source.go index 12f19c7b937..b4e74e6ded6 100644 --- a/models/security/data_source.go +++ b/models/security/data_source.go @@ -110,25 +110,25 @@ func (m *DataSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["holdStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSourceHoldStatus) + val, err := n.GetEnumValue(ParseDataSource_holdStatus) if err != nil { return err } if val != nil { - m.SetHoldStatus(val.(*DataSourceHoldStatus)) + m.SetHoldStatus(val.(*DataSource_holdStatus)) } return nil } return res } // GetHoldStatus gets the holdStatus property value. The hold status of the dataSource.The possible values are: notApplied, applied, applying, removing, partial -func (m *DataSource) GetHoldStatus()(*DataSourceHoldStatus) { +func (m *DataSource) GetHoldStatus()(*DataSource_holdStatus) { val, err := m.GetBackingStore().Get("holdStatus") if err != nil { panic(err) } if val != nil { - return val.(*DataSourceHoldStatus) + return val.(*DataSource_holdStatus) } return nil } @@ -187,7 +187,7 @@ func (m *DataSource) SetDisplayName(value *string)() { } } // SetHoldStatus sets the holdStatus property value. The hold status of the dataSource.The possible values are: notApplied, applied, applying, removing, partial -func (m *DataSource) SetHoldStatus(value *DataSourceHoldStatus)() { +func (m *DataSource) SetHoldStatus(value *DataSource_holdStatus)() { err := m.GetBackingStore().Set("holdStatus", value) if err != nil { panic(err) @@ -200,9 +200,9 @@ type DataSourceable interface { GetCreatedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) - GetHoldStatus()(*DataSourceHoldStatus) + GetHoldStatus()(*DataSource_holdStatus) SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() - SetHoldStatus(value *DataSourceHoldStatus)() + SetHoldStatus(value *DataSource_holdStatus)() } diff --git a/models/security/data_source_container.go b/models/security/data_source_container.go index dbe21d6f41c..5d1e4903ba8 100644 --- a/models/security/data_source_container.go +++ b/models/security/data_source_container.go @@ -87,12 +87,12 @@ func (m *DataSourceContainer) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["holdStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSourceHoldStatus) + val, err := n.GetEnumValue(ParseDataSourceContainer_holdStatus) if err != nil { return err } if val != nil { - m.SetHoldStatus(val.(*DataSourceHoldStatus)) + m.SetHoldStatus(val.(*DataSourceContainer_holdStatus)) } return nil } @@ -117,25 +117,25 @@ func (m *DataSourceContainer) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSourceContainerStatus) + val, err := n.GetEnumValue(ParseDataSourceContainer_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*DataSourceContainerStatus)) + m.SetStatus(val.(*DataSourceContainer_status)) } return nil } return res } // GetHoldStatus gets the holdStatus property value. The hold status of the dataSourceContainer. The possible values are: notApplied, applied, applying, removing, partial -func (m *DataSourceContainer) GetHoldStatus()(*DataSourceHoldStatus) { +func (m *DataSourceContainer) GetHoldStatus()(*DataSourceContainer_holdStatus) { val, err := m.GetBackingStore().Get("holdStatus") if err != nil { panic(err) } if val != nil { - return val.(*DataSourceHoldStatus) + return val.(*DataSourceContainer_holdStatus) } return nil } @@ -162,13 +162,13 @@ func (m *DataSourceContainer) GetReleasedDateTime()(*i336074805fc853987abe6f7fe3 return nil } // GetStatus gets the status property value. Latest status of the dataSourceContainer. Possible values are: Active, Released. -func (m *DataSourceContainer) GetStatus()(*DataSourceContainerStatus) { +func (m *DataSourceContainer) GetStatus()(*DataSourceContainer_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*DataSourceContainerStatus) + return val.(*DataSourceContainer_status) } return nil } @@ -233,7 +233,7 @@ func (m *DataSourceContainer) SetDisplayName(value *string)() { } } // SetHoldStatus sets the holdStatus property value. The hold status of the dataSourceContainer. The possible values are: notApplied, applied, applying, removing, partial -func (m *DataSourceContainer) SetHoldStatus(value *DataSourceHoldStatus)() { +func (m *DataSourceContainer) SetHoldStatus(value *DataSourceContainer_holdStatus)() { err := m.GetBackingStore().Set("holdStatus", value) if err != nil { panic(err) @@ -254,7 +254,7 @@ func (m *DataSourceContainer) SetReleasedDateTime(value *i336074805fc853987abe6f } } // SetStatus sets the status property value. Latest status of the dataSourceContainer. Possible values are: Active, Released. -func (m *DataSourceContainer) SetStatus(value *DataSourceContainerStatus)() { +func (m *DataSourceContainer) SetStatus(value *DataSourceContainer_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -266,14 +266,14 @@ type DataSourceContainerable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) - GetHoldStatus()(*DataSourceHoldStatus) + GetHoldStatus()(*DataSourceContainer_holdStatus) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetReleasedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*DataSourceContainerStatus) + GetStatus()(*DataSourceContainer_status) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() - SetHoldStatus(value *DataSourceHoldStatus)() + SetHoldStatus(value *DataSourceContainer_holdStatus)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetReleasedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *DataSourceContainerStatus)() + SetStatus(value *DataSourceContainer_status)() } diff --git a/models/security/data_source_container_hold_status.go b/models/security/data_source_container_hold_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/data_source_container_status.go b/models/security/data_source_container_status.go index 592edbe2770..e69de29bb2d 100644 --- a/models/security/data_source_container_status.go +++ b/models/security/data_source_container_status.go @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type DataSourceContainerStatus int - -const ( - ACTIVE_DATASOURCECONTAINERSTATUS DataSourceContainerStatus = iota - RELEASED_DATASOURCECONTAINERSTATUS - UNKNOWNFUTUREVALUE_DATASOURCECONTAINERSTATUS -) - -func (i DataSourceContainerStatus) String() string { - return []string{"active", "released", "unknownFutureValue"}[i] -} -func ParseDataSourceContainerStatus(v string) (any, error) { - result := ACTIVE_DATASOURCECONTAINERSTATUS - switch v { - case "active": - result = ACTIVE_DATASOURCECONTAINERSTATUS - case "released": - result = RELEASED_DATASOURCECONTAINERSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DATASOURCECONTAINERSTATUS - default: - return 0, errors.New("Unknown DataSourceContainerStatus value: " + v) - } - return &result, nil -} -func SerializeDataSourceContainerStatus(values []DataSourceContainerStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DataSourceContainerStatus) isMultiValue() bool { - return false -} diff --git a/models/security/data_source_hold_status.go b/models/security/data_source_hold_status.go index a280fa332b1..e69de29bb2d 100644 --- a/models/security/data_source_hold_status.go +++ b/models/security/data_source_hold_status.go @@ -1,49 +0,0 @@ -package security -import ( - "errors" -) -// -type DataSourceHoldStatus int - -const ( - NOTAPPLIED_DATASOURCEHOLDSTATUS DataSourceHoldStatus = iota - APPLIED_DATASOURCEHOLDSTATUS - APPLYING_DATASOURCEHOLDSTATUS - REMOVING_DATASOURCEHOLDSTATUS - PARTIAL_DATASOURCEHOLDSTATUS - UNKNOWNFUTUREVALUE_DATASOURCEHOLDSTATUS -) - -func (i DataSourceHoldStatus) String() string { - return []string{"notApplied", "applied", "applying", "removing", "partial", "unknownFutureValue"}[i] -} -func ParseDataSourceHoldStatus(v string) (any, error) { - result := NOTAPPLIED_DATASOURCEHOLDSTATUS - switch v { - case "notApplied": - result = NOTAPPLIED_DATASOURCEHOLDSTATUS - case "applied": - result = APPLIED_DATASOURCEHOLDSTATUS - case "applying": - result = APPLYING_DATASOURCEHOLDSTATUS - case "removing": - result = REMOVING_DATASOURCEHOLDSTATUS - case "partial": - result = PARTIAL_DATASOURCEHOLDSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DATASOURCEHOLDSTATUS - default: - return 0, errors.New("Unknown DataSourceHoldStatus value: " + v) - } - return &result, nil -} -func SerializeDataSourceHoldStatus(values []DataSourceHoldStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DataSourceHoldStatus) isMultiValue() bool { - return false -} diff --git a/models/security/data_source_scopes.go b/models/security/data_source_scopes.go deleted file mode 100644 index 579cddb585e..00000000000 --- a/models/security/data_source_scopes.go +++ /dev/null @@ -1,59 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type DataSourceScopes int - -const ( - NONE_DATASOURCESCOPES DataSourceScopes = iota - ALLTENANTMAILBOXES_DATASOURCESCOPES - ALLTENANTSITES_DATASOURCESCOPES - ALLCASECUSTODIANS_DATASOURCESCOPES - ALLCASENONCUSTODIALDATASOURCES_DATASOURCESCOPES - UNKNOWNFUTUREVALUE_DATASOURCESCOPES -) - -func (i DataSourceScopes) String() string { - var values []string - for p := DataSourceScopes(1); p <= UNKNOWNFUTUREVALUE_DATASOURCESCOPES; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "allTenantMailboxes", "allTenantSites", "allCaseCustodians", "allCaseNoncustodialDataSources", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseDataSourceScopes(v string) (any, error) { - var result DataSourceScopes - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_DATASOURCESCOPES - case "allTenantMailboxes": - result |= ALLTENANTMAILBOXES_DATASOURCESCOPES - case "allTenantSites": - result |= ALLTENANTSITES_DATASOURCESCOPES - case "allCaseCustodians": - result |= ALLCASECUSTODIANS_DATASOURCESCOPES - case "allCaseNoncustodialDataSources": - result |= ALLCASENONCUSTODIALDATASOURCES_DATASOURCESCOPES - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_DATASOURCESCOPES - default: - return 0, errors.New("Unknown DataSourceScopes value: " + v) - } - } - return &result, nil -} -func SerializeDataSourceScopes(values []DataSourceScopes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DataSourceScopes) isMultiValue() bool { - return true -} diff --git a/models/security/default_record_behavior.go b/models/security/default_record_behavior.go deleted file mode 100644 index 246a7ff9b92..00000000000 --- a/models/security/default_record_behavior.go +++ /dev/null @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type DefaultRecordBehavior int - -const ( - STARTLOCKED_DEFAULTRECORDBEHAVIOR DefaultRecordBehavior = iota - STARTUNLOCKED_DEFAULTRECORDBEHAVIOR - UNKNOWNFUTUREVALUE_DEFAULTRECORDBEHAVIOR -) - -func (i DefaultRecordBehavior) String() string { - return []string{"startLocked", "startUnlocked", "unknownFutureValue"}[i] -} -func ParseDefaultRecordBehavior(v string) (any, error) { - result := STARTLOCKED_DEFAULTRECORDBEHAVIOR - switch v { - case "startLocked": - result = STARTLOCKED_DEFAULTRECORDBEHAVIOR - case "startUnlocked": - result = STARTUNLOCKED_DEFAULTRECORDBEHAVIOR - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DEFAULTRECORDBEHAVIOR - default: - return 0, errors.New("Unknown DefaultRecordBehavior value: " + v) - } - return &result, nil -} -func SerializeDefaultRecordBehavior(values []DefaultRecordBehavior) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DefaultRecordBehavior) isMultiValue() bool { - return false -} diff --git a/models/security/defender_av_status.go b/models/security/defender_av_status.go deleted file mode 100644 index 0981051c645..00000000000 --- a/models/security/defender_av_status.go +++ /dev/null @@ -1,52 +0,0 @@ -package security -import ( - "errors" -) -// -type DefenderAvStatus int - -const ( - NOTREPORTING_DEFENDERAVSTATUS DefenderAvStatus = iota - DISABLED_DEFENDERAVSTATUS - NOTUPDATED_DEFENDERAVSTATUS - UPDATED_DEFENDERAVSTATUS - UNKNOWN_DEFENDERAVSTATUS - NOTSUPPORTED_DEFENDERAVSTATUS - UNKNOWNFUTUREVALUE_DEFENDERAVSTATUS -) - -func (i DefenderAvStatus) String() string { - return []string{"notReporting", "disabled", "notUpdated", "updated", "unknown", "notSupported", "unknownFutureValue"}[i] -} -func ParseDefenderAvStatus(v string) (any, error) { - result := NOTREPORTING_DEFENDERAVSTATUS - switch v { - case "notReporting": - result = NOTREPORTING_DEFENDERAVSTATUS - case "disabled": - result = DISABLED_DEFENDERAVSTATUS - case "notUpdated": - result = NOTUPDATED_DEFENDERAVSTATUS - case "updated": - result = UPDATED_DEFENDERAVSTATUS - case "unknown": - result = UNKNOWN_DEFENDERAVSTATUS - case "notSupported": - result = NOTSUPPORTED_DEFENDERAVSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DEFENDERAVSTATUS - default: - return 0, errors.New("Unknown DefenderAvStatus value: " + v) - } - return &result, nil -} -func SerializeDefenderAvStatus(values []DefenderAvStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DefenderAvStatus) isMultiValue() bool { - return false -} diff --git a/models/security/detection_source.go b/models/security/detection_source.go deleted file mode 100644 index ccae6998407..00000000000 --- a/models/security/detection_source.go +++ /dev/null @@ -1,136 +0,0 @@ -package security -import ( - "errors" -) -// -type DetectionSource int - -const ( - UNKNOWN_DETECTIONSOURCE DetectionSource = iota - MICROSOFTDEFENDERFORENDPOINT_DETECTIONSOURCE - ANTIVIRUS_DETECTIONSOURCE - SMARTSCREEN_DETECTIONSOURCE - CUSTOMTI_DETECTIONSOURCE - MICROSOFTDEFENDERFOROFFICE365_DETECTIONSOURCE - AUTOMATEDINVESTIGATION_DETECTIONSOURCE - MICROSOFTTHREATEXPERTS_DETECTIONSOURCE - CUSTOMDETECTION_DETECTIONSOURCE - MICROSOFTDEFENDERFORIDENTITY_DETECTIONSOURCE - CLOUDAPPSECURITY_DETECTIONSOURCE - MICROSOFT365DEFENDER_DETECTIONSOURCE - AZUREADIDENTITYPROTECTION_DETECTIONSOURCE - MANUAL_DETECTIONSOURCE - MICROSOFTDATALOSSPREVENTION_DETECTIONSOURCE - APPGOVERNANCEPOLICY_DETECTIONSOURCE - APPGOVERNANCEDETECTION_DETECTIONSOURCE - UNKNOWNFUTUREVALUE_DETECTIONSOURCE - MICROSOFTDEFENDERFORCLOUD_DETECTIONSOURCE - MICROSOFTDEFENDERFORIOT_DETECTIONSOURCE - MICROSOFTDEFENDERFORSERVERS_DETECTIONSOURCE - MICROSOFTDEFENDERFORSTORAGE_DETECTIONSOURCE - MICROSOFTDEFENDERFORDNS_DETECTIONSOURCE - MICROSOFTDEFENDERFORDATABASES_DETECTIONSOURCE - MICROSOFTDEFENDERFORCONTAINERS_DETECTIONSOURCE - MICROSOFTDEFENDERFORNETWORK_DETECTIONSOURCE - MICROSOFTDEFENDERFORAPPSERVICE_DETECTIONSOURCE - MICROSOFTDEFENDERFORKEYVAULT_DETECTIONSOURCE - MICROSOFTDEFENDERFORRESOURCEMANAGER_DETECTIONSOURCE - MICROSOFTDEFENDERFORAPIMANAGEMENT_DETECTIONSOURCE - NRTALERTS_DETECTIONSOURCE - SCHEDULEDALERTS_DETECTIONSOURCE - MICROSOFTDEFENDERTHREATINTELLIGENCEANALYTICS_DETECTIONSOURCE - BUILTINML_DETECTIONSOURCE - MICROSOFTSENTINEL_DETECTIONSOURCE -) - -func (i DetectionSource) String() string { - return []string{"unknown", "microsoftDefenderForEndpoint", "antivirus", "smartScreen", "customTi", "microsoftDefenderForOffice365", "automatedInvestigation", "microsoftThreatExperts", "customDetection", "microsoftDefenderForIdentity", "cloudAppSecurity", "microsoft365Defender", "azureAdIdentityProtection", "manual", "microsoftDataLossPrevention", "appGovernancePolicy", "appGovernanceDetection", "unknownFutureValue", "microsoftDefenderForCloud", "microsoftDefenderForIoT", "microsoftDefenderForServers", "microsoftDefenderForStorage", "microsoftDefenderForDNS", "microsoftDefenderForDatabases", "microsoftDefenderForContainers", "microsoftDefenderForNetwork", "microsoftDefenderForAppService", "microsoftDefenderForKeyVault", "microsoftDefenderForResourceManager", "microsoftDefenderForApiManagement", "nrtAlerts", "scheduledAlerts", "microsoftDefenderThreatIntelligenceAnalytics", "builtInMl", "microsoftSentinel"}[i] -} -func ParseDetectionSource(v string) (any, error) { - result := UNKNOWN_DETECTIONSOURCE - switch v { - case "unknown": - result = UNKNOWN_DETECTIONSOURCE - case "microsoftDefenderForEndpoint": - result = MICROSOFTDEFENDERFORENDPOINT_DETECTIONSOURCE - case "antivirus": - result = ANTIVIRUS_DETECTIONSOURCE - case "smartScreen": - result = SMARTSCREEN_DETECTIONSOURCE - case "customTi": - result = CUSTOMTI_DETECTIONSOURCE - case "microsoftDefenderForOffice365": - result = MICROSOFTDEFENDERFOROFFICE365_DETECTIONSOURCE - case "automatedInvestigation": - result = AUTOMATEDINVESTIGATION_DETECTIONSOURCE - case "microsoftThreatExperts": - result = MICROSOFTTHREATEXPERTS_DETECTIONSOURCE - case "customDetection": - result = CUSTOMDETECTION_DETECTIONSOURCE - case "microsoftDefenderForIdentity": - result = MICROSOFTDEFENDERFORIDENTITY_DETECTIONSOURCE - case "cloudAppSecurity": - result = CLOUDAPPSECURITY_DETECTIONSOURCE - case "microsoft365Defender": - result = MICROSOFT365DEFENDER_DETECTIONSOURCE - case "azureAdIdentityProtection": - result = AZUREADIDENTITYPROTECTION_DETECTIONSOURCE - case "manual": - result = MANUAL_DETECTIONSOURCE - case "microsoftDataLossPrevention": - result = MICROSOFTDATALOSSPREVENTION_DETECTIONSOURCE - case "appGovernancePolicy": - result = APPGOVERNANCEPOLICY_DETECTIONSOURCE - case "appGovernanceDetection": - result = APPGOVERNANCEDETECTION_DETECTIONSOURCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DETECTIONSOURCE - case "microsoftDefenderForCloud": - result = MICROSOFTDEFENDERFORCLOUD_DETECTIONSOURCE - case "microsoftDefenderForIoT": - result = MICROSOFTDEFENDERFORIOT_DETECTIONSOURCE - case "microsoftDefenderForServers": - result = MICROSOFTDEFENDERFORSERVERS_DETECTIONSOURCE - case "microsoftDefenderForStorage": - result = MICROSOFTDEFENDERFORSTORAGE_DETECTIONSOURCE - case "microsoftDefenderForDNS": - result = MICROSOFTDEFENDERFORDNS_DETECTIONSOURCE - case "microsoftDefenderForDatabases": - result = MICROSOFTDEFENDERFORDATABASES_DETECTIONSOURCE - case "microsoftDefenderForContainers": - result = MICROSOFTDEFENDERFORCONTAINERS_DETECTIONSOURCE - case "microsoftDefenderForNetwork": - result = MICROSOFTDEFENDERFORNETWORK_DETECTIONSOURCE - case "microsoftDefenderForAppService": - result = MICROSOFTDEFENDERFORAPPSERVICE_DETECTIONSOURCE - case "microsoftDefenderForKeyVault": - result = MICROSOFTDEFENDERFORKEYVAULT_DETECTIONSOURCE - case "microsoftDefenderForResourceManager": - result = MICROSOFTDEFENDERFORRESOURCEMANAGER_DETECTIONSOURCE - case "microsoftDefenderForApiManagement": - result = MICROSOFTDEFENDERFORAPIMANAGEMENT_DETECTIONSOURCE - case "nrtAlerts": - result = NRTALERTS_DETECTIONSOURCE - case "scheduledAlerts": - result = SCHEDULEDALERTS_DETECTIONSOURCE - case "microsoftDefenderThreatIntelligenceAnalytics": - result = MICROSOFTDEFENDERTHREATINTELLIGENCEANALYTICS_DETECTIONSOURCE - case "builtInMl": - result = BUILTINML_DETECTIONSOURCE - case "microsoftSentinel": - result = MICROSOFTSENTINEL_DETECTIONSOURCE - default: - return 0, errors.New("Unknown DetectionSource value: " + v) - } - return &result, nil -} -func SerializeDetectionSource(values []DetectionSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DetectionSource) isMultiValue() bool { - return false -} diff --git a/models/security/detection_status.go b/models/security/detection_status.go deleted file mode 100644 index f25b264b7de..00000000000 --- a/models/security/detection_status.go +++ /dev/null @@ -1,43 +0,0 @@ -package security -import ( - "errors" -) -// -type DetectionStatus int - -const ( - DETECTED_DETECTIONSTATUS DetectionStatus = iota - BLOCKED_DETECTIONSTATUS - PREVENTED_DETECTIONSTATUS - UNKNOWNFUTUREVALUE_DETECTIONSTATUS -) - -func (i DetectionStatus) String() string { - return []string{"detected", "blocked", "prevented", "unknownFutureValue"}[i] -} -func ParseDetectionStatus(v string) (any, error) { - result := DETECTED_DETECTIONSTATUS - switch v { - case "detected": - result = DETECTED_DETECTIONSTATUS - case "blocked": - result = BLOCKED_DETECTIONSTATUS - case "prevented": - result = PREVENTED_DETECTIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DETECTIONSTATUS - default: - return 0, errors.New("Unknown DetectionStatus value: " + v) - } - return &result, nil -} -func SerializeDetectionStatus(values []DetectionStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DetectionStatus) isMultiValue() bool { - return false -} diff --git a/models/security/device_evidence.go b/models/security/device_evidence.go index 2d43e66e78c..6ba0710dda7 100644 --- a/models/security/device_evidence.go +++ b/models/security/device_evidence.go @@ -34,13 +34,13 @@ func (m *DeviceEvidence) GetAzureAdDeviceId()(*string) { return nil } // GetDefenderAvStatus gets the defenderAvStatus property value. State of the Defender AntiMalware engine. The possible values are: notReporting, disabled, notUpdated, updated, unknown, notSupported, unknownFutureValue. -func (m *DeviceEvidence) GetDefenderAvStatus()(*DefenderAvStatus) { +func (m *DeviceEvidence) GetDefenderAvStatus()(*DeviceEvidence_defenderAvStatus) { val, err := m.GetBackingStore().Get("defenderAvStatus") if err != nil { panic(err) } if val != nil { - return val.(*DefenderAvStatus) + return val.(*DeviceEvidence_defenderAvStatus) } return nil } @@ -69,12 +69,12 @@ func (m *DeviceEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["defenderAvStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefenderAvStatus) + val, err := n.GetEnumValue(ParseDeviceEvidence_defenderAvStatus) if err != nil { return err } if val != nil { - m.SetDefenderAvStatus(val.(*DefenderAvStatus)) + m.SetDefenderAvStatus(val.(*DeviceEvidence_defenderAvStatus)) } return nil } @@ -99,12 +99,12 @@ func (m *DeviceEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["healthStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDeviceHealthStatus) + val, err := n.GetEnumValue(ParseDeviceEvidence_healthStatus) if err != nil { return err } if val != nil { - m.SetHealthStatus(val.(*DeviceHealthStatus)) + m.SetHealthStatus(val.(*DeviceEvidence_healthStatus)) } return nil } @@ -151,12 +151,12 @@ func (m *DeviceEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["onboardingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOnboardingStatus) + val, err := n.GetEnumValue(ParseDeviceEvidence_onboardingStatus) if err != nil { return err } if val != nil { - m.SetOnboardingStatus(val.(*OnboardingStatus)) + m.SetOnboardingStatus(val.(*DeviceEvidence_onboardingStatus)) } return nil } @@ -201,12 +201,12 @@ func (m *DeviceEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["riskScore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDeviceRiskScore) + val, err := n.GetEnumValue(ParseDeviceEvidence_riskScore) if err != nil { return err } if val != nil { - m.SetRiskScore(val.(*DeviceRiskScore)) + m.SetRiskScore(val.(*DeviceEvidence_riskScore)) } return nil } @@ -244,13 +244,13 @@ func (m *DeviceEvidence) GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97 return nil } // GetHealthStatus gets the healthStatus property value. The health state of the device. The possible values are: active, inactive, impairedCommunication, noSensorData, noSensorDataImpairedCommunication, unknown, unknownFutureValue. -func (m *DeviceEvidence) GetHealthStatus()(*DeviceHealthStatus) { +func (m *DeviceEvidence) GetHealthStatus()(*DeviceEvidence_healthStatus) { val, err := m.GetBackingStore().Get("healthStatus") if err != nil { panic(err) } if val != nil { - return val.(*DeviceHealthStatus) + return val.(*DeviceEvidence_healthStatus) } return nil } @@ -288,13 +288,13 @@ func (m *DeviceEvidence) GetMdeDeviceId()(*string) { return nil } // GetOnboardingStatus gets the onboardingStatus property value. The status of the machine onboarding to Microsoft Defender for Endpoint. The possible values are: insufficientInfo, onboarded, canBeOnboarded, unsupported, unknownFutureValue. -func (m *DeviceEvidence) GetOnboardingStatus()(*OnboardingStatus) { +func (m *DeviceEvidence) GetOnboardingStatus()(*DeviceEvidence_onboardingStatus) { val, err := m.GetBackingStore().Get("onboardingStatus") if err != nil { panic(err) } if val != nil { - return val.(*OnboardingStatus) + return val.(*DeviceEvidence_onboardingStatus) } return nil } @@ -343,13 +343,13 @@ func (m *DeviceEvidence) GetRbacGroupName()(*string) { return nil } // GetRiskScore gets the riskScore property value. Risk score as evaluated by Microsoft Defender for Endpoint. The possible values are: none, informational, low, medium, high, unknownFutureValue. -func (m *DeviceEvidence) GetRiskScore()(*DeviceRiskScore) { +func (m *DeviceEvidence) GetRiskScore()(*DeviceEvidence_riskScore) { val, err := m.GetBackingStore().Get("riskScore") if err != nil { panic(err) } if val != nil { - return val.(*DeviceRiskScore) + return val.(*DeviceEvidence_riskScore) } return nil } @@ -497,7 +497,7 @@ func (m *DeviceEvidence) SetAzureAdDeviceId(value *string)() { } } // SetDefenderAvStatus sets the defenderAvStatus property value. State of the Defender AntiMalware engine. The possible values are: notReporting, disabled, notUpdated, updated, unknown, notSupported, unknownFutureValue. -func (m *DeviceEvidence) SetDefenderAvStatus(value *DefenderAvStatus)() { +func (m *DeviceEvidence) SetDefenderAvStatus(value *DeviceEvidence_defenderAvStatus)() { err := m.GetBackingStore().Set("defenderAvStatus", value) if err != nil { panic(err) @@ -518,7 +518,7 @@ func (m *DeviceEvidence) SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3 } } // SetHealthStatus sets the healthStatus property value. The health state of the device. The possible values are: active, inactive, impairedCommunication, noSensorData, noSensorDataImpairedCommunication, unknown, unknownFutureValue. -func (m *DeviceEvidence) SetHealthStatus(value *DeviceHealthStatus)() { +func (m *DeviceEvidence) SetHealthStatus(value *DeviceEvidence_healthStatus)() { err := m.GetBackingStore().Set("healthStatus", value) if err != nil { panic(err) @@ -546,7 +546,7 @@ func (m *DeviceEvidence) SetMdeDeviceId(value *string)() { } } // SetOnboardingStatus sets the onboardingStatus property value. The status of the machine onboarding to Microsoft Defender for Endpoint. The possible values are: insufficientInfo, onboarded, canBeOnboarded, unsupported, unknownFutureValue. -func (m *DeviceEvidence) SetOnboardingStatus(value *OnboardingStatus)() { +func (m *DeviceEvidence) SetOnboardingStatus(value *DeviceEvidence_onboardingStatus)() { err := m.GetBackingStore().Set("onboardingStatus", value) if err != nil { panic(err) @@ -581,7 +581,7 @@ func (m *DeviceEvidence) SetRbacGroupName(value *string)() { } } // SetRiskScore sets the riskScore property value. Risk score as evaluated by Microsoft Defender for Endpoint. The possible values are: none, informational, low, medium, high, unknownFutureValue. -func (m *DeviceEvidence) SetRiskScore(value *DeviceRiskScore)() { +func (m *DeviceEvidence) SetRiskScore(value *DeviceEvidence_riskScore)() { err := m.GetBackingStore().Set("riskScore", value) if err != nil { panic(err) @@ -606,35 +606,35 @@ type DeviceEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAzureAdDeviceId()(*string) - GetDefenderAvStatus()(*DefenderAvStatus) + GetDefenderAvStatus()(*DeviceEvidence_defenderAvStatus) GetDeviceDnsName()(*string) GetFirstSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetHealthStatus()(*DeviceHealthStatus) + GetHealthStatus()(*DeviceEvidence_healthStatus) GetIpInterfaces()([]string) GetLoggedOnUsers()([]LoggedOnUserable) GetMdeDeviceId()(*string) - GetOnboardingStatus()(*OnboardingStatus) + GetOnboardingStatus()(*DeviceEvidence_onboardingStatus) GetOsBuild()(*int64) GetOsPlatform()(*string) GetRbacGroupId()(*int32) GetRbacGroupName()(*string) - GetRiskScore()(*DeviceRiskScore) + GetRiskScore()(*DeviceEvidence_riskScore) GetVersion()(*string) GetVmMetadata()(VmMetadataable) SetAzureAdDeviceId(value *string)() - SetDefenderAvStatus(value *DefenderAvStatus)() + SetDefenderAvStatus(value *DeviceEvidence_defenderAvStatus)() SetDeviceDnsName(value *string)() SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetHealthStatus(value *DeviceHealthStatus)() + SetHealthStatus(value *DeviceEvidence_healthStatus)() SetIpInterfaces(value []string)() SetLoggedOnUsers(value []LoggedOnUserable)() SetMdeDeviceId(value *string)() - SetOnboardingStatus(value *OnboardingStatus)() + SetOnboardingStatus(value *DeviceEvidence_onboardingStatus)() SetOsBuild(value *int64)() SetOsPlatform(value *string)() SetRbacGroupId(value *int32)() SetRbacGroupName(value *string)() - SetRiskScore(value *DeviceRiskScore)() + SetRiskScore(value *DeviceEvidence_riskScore)() SetVersion(value *string)() SetVmMetadata(value VmMetadataable)() } diff --git a/models/security/device_evidence_defender_av_status.go b/models/security/device_evidence_defender_av_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/device_evidence_health_status.go b/models/security/device_evidence_health_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/device_evidence_onboarding_status.go b/models/security/device_evidence_onboarding_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/device_evidence_risk_score.go b/models/security/device_evidence_risk_score.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/device_health_status.go b/models/security/device_health_status.go deleted file mode 100644 index c492f8b6a33..00000000000 --- a/models/security/device_health_status.go +++ /dev/null @@ -1,52 +0,0 @@ -package security -import ( - "errors" -) -// -type DeviceHealthStatus int - -const ( - ACTIVE_DEVICEHEALTHSTATUS DeviceHealthStatus = iota - INACTIVE_DEVICEHEALTHSTATUS - IMPAIREDCOMMUNICATION_DEVICEHEALTHSTATUS - NOSENSORDATA_DEVICEHEALTHSTATUS - NOSENSORDATAIMPAIREDCOMMUNICATION_DEVICEHEALTHSTATUS - UNKNOWN_DEVICEHEALTHSTATUS - UNKNOWNFUTUREVALUE_DEVICEHEALTHSTATUS -) - -func (i DeviceHealthStatus) String() string { - return []string{"active", "inactive", "impairedCommunication", "noSensorData", "noSensorDataImpairedCommunication", "unknown", "unknownFutureValue"}[i] -} -func ParseDeviceHealthStatus(v string) (any, error) { - result := ACTIVE_DEVICEHEALTHSTATUS - switch v { - case "active": - result = ACTIVE_DEVICEHEALTHSTATUS - case "inactive": - result = INACTIVE_DEVICEHEALTHSTATUS - case "impairedCommunication": - result = IMPAIREDCOMMUNICATION_DEVICEHEALTHSTATUS - case "noSensorData": - result = NOSENSORDATA_DEVICEHEALTHSTATUS - case "noSensorDataImpairedCommunication": - result = NOSENSORDATAIMPAIREDCOMMUNICATION_DEVICEHEALTHSTATUS - case "unknown": - result = UNKNOWN_DEVICEHEALTHSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DEVICEHEALTHSTATUS - default: - return 0, errors.New("Unknown DeviceHealthStatus value: " + v) - } - return &result, nil -} -func SerializeDeviceHealthStatus(values []DeviceHealthStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DeviceHealthStatus) isMultiValue() bool { - return false -} diff --git a/models/security/device_risk_score.go b/models/security/device_risk_score.go deleted file mode 100644 index 7d3603a7442..00000000000 --- a/models/security/device_risk_score.go +++ /dev/null @@ -1,49 +0,0 @@ -package security -import ( - "errors" -) -// -type DeviceRiskScore int - -const ( - NONE_DEVICERISKSCORE DeviceRiskScore = iota - INFORMATIONAL_DEVICERISKSCORE - LOW_DEVICERISKSCORE - MEDIUM_DEVICERISKSCORE - HIGH_DEVICERISKSCORE - UNKNOWNFUTUREVALUE_DEVICERISKSCORE -) - -func (i DeviceRiskScore) String() string { - return []string{"none", "informational", "low", "medium", "high", "unknownFutureValue"}[i] -} -func ParseDeviceRiskScore(v string) (any, error) { - result := NONE_DEVICERISKSCORE - switch v { - case "none": - result = NONE_DEVICERISKSCORE - case "informational": - result = INFORMATIONAL_DEVICERISKSCORE - case "low": - result = LOW_DEVICERISKSCORE - case "medium": - result = MEDIUM_DEVICERISKSCORE - case "high": - result = HIGH_DEVICERISKSCORE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_DEVICERISKSCORE - default: - return 0, errors.New("Unknown DeviceRiskScore value: " + v) - } - return &result, nil -} -func SerializeDeviceRiskScore(values []DeviceRiskScore) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i DeviceRiskScore) isMultiValue() bool { - return false -} diff --git a/models/security/ediscovery_export_operation.go b/models/security/ediscovery_export_operation.go index e8a45563d51..bbdbf8f5700 100644 --- a/models/security/ediscovery_export_operation.go +++ b/models/security/ediscovery_export_operation.go @@ -64,24 +64,24 @@ func (m *EdiscoveryExportOperation) GetExportFileMetadata()([]ExportFileMetadata return nil } // GetExportOptions gets the exportOptions property value. The options provided for the export. For more information, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, fileInfo, tags. The fileInfo member is deprecated and will stop returning data on April 30, 2023. Going forward, the summary and load file are always included. -func (m *EdiscoveryExportOperation) GetExportOptions()(*ExportOptions) { +func (m *EdiscoveryExportOperation) GetExportOptions()(*EdiscoveryExportOperation_exportOptions) { val, err := m.GetBackingStore().Get("exportOptions") if err != nil { panic(err) } if val != nil { - return val.(*ExportOptions) + return val.(*EdiscoveryExportOperation_exportOptions) } return nil } // GetExportStructure gets the exportStructure property value. The options provided that specify the structure of the export. For more information, see reviewSet: export. Possible values are: none, directory, pst. -func (m *EdiscoveryExportOperation) GetExportStructure()(*ExportFileStructure) { +func (m *EdiscoveryExportOperation) GetExportStructure()(*EdiscoveryExportOperation_exportStructure) { val, err := m.GetBackingStore().Get("exportStructure") if err != nil { panic(err) } if val != nil { - return val.(*ExportFileStructure) + return val.(*EdiscoveryExportOperation_exportStructure) } return nil } @@ -135,22 +135,22 @@ func (m *EdiscoveryExportOperation) GetFieldDeserializers()(map[string]func(i878 return nil } res["exportOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExportOptions) + val, err := n.GetEnumValue(ParseEdiscoveryExportOperation_exportOptions) if err != nil { return err } if val != nil { - m.SetExportOptions(val.(*ExportOptions)) + m.SetExportOptions(val.(*EdiscoveryExportOperation_exportOptions)) } return nil } res["exportStructure"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExportFileStructure) + val, err := n.GetEnumValue(ParseEdiscoveryExportOperation_exportStructure) if err != nil { return err } if val != nil { - m.SetExportStructure(val.(*ExportFileStructure)) + m.SetExportStructure(val.(*EdiscoveryExportOperation_exportStructure)) } return nil } @@ -345,14 +345,14 @@ func (m *EdiscoveryExportOperation) SetExportFileMetadata(value []ExportFileMeta } } // SetExportOptions sets the exportOptions property value. The options provided for the export. For more information, see reviewSet: export. Possible values are: originalFiles, text, pdfReplacement, fileInfo, tags. The fileInfo member is deprecated and will stop returning data on April 30, 2023. Going forward, the summary and load file are always included. -func (m *EdiscoveryExportOperation) SetExportOptions(value *ExportOptions)() { +func (m *EdiscoveryExportOperation) SetExportOptions(value *EdiscoveryExportOperation_exportOptions)() { err := m.GetBackingStore().Set("exportOptions", value) if err != nil { panic(err) } } // SetExportStructure sets the exportStructure property value. The options provided that specify the structure of the export. For more information, see reviewSet: export. Possible values are: none, directory, pst. -func (m *EdiscoveryExportOperation) SetExportStructure(value *ExportFileStructure)() { +func (m *EdiscoveryExportOperation) SetExportStructure(value *EdiscoveryExportOperation_exportStructure)() { err := m.GetBackingStore().Set("exportStructure", value) if err != nil { panic(err) @@ -394,8 +394,8 @@ type EdiscoveryExportOperationable interface { GetAzureBlobToken()(*string) GetDescription()(*string) GetExportFileMetadata()([]ExportFileMetadataable) - GetExportOptions()(*ExportOptions) - GetExportStructure()(*ExportFileStructure) + GetExportOptions()(*EdiscoveryExportOperation_exportOptions) + GetExportStructure()(*EdiscoveryExportOperation_exportStructure) GetOutputFolderId()(*string) GetOutputName()(*string) GetReviewSet()(EdiscoveryReviewSetable) @@ -404,8 +404,8 @@ type EdiscoveryExportOperationable interface { SetAzureBlobToken(value *string)() SetDescription(value *string)() SetExportFileMetadata(value []ExportFileMetadataable)() - SetExportOptions(value *ExportOptions)() - SetExportStructure(value *ExportFileStructure)() + SetExportOptions(value *EdiscoveryExportOperation_exportOptions)() + SetExportStructure(value *EdiscoveryExportOperation_exportStructure)() SetOutputFolderId(value *string)() SetOutputName(value *string)() SetReviewSet(value EdiscoveryReviewSetable)() diff --git a/models/security/ediscovery_export_operation_export_options.go b/models/security/ediscovery_export_operation_export_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/ediscovery_export_operation_export_structure.go b/models/security/ediscovery_export_operation_export_structure.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/ediscovery_review_tag.go b/models/security/ediscovery_review_tag.go index 9c16ad8bf9c..20dbb4b9135 100644 --- a/models/security/ediscovery_review_tag.go +++ b/models/security/ediscovery_review_tag.go @@ -22,13 +22,13 @@ func CreateEdiscoveryReviewTagFromDiscriminatorValue(parseNode i878a80d2330e89d2 return NewEdiscoveryReviewTag(), nil } // GetChildSelectability gets the childSelectability property value. Indicates whether a single or multiple child tags can be associated with a document. Possible values are: One, Many. This value controls whether the UX presents the tags as checkboxes or a radio button group. -func (m *EdiscoveryReviewTag) GetChildSelectability()(*ChildSelectability) { +func (m *EdiscoveryReviewTag) GetChildSelectability()(*EdiscoveryReviewTag_childSelectability) { val, err := m.GetBackingStore().Get("childSelectability") if err != nil { panic(err) } if val != nil { - return val.(*ChildSelectability) + return val.(*EdiscoveryReviewTag_childSelectability) } return nil } @@ -47,12 +47,12 @@ func (m *EdiscoveryReviewTag) GetChildTags()([]EdiscoveryReviewTagable) { func (m *EdiscoveryReviewTag) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Tag.GetFieldDeserializers() res["childSelectability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseChildSelectability) + val, err := n.GetEnumValue(ParseEdiscoveryReviewTag_childSelectability) if err != nil { return err } if val != nil { - m.SetChildSelectability(val.(*ChildSelectability)) + m.SetChildSelectability(val.(*EdiscoveryReviewTag_childSelectability)) } return nil } @@ -129,7 +129,7 @@ func (m *EdiscoveryReviewTag) Serialize(writer i878a80d2330e89d26896388a3f487eef return nil } // SetChildSelectability sets the childSelectability property value. Indicates whether a single or multiple child tags can be associated with a document. Possible values are: One, Many. This value controls whether the UX presents the tags as checkboxes or a radio button group. -func (m *EdiscoveryReviewTag) SetChildSelectability(value *ChildSelectability)() { +func (m *EdiscoveryReviewTag) SetChildSelectability(value *EdiscoveryReviewTag_childSelectability)() { err := m.GetBackingStore().Set("childSelectability", value) if err != nil { panic(err) @@ -153,10 +153,10 @@ func (m *EdiscoveryReviewTag) SetParent(value EdiscoveryReviewTagable)() { type EdiscoveryReviewTagable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable Tagable - GetChildSelectability()(*ChildSelectability) + GetChildSelectability()(*EdiscoveryReviewTag_childSelectability) GetChildTags()([]EdiscoveryReviewTagable) GetParent()(EdiscoveryReviewTagable) - SetChildSelectability(value *ChildSelectability)() + SetChildSelectability(value *EdiscoveryReviewTag_childSelectability)() SetChildTags(value []EdiscoveryReviewTagable)() SetParent(value EdiscoveryReviewTagable)() } diff --git a/models/security/ediscovery_review_tag_child_selectability.go b/models/security/ediscovery_review_tag_child_selectability.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/ediscovery_search.go b/models/security/ediscovery_search.go index 0157f1314a6..d42b1794c2a 100644 --- a/models/security/ediscovery_search.go +++ b/models/security/ediscovery_search.go @@ -55,13 +55,13 @@ func (m *EdiscoverySearch) GetCustodianSources()([]DataSourceable) { return nil } // GetDataSourceScopes gets the dataSourceScopes property value. When specified, the collection will span across a service for an entire workload. Possible values are: none, allTenantMailboxes, allTenantSites, allCaseCustodians, allCaseNoncustodialDataSources. -func (m *EdiscoverySearch) GetDataSourceScopes()(*DataSourceScopes) { +func (m *EdiscoverySearch) GetDataSourceScopes()(*EdiscoverySearch_dataSourceScopes) { val, err := m.GetBackingStore().Get("dataSourceScopes") if err != nil { panic(err) } if val != nil { - return val.(*DataSourceScopes) + return val.(*EdiscoverySearch_dataSourceScopes) } return nil } @@ -111,12 +111,12 @@ func (m *EdiscoverySearch) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["dataSourceScopes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSourceScopes) + val, err := n.GetEnumValue(ParseEdiscoverySearch_dataSourceScopes) if err != nil { return err } if val != nil { - m.SetDataSourceScopes(val.(*DataSourceScopes)) + m.SetDataSourceScopes(val.(*EdiscoverySearch_dataSourceScopes)) } return nil } @@ -255,7 +255,7 @@ func (m *EdiscoverySearch) SetCustodianSources(value []DataSourceable)() { } } // SetDataSourceScopes sets the dataSourceScopes property value. When specified, the collection will span across a service for an entire workload. Possible values are: none, allTenantMailboxes, allTenantSites, allCaseCustodians, allCaseNoncustodialDataSources. -func (m *EdiscoverySearch) SetDataSourceScopes(value *DataSourceScopes)() { +func (m *EdiscoverySearch) SetDataSourceScopes(value *EdiscoverySearch_dataSourceScopes)() { err := m.GetBackingStore().Set("dataSourceScopes", value) if err != nil { panic(err) @@ -282,13 +282,13 @@ type EdiscoverySearchable interface { GetAdditionalSources()([]DataSourceable) GetAddToReviewSetOperation()(EdiscoveryAddToReviewSetOperationable) GetCustodianSources()([]DataSourceable) - GetDataSourceScopes()(*DataSourceScopes) + GetDataSourceScopes()(*EdiscoverySearch_dataSourceScopes) GetLastEstimateStatisticsOperation()(EdiscoveryEstimateOperationable) GetNoncustodialSources()([]EdiscoveryNoncustodialDataSourceable) SetAdditionalSources(value []DataSourceable)() SetAddToReviewSetOperation(value EdiscoveryAddToReviewSetOperationable)() SetCustodianSources(value []DataSourceable)() - SetDataSourceScopes(value *DataSourceScopes)() + SetDataSourceScopes(value *EdiscoverySearch_dataSourceScopes)() SetLastEstimateStatisticsOperation(value EdiscoveryEstimateOperationable)() SetNoncustodialSources(value []EdiscoveryNoncustodialDataSourceable)() } diff --git a/models/security/ediscovery_search_data_source_scopes.go b/models/security/ediscovery_search_data_source_scopes.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/ediscovery_search_export_operation.go b/models/security/ediscovery_search_export_operation.go index faab829d6fa..f412fc421c2 100644 --- a/models/security/ediscovery_search_export_operation.go +++ b/models/security/ediscovery_search_export_operation.go @@ -20,13 +20,13 @@ func CreateEdiscoverySearchExportOperationFromDiscriminatorValue(parseNode i878a return NewEdiscoverySearchExportOperation(), nil } // GetAdditionalOptions gets the additionalOptions property value. The additionalOptions property -func (m *EdiscoverySearchExportOperation) GetAdditionalOptions()(*AdditionalOptions) { +func (m *EdiscoverySearchExportOperation) GetAdditionalOptions()(*EdiscoverySearchExportOperation_additionalOptions) { val, err := m.GetBackingStore().Get("additionalOptions") if err != nil { panic(err) } if val != nil { - return val.(*AdditionalOptions) + return val.(*EdiscoverySearchExportOperation_additionalOptions) } return nil } @@ -53,13 +53,13 @@ func (m *EdiscoverySearchExportOperation) GetDisplayName()(*string) { return nil } // GetExportCriteria gets the exportCriteria property value. The exportCriteria property -func (m *EdiscoverySearchExportOperation) GetExportCriteria()(*ExportCriteria) { +func (m *EdiscoverySearchExportOperation) GetExportCriteria()(*EdiscoverySearchExportOperation_exportCriteria) { val, err := m.GetBackingStore().Get("exportCriteria") if err != nil { panic(err) } if val != nil { - return val.(*ExportCriteria) + return val.(*EdiscoverySearchExportOperation_exportCriteria) } return nil } @@ -75,24 +75,24 @@ func (m *EdiscoverySearchExportOperation) GetExportFileMetadata()([]ExportFileMe return nil } // GetExportFormat gets the exportFormat property value. The exportFormat property -func (m *EdiscoverySearchExportOperation) GetExportFormat()(*ExportFormat) { +func (m *EdiscoverySearchExportOperation) GetExportFormat()(*EdiscoverySearchExportOperation_exportFormat) { val, err := m.GetBackingStore().Get("exportFormat") if err != nil { panic(err) } if val != nil { - return val.(*ExportFormat) + return val.(*EdiscoverySearchExportOperation_exportFormat) } return nil } // GetExportLocation gets the exportLocation property value. The exportLocation property -func (m *EdiscoverySearchExportOperation) GetExportLocation()(*ExportLocation) { +func (m *EdiscoverySearchExportOperation) GetExportLocation()(*EdiscoverySearchExportOperation_exportLocation) { val, err := m.GetBackingStore().Get("exportLocation") if err != nil { panic(err) } if val != nil { - return val.(*ExportLocation) + return val.(*EdiscoverySearchExportOperation_exportLocation) } return nil } @@ -111,12 +111,12 @@ func (m *EdiscoverySearchExportOperation) GetExportSingleItems()(*bool) { func (m *EdiscoverySearchExportOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CaseOperation.GetFieldDeserializers() res["additionalOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAdditionalOptions) + val, err := n.GetEnumValue(ParseEdiscoverySearchExportOperation_additionalOptions) if err != nil { return err } if val != nil { - m.SetAdditionalOptions(val.(*AdditionalOptions)) + m.SetAdditionalOptions(val.(*EdiscoverySearchExportOperation_additionalOptions)) } return nil } @@ -141,12 +141,12 @@ func (m *EdiscoverySearchExportOperation) GetFieldDeserializers()(map[string]fun return nil } res["exportCriteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExportCriteria) + val, err := n.GetEnumValue(ParseEdiscoverySearchExportOperation_exportCriteria) if err != nil { return err } if val != nil { - m.SetExportCriteria(val.(*ExportCriteria)) + m.SetExportCriteria(val.(*EdiscoverySearchExportOperation_exportCriteria)) } return nil } @@ -167,22 +167,22 @@ func (m *EdiscoverySearchExportOperation) GetFieldDeserializers()(map[string]fun return nil } res["exportFormat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExportFormat) + val, err := n.GetEnumValue(ParseEdiscoverySearchExportOperation_exportFormat) if err != nil { return err } if val != nil { - m.SetExportFormat(val.(*ExportFormat)) + m.SetExportFormat(val.(*EdiscoverySearchExportOperation_exportFormat)) } return nil } res["exportLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExportLocation) + val, err := n.GetEnumValue(ParseEdiscoverySearchExportOperation_exportLocation) if err != nil { return err } if val != nil { - m.SetExportLocation(val.(*ExportLocation)) + m.SetExportLocation(val.(*EdiscoverySearchExportOperation_exportLocation)) } return nil } @@ -292,7 +292,7 @@ func (m *EdiscoverySearchExportOperation) Serialize(writer i878a80d2330e89d26896 return nil } // SetAdditionalOptions sets the additionalOptions property value. The additionalOptions property -func (m *EdiscoverySearchExportOperation) SetAdditionalOptions(value *AdditionalOptions)() { +func (m *EdiscoverySearchExportOperation) SetAdditionalOptions(value *EdiscoverySearchExportOperation_additionalOptions)() { err := m.GetBackingStore().Set("additionalOptions", value) if err != nil { panic(err) @@ -313,7 +313,7 @@ func (m *EdiscoverySearchExportOperation) SetDisplayName(value *string)() { } } // SetExportCriteria sets the exportCriteria property value. The exportCriteria property -func (m *EdiscoverySearchExportOperation) SetExportCriteria(value *ExportCriteria)() { +func (m *EdiscoverySearchExportOperation) SetExportCriteria(value *EdiscoverySearchExportOperation_exportCriteria)() { err := m.GetBackingStore().Set("exportCriteria", value) if err != nil { panic(err) @@ -327,14 +327,14 @@ func (m *EdiscoverySearchExportOperation) SetExportFileMetadata(value []ExportFi } } // SetExportFormat sets the exportFormat property value. The exportFormat property -func (m *EdiscoverySearchExportOperation) SetExportFormat(value *ExportFormat)() { +func (m *EdiscoverySearchExportOperation) SetExportFormat(value *EdiscoverySearchExportOperation_exportFormat)() { err := m.GetBackingStore().Set("exportFormat", value) if err != nil { panic(err) } } // SetExportLocation sets the exportLocation property value. The exportLocation property -func (m *EdiscoverySearchExportOperation) SetExportLocation(value *ExportLocation)() { +func (m *EdiscoverySearchExportOperation) SetExportLocation(value *EdiscoverySearchExportOperation_exportLocation)() { err := m.GetBackingStore().Set("exportLocation", value) if err != nil { panic(err) @@ -358,22 +358,22 @@ func (m *EdiscoverySearchExportOperation) SetSearch(value EdiscoverySearchable)( type EdiscoverySearchExportOperationable interface { CaseOperationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdditionalOptions()(*AdditionalOptions) + GetAdditionalOptions()(*EdiscoverySearchExportOperation_additionalOptions) GetDescription()(*string) GetDisplayName()(*string) - GetExportCriteria()(*ExportCriteria) + GetExportCriteria()(*EdiscoverySearchExportOperation_exportCriteria) GetExportFileMetadata()([]ExportFileMetadataable) - GetExportFormat()(*ExportFormat) - GetExportLocation()(*ExportLocation) + GetExportFormat()(*EdiscoverySearchExportOperation_exportFormat) + GetExportLocation()(*EdiscoverySearchExportOperation_exportLocation) GetExportSingleItems()(*bool) GetSearch()(EdiscoverySearchable) - SetAdditionalOptions(value *AdditionalOptions)() + SetAdditionalOptions(value *EdiscoverySearchExportOperation_additionalOptions)() SetDescription(value *string)() SetDisplayName(value *string)() - SetExportCriteria(value *ExportCriteria)() + SetExportCriteria(value *EdiscoverySearchExportOperation_exportCriteria)() SetExportFileMetadata(value []ExportFileMetadataable)() - SetExportFormat(value *ExportFormat)() - SetExportLocation(value *ExportLocation)() + SetExportFormat(value *EdiscoverySearchExportOperation_exportFormat)() + SetExportLocation(value *EdiscoverySearchExportOperation_exportLocation)() SetExportSingleItems(value *bool)() SetSearch(value EdiscoverySearchable)() } diff --git a/models/security/ediscovery_search_export_operation_additional_options.go b/models/security/ediscovery_search_export_operation_additional_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/ediscovery_search_export_operation_export_criteria.go b/models/security/ediscovery_search_export_operation_export_criteria.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/ediscovery_search_export_operation_export_format.go b/models/security/ediscovery_search_export_operation_export_format.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/ediscovery_search_export_operation_export_location.go b/models/security/ediscovery_search_export_operation_export_location.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/email_threat_submission.go b/models/security/email_threat_submission.go index faba0c5940d..5795ddc45d1 100644 --- a/models/security/email_threat_submission.go +++ b/models/security/email_threat_submission.go @@ -77,12 +77,12 @@ func (m *EmailThreatSubmission) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["originalCategory"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubmissionCategory) + val, err := n.GetEnumValue(ParseEmailThreatSubmission_originalCategory) if err != nil { return err } if val != nil { - m.SetOriginalCategory(val.(*SubmissionCategory)) + m.SetOriginalCategory(val.(*EmailThreatSubmission_originalCategory)) } return nil } @@ -160,13 +160,13 @@ func (m *EmailThreatSubmission) GetInternetMessageId()(*string) { return nil } // GetOriginalCategory gets the originalCategory property value. The original category of the submission. The possible values are: notJunk, spam, phishing, malware and unkownFutureValue. -func (m *EmailThreatSubmission) GetOriginalCategory()(*SubmissionCategory) { +func (m *EmailThreatSubmission) GetOriginalCategory()(*EmailThreatSubmission_originalCategory) { val, err := m.GetBackingStore().Get("originalCategory") if err != nil { panic(err) } if val != nil { - return val.(*SubmissionCategory) + return val.(*EmailThreatSubmission_originalCategory) } return nil } @@ -314,7 +314,7 @@ func (m *EmailThreatSubmission) SetInternetMessageId(value *string)() { } } // SetOriginalCategory sets the originalCategory property value. The original category of the submission. The possible values are: notJunk, spam, phishing, malware and unkownFutureValue. -func (m *EmailThreatSubmission) SetOriginalCategory(value *SubmissionCategory)() { +func (m *EmailThreatSubmission) SetOriginalCategory(value *EmailThreatSubmission_originalCategory)() { err := m.GetBackingStore().Set("originalCategory", value) if err != nil { panic(err) @@ -368,7 +368,7 @@ type EmailThreatSubmissionable interface { ThreatSubmissionable GetAttackSimulationInfo()(AttackSimulationInfoable) GetInternetMessageId()(*string) - GetOriginalCategory()(*SubmissionCategory) + GetOriginalCategory()(*EmailThreatSubmission_originalCategory) GetReceivedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRecipientEmailAddress()(*string) GetSender()(*string) @@ -377,7 +377,7 @@ type EmailThreatSubmissionable interface { GetTenantAllowOrBlockListAction()(TenantAllowOrBlockListActionable) SetAttackSimulationInfo(value AttackSimulationInfoable)() SetInternetMessageId(value *string)() - SetOriginalCategory(value *SubmissionCategory)() + SetOriginalCategory(value *EmailThreatSubmission_originalCategory)() SetReceivedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRecipientEmailAddress(value *string)() SetSender(value *string)() diff --git a/models/security/email_threat_submission_original_category.go b/models/security/email_threat_submission_original_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/event_propagation_result.go b/models/security/event_propagation_result.go index 1484ccea7bf..1fe72747179 100644 --- a/models/security/event_propagation_result.go +++ b/models/security/event_propagation_result.go @@ -72,12 +72,12 @@ func (m *EventPropagationResult) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEventPropagationStatus) + val, err := n.GetEnumValue(ParseEventPropagationResult_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*EventPropagationStatus)) + m.SetStatus(val.(*EventPropagationResult_status)) } return nil } @@ -127,13 +127,13 @@ func (m *EventPropagationResult) GetServiceName()(*string) { return nil } // GetStatus gets the status property value. Indicates the status of the event creation request. The possible values are: none, inProcessing, failed, success. -func (m *EventPropagationResult) GetStatus()(*EventPropagationStatus) { +func (m *EventPropagationResult) GetStatus()(*EventPropagationResult_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*EventPropagationStatus) + return val.(*EventPropagationResult_status) } return nil } @@ -222,7 +222,7 @@ func (m *EventPropagationResult) SetServiceName(value *string)() { } } // SetStatus sets the status property value. Indicates the status of the event creation request. The possible values are: none, inProcessing, failed, success. -func (m *EventPropagationResult) SetStatus(value *EventPropagationStatus)() { +func (m *EventPropagationResult) SetStatus(value *EventPropagationResult_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -244,12 +244,12 @@ type EventPropagationResultable interface { GetLocation()(*string) GetOdataType()(*string) GetServiceName()(*string) - GetStatus()(*EventPropagationStatus) + GetStatus()(*EventPropagationResult_status) GetStatusInformation()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetLocation(value *string)() SetOdataType(value *string)() SetServiceName(value *string)() - SetStatus(value *EventPropagationStatus)() + SetStatus(value *EventPropagationResult_status)() SetStatusInformation(value *string)() } diff --git a/models/security/event_propagation_result_status.go b/models/security/event_propagation_result_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/event_propagation_status.go b/models/security/event_propagation_status.go deleted file mode 100644 index f153d846dcb..00000000000 --- a/models/security/event_propagation_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type EventPropagationStatus int - -const ( - NONE_EVENTPROPAGATIONSTATUS EventPropagationStatus = iota - INPROCESSING_EVENTPROPAGATIONSTATUS - FAILED_EVENTPROPAGATIONSTATUS - SUCCESS_EVENTPROPAGATIONSTATUS - UNKNOWNFUTUREVALUE_EVENTPROPAGATIONSTATUS -) - -func (i EventPropagationStatus) String() string { - return []string{"none", "inProcessing", "failed", "success", "unknownFutureValue"}[i] -} -func ParseEventPropagationStatus(v string) (any, error) { - result := NONE_EVENTPROPAGATIONSTATUS - switch v { - case "none": - result = NONE_EVENTPROPAGATIONSTATUS - case "inProcessing": - result = INPROCESSING_EVENTPROPAGATIONSTATUS - case "failed": - result = FAILED_EVENTPROPAGATIONSTATUS - case "success": - result = SUCCESS_EVENTPROPAGATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EVENTPROPAGATIONSTATUS - default: - return 0, errors.New("Unknown EventPropagationStatus value: " + v) - } - return &result, nil -} -func SerializeEventPropagationStatus(values []EventPropagationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EventPropagationStatus) isMultiValue() bool { - return false -} diff --git a/models/security/event_query.go b/models/security/event_query.go index 35fc29bc484..1ae3456fb64 100644 --- a/models/security/event_query.go +++ b/models/security/event_query.go @@ -62,12 +62,12 @@ func (m *EventQuery) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["queryType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseQueryType) + val, err := n.GetEnumValue(ParseEventQuery_queryType) if err != nil { return err } if val != nil { - m.SetQueryType(val.(*QueryType)) + m.SetQueryType(val.(*EventQuery_queryType)) } return nil } @@ -96,13 +96,13 @@ func (m *EventQuery) GetQuery()(*string) { return nil } // GetQueryType gets the queryType property value. The queryType property -func (m *EventQuery) GetQueryType()(*QueryType) { +func (m *EventQuery) GetQueryType()(*EventQuery_queryType) { val, err := m.GetBackingStore().Get("queryType") if err != nil { panic(err) } if val != nil { - return val.(*QueryType) + return val.(*EventQuery_queryType) } return nil } @@ -161,7 +161,7 @@ func (m *EventQuery) SetQuery(value *string)() { } } // SetQueryType sets the queryType property value. The queryType property -func (m *EventQuery) SetQueryType(value *QueryType)() { +func (m *EventQuery) SetQueryType(value *EventQuery_queryType)() { err := m.GetBackingStore().Set("queryType", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type EventQueryable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetQuery()(*string) - GetQueryType()(*QueryType) + GetQueryType()(*EventQuery_queryType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetQuery(value *string)() - SetQueryType(value *QueryType)() + SetQueryType(value *EventQuery_queryType)() } diff --git a/models/security/event_query_query_type.go b/models/security/event_query_query_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/event_status_type.go b/models/security/event_status_type.go deleted file mode 100644 index 918e933b3fc..00000000000 --- a/models/security/event_status_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type EventStatusType int - -const ( - PENDING_EVENTSTATUSTYPE EventStatusType = iota - ERROR_EVENTSTATUSTYPE - SUCCESS_EVENTSTATUSTYPE - NOTAVALIABLE_EVENTSTATUSTYPE - UNKNOWNFUTUREVALUE_EVENTSTATUSTYPE -) - -func (i EventStatusType) String() string { - return []string{"pending", "error", "success", "notAvaliable", "unknownFutureValue"}[i] -} -func ParseEventStatusType(v string) (any, error) { - result := PENDING_EVENTSTATUSTYPE - switch v { - case "pending": - result = PENDING_EVENTSTATUSTYPE - case "error": - result = ERROR_EVENTSTATUSTYPE - case "success": - result = SUCCESS_EVENTSTATUSTYPE - case "notAvaliable": - result = NOTAVALIABLE_EVENTSTATUSTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EVENTSTATUSTYPE - default: - return 0, errors.New("Unknown EventStatusType value: " + v) - } - return &result, nil -} -func SerializeEventStatusType(values []EventStatusType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i EventStatusType) isMultiValue() bool { - return false -} diff --git a/models/security/export_criteria.go b/models/security/export_criteria.go deleted file mode 100644 index a4ec9081c56..00000000000 --- a/models/security/export_criteria.go +++ /dev/null @@ -1,50 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type ExportCriteria int - -const ( - SEARCHHITS_EXPORTCRITERIA ExportCriteria = iota - PARTIALLYINDEXED_EXPORTCRITERIA - UNKNOWNFUTUREVALUE_EXPORTCRITERIA -) - -func (i ExportCriteria) String() string { - var values []string - for p := ExportCriteria(1); p <= UNKNOWNFUTUREVALUE_EXPORTCRITERIA; p <<= 1 { - if i&p == p { - values = append(values, []string{"searchHits", "partiallyIndexed", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseExportCriteria(v string) (any, error) { - var result ExportCriteria - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "searchHits": - result |= SEARCHHITS_EXPORTCRITERIA - case "partiallyIndexed": - result |= PARTIALLYINDEXED_EXPORTCRITERIA - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_EXPORTCRITERIA - default: - return 0, errors.New("Unknown ExportCriteria value: " + v) - } - } - return &result, nil -} -func SerializeExportCriteria(values []ExportCriteria) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExportCriteria) isMultiValue() bool { - return true -} diff --git a/models/security/export_file_structure.go b/models/security/export_file_structure.go deleted file mode 100644 index c6121e956cd..00000000000 --- a/models/security/export_file_structure.go +++ /dev/null @@ -1,43 +0,0 @@ -package security -import ( - "errors" -) -// -type ExportFileStructure int - -const ( - NONE_EXPORTFILESTRUCTURE ExportFileStructure = iota - DIRECTORY_EXPORTFILESTRUCTURE - PST_EXPORTFILESTRUCTURE - UNKNOWNFUTUREVALUE_EXPORTFILESTRUCTURE -) - -func (i ExportFileStructure) String() string { - return []string{"none", "directory", "pst", "unknownFutureValue"}[i] -} -func ParseExportFileStructure(v string) (any, error) { - result := NONE_EXPORTFILESTRUCTURE - switch v { - case "none": - result = NONE_EXPORTFILESTRUCTURE - case "directory": - result = DIRECTORY_EXPORTFILESTRUCTURE - case "pst": - result = PST_EXPORTFILESTRUCTURE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EXPORTFILESTRUCTURE - default: - return 0, errors.New("Unknown ExportFileStructure value: " + v) - } - return &result, nil -} -func SerializeExportFileStructure(values []ExportFileStructure) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExportFileStructure) isMultiValue() bool { - return false -} diff --git a/models/security/export_format.go b/models/security/export_format.go deleted file mode 100644 index 8ee01a4d3d5..00000000000 --- a/models/security/export_format.go +++ /dev/null @@ -1,43 +0,0 @@ -package security -import ( - "errors" -) -// -type ExportFormat int - -const ( - PST_EXPORTFORMAT ExportFormat = iota - MSG_EXPORTFORMAT - EML_EXPORTFORMAT - UNKNOWNFUTUREVALUE_EXPORTFORMAT -) - -func (i ExportFormat) String() string { - return []string{"pst", "msg", "eml", "unknownFutureValue"}[i] -} -func ParseExportFormat(v string) (any, error) { - result := PST_EXPORTFORMAT - switch v { - case "pst": - result = PST_EXPORTFORMAT - case "msg": - result = MSG_EXPORTFORMAT - case "eml": - result = EML_EXPORTFORMAT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_EXPORTFORMAT - default: - return 0, errors.New("Unknown ExportFormat value: " + v) - } - return &result, nil -} -func SerializeExportFormat(values []ExportFormat) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExportFormat) isMultiValue() bool { - return false -} diff --git a/models/security/export_location.go b/models/security/export_location.go deleted file mode 100644 index 3f483392380..00000000000 --- a/models/security/export_location.go +++ /dev/null @@ -1,50 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type ExportLocation int - -const ( - RESPONSIVELOCATIONS_EXPORTLOCATION ExportLocation = iota - NONRESPONSIVELOCATIONS_EXPORTLOCATION - UNKNOWNFUTUREVALUE_EXPORTLOCATION -) - -func (i ExportLocation) String() string { - var values []string - for p := ExportLocation(1); p <= UNKNOWNFUTUREVALUE_EXPORTLOCATION; p <<= 1 { - if i&p == p { - values = append(values, []string{"responsiveLocations", "nonresponsiveLocations", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseExportLocation(v string) (any, error) { - var result ExportLocation - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "responsiveLocations": - result |= RESPONSIVELOCATIONS_EXPORTLOCATION - case "nonresponsiveLocations": - result |= NONRESPONSIVELOCATIONS_EXPORTLOCATION - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_EXPORTLOCATION - default: - return 0, errors.New("Unknown ExportLocation value: " + v) - } - } - return &result, nil -} -func SerializeExportLocation(values []ExportLocation) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExportLocation) isMultiValue() bool { - return true -} diff --git a/models/security/export_options.go b/models/security/export_options.go deleted file mode 100644 index c87d8294ffc..00000000000 --- a/models/security/export_options.go +++ /dev/null @@ -1,59 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type ExportOptions int - -const ( - ORIGINALFILES_EXPORTOPTIONS ExportOptions = iota - TEXT_EXPORTOPTIONS - PDFREPLACEMENT_EXPORTOPTIONS - FILEINFO_EXPORTOPTIONS - TAGS_EXPORTOPTIONS - UNKNOWNFUTUREVALUE_EXPORTOPTIONS -) - -func (i ExportOptions) String() string { - var values []string - for p := ExportOptions(1); p <= UNKNOWNFUTUREVALUE_EXPORTOPTIONS; p <<= 1 { - if i&p == p { - values = append(values, []string{"originalFiles", "text", "pdfReplacement", "fileInfo", "tags", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseExportOptions(v string) (any, error) { - var result ExportOptions - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "originalFiles": - result |= ORIGINALFILES_EXPORTOPTIONS - case "text": - result |= TEXT_EXPORTOPTIONS - case "pdfReplacement": - result |= PDFREPLACEMENT_EXPORTOPTIONS - case "fileInfo": - result |= FILEINFO_EXPORTOPTIONS - case "tags": - result |= TAGS_EXPORTOPTIONS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_EXPORTOPTIONS - default: - return 0, errors.New("Unknown ExportOptions value: " + v) - } - } - return &result, nil -} -func SerializeExportOptions(values []ExportOptions) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ExportOptions) isMultiValue() bool { - return true -} diff --git a/models/security/file.go b/models/security/file.go index e20eece558d..6e8c4a4d651 100644 --- a/models/security/file.go +++ b/models/security/file.go @@ -157,12 +157,12 @@ func (m *File) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["processingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFileProcessingStatus) + val, err := n.GetEnumValue(ParseFile_processingStatus) if err != nil { return err } if val != nil { - m.SetProcessingStatus(val.(*FileProcessingStatus)) + m.SetProcessingStatus(val.(*File_processingStatus)) } return nil } @@ -193,12 +193,12 @@ func (m *File) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["sourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSourceType) + val, err := n.GetEnumValue(ParseFile_sourceType) if err != nil { return err } if val != nil { - m.SetSourceType(val.(*SourceType)) + m.SetSourceType(val.(*File_sourceType)) } return nil } @@ -248,13 +248,13 @@ func (m *File) GetOtherProperties()(StringValueDictionaryable) { return nil } // GetProcessingStatus gets the processingStatus property value. The processingStatus property -func (m *File) GetProcessingStatus()(*FileProcessingStatus) { +func (m *File) GetProcessingStatus()(*File_processingStatus) { val, err := m.GetBackingStore().Get("processingStatus") if err != nil { panic(err) } if val != nil { - return val.(*FileProcessingStatus) + return val.(*File_processingStatus) } return nil } @@ -281,13 +281,13 @@ func (m *File) GetSize()(*int64) { return nil } // GetSourceType gets the sourceType property value. The sourceType property -func (m *File) GetSourceType()(*SourceType) { +func (m *File) GetSourceType()(*File_sourceType) { val, err := m.GetBackingStore().Get("sourceType") if err != nil { panic(err) } if val != nil { - return val.(*SourceType) + return val.(*File_sourceType) } return nil } @@ -434,7 +434,7 @@ func (m *File) SetOtherProperties(value StringValueDictionaryable)() { } } // SetProcessingStatus sets the processingStatus property value. The processingStatus property -func (m *File) SetProcessingStatus(value *FileProcessingStatus)() { +func (m *File) SetProcessingStatus(value *File_processingStatus)() { err := m.GetBackingStore().Set("processingStatus", value) if err != nil { panic(err) @@ -455,7 +455,7 @@ func (m *File) SetSize(value *int64)() { } } // SetSourceType sets the sourceType property value. The sourceType property -func (m *File) SetSourceType(value *SourceType)() { +func (m *File) SetSourceType(value *File_sourceType)() { err := m.GetBackingStore().Set("sourceType", value) if err != nil { panic(err) @@ -479,10 +479,10 @@ type Fileable interface { GetMediaType()(*string) GetName()(*string) GetOtherProperties()(StringValueDictionaryable) - GetProcessingStatus()(*FileProcessingStatus) + GetProcessingStatus()(*File_processingStatus) GetSenderOrAuthors()([]string) GetSize()(*int64) - GetSourceType()(*SourceType) + GetSourceType()(*File_sourceType) GetSubjectTitle()(*string) SetContent(value []byte)() SetDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -491,9 +491,9 @@ type Fileable interface { SetMediaType(value *string)() SetName(value *string)() SetOtherProperties(value StringValueDictionaryable)() - SetProcessingStatus(value *FileProcessingStatus)() + SetProcessingStatus(value *File_processingStatus)() SetSenderOrAuthors(value []string)() SetSize(value *int64)() - SetSourceType(value *SourceType)() + SetSourceType(value *File_sourceType)() SetSubjectTitle(value *string)() } diff --git a/models/security/file_evidence.go b/models/security/file_evidence.go index 7411a9fddc0..86c0d2dad01 100644 --- a/models/security/file_evidence.go +++ b/models/security/file_evidence.go @@ -22,13 +22,13 @@ func CreateFileEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 return NewFileEvidence(), nil } // GetDetectionStatus gets the detectionStatus property value. The status of the detection.The possible values are: detected, blocked, prevented, unknownFutureValue. -func (m *FileEvidence) GetDetectionStatus()(*DetectionStatus) { +func (m *FileEvidence) GetDetectionStatus()(*FileEvidence_detectionStatus) { val, err := m.GetBackingStore().Get("detectionStatus") if err != nil { panic(err) } if val != nil { - return val.(*DetectionStatus) + return val.(*FileEvidence_detectionStatus) } return nil } @@ -36,12 +36,12 @@ func (m *FileEvidence) GetDetectionStatus()(*DetectionStatus) { func (m *FileEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AlertEvidence.GetFieldDeserializers() res["detectionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDetectionStatus) + val, err := n.GetEnumValue(ParseFileEvidence_detectionStatus) if err != nil { return err } if val != nil { - m.SetDetectionStatus(val.(*DetectionStatus)) + m.SetDetectionStatus(val.(*FileEvidence_detectionStatus)) } return nil } @@ -117,7 +117,7 @@ func (m *FileEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return nil } // SetDetectionStatus sets the detectionStatus property value. The status of the detection.The possible values are: detected, blocked, prevented, unknownFutureValue. -func (m *FileEvidence) SetDetectionStatus(value *DetectionStatus)() { +func (m *FileEvidence) SetDetectionStatus(value *FileEvidence_detectionStatus)() { err := m.GetBackingStore().Set("detectionStatus", value) if err != nil { panic(err) @@ -141,10 +141,10 @@ func (m *FileEvidence) SetMdeDeviceId(value *string)() { type FileEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDetectionStatus()(*DetectionStatus) + GetDetectionStatus()(*FileEvidence_detectionStatus) GetFileDetails()(FileDetailsable) GetMdeDeviceId()(*string) - SetDetectionStatus(value *DetectionStatus)() + SetDetectionStatus(value *FileEvidence_detectionStatus)() SetFileDetails(value FileDetailsable)() SetMdeDeviceId(value *string)() } diff --git a/models/security/file_evidence_detection_status.go b/models/security/file_evidence_detection_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/file_processing_status.go b/models/security/file_processing_status.go index 790a1ebcb90..e69de29bb2d 100644 --- a/models/security/file_processing_status.go +++ b/models/security/file_processing_status.go @@ -1,88 +0,0 @@ -package security -import ( - "errors" -) -// -type FileProcessingStatus int - -const ( - SUCCESS_FILEPROCESSINGSTATUS FileProcessingStatus = iota - INTERNALERROR_FILEPROCESSINGSTATUS - UNKNOWNERROR_FILEPROCESSINGSTATUS - PROCESSINGTIMEOUT_FILEPROCESSINGSTATUS - INVALIDFILEID_FILEPROCESSINGSTATUS - FILESIZEISZERO_FILEPROCESSINGSTATUS - FILESIZEISTOOLARGE_FILEPROCESSINGSTATUS - FILEDEPTHLIMITEXCEEDED_FILEPROCESSINGSTATUS - FILEBODYISTOOLONG_FILEPROCESSINGSTATUS - FILETYPEISUNKNOWN_FILEPROCESSINGSTATUS - FILETYPEISNOTSUPPORTED_FILEPROCESSINGSTATUS - MALFORMEDFILE_FILEPROCESSINGSTATUS - PROTECTEDFILE_FILEPROCESSINGSTATUS - POISONFILE_FILEPROCESSINGSTATUS - NOREVIEWSETSUMMARYGENERATED_FILEPROCESSINGSTATUS - EXTRACTIONEXCEPTION_FILEPROCESSINGSTATUS - OCRPROCESSINGTIMEOUT_FILEPROCESSINGSTATUS - OCRFILESIZEEXCEEDSLIMIT_FILEPROCESSINGSTATUS - UNKNOWNFUTUREVALUE_FILEPROCESSINGSTATUS -) - -func (i FileProcessingStatus) String() string { - return []string{"success", "internalError", "unknownError", "processingTimeout", "invalidFileId", "fileSizeIsZero", "fileSizeIsTooLarge", "fileDepthLimitExceeded", "fileBodyIsTooLong", "fileTypeIsUnknown", "fileTypeIsNotSupported", "malformedFile", "protectedFile", "poisonFile", "noReviewSetSummaryGenerated", "extractionException", "ocrProcessingTimeout", "ocrFileSizeExceedsLimit", "unknownFutureValue"}[i] -} -func ParseFileProcessingStatus(v string) (any, error) { - result := SUCCESS_FILEPROCESSINGSTATUS - switch v { - case "success": - result = SUCCESS_FILEPROCESSINGSTATUS - case "internalError": - result = INTERNALERROR_FILEPROCESSINGSTATUS - case "unknownError": - result = UNKNOWNERROR_FILEPROCESSINGSTATUS - case "processingTimeout": - result = PROCESSINGTIMEOUT_FILEPROCESSINGSTATUS - case "invalidFileId": - result = INVALIDFILEID_FILEPROCESSINGSTATUS - case "fileSizeIsZero": - result = FILESIZEISZERO_FILEPROCESSINGSTATUS - case "fileSizeIsTooLarge": - result = FILESIZEISTOOLARGE_FILEPROCESSINGSTATUS - case "fileDepthLimitExceeded": - result = FILEDEPTHLIMITEXCEEDED_FILEPROCESSINGSTATUS - case "fileBodyIsTooLong": - result = FILEBODYISTOOLONG_FILEPROCESSINGSTATUS - case "fileTypeIsUnknown": - result = FILETYPEISUNKNOWN_FILEPROCESSINGSTATUS - case "fileTypeIsNotSupported": - result = FILETYPEISNOTSUPPORTED_FILEPROCESSINGSTATUS - case "malformedFile": - result = MALFORMEDFILE_FILEPROCESSINGSTATUS - case "protectedFile": - result = PROTECTEDFILE_FILEPROCESSINGSTATUS - case "poisonFile": - result = POISONFILE_FILEPROCESSINGSTATUS - case "noReviewSetSummaryGenerated": - result = NOREVIEWSETSUMMARYGENERATED_FILEPROCESSINGSTATUS - case "extractionException": - result = EXTRACTIONEXCEPTION_FILEPROCESSINGSTATUS - case "ocrProcessingTimeout": - result = OCRPROCESSINGTIMEOUT_FILEPROCESSINGSTATUS - case "ocrFileSizeExceedsLimit": - result = OCRFILESIZEEXCEEDSLIMIT_FILEPROCESSINGSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_FILEPROCESSINGSTATUS - default: - return 0, errors.New("Unknown FileProcessingStatus value: " + v) - } - return &result, nil -} -func SerializeFileProcessingStatus(values []FileProcessingStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i FileProcessingStatus) isMultiValue() bool { - return false -} diff --git a/models/security/file_source_type.go b/models/security/file_source_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/formatted_content.go b/models/security/formatted_content.go index 04a15b4f16e..33a5fc468bb 100644 --- a/models/security/formatted_content.go +++ b/models/security/formatted_content.go @@ -63,12 +63,12 @@ func (m *FormattedContent) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["format"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseContentFormat) + val, err := n.GetEnumValue(ParseFormattedContent_format) if err != nil { return err } if val != nil { - m.SetFormat(val.(*ContentFormat)) + m.SetFormat(val.(*FormattedContent_format)) } return nil } @@ -85,13 +85,13 @@ func (m *FormattedContent) GetFieldDeserializers()(map[string]func(i878a80d2330e return res } // GetFormat gets the format property value. The format of the content. The possible values are: text, html, markdown, unknownFutureValue. -func (m *FormattedContent) GetFormat()(*ContentFormat) { +func (m *FormattedContent) GetFormat()(*FormattedContent_format) { val, err := m.GetBackingStore().Get("format") if err != nil { panic(err) } if val != nil { - return val.(*ContentFormat) + return val.(*FormattedContent_format) } return nil } @@ -154,7 +154,7 @@ func (m *FormattedContent) SetContent(value *string)() { } } // SetFormat sets the format property value. The format of the content. The possible values are: text, html, markdown, unknownFutureValue. -func (m *FormattedContent) SetFormat(value *ContentFormat)() { +func (m *FormattedContent) SetFormat(value *FormattedContent_format)() { err := m.GetBackingStore().Set("format", value) if err != nil { panic(err) @@ -174,10 +174,10 @@ type FormattedContentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContent()(*string) - GetFormat()(*ContentFormat) + GetFormat()(*FormattedContent_format) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContent(value *string)() - SetFormat(value *ContentFormat)() + SetFormat(value *FormattedContent_format)() SetOdataType(value *string)() } diff --git a/models/security/formatted_content_format.go b/models/security/formatted_content_format.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/google_cloud_location_type.go b/models/security/google_cloud_location_type.go deleted file mode 100644 index 5e139f9406a..00000000000 --- a/models/security/google_cloud_location_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type GoogleCloudLocationType int - -const ( - UNKNOWN_GOOGLECLOUDLOCATIONTYPE GoogleCloudLocationType = iota - REGIONAL_GOOGLECLOUDLOCATIONTYPE - ZONAL_GOOGLECLOUDLOCATIONTYPE - GLOBAL_GOOGLECLOUDLOCATIONTYPE - UNKNOWNFUTUREVALUE_GOOGLECLOUDLOCATIONTYPE -) - -func (i GoogleCloudLocationType) String() string { - return []string{"unknown", "regional", "zonal", "global", "unknownFutureValue"}[i] -} -func ParseGoogleCloudLocationType(v string) (any, error) { - result := UNKNOWN_GOOGLECLOUDLOCATIONTYPE - switch v { - case "unknown": - result = UNKNOWN_GOOGLECLOUDLOCATIONTYPE - case "regional": - result = REGIONAL_GOOGLECLOUDLOCATIONTYPE - case "zonal": - result = ZONAL_GOOGLECLOUDLOCATIONTYPE - case "global": - result = GLOBAL_GOOGLECLOUDLOCATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_GOOGLECLOUDLOCATIONTYPE - default: - return 0, errors.New("Unknown GoogleCloudLocationType value: " + v) - } - return &result, nil -} -func SerializeGoogleCloudLocationType(values []GoogleCloudLocationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i GoogleCloudLocationType) isMultiValue() bool { - return false -} diff --git a/models/security/google_cloud_resource_evidence.go b/models/security/google_cloud_resource_evidence.go index da13cfd1178..d7239c2842d 100644 --- a/models/security/google_cloud_resource_evidence.go +++ b/models/security/google_cloud_resource_evidence.go @@ -35,12 +35,12 @@ func (m *GoogleCloudResourceEvidence) GetFieldDeserializers()(map[string]func(i8 return nil } res["locationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseGoogleCloudLocationType) + val, err := n.GetEnumValue(ParseGoogleCloudResourceEvidence_locationType) if err != nil { return err } if val != nil { - m.SetLocationType(val.(*GoogleCloudLocationType)) + m.SetLocationType(val.(*GoogleCloudResourceEvidence_locationType)) } return nil } @@ -98,13 +98,13 @@ func (m *GoogleCloudResourceEvidence) GetLocation()(*string) { return nil } // GetLocationType gets the locationType property value. The type of location. Possible values are: unknown, regional, zonal, global, unknownFutureValue. -func (m *GoogleCloudResourceEvidence) GetLocationType()(*GoogleCloudLocationType) { +func (m *GoogleCloudResourceEvidence) GetLocationType()(*GoogleCloudResourceEvidence_locationType) { val, err := m.GetBackingStore().Get("locationType") if err != nil { panic(err) } if val != nil { - return val.(*GoogleCloudLocationType) + return val.(*GoogleCloudResourceEvidence_locationType) } return nil } @@ -205,7 +205,7 @@ func (m *GoogleCloudResourceEvidence) SetLocation(value *string)() { } } // SetLocationType sets the locationType property value. The type of location. Possible values are: unknown, regional, zonal, global, unknownFutureValue. -func (m *GoogleCloudResourceEvidence) SetLocationType(value *GoogleCloudLocationType)() { +func (m *GoogleCloudResourceEvidence) SetLocationType(value *GoogleCloudResourceEvidence_locationType)() { err := m.GetBackingStore().Set("locationType", value) if err != nil { panic(err) @@ -244,13 +244,13 @@ type GoogleCloudResourceEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetLocation()(*string) - GetLocationType()(*GoogleCloudLocationType) + GetLocationType()(*GoogleCloudResourceEvidence_locationType) GetProjectId()(*string) GetProjectNumber()(*int64) GetResourceName()(*string) GetResourceType()(*string) SetLocation(value *string)() - SetLocationType(value *GoogleCloudLocationType)() + SetLocationType(value *GoogleCloudResourceEvidence_locationType)() SetProjectId(value *string)() SetProjectNumber(value *int64)() SetResourceName(value *string)() diff --git a/models/security/google_cloud_resource_evidence_location_type.go b/models/security/google_cloud_resource_evidence_location_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/host_port.go b/models/security/host_port.go index 7c3da1e5b71..569b75ebe1b 100644 --- a/models/security/host_port.go +++ b/models/security/host_port.go @@ -112,12 +112,12 @@ func (m *HostPort) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["protocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseHostPortProtocol) + val, err := n.GetEnumValue(ParseHostPort_protocol) if err != nil { return err } if val != nil { - m.SetProtocol(val.(*HostPortProtocol)) + m.SetProtocol(val.(*HostPort_protocol)) } return nil } @@ -138,12 +138,12 @@ func (m *HostPort) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseHostPortStatus) + val, err := n.GetEnumValue(ParseHostPort_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*HostPortStatus)) + m.SetStatus(val.(*HostPort_status)) } return nil } @@ -226,13 +226,13 @@ func (m *HostPort) GetPort()(*int32) { return nil } // GetProtocol gets the protocol property value. The general protocol used to scan the port. The possible values are: tcp, udp, unknownFutureValue. -func (m *HostPort) GetProtocol()(*HostPortProtocol) { +func (m *HostPort) GetProtocol()(*HostPort_protocol) { val, err := m.GetBackingStore().Get("protocol") if err != nil { panic(err) } if val != nil { - return val.(*HostPortProtocol) + return val.(*HostPort_protocol) } return nil } @@ -248,13 +248,13 @@ func (m *HostPort) GetServices()([]HostPortComponentable) { return nil } // GetStatus gets the status property value. The status of the port. The possible values are: open, filtered, closed, unknownFutureValue. -func (m *HostPort) GetStatus()(*HostPortStatus) { +func (m *HostPort) GetStatus()(*HostPort_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*HostPortStatus) + return val.(*HostPort_status) } return nil } @@ -407,7 +407,7 @@ func (m *HostPort) SetPort(value *int32)() { } } // SetProtocol sets the protocol property value. The general protocol used to scan the port. The possible values are: tcp, udp, unknownFutureValue. -func (m *HostPort) SetProtocol(value *HostPortProtocol)() { +func (m *HostPort) SetProtocol(value *HostPort_protocol)() { err := m.GetBackingStore().Set("protocol", value) if err != nil { panic(err) @@ -421,7 +421,7 @@ func (m *HostPort) SetServices(value []HostPortComponentable)() { } } // SetStatus sets the status property value. The status of the port. The possible values are: open, filtered, closed, unknownFutureValue. -func (m *HostPort) SetStatus(value *HostPortStatus)() { +func (m *HostPort) SetStatus(value *HostPort_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -445,9 +445,9 @@ type HostPortable interface { GetLastSeenDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMostRecentSslCertificate()(SslCertificateable) GetPort()(*int32) - GetProtocol()(*HostPortProtocol) + GetProtocol()(*HostPort_protocol) GetServices()([]HostPortComponentable) - GetStatus()(*HostPortStatus) + GetStatus()(*HostPort_status) GetTimesObserved()(*int32) SetBanners(value []HostPortBannerable)() SetFirstSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -456,8 +456,8 @@ type HostPortable interface { SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMostRecentSslCertificate(value SslCertificateable)() SetPort(value *int32)() - SetProtocol(value *HostPortProtocol)() + SetProtocol(value *HostPort_protocol)() SetServices(value []HostPortComponentable)() - SetStatus(value *HostPortStatus)() + SetStatus(value *HostPort_status)() SetTimesObserved(value *int32)() } diff --git a/models/security/host_port_protocol.go b/models/security/host_port_protocol.go index 9cf4614e9aa..e69de29bb2d 100644 --- a/models/security/host_port_protocol.go +++ b/models/security/host_port_protocol.go @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type HostPortProtocol int - -const ( - TCP_HOSTPORTPROTOCOL HostPortProtocol = iota - UDP_HOSTPORTPROTOCOL - UNKNOWNFUTUREVALUE_HOSTPORTPROTOCOL -) - -func (i HostPortProtocol) String() string { - return []string{"tcp", "udp", "unknownFutureValue"}[i] -} -func ParseHostPortProtocol(v string) (any, error) { - result := TCP_HOSTPORTPROTOCOL - switch v { - case "tcp": - result = TCP_HOSTPORTPROTOCOL - case "udp": - result = UDP_HOSTPORTPROTOCOL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_HOSTPORTPROTOCOL - default: - return 0, errors.New("Unknown HostPortProtocol value: " + v) - } - return &result, nil -} -func SerializeHostPortProtocol(values []HostPortProtocol) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i HostPortProtocol) isMultiValue() bool { - return false -} diff --git a/models/security/host_port_status.go b/models/security/host_port_status.go index 9bfb7869fa3..e69de29bb2d 100644 --- a/models/security/host_port_status.go +++ b/models/security/host_port_status.go @@ -1,43 +0,0 @@ -package security -import ( - "errors" -) -// -type HostPortStatus int - -const ( - OPEN_HOSTPORTSTATUS HostPortStatus = iota - FILTERED_HOSTPORTSTATUS - CLOSED_HOSTPORTSTATUS - UNKNOWNFUTUREVALUE_HOSTPORTSTATUS -) - -func (i HostPortStatus) String() string { - return []string{"open", "filtered", "closed", "unknownFutureValue"}[i] -} -func ParseHostPortStatus(v string) (any, error) { - result := OPEN_HOSTPORTSTATUS - switch v { - case "open": - result = OPEN_HOSTPORTSTATUS - case "filtered": - result = FILTERED_HOSTPORTSTATUS - case "closed": - result = CLOSED_HOSTPORTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_HOSTPORTSTATUS - default: - return 0, errors.New("Unknown HostPortStatus value: " + v) - } - return &result, nil -} -func SerializeHostPortStatus(values []HostPortStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i HostPortStatus) isMultiValue() bool { - return false -} diff --git a/models/security/hunting_rule_error_code.go b/models/security/hunting_rule_error_code.go deleted file mode 100644 index 39600ae3af9..00000000000 --- a/models/security/hunting_rule_error_code.go +++ /dev/null @@ -1,58 +0,0 @@ -package security -import ( - "errors" -) -// -type HuntingRuleErrorCode int - -const ( - QUERYEXECUTIONFAILED_HUNTINGRULEERRORCODE HuntingRuleErrorCode = iota - QUERYEXECUTIONTHROTTLING_HUNTINGRULEERRORCODE - QUERYEXCEEDEDRESULTSIZE_HUNTINGRULEERRORCODE - QUERYLIMITSEXCEEDED_HUNTINGRULEERRORCODE - QUERYTIMEOUT_HUNTINGRULEERRORCODE - ALERTCREATIONFAILED_HUNTINGRULEERRORCODE - ALERTREPORTNOTFOUND_HUNTINGRULEERRORCODE - PARTIALROWSFAILED_HUNTINGRULEERRORCODE - UNKNOWNFUTUREVALUE_HUNTINGRULEERRORCODE -) - -func (i HuntingRuleErrorCode) String() string { - return []string{"queryExecutionFailed", "queryExecutionThrottling", "queryExceededResultSize", "queryLimitsExceeded", "queryTimeout", "alertCreationFailed", "alertReportNotFound", "partialRowsFailed", "unknownFutureValue"}[i] -} -func ParseHuntingRuleErrorCode(v string) (any, error) { - result := QUERYEXECUTIONFAILED_HUNTINGRULEERRORCODE - switch v { - case "queryExecutionFailed": - result = QUERYEXECUTIONFAILED_HUNTINGRULEERRORCODE - case "queryExecutionThrottling": - result = QUERYEXECUTIONTHROTTLING_HUNTINGRULEERRORCODE - case "queryExceededResultSize": - result = QUERYEXCEEDEDRESULTSIZE_HUNTINGRULEERRORCODE - case "queryLimitsExceeded": - result = QUERYLIMITSEXCEEDED_HUNTINGRULEERRORCODE - case "queryTimeout": - result = QUERYTIMEOUT_HUNTINGRULEERRORCODE - case "alertCreationFailed": - result = ALERTCREATIONFAILED_HUNTINGRULEERRORCODE - case "alertReportNotFound": - result = ALERTREPORTNOTFOUND_HUNTINGRULEERRORCODE - case "partialRowsFailed": - result = PARTIALROWSFAILED_HUNTINGRULEERRORCODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_HUNTINGRULEERRORCODE - default: - return 0, errors.New("Unknown HuntingRuleErrorCode value: " + v) - } - return &result, nil -} -func SerializeHuntingRuleErrorCode(values []HuntingRuleErrorCode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i HuntingRuleErrorCode) isMultiValue() bool { - return false -} diff --git a/models/security/hunting_rule_run_status.go b/models/security/hunting_rule_run_status.go deleted file mode 100644 index 19e128bfe8f..00000000000 --- a/models/security/hunting_rule_run_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type HuntingRuleRunStatus int - -const ( - RUNNING_HUNTINGRULERUNSTATUS HuntingRuleRunStatus = iota - COMPLETED_HUNTINGRULERUNSTATUS - FAILED_HUNTINGRULERUNSTATUS - PARTIALLYFAILED_HUNTINGRULERUNSTATUS - UNKNOWNFUTUREVALUE_HUNTINGRULERUNSTATUS -) - -func (i HuntingRuleRunStatus) String() string { - return []string{"running", "completed", "failed", "partiallyFailed", "unknownFutureValue"}[i] -} -func ParseHuntingRuleRunStatus(v string) (any, error) { - result := RUNNING_HUNTINGRULERUNSTATUS - switch v { - case "running": - result = RUNNING_HUNTINGRULERUNSTATUS - case "completed": - result = COMPLETED_HUNTINGRULERUNSTATUS - case "failed": - result = FAILED_HUNTINGRULERUNSTATUS - case "partiallyFailed": - result = PARTIALLYFAILED_HUNTINGRULERUNSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_HUNTINGRULERUNSTATUS - default: - return 0, errors.New("Unknown HuntingRuleRunStatus value: " + v) - } - return &result, nil -} -func SerializeHuntingRuleRunStatus(values []HuntingRuleRunStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i HuntingRuleRunStatus) isMultiValue() bool { - return false -} diff --git a/models/security/incident.go b/models/security/incident.go index 6c9720a2367..580aea0c6a9 100644 --- a/models/security/incident.go +++ b/models/security/incident.go @@ -44,13 +44,13 @@ func (m *Incident) GetAssignedTo()(*string) { return nil } // GetClassification gets the classification property value. The specification for the incident. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. -func (m *Incident) GetClassification()(*AlertClassification) { +func (m *Incident) GetClassification()(*Incident_classification) { val, err := m.GetBackingStore().Get("classification") if err != nil { panic(err) } if val != nil { - return val.(*AlertClassification) + return val.(*Incident_classification) } return nil } @@ -99,13 +99,13 @@ func (m *Incident) GetDescription()(*string) { return nil } // GetDetermination gets the determination property value. Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. -func (m *Incident) GetDetermination()(*AlertDetermination) { +func (m *Incident) GetDetermination()(*Incident_determination) { val, err := m.GetBackingStore().Get("determination") if err != nil { panic(err) } if val != nil { - return val.(*AlertDetermination) + return val.(*Incident_determination) } return nil } @@ -150,12 +150,12 @@ func (m *Incident) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["classification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertClassification) + val, err := n.GetEnumValue(ParseIncident_classification) if err != nil { return err } if val != nil { - m.SetClassification(val.(*AlertClassification)) + m.SetClassification(val.(*Incident_classification)) } return nil } @@ -212,12 +212,12 @@ func (m *Incident) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["determination"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertDetermination) + val, err := n.GetEnumValue(ParseIncident_determination) if err != nil { return err } if val != nil { - m.SetDetermination(val.(*AlertDetermination)) + m.SetDetermination(val.(*Incident_determination)) } return nil } @@ -614,7 +614,7 @@ func (m *Incident) SetAssignedTo(value *string)() { } } // SetClassification sets the classification property value. The specification for the incident. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. -func (m *Incident) SetClassification(value *AlertClassification)() { +func (m *Incident) SetClassification(value *Incident_classification)() { err := m.GetBackingStore().Set("classification", value) if err != nil { panic(err) @@ -649,7 +649,7 @@ func (m *Incident) SetDescription(value *string)() { } } // SetDetermination sets the determination property value. Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. -func (m *Incident) SetDetermination(value *AlertDetermination)() { +func (m *Incident) SetDetermination(value *Incident_determination)() { err := m.GetBackingStore().Set("determination", value) if err != nil { panic(err) @@ -738,12 +738,12 @@ type Incidentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAlerts()([]Alertable) GetAssignedTo()(*string) - GetClassification()(*AlertClassification) + GetClassification()(*Incident_classification) GetComments()([]AlertCommentable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCustomTags()([]string) GetDescription()(*string) - GetDetermination()(*AlertDetermination) + GetDetermination()(*Incident_determination) GetDisplayName()(*string) GetIncidentWebUrl()(*string) GetLastModifiedBy()(*string) @@ -757,12 +757,12 @@ type Incidentable interface { GetTenantId()(*string) SetAlerts(value []Alertable)() SetAssignedTo(value *string)() - SetClassification(value *AlertClassification)() + SetClassification(value *Incident_classification)() SetComments(value []AlertCommentable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCustomTags(value []string)() SetDescription(value *string)() - SetDetermination(value *AlertDetermination)() + SetDetermination(value *Incident_determination)() SetDisplayName(value *string)() SetIncidentWebUrl(value *string)() SetLastModifiedBy(value *string)() diff --git a/models/security/incident_classification.go b/models/security/incident_classification.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/incident_determination.go b/models/security/incident_determination.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/kubernetes_cluster_evidence.go b/models/security/kubernetes_cluster_evidence.go index d1f82ad64e3..30f9af50f96 100644 --- a/models/security/kubernetes_cluster_evidence.go +++ b/models/security/kubernetes_cluster_evidence.go @@ -77,12 +77,12 @@ func (m *KubernetesClusterEvidence) GetFieldDeserializers()(map[string]func(i878 return nil } res["platform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseKubernetesPlatform) + val, err := n.GetEnumValue(ParseKubernetesClusterEvidence_platform) if err != nil { return err } if val != nil { - m.SetPlatform(val.(*KubernetesPlatform)) + m.SetPlatform(val.(*KubernetesClusterEvidence_platform)) } return nil } @@ -110,13 +110,13 @@ func (m *KubernetesClusterEvidence) GetName()(*string) { return nil } // GetPlatform gets the platform property value. The platform the cluster runs on. Possible values are: unknown, aks, eks, gke, arc, unknownFutureValue. -func (m *KubernetesClusterEvidence) GetPlatform()(*KubernetesPlatform) { +func (m *KubernetesClusterEvidence) GetPlatform()(*KubernetesClusterEvidence_platform) { val, err := m.GetBackingStore().Get("platform") if err != nil { panic(err) } if val != nil { - return val.(*KubernetesPlatform) + return val.(*KubernetesClusterEvidence_platform) } return nil } @@ -192,7 +192,7 @@ func (m *KubernetesClusterEvidence) SetName(value *string)() { } } // SetPlatform sets the platform property value. The platform the cluster runs on. Possible values are: unknown, aks, eks, gke, arc, unknownFutureValue. -func (m *KubernetesClusterEvidence) SetPlatform(value *KubernetesPlatform)() { +func (m *KubernetesClusterEvidence) SetPlatform(value *KubernetesClusterEvidence_platform)() { err := m.GetBackingStore().Set("platform", value) if err != nil { panic(err) @@ -212,11 +212,11 @@ type KubernetesClusterEvidenceable interface { GetCloudResource()(AlertEvidenceable) GetDistribution()(*string) GetName()(*string) - GetPlatform()(*KubernetesPlatform) + GetPlatform()(*KubernetesClusterEvidence_platform) GetVersion()(*string) SetCloudResource(value AlertEvidenceable)() SetDistribution(value *string)() SetName(value *string)() - SetPlatform(value *KubernetesPlatform)() + SetPlatform(value *KubernetesClusterEvidence_platform)() SetVersion(value *string)() } diff --git a/models/security/kubernetes_cluster_evidence_platform.go b/models/security/kubernetes_cluster_evidence_platform.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/kubernetes_platform.go b/models/security/kubernetes_platform.go deleted file mode 100644 index 10afd9d115c..00000000000 --- a/models/security/kubernetes_platform.go +++ /dev/null @@ -1,49 +0,0 @@ -package security -import ( - "errors" -) -// -type KubernetesPlatform int - -const ( - UNKNOWN_KUBERNETESPLATFORM KubernetesPlatform = iota - AKS_KUBERNETESPLATFORM - EKS_KUBERNETESPLATFORM - GKE_KUBERNETESPLATFORM - ARC_KUBERNETESPLATFORM - UNKNOWNFUTUREVALUE_KUBERNETESPLATFORM -) - -func (i KubernetesPlatform) String() string { - return []string{"unknown", "aks", "eks", "gke", "arc", "unknownFutureValue"}[i] -} -func ParseKubernetesPlatform(v string) (any, error) { - result := UNKNOWN_KUBERNETESPLATFORM - switch v { - case "unknown": - result = UNKNOWN_KUBERNETESPLATFORM - case "aks": - result = AKS_KUBERNETESPLATFORM - case "eks": - result = EKS_KUBERNETESPLATFORM - case "gke": - result = GKE_KUBERNETESPLATFORM - case "arc": - result = ARC_KUBERNETESPLATFORM - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_KUBERNETESPLATFORM - default: - return 0, errors.New("Unknown KubernetesPlatform value: " + v) - } - return &result, nil -} -func SerializeKubernetesPlatform(values []KubernetesPlatform) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i KubernetesPlatform) isMultiValue() bool { - return false -} diff --git a/models/security/kubernetes_service_port.go b/models/security/kubernetes_service_port.go index e3869ef5c9c..8697322e7dc 100644 --- a/models/security/kubernetes_service_port.go +++ b/models/security/kubernetes_service_port.go @@ -103,12 +103,12 @@ func (m *KubernetesServicePort) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["protocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseContainerPortProtocol) + val, err := n.GetEnumValue(ParseKubernetesServicePort_protocol) if err != nil { return err } if val != nil { - m.SetProtocol(val.(*ContainerPortProtocol)) + m.SetProtocol(val.(*KubernetesServicePort_protocol)) } return nil } @@ -169,13 +169,13 @@ func (m *KubernetesServicePort) GetPort()(*int32) { return nil } // GetProtocol gets the protocol property value. The protocol name. Possible values are: udp, tcp, sctp, unknownFutureValue. -func (m *KubernetesServicePort) GetProtocol()(*ContainerPortProtocol) { +func (m *KubernetesServicePort) GetProtocol()(*KubernetesServicePort_protocol) { val, err := m.GetBackingStore().Get("protocol") if err != nil { panic(err) } if val != nil { - return val.(*ContainerPortProtocol) + return val.(*KubernetesServicePort_protocol) } return nil } @@ -290,7 +290,7 @@ func (m *KubernetesServicePort) SetPort(value *int32)() { } } // SetProtocol sets the protocol property value. The protocol name. Possible values are: udp, tcp, sctp, unknownFutureValue. -func (m *KubernetesServicePort) SetProtocol(value *ContainerPortProtocol)() { +func (m *KubernetesServicePort) SetProtocol(value *KubernetesServicePort_protocol)() { err := m.GetBackingStore().Set("protocol", value) if err != nil { panic(err) @@ -314,7 +314,7 @@ type KubernetesServicePortable interface { GetNodePort()(*int32) GetOdataType()(*string) GetPort()(*int32) - GetProtocol()(*ContainerPortProtocol) + GetProtocol()(*KubernetesServicePort_protocol) GetTargetPort()(*string) SetAppProtocol(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() @@ -322,6 +322,6 @@ type KubernetesServicePortable interface { SetNodePort(value *int32)() SetOdataType(value *string)() SetPort(value *int32)() - SetProtocol(value *ContainerPortProtocol)() + SetProtocol(value *KubernetesServicePort_protocol)() SetTargetPort(value *string)() } diff --git a/models/security/kubernetes_service_port_protocol.go b/models/security/kubernetes_service_port_protocol.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/long_running_operation_status.go b/models/security/long_running_operation_status.go deleted file mode 100644 index d878a3bc54f..00000000000 --- a/models/security/long_running_operation_status.go +++ /dev/null @@ -1,49 +0,0 @@ -package security -import ( - "errors" -) -// -type LongRunningOperationStatus int - -const ( - NOTSTARTED_LONGRUNNINGOPERATIONSTATUS LongRunningOperationStatus = iota - RUNNING_LONGRUNNINGOPERATIONSTATUS - SUCCEEDED_LONGRUNNINGOPERATIONSTATUS - FAILED_LONGRUNNINGOPERATIONSTATUS - SKIPPED_LONGRUNNINGOPERATIONSTATUS - UNKNOWNFUTUREVALUE_LONGRUNNINGOPERATIONSTATUS -) - -func (i LongRunningOperationStatus) String() string { - return []string{"notStarted", "running", "succeeded", "failed", "skipped", "unknownFutureValue"}[i] -} -func ParseLongRunningOperationStatus(v string) (any, error) { - result := NOTSTARTED_LONGRUNNINGOPERATIONSTATUS - switch v { - case "notStarted": - result = NOTSTARTED_LONGRUNNINGOPERATIONSTATUS - case "running": - result = RUNNING_LONGRUNNINGOPERATIONSTATUS - case "succeeded": - result = SUCCEEDED_LONGRUNNINGOPERATIONSTATUS - case "failed": - result = FAILED_LONGRUNNINGOPERATIONSTATUS - case "skipped": - result = SKIPPED_LONGRUNNINGOPERATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_LONGRUNNINGOPERATIONSTATUS - default: - return 0, errors.New("Unknown LongRunningOperationStatus value: " + v) - } - return &result, nil -} -func SerializeLongRunningOperationStatus(values []LongRunningOperationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i LongRunningOperationStatus) isMultiValue() bool { - return false -} diff --git a/models/security/onboarding_status.go b/models/security/onboarding_status.go deleted file mode 100644 index 989de38b446..00000000000 --- a/models/security/onboarding_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type OnboardingStatus int - -const ( - INSUFFICIENTINFO_ONBOARDINGSTATUS OnboardingStatus = iota - ONBOARDED_ONBOARDINGSTATUS - CANBEONBOARDED_ONBOARDINGSTATUS - UNSUPPORTED_ONBOARDINGSTATUS - UNKNOWNFUTUREVALUE_ONBOARDINGSTATUS -) - -func (i OnboardingStatus) String() string { - return []string{"insufficientInfo", "onboarded", "canBeOnboarded", "unsupported", "unknownFutureValue"}[i] -} -func ParseOnboardingStatus(v string) (any, error) { - result := INSUFFICIENTINFO_ONBOARDINGSTATUS - switch v { - case "insufficientInfo": - result = INSUFFICIENTINFO_ONBOARDINGSTATUS - case "onboarded": - result = ONBOARDED_ONBOARDINGSTATUS - case "canBeOnboarded": - result = CANBEONBOARDED_ONBOARDINGSTATUS - case "unsupported": - result = UNSUPPORTED_ONBOARDINGSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ONBOARDINGSTATUS - default: - return 0, errors.New("Unknown OnboardingStatus value: " + v) - } - return &result, nil -} -func SerializeOnboardingStatus(values []OnboardingStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i OnboardingStatus) isMultiValue() bool { - return false -} diff --git a/models/security/policy_base.go b/models/security/policy_base.go index 724e84cd186..594123cc641 100644 --- a/models/security/policy_base.go +++ b/models/security/policy_base.go @@ -147,12 +147,12 @@ func (m *PolicyBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePolicyStatus) + val, err := n.GetEnumValue(ParsePolicyBase_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*PolicyStatus)) + m.SetStatus(val.(*PolicyBase_status)) } return nil } @@ -181,13 +181,13 @@ func (m *PolicyBase) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a return nil } // GetStatus gets the status property value. The status property -func (m *PolicyBase) GetStatus()(*PolicyStatus) { +func (m *PolicyBase) GetStatus()(*PolicyBase_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*PolicyStatus) + return val.(*PolicyBase_status) } return nil } @@ -285,7 +285,7 @@ func (m *PolicyBase) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3a } } // SetStatus sets the status property value. The status property -func (m *PolicyBase) SetStatus(value *PolicyStatus)() { +func (m *PolicyBase) SetStatus(value *PolicyBase_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -301,12 +301,12 @@ type PolicyBaseable interface { GetDisplayName()(*string) GetLastModifiedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*PolicyStatus) + GetStatus()(*PolicyBase_status) SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() SetDisplayName(value *string)() SetLastModifiedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *PolicyStatus)() + SetStatus(value *PolicyBase_status)() } diff --git a/models/security/policy_base_status.go b/models/security/policy_base_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/policy_status.go b/models/security/policy_status.go deleted file mode 100644 index b4910889ad4..00000000000 --- a/models/security/policy_status.go +++ /dev/null @@ -1,43 +0,0 @@ -package security -import ( - "errors" -) -// -type PolicyStatus int - -const ( - PENDING_POLICYSTATUS PolicyStatus = iota - ERROR_POLICYSTATUS - SUCCESS_POLICYSTATUS - UNKNOWNFUTUREVALUE_POLICYSTATUS -) - -func (i PolicyStatus) String() string { - return []string{"pending", "error", "success", "unknownFutureValue"}[i] -} -func ParsePolicyStatus(v string) (any, error) { - result := PENDING_POLICYSTATUS - switch v { - case "pending": - result = PENDING_POLICYSTATUS - case "error": - result = ERROR_POLICYSTATUS - case "success": - result = SUCCESS_POLICYSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_POLICYSTATUS - default: - return 0, errors.New("Unknown PolicyStatus value: " + v) - } - return &result, nil -} -func SerializePolicyStatus(values []PolicyStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PolicyStatus) isMultiValue() bool { - return false -} diff --git a/models/security/process_evidence.go b/models/security/process_evidence.go index 53332db36ed..9ee3ede4fe6 100644 --- a/models/security/process_evidence.go +++ b/models/security/process_evidence.go @@ -23,13 +23,13 @@ func CreateProcessEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896 return NewProcessEvidence(), nil } // GetDetectionStatus gets the detectionStatus property value. The status of the detection. The possible values are: detected, blocked, prevented, unknownFutureValue. -func (m *ProcessEvidence) GetDetectionStatus()(*DetectionStatus) { +func (m *ProcessEvidence) GetDetectionStatus()(*ProcessEvidence_detectionStatus) { val, err := m.GetBackingStore().Get("detectionStatus") if err != nil { panic(err) } if val != nil { - return val.(*DetectionStatus) + return val.(*ProcessEvidence_detectionStatus) } return nil } @@ -37,12 +37,12 @@ func (m *ProcessEvidence) GetDetectionStatus()(*DetectionStatus) { func (m *ProcessEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AlertEvidence.GetFieldDeserializers() res["detectionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDetectionStatus) + val, err := n.GetEnumValue(ParseProcessEvidence_detectionStatus) if err != nil { return err } if val != nil { - m.SetDetectionStatus(val.(*DetectionStatus)) + m.SetDetectionStatus(val.(*ProcessEvidence_detectionStatus)) } return nil } @@ -307,7 +307,7 @@ func (m *ProcessEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return nil } // SetDetectionStatus sets the detectionStatus property value. The status of the detection. The possible values are: detected, blocked, prevented, unknownFutureValue. -func (m *ProcessEvidence) SetDetectionStatus(value *DetectionStatus)() { +func (m *ProcessEvidence) SetDetectionStatus(value *ProcessEvidence_detectionStatus)() { err := m.GetBackingStore().Set("detectionStatus", value) if err != nil { panic(err) @@ -380,7 +380,7 @@ func (m *ProcessEvidence) SetUserAccount(value UserAccountable)() { type ProcessEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDetectionStatus()(*DetectionStatus) + GetDetectionStatus()(*ProcessEvidence_detectionStatus) GetImageFile()(FileDetailsable) GetMdeDeviceId()(*string) GetParentProcessCreationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -390,7 +390,7 @@ type ProcessEvidenceable interface { GetProcessCreationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetProcessId()(*int64) GetUserAccount()(UserAccountable) - SetDetectionStatus(value *DetectionStatus)() + SetDetectionStatus(value *ProcessEvidence_detectionStatus)() SetImageFile(value FileDetailsable)() SetMdeDeviceId(value *string)() SetParentProcessCreationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/security/process_evidence_detection_status.go b/models/security/process_evidence_detection_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/purge_areas.go b/models/security/purge_areas.go deleted file mode 100644 index d902e7cfdaf..00000000000 --- a/models/security/purge_areas.go +++ /dev/null @@ -1,50 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type PurgeAreas int - -const ( - MAILBOXES_PURGEAREAS PurgeAreas = iota - TEAMSMESSAGES_PURGEAREAS - UNKNOWNFUTUREVALUE_PURGEAREAS -) - -func (i PurgeAreas) String() string { - var values []string - for p := PurgeAreas(1); p <= UNKNOWNFUTUREVALUE_PURGEAREAS; p <<= 1 { - if i&p == p { - values = append(values, []string{"mailboxes", "teamsMessages", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParsePurgeAreas(v string) (any, error) { - var result PurgeAreas - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "mailboxes": - result |= MAILBOXES_PURGEAREAS - case "teamsMessages": - result |= TEAMSMESSAGES_PURGEAREAS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_PURGEAREAS - default: - return 0, errors.New("Unknown PurgeAreas value: " + v) - } - } - return &result, nil -} -func SerializePurgeAreas(values []PurgeAreas) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PurgeAreas) isMultiValue() bool { - return true -} diff --git a/models/security/purge_type.go b/models/security/purge_type.go deleted file mode 100644 index 12203a7a2a9..00000000000 --- a/models/security/purge_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type PurgeType int - -const ( - RECOVERABLE_PURGETYPE PurgeType = iota - PERMANENTLYDELETED_PURGETYPE - UNKNOWNFUTUREVALUE_PURGETYPE -) - -func (i PurgeType) String() string { - return []string{"recoverable", "permanentlyDeleted", "unknownFutureValue"}[i] -} -func ParsePurgeType(v string) (any, error) { - result := RECOVERABLE_PURGETYPE - switch v { - case "recoverable": - result = RECOVERABLE_PURGETYPE - case "permanentlyDeleted": - result = PERMANENTLYDELETED_PURGETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PURGETYPE - default: - return 0, errors.New("Unknown PurgeType value: " + v) - } - return &result, nil -} -func SerializePurgeType(values []PurgeType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PurgeType) isMultiValue() bool { - return false -} diff --git a/models/security/query_type.go b/models/security/query_type.go deleted file mode 100644 index 64d46105af1..00000000000 --- a/models/security/query_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type QueryType int - -const ( - FILES_QUERYTYPE QueryType = iota - MESSAGES_QUERYTYPE - UNKNOWNFUTUREVALUE_QUERYTYPE -) - -func (i QueryType) String() string { - return []string{"files", "messages", "unknownFutureValue"}[i] -} -func ParseQueryType(v string) (any, error) { - result := FILES_QUERYTYPE - switch v { - case "files": - result = FILES_QUERYTYPE - case "messages": - result = MESSAGES_QUERYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_QUERYTYPE - default: - return 0, errors.New("Unknown QueryType value: " + v) - } - return &result, nil -} -func SerializeQueryType(values []QueryType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i QueryType) isMultiValue() bool { - return false -} diff --git a/models/security/retention_event_status.go b/models/security/retention_event_status.go index c9237740222..ae18603b3c9 100644 --- a/models/security/retention_event_status.go +++ b/models/security/retention_event_status.go @@ -74,12 +74,12 @@ func (m *RetentionEventStatus) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEventStatusType) + val, err := n.GetEnumValue(ParseRetentionEventStatus_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*EventStatusType)) + m.SetStatus(val.(*RetentionEventStatus_status)) } return nil } @@ -97,13 +97,13 @@ func (m *RetentionEventStatus) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. The status of the distribution. The possible values are: pending, error, success, notAvaliable. -func (m *RetentionEventStatus) GetStatus()(*EventStatusType) { +func (m *RetentionEventStatus) GetStatus()(*RetentionEventStatus_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*EventStatusType) + return val.(*RetentionEventStatus_status) } return nil } @@ -162,7 +162,7 @@ func (m *RetentionEventStatus) SetOdataType(value *string)() { } } // SetStatus sets the status property value. The status of the distribution. The possible values are: pending, error, success, notAvaliable. -func (m *RetentionEventStatus) SetStatus(value *EventStatusType)() { +func (m *RetentionEventStatus) SetStatus(value *RetentionEventStatus_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -176,9 +176,9 @@ type RetentionEventStatusable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetError()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PublicErrorable) GetOdataType()(*string) - GetStatus()(*EventStatusType) + GetStatus()(*RetentionEventStatus_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetError(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PublicErrorable)() SetOdataType(value *string)() - SetStatus(value *EventStatusType)() + SetStatus(value *RetentionEventStatus_status)() } diff --git a/models/security/retention_event_status_status.go b/models/security/retention_event_status_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/retention_label.go b/models/security/retention_label.go index c8f64104374..5d439e84fb0 100644 --- a/models/security/retention_label.go +++ b/models/security/retention_label.go @@ -22,24 +22,24 @@ func CreateRetentionLabelFromDiscriminatorValue(parseNode i878a80d2330e89d268963 return NewRetentionLabel(), nil } // GetActionAfterRetentionPeriod gets the actionAfterRetentionPeriod property value. Specifies the action to take on a document with this label applied during the retention period. The possible values are: none, delete, startDispositionReview, unknownFutureValue. -func (m *RetentionLabel) GetActionAfterRetentionPeriod()(*ActionAfterRetentionPeriod) { +func (m *RetentionLabel) GetActionAfterRetentionPeriod()(*RetentionLabel_actionAfterRetentionPeriod) { val, err := m.GetBackingStore().Get("actionAfterRetentionPeriod") if err != nil { panic(err) } if val != nil { - return val.(*ActionAfterRetentionPeriod) + return val.(*RetentionLabel_actionAfterRetentionPeriod) } return nil } // GetBehaviorDuringRetentionPeriod gets the behaviorDuringRetentionPeriod property value. Specifies how the behavior of a document with this label should be during the retention period. The possible values are: doNotRetain, retain, retainAsRecord, retainAsRegulatoryRecord, unknownFutureValue. -func (m *RetentionLabel) GetBehaviorDuringRetentionPeriod()(*BehaviorDuringRetentionPeriod) { +func (m *RetentionLabel) GetBehaviorDuringRetentionPeriod()(*RetentionLabel_behaviorDuringRetentionPeriod) { val, err := m.GetBackingStore().Get("behaviorDuringRetentionPeriod") if err != nil { panic(err) } if val != nil { - return val.(*BehaviorDuringRetentionPeriod) + return val.(*RetentionLabel_behaviorDuringRetentionPeriod) } return nil } @@ -66,13 +66,13 @@ func (m *RetentionLabel) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6 return nil } // GetDefaultRecordBehavior gets the defaultRecordBehavior property value. Specifies the locked or unlocked state of a record label when it is created.The possible values are: startLocked, startUnlocked, unknownFutureValue. -func (m *RetentionLabel) GetDefaultRecordBehavior()(*DefaultRecordBehavior) { +func (m *RetentionLabel) GetDefaultRecordBehavior()(*RetentionLabel_defaultRecordBehavior) { val, err := m.GetBackingStore().Get("defaultRecordBehavior") if err != nil { panic(err) } if val != nil { - return val.(*DefaultRecordBehavior) + return val.(*RetentionLabel_defaultRecordBehavior) } return nil } @@ -135,22 +135,22 @@ func (m *RetentionLabel) GetDispositionReviewStages()([]DispositionReviewStageab func (m *RetentionLabel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["actionAfterRetentionPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseActionAfterRetentionPeriod) + val, err := n.GetEnumValue(ParseRetentionLabel_actionAfterRetentionPeriod) if err != nil { return err } if val != nil { - m.SetActionAfterRetentionPeriod(val.(*ActionAfterRetentionPeriod)) + m.SetActionAfterRetentionPeriod(val.(*RetentionLabel_actionAfterRetentionPeriod)) } return nil } res["behaviorDuringRetentionPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseBehaviorDuringRetentionPeriod) + val, err := n.GetEnumValue(ParseRetentionLabel_behaviorDuringRetentionPeriod) if err != nil { return err } if val != nil { - m.SetBehaviorDuringRetentionPeriod(val.(*BehaviorDuringRetentionPeriod)) + m.SetBehaviorDuringRetentionPeriod(val.(*RetentionLabel_behaviorDuringRetentionPeriod)) } return nil } @@ -175,12 +175,12 @@ func (m *RetentionLabel) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["defaultRecordBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefaultRecordBehavior) + val, err := n.GetEnumValue(ParseRetentionLabel_defaultRecordBehavior) if err != nil { return err } if val != nil { - m.SetDefaultRecordBehavior(val.(*DefaultRecordBehavior)) + m.SetDefaultRecordBehavior(val.(*RetentionLabel_defaultRecordBehavior)) } return nil } @@ -301,12 +301,12 @@ func (m *RetentionLabel) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["retentionTrigger"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRetentionTrigger) + val, err := n.GetEnumValue(ParseRetentionLabel_retentionTrigger) if err != nil { return err } if val != nil { - m.SetRetentionTrigger(val.(*RetentionTrigger)) + m.SetRetentionTrigger(val.(*RetentionLabel_retentionTrigger)) } return nil } @@ -379,13 +379,13 @@ func (m *RetentionLabel) GetRetentionEventType()(RetentionEventTypeable) { return nil } // GetRetentionTrigger gets the retentionTrigger property value. Specifies whether the retention duration is calculated from the content creation date, labeled date, or last modification date. The possible values are: dateLabeled, dateCreated, dateModified, dateOfEvent, unknownFutureValue. -func (m *RetentionLabel) GetRetentionTrigger()(*RetentionTrigger) { +func (m *RetentionLabel) GetRetentionTrigger()(*RetentionLabel_retentionTrigger) { val, err := m.GetBackingStore().Get("retentionTrigger") if err != nil { panic(err) } if val != nil { - return val.(*RetentionTrigger) + return val.(*RetentionLabel_retentionTrigger) } return nil } @@ -510,14 +510,14 @@ func (m *RetentionLabel) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return nil } // SetActionAfterRetentionPeriod sets the actionAfterRetentionPeriod property value. Specifies the action to take on a document with this label applied during the retention period. The possible values are: none, delete, startDispositionReview, unknownFutureValue. -func (m *RetentionLabel) SetActionAfterRetentionPeriod(value *ActionAfterRetentionPeriod)() { +func (m *RetentionLabel) SetActionAfterRetentionPeriod(value *RetentionLabel_actionAfterRetentionPeriod)() { err := m.GetBackingStore().Set("actionAfterRetentionPeriod", value) if err != nil { panic(err) } } // SetBehaviorDuringRetentionPeriod sets the behaviorDuringRetentionPeriod property value. Specifies how the behavior of a document with this label should be during the retention period. The possible values are: doNotRetain, retain, retainAsRecord, retainAsRegulatoryRecord, unknownFutureValue. -func (m *RetentionLabel) SetBehaviorDuringRetentionPeriod(value *BehaviorDuringRetentionPeriod)() { +func (m *RetentionLabel) SetBehaviorDuringRetentionPeriod(value *RetentionLabel_behaviorDuringRetentionPeriod)() { err := m.GetBackingStore().Set("behaviorDuringRetentionPeriod", value) if err != nil { panic(err) @@ -538,7 +538,7 @@ func (m *RetentionLabel) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad } } // SetDefaultRecordBehavior sets the defaultRecordBehavior property value. Specifies the locked or unlocked state of a record label when it is created.The possible values are: startLocked, startUnlocked, unknownFutureValue. -func (m *RetentionLabel) SetDefaultRecordBehavior(value *DefaultRecordBehavior)() { +func (m *RetentionLabel) SetDefaultRecordBehavior(value *RetentionLabel_defaultRecordBehavior)() { err := m.GetBackingStore().Set("defaultRecordBehavior", value) if err != nil { panic(err) @@ -622,7 +622,7 @@ func (m *RetentionLabel) SetRetentionEventType(value RetentionEventTypeable)() { } } // SetRetentionTrigger sets the retentionTrigger property value. Specifies whether the retention duration is calculated from the content creation date, labeled date, or last modification date. The possible values are: dateLabeled, dateCreated, dateModified, dateOfEvent, unknownFutureValue. -func (m *RetentionLabel) SetRetentionTrigger(value *RetentionTrigger)() { +func (m *RetentionLabel) SetRetentionTrigger(value *RetentionLabel_retentionTrigger)() { err := m.GetBackingStore().Set("retentionTrigger", value) if err != nil { panic(err) @@ -632,11 +632,11 @@ func (m *RetentionLabel) SetRetentionTrigger(value *RetentionTrigger)() { type RetentionLabelable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActionAfterRetentionPeriod()(*ActionAfterRetentionPeriod) - GetBehaviorDuringRetentionPeriod()(*BehaviorDuringRetentionPeriod) + GetActionAfterRetentionPeriod()(*RetentionLabel_actionAfterRetentionPeriod) + GetBehaviorDuringRetentionPeriod()(*RetentionLabel_behaviorDuringRetentionPeriod) GetCreatedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetDefaultRecordBehavior()(*DefaultRecordBehavior) + GetDefaultRecordBehavior()(*RetentionLabel_defaultRecordBehavior) GetDescriptionForAdmins()(*string) GetDescriptionForUsers()(*string) GetDescriptors()(FilePlanDescriptorable) @@ -648,12 +648,12 @@ type RetentionLabelable interface { GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRetentionDuration()(RetentionDurationable) GetRetentionEventType()(RetentionEventTypeable) - GetRetentionTrigger()(*RetentionTrigger) - SetActionAfterRetentionPeriod(value *ActionAfterRetentionPeriod)() - SetBehaviorDuringRetentionPeriod(value *BehaviorDuringRetentionPeriod)() + GetRetentionTrigger()(*RetentionLabel_retentionTrigger) + SetActionAfterRetentionPeriod(value *RetentionLabel_actionAfterRetentionPeriod)() + SetBehaviorDuringRetentionPeriod(value *RetentionLabel_behaviorDuringRetentionPeriod)() SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetDefaultRecordBehavior(value *DefaultRecordBehavior)() + SetDefaultRecordBehavior(value *RetentionLabel_defaultRecordBehavior)() SetDescriptionForAdmins(value *string)() SetDescriptionForUsers(value *string)() SetDescriptors(value FilePlanDescriptorable)() @@ -665,5 +665,5 @@ type RetentionLabelable interface { SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRetentionDuration(value RetentionDurationable)() SetRetentionEventType(value RetentionEventTypeable)() - SetRetentionTrigger(value *RetentionTrigger)() + SetRetentionTrigger(value *RetentionLabel_retentionTrigger)() } diff --git a/models/security/retention_label_action_after_retention_period.go b/models/security/retention_label_action_after_retention_period.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/retention_label_behavior_during_retention_period.go b/models/security/retention_label_behavior_during_retention_period.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/retention_label_default_record_behavior.go b/models/security/retention_label_default_record_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/retention_label_retention_trigger.go b/models/security/retention_label_retention_trigger.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/retention_trigger.go b/models/security/retention_trigger.go deleted file mode 100644 index fb65a6a367d..00000000000 --- a/models/security/retention_trigger.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type RetentionTrigger int - -const ( - DATELABELED_RETENTIONTRIGGER RetentionTrigger = iota - DATECREATED_RETENTIONTRIGGER - DATEMODIFIED_RETENTIONTRIGGER - DATEOFEVENT_RETENTIONTRIGGER - UNKNOWNFUTUREVALUE_RETENTIONTRIGGER -) - -func (i RetentionTrigger) String() string { - return []string{"dateLabeled", "dateCreated", "dateModified", "dateOfEvent", "unknownFutureValue"}[i] -} -func ParseRetentionTrigger(v string) (any, error) { - result := DATELABELED_RETENTIONTRIGGER - switch v { - case "dateLabeled": - result = DATELABELED_RETENTIONTRIGGER - case "dateCreated": - result = DATECREATED_RETENTIONTRIGGER - case "dateModified": - result = DATEMODIFIED_RETENTIONTRIGGER - case "dateOfEvent": - result = DATEOFEVENT_RETENTIONTRIGGER - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RETENTIONTRIGGER - default: - return 0, errors.New("Unknown RetentionTrigger value: " + v) - } - return &result, nil -} -func SerializeRetentionTrigger(values []RetentionTrigger) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RetentionTrigger) isMultiValue() bool { - return false -} diff --git a/models/security/run_details.go b/models/security/run_details.go index c42001ef681..5a58daec383 100644 --- a/models/security/run_details.go +++ b/models/security/run_details.go @@ -40,13 +40,13 @@ func (m *RunDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424d return m.backingStore } // GetErrorCode gets the errorCode property value. The errorCode property -func (m *RunDetails) GetErrorCode()(*HuntingRuleErrorCode) { +func (m *RunDetails) GetErrorCode()(*RunDetails_errorCode) { val, err := m.GetBackingStore().Get("errorCode") if err != nil { panic(err) } if val != nil { - return val.(*HuntingRuleErrorCode) + return val.(*RunDetails_errorCode) } return nil } @@ -65,12 +65,12 @@ func (m *RunDetails) GetFailureReason()(*string) { func (m *RunDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["errorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseHuntingRuleErrorCode) + val, err := n.GetEnumValue(ParseRunDetails_errorCode) if err != nil { return err } if val != nil { - m.SetErrorCode(val.(*HuntingRuleErrorCode)) + m.SetErrorCode(val.(*RunDetails_errorCode)) } return nil } @@ -105,12 +105,12 @@ func (m *RunDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseHuntingRuleRunStatus) + val, err := n.GetEnumValue(ParseRunDetails_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*HuntingRuleRunStatus)) + m.SetStatus(val.(*RunDetails_status)) } return nil } @@ -139,13 +139,13 @@ func (m *RunDetails) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. The status property -func (m *RunDetails) GetStatus()(*HuntingRuleRunStatus) { +func (m *RunDetails) GetStatus()(*RunDetails_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*HuntingRuleRunStatus) + return val.(*RunDetails_status) } return nil } @@ -203,7 +203,7 @@ func (m *RunDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185 m.backingStore = value } // SetErrorCode sets the errorCode property value. The errorCode property -func (m *RunDetails) SetErrorCode(value *HuntingRuleErrorCode)() { +func (m *RunDetails) SetErrorCode(value *RunDetails_errorCode)() { err := m.GetBackingStore().Set("errorCode", value) if err != nil { panic(err) @@ -231,7 +231,7 @@ func (m *RunDetails) SetOdataType(value *string)() { } } // SetStatus sets the status property value. The status property -func (m *RunDetails) SetStatus(value *HuntingRuleRunStatus)() { +func (m *RunDetails) SetStatus(value *RunDetails_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -243,15 +243,15 @@ type RunDetailsable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetErrorCode()(*HuntingRuleErrorCode) + GetErrorCode()(*RunDetails_errorCode) GetFailureReason()(*string) GetLastRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOdataType()(*string) - GetStatus()(*HuntingRuleRunStatus) + GetStatus()(*RunDetails_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetErrorCode(value *HuntingRuleErrorCode)() + SetErrorCode(value *RunDetails_errorCode)() SetFailureReason(value *string)() SetLastRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOdataType(value *string)() - SetStatus(value *HuntingRuleRunStatus)() + SetStatus(value *RunDetails_status)() } diff --git a/models/security/run_details_error_code.go b/models/security/run_details_error_code.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/run_details_status.go b/models/security/run_details_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/source_type.go b/models/security/source_type.go deleted file mode 100644 index b874dc86072..00000000000 --- a/models/security/source_type.go +++ /dev/null @@ -1,50 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type SourceType int - -const ( - MAILBOX_SOURCETYPE SourceType = iota - SITE_SOURCETYPE - UNKNOWNFUTUREVALUE_SOURCETYPE -) - -func (i SourceType) String() string { - var values []string - for p := SourceType(1); p <= UNKNOWNFUTUREVALUE_SOURCETYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"mailbox", "site", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseSourceType(v string) (any, error) { - var result SourceType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "mailbox": - result |= MAILBOX_SOURCETYPE - case "site": - result |= SITE_SOURCETYPE - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_SOURCETYPE - default: - return 0, errors.New("Unknown SourceType value: " + v) - } - } - return &result, nil -} -func SerializeSourceType(values []SourceType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SourceType) isMultiValue() bool { - return true -} diff --git a/models/security/submission_admin_review.go b/models/security/submission_admin_review.go index 1f486a009e8..56a0025352b 100644 --- a/models/security/submission_admin_review.go +++ b/models/security/submission_admin_review.go @@ -73,12 +73,12 @@ func (m *SubmissionAdminReview) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["reviewResult"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubmissionResultCategory) + val, err := n.GetEnumValue(ParseSubmissionAdminReview_reviewResult) if err != nil { return err } if val != nil { - m.SetReviewResult(val.(*SubmissionResultCategory)) + m.SetReviewResult(val.(*SubmissionAdminReview_reviewResult)) } return nil } @@ -118,13 +118,13 @@ func (m *SubmissionAdminReview) GetReviewDateTime()(*i336074805fc853987abe6f7fe3 return nil } // GetReviewResult gets the reviewResult property value. Specifies what the review result was. The possible values are: notJunk, spam, phishing, malware, allowedByPolicy, blockedByPolicy, spoof, unknown, noResultAvailable, and unknownFutureValue. -func (m *SubmissionAdminReview) GetReviewResult()(*SubmissionResultCategory) { +func (m *SubmissionAdminReview) GetReviewResult()(*SubmissionAdminReview_reviewResult) { val, err := m.GetBackingStore().Get("reviewResult") if err != nil { panic(err) } if val != nil { - return val.(*SubmissionResultCategory) + return val.(*SubmissionAdminReview_reviewResult) } return nil } @@ -196,7 +196,7 @@ func (m *SubmissionAdminReview) SetReviewDateTime(value *i336074805fc853987abe6f } } // SetReviewResult sets the reviewResult property value. Specifies what the review result was. The possible values are: notJunk, spam, phishing, malware, allowedByPolicy, blockedByPolicy, spoof, unknown, noResultAvailable, and unknownFutureValue. -func (m *SubmissionAdminReview) SetReviewResult(value *SubmissionResultCategory)() { +func (m *SubmissionAdminReview) SetReviewResult(value *SubmissionAdminReview_reviewResult)() { err := m.GetBackingStore().Set("reviewResult", value) if err != nil { panic(err) @@ -211,10 +211,10 @@ type SubmissionAdminReviewable interface { GetOdataType()(*string) GetReviewBy()(*string) GetReviewDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetReviewResult()(*SubmissionResultCategory) + GetReviewResult()(*SubmissionAdminReview_reviewResult) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetReviewBy(value *string)() SetReviewDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetReviewResult(value *SubmissionResultCategory)() + SetReviewResult(value *SubmissionAdminReview_reviewResult)() } diff --git a/models/security/submission_admin_review_review_result.go b/models/security/submission_admin_review_review_result.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/submission_client_source.go b/models/security/submission_client_source.go deleted file mode 100644 index 03896ae5391..00000000000 --- a/models/security/submission_client_source.go +++ /dev/null @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type SubmissionClientSource int - -const ( - MICROSOFT_SUBMISSIONCLIENTSOURCE SubmissionClientSource = iota - OTHER_SUBMISSIONCLIENTSOURCE - UNKNOWNFUTUREVALUE_SUBMISSIONCLIENTSOURCE -) - -func (i SubmissionClientSource) String() string { - return []string{"microsoft", "other", "unknownFutureValue"}[i] -} -func ParseSubmissionClientSource(v string) (any, error) { - result := MICROSOFT_SUBMISSIONCLIENTSOURCE - switch v { - case "microsoft": - result = MICROSOFT_SUBMISSIONCLIENTSOURCE - case "other": - result = OTHER_SUBMISSIONCLIENTSOURCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBMISSIONCLIENTSOURCE - default: - return 0, errors.New("Unknown SubmissionClientSource value: " + v) - } - return &result, nil -} -func SerializeSubmissionClientSource(values []SubmissionClientSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubmissionClientSource) isMultiValue() bool { - return false -} diff --git a/models/security/submission_content_type.go b/models/security/submission_content_type.go deleted file mode 100644 index 9419a278e8f..00000000000 --- a/models/security/submission_content_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type SubmissionContentType int - -const ( - EMAIL_SUBMISSIONCONTENTTYPE SubmissionContentType = iota - URL_SUBMISSIONCONTENTTYPE - FILE_SUBMISSIONCONTENTTYPE - APP_SUBMISSIONCONTENTTYPE - UNKNOWNFUTUREVALUE_SUBMISSIONCONTENTTYPE -) - -func (i SubmissionContentType) String() string { - return []string{"email", "url", "file", "app", "unknownFutureValue"}[i] -} -func ParseSubmissionContentType(v string) (any, error) { - result := EMAIL_SUBMISSIONCONTENTTYPE - switch v { - case "email": - result = EMAIL_SUBMISSIONCONTENTTYPE - case "url": - result = URL_SUBMISSIONCONTENTTYPE - case "file": - result = FILE_SUBMISSIONCONTENTTYPE - case "app": - result = APP_SUBMISSIONCONTENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBMISSIONCONTENTTYPE - default: - return 0, errors.New("Unknown SubmissionContentType value: " + v) - } - return &result, nil -} -func SerializeSubmissionContentType(values []SubmissionContentType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubmissionContentType) isMultiValue() bool { - return false -} diff --git a/models/security/submission_result.go b/models/security/submission_result.go index 506f29b9390..dbab670295e 100644 --- a/models/security/submission_result.go +++ b/models/security/submission_result.go @@ -39,24 +39,24 @@ func (m *SubmissionResult) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d411 return m.backingStore } // GetCategory gets the category property value. The submission result category. The possible values are: notJunk, spam, phishing, malware, allowedByPolicy, blockedByPolicy, spoof, unknown, noResultAvailable and unkownFutureValue. -func (m *SubmissionResult) GetCategory()(*SubmissionResultCategory) { +func (m *SubmissionResult) GetCategory()(*SubmissionResult_category) { val, err := m.GetBackingStore().Get("category") if err != nil { panic(err) } if val != nil { - return val.(*SubmissionResultCategory) + return val.(*SubmissionResult_category) } return nil } // GetDetail gets the detail property value. Specifies the extra details provided by Microsoft to substantiate their analysis result. -func (m *SubmissionResult) GetDetail()(*SubmissionResultDetail) { +func (m *SubmissionResult) GetDetail()(*SubmissionResult_detail) { val, err := m.GetBackingStore().Get("detail") if err != nil { panic(err) } if val != nil { - return val.(*SubmissionResultDetail) + return val.(*SubmissionResult_detail) } return nil } @@ -86,22 +86,22 @@ func (m *SubmissionResult) GetDetectedUrls()([]string) { func (m *SubmissionResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubmissionResultCategory) + val, err := n.GetEnumValue(ParseSubmissionResult_category) if err != nil { return err } if val != nil { - m.SetCategory(val.(*SubmissionResultCategory)) + m.SetCategory(val.(*SubmissionResult_category)) } return nil } res["detail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubmissionResultDetail) + val, err := n.GetEnumValue(ParseSubmissionResult_detail) if err != nil { return err } if val != nil { - m.SetDetail(val.(*SubmissionResultDetail)) + m.SetDetail(val.(*SubmissionResult_detail)) } return nil } @@ -148,12 +148,12 @@ func (m *SubmissionResult) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["userMailboxSetting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserMailboxSetting) + val, err := n.GetEnumValue(ParseSubmissionResult_userMailboxSetting) if err != nil { return err } if val != nil { - m.SetUserMailboxSetting(val.(*UserMailboxSetting)) + m.SetUserMailboxSetting(val.(*SubmissionResult_userMailboxSetting)) } return nil } @@ -171,13 +171,13 @@ func (m *SubmissionResult) GetOdataType()(*string) { return nil } // GetUserMailboxSetting gets the userMailboxSetting property value. Specifies the setting for user mailbox denoted by a comma-separated string. -func (m *SubmissionResult) GetUserMailboxSetting()(*UserMailboxSetting) { +func (m *SubmissionResult) GetUserMailboxSetting()(*SubmissionResult_userMailboxSetting) { val, err := m.GetBackingStore().Get("userMailboxSetting") if err != nil { panic(err) } if val != nil { - return val.(*UserMailboxSetting) + return val.(*SubmissionResult_userMailboxSetting) } return nil } @@ -248,14 +248,14 @@ func (m *SubmissionResult) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078 m.backingStore = value } // SetCategory sets the category property value. The submission result category. The possible values are: notJunk, spam, phishing, malware, allowedByPolicy, blockedByPolicy, spoof, unknown, noResultAvailable and unkownFutureValue. -func (m *SubmissionResult) SetCategory(value *SubmissionResultCategory)() { +func (m *SubmissionResult) SetCategory(value *SubmissionResult_category)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) } } // SetDetail sets the detail property value. Specifies the extra details provided by Microsoft to substantiate their analysis result. -func (m *SubmissionResult) SetDetail(value *SubmissionResultDetail)() { +func (m *SubmissionResult) SetDetail(value *SubmissionResult_detail)() { err := m.GetBackingStore().Set("detail", value) if err != nil { panic(err) @@ -283,7 +283,7 @@ func (m *SubmissionResult) SetOdataType(value *string)() { } } // SetUserMailboxSetting sets the userMailboxSetting property value. Specifies the setting for user mailbox denoted by a comma-separated string. -func (m *SubmissionResult) SetUserMailboxSetting(value *UserMailboxSetting)() { +func (m *SubmissionResult) SetUserMailboxSetting(value *SubmissionResult_userMailboxSetting)() { err := m.GetBackingStore().Set("userMailboxSetting", value) if err != nil { panic(err) @@ -295,17 +295,17 @@ type SubmissionResultable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCategory()(*SubmissionResultCategory) - GetDetail()(*SubmissionResultDetail) + GetCategory()(*SubmissionResult_category) + GetDetail()(*SubmissionResult_detail) GetDetectedFiles()([]SubmissionDetectedFileable) GetDetectedUrls()([]string) GetOdataType()(*string) - GetUserMailboxSetting()(*UserMailboxSetting) + GetUserMailboxSetting()(*SubmissionResult_userMailboxSetting) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCategory(value *SubmissionResultCategory)() - SetDetail(value *SubmissionResultDetail)() + SetCategory(value *SubmissionResult_category)() + SetDetail(value *SubmissionResult_detail)() SetDetectedFiles(value []SubmissionDetectedFileable)() SetDetectedUrls(value []string)() SetOdataType(value *string)() - SetUserMailboxSetting(value *UserMailboxSetting)() + SetUserMailboxSetting(value *SubmissionResult_userMailboxSetting)() } diff --git a/models/security/submission_result_category.go b/models/security/submission_result_category.go index c7b16462589..e69de29bb2d 100644 --- a/models/security/submission_result_category.go +++ b/models/security/submission_result_category.go @@ -1,61 +0,0 @@ -package security -import ( - "errors" -) -// -type SubmissionResultCategory int - -const ( - NOTJUNK_SUBMISSIONRESULTCATEGORY SubmissionResultCategory = iota - SPAM_SUBMISSIONRESULTCATEGORY - PHISHING_SUBMISSIONRESULTCATEGORY - MALWARE_SUBMISSIONRESULTCATEGORY - ALLOWEDBYPOLICY_SUBMISSIONRESULTCATEGORY - BLOCKEDBYPOLICY_SUBMISSIONRESULTCATEGORY - SPOOF_SUBMISSIONRESULTCATEGORY - UNKNOWN_SUBMISSIONRESULTCATEGORY - NORESULTAVAILABLE_SUBMISSIONRESULTCATEGORY - UNKNOWNFUTUREVALUE_SUBMISSIONRESULTCATEGORY -) - -func (i SubmissionResultCategory) String() string { - return []string{"notJunk", "spam", "phishing", "malware", "allowedByPolicy", "blockedByPolicy", "spoof", "unknown", "noResultAvailable", "unknownFutureValue"}[i] -} -func ParseSubmissionResultCategory(v string) (any, error) { - result := NOTJUNK_SUBMISSIONRESULTCATEGORY - switch v { - case "notJunk": - result = NOTJUNK_SUBMISSIONRESULTCATEGORY - case "spam": - result = SPAM_SUBMISSIONRESULTCATEGORY - case "phishing": - result = PHISHING_SUBMISSIONRESULTCATEGORY - case "malware": - result = MALWARE_SUBMISSIONRESULTCATEGORY - case "allowedByPolicy": - result = ALLOWEDBYPOLICY_SUBMISSIONRESULTCATEGORY - case "blockedByPolicy": - result = BLOCKEDBYPOLICY_SUBMISSIONRESULTCATEGORY - case "spoof": - result = SPOOF_SUBMISSIONRESULTCATEGORY - case "unknown": - result = UNKNOWN_SUBMISSIONRESULTCATEGORY - case "noResultAvailable": - result = NORESULTAVAILABLE_SUBMISSIONRESULTCATEGORY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBMISSIONRESULTCATEGORY - default: - return 0, errors.New("Unknown SubmissionResultCategory value: " + v) - } - return &result, nil -} -func SerializeSubmissionResultCategory(values []SubmissionResultCategory) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubmissionResultCategory) isMultiValue() bool { - return false -} diff --git a/models/security/submission_result_detail.go b/models/security/submission_result_detail.go index 5b078ed1de7..e69de29bb2d 100644 --- a/models/security/submission_result_detail.go +++ b/models/security/submission_result_detail.go @@ -1,193 +0,0 @@ -package security -import ( - "errors" -) -// -type SubmissionResultDetail int - -const ( - NONE_SUBMISSIONRESULTDETAIL SubmissionResultDetail = iota - UNDERINVESTIGATION_SUBMISSIONRESULTDETAIL - SIMULATEDTHREAT_SUBMISSIONRESULTDETAIL - ALLOWEDBYSECOPS_SUBMISSIONRESULTDETAIL - ALLOWEDBYTHIRDPARTYFILTERS_SUBMISSIONRESULTDETAIL - MESSAGENOTFOUND_SUBMISSIONRESULTDETAIL - URLFILESHOULDNOTBEBLOCKED_SUBMISSIONRESULTDETAIL - URLFILESHOULDBEBLOCKED_SUBMISSIONRESULTDETAIL - URLFILECANNOTMAKEDECISION_SUBMISSIONRESULTDETAIL - DOMAINIMPERSONATION_SUBMISSIONRESULTDETAIL - USERIMPERSONATION_SUBMISSIONRESULTDETAIL - BRANDIMPERSONATION_SUBMISSIONRESULTDETAIL - OUTBOUNDSHOULDNOTBEBLOCKED_SUBMISSIONRESULTDETAIL - OUTBOUNDSHOULDBEBLOCKED_SUBMISSIONRESULTDETAIL - OUTBOUNDBULK_SUBMISSIONRESULTDETAIL - OUTBOUNDCANNOTMAKEDECISION_SUBMISSIONRESULTDETAIL - OUTBOUNDNOTRESCANNED_SUBMISSIONRESULTDETAIL - ZEROHOURAUTOPURGEALLOWED_SUBMISSIONRESULTDETAIL - ZEROHOURAUTOPURGEBLOCKED_SUBMISSIONRESULTDETAIL - ZEROHOURAUTOPURGEQUARANTINERELEASED_SUBMISSIONRESULTDETAIL - ONPREMISESSKIP_SUBMISSIONRESULTDETAIL - ALLOWEDBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - BLOCKEDBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - ALLOWEDURLBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - ALLOWEDFILEBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - ALLOWEDSENDERBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - ALLOWEDRECIPIENTBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - BLOCKEDURLBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - BLOCKEDFILEBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - BLOCKEDSENDERBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - BLOCKEDRECIPIENTBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - ALLOWEDBYCONNECTION_SUBMISSIONRESULTDETAIL - BLOCKEDBYCONNECTION_SUBMISSIONRESULTDETAIL - ALLOWEDBYEXCHANGETRANSPORTRULE_SUBMISSIONRESULTDETAIL - BLOCKEDBYEXCHANGETRANSPORTRULE_SUBMISSIONRESULTDETAIL - QUARANTINERELEASED_SUBMISSIONRESULTDETAIL - QUARANTINERELEASEDTHENBLOCKED_SUBMISSIONRESULTDETAIL - JUNKMAILRULEDISABLED_SUBMISSIONRESULTDETAIL - ALLOWEDBYUSERSETTING_SUBMISSIONRESULTDETAIL - BLOCKEDBYUSERSETTING_SUBMISSIONRESULTDETAIL - ALLOWEDBYTENANT_SUBMISSIONRESULTDETAIL - BLOCKEDBYTENANT_SUBMISSIONRESULTDETAIL - INVALIDFALSEPOSITIVE_SUBMISSIONRESULTDETAIL - INVALIDFALSENEGATIVE_SUBMISSIONRESULTDETAIL - SPOOFBLOCKED_SUBMISSIONRESULTDETAIL - GOODRECLASSIFIEDASBAD_SUBMISSIONRESULTDETAIL - GOODRECLASSIFIEDASBULK_SUBMISSIONRESULTDETAIL - GOODRECLASSIFIEDASGOOD_SUBMISSIONRESULTDETAIL - GOODRECLASSIFIEDASCANNOTMAKEDECISION_SUBMISSIONRESULTDETAIL - BADRECLASSIFIEDASGOOD_SUBMISSIONRESULTDETAIL - BADRECLASSIFIEDASBULK_SUBMISSIONRESULTDETAIL - BADRECLASSIFIEDASBAD_SUBMISSIONRESULTDETAIL - BADRECLASSIFIEDASCANNOTMAKEDECISION_SUBMISSIONRESULTDETAIL - UNKNOWNFUTUREVALUE_SUBMISSIONRESULTDETAIL -) - -func (i SubmissionResultDetail) String() string { - return []string{"none", "underInvestigation", "simulatedThreat", "allowedBySecOps", "allowedByThirdPartyFilters", "messageNotFound", "urlFileShouldNotBeBlocked", "urlFileShouldBeBlocked", "urlFileCannotMakeDecision", "domainImpersonation", "userImpersonation", "brandImpersonation", "outboundShouldNotBeBlocked", "outboundShouldBeBlocked", "outboundBulk", "outboundCannotMakeDecision", "outboundNotRescanned", "zeroHourAutoPurgeAllowed", "zeroHourAutoPurgeBlocked", "zeroHourAutoPurgeQuarantineReleased", "onPremisesSkip", "allowedByTenantAllowBlockList", "blockedByTenantAllowBlockList", "allowedUrlByTenantAllowBlockList", "allowedFileByTenantAllowBlockList", "allowedSenderByTenantAllowBlockList", "allowedRecipientByTenantAllowBlockList", "blockedUrlByTenantAllowBlockList", "blockedFileByTenantAllowBlockList", "blockedSenderByTenantAllowBlockList", "blockedRecipientByTenantAllowBlockList", "allowedByConnection", "blockedByConnection", "allowedByExchangeTransportRule", "blockedByExchangeTransportRule", "quarantineReleased", "quarantineReleasedThenBlocked", "junkMailRuleDisabled", "allowedByUserSetting", "blockedByUserSetting", "allowedByTenant", "blockedByTenant", "invalidFalsePositive", "invalidFalseNegative", "spoofBlocked", "goodReclassifiedAsBad", "goodReclassifiedAsBulk", "goodReclassifiedAsGood", "goodReclassifiedAsCannotMakeDecision", "badReclassifiedAsGood", "badReclassifiedAsBulk", "badReclassifiedAsBad", "badReclassifiedAsCannotMakeDecision", "unknownFutureValue"}[i] -} -func ParseSubmissionResultDetail(v string) (any, error) { - result := NONE_SUBMISSIONRESULTDETAIL - switch v { - case "none": - result = NONE_SUBMISSIONRESULTDETAIL - case "underInvestigation": - result = UNDERINVESTIGATION_SUBMISSIONRESULTDETAIL - case "simulatedThreat": - result = SIMULATEDTHREAT_SUBMISSIONRESULTDETAIL - case "allowedBySecOps": - result = ALLOWEDBYSECOPS_SUBMISSIONRESULTDETAIL - case "allowedByThirdPartyFilters": - result = ALLOWEDBYTHIRDPARTYFILTERS_SUBMISSIONRESULTDETAIL - case "messageNotFound": - result = MESSAGENOTFOUND_SUBMISSIONRESULTDETAIL - case "urlFileShouldNotBeBlocked": - result = URLFILESHOULDNOTBEBLOCKED_SUBMISSIONRESULTDETAIL - case "urlFileShouldBeBlocked": - result = URLFILESHOULDBEBLOCKED_SUBMISSIONRESULTDETAIL - case "urlFileCannotMakeDecision": - result = URLFILECANNOTMAKEDECISION_SUBMISSIONRESULTDETAIL - case "domainImpersonation": - result = DOMAINIMPERSONATION_SUBMISSIONRESULTDETAIL - case "userImpersonation": - result = USERIMPERSONATION_SUBMISSIONRESULTDETAIL - case "brandImpersonation": - result = BRANDIMPERSONATION_SUBMISSIONRESULTDETAIL - case "outboundShouldNotBeBlocked": - result = OUTBOUNDSHOULDNOTBEBLOCKED_SUBMISSIONRESULTDETAIL - case "outboundShouldBeBlocked": - result = OUTBOUNDSHOULDBEBLOCKED_SUBMISSIONRESULTDETAIL - case "outboundBulk": - result = OUTBOUNDBULK_SUBMISSIONRESULTDETAIL - case "outboundCannotMakeDecision": - result = OUTBOUNDCANNOTMAKEDECISION_SUBMISSIONRESULTDETAIL - case "outboundNotRescanned": - result = OUTBOUNDNOTRESCANNED_SUBMISSIONRESULTDETAIL - case "zeroHourAutoPurgeAllowed": - result = ZEROHOURAUTOPURGEALLOWED_SUBMISSIONRESULTDETAIL - case "zeroHourAutoPurgeBlocked": - result = ZEROHOURAUTOPURGEBLOCKED_SUBMISSIONRESULTDETAIL - case "zeroHourAutoPurgeQuarantineReleased": - result = ZEROHOURAUTOPURGEQUARANTINERELEASED_SUBMISSIONRESULTDETAIL - case "onPremisesSkip": - result = ONPREMISESSKIP_SUBMISSIONRESULTDETAIL - case "allowedByTenantAllowBlockList": - result = ALLOWEDBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "blockedByTenantAllowBlockList": - result = BLOCKEDBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "allowedUrlByTenantAllowBlockList": - result = ALLOWEDURLBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "allowedFileByTenantAllowBlockList": - result = ALLOWEDFILEBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "allowedSenderByTenantAllowBlockList": - result = ALLOWEDSENDERBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "allowedRecipientByTenantAllowBlockList": - result = ALLOWEDRECIPIENTBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "blockedUrlByTenantAllowBlockList": - result = BLOCKEDURLBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "blockedFileByTenantAllowBlockList": - result = BLOCKEDFILEBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "blockedSenderByTenantAllowBlockList": - result = BLOCKEDSENDERBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "blockedRecipientByTenantAllowBlockList": - result = BLOCKEDRECIPIENTBYTENANTALLOWBLOCKLIST_SUBMISSIONRESULTDETAIL - case "allowedByConnection": - result = ALLOWEDBYCONNECTION_SUBMISSIONRESULTDETAIL - case "blockedByConnection": - result = BLOCKEDBYCONNECTION_SUBMISSIONRESULTDETAIL - case "allowedByExchangeTransportRule": - result = ALLOWEDBYEXCHANGETRANSPORTRULE_SUBMISSIONRESULTDETAIL - case "blockedByExchangeTransportRule": - result = BLOCKEDBYEXCHANGETRANSPORTRULE_SUBMISSIONRESULTDETAIL - case "quarantineReleased": - result = QUARANTINERELEASED_SUBMISSIONRESULTDETAIL - case "quarantineReleasedThenBlocked": - result = QUARANTINERELEASEDTHENBLOCKED_SUBMISSIONRESULTDETAIL - case "junkMailRuleDisabled": - result = JUNKMAILRULEDISABLED_SUBMISSIONRESULTDETAIL - case "allowedByUserSetting": - result = ALLOWEDBYUSERSETTING_SUBMISSIONRESULTDETAIL - case "blockedByUserSetting": - result = BLOCKEDBYUSERSETTING_SUBMISSIONRESULTDETAIL - case "allowedByTenant": - result = ALLOWEDBYTENANT_SUBMISSIONRESULTDETAIL - case "blockedByTenant": - result = BLOCKEDBYTENANT_SUBMISSIONRESULTDETAIL - case "invalidFalsePositive": - result = INVALIDFALSEPOSITIVE_SUBMISSIONRESULTDETAIL - case "invalidFalseNegative": - result = INVALIDFALSENEGATIVE_SUBMISSIONRESULTDETAIL - case "spoofBlocked": - result = SPOOFBLOCKED_SUBMISSIONRESULTDETAIL - case "goodReclassifiedAsBad": - result = GOODRECLASSIFIEDASBAD_SUBMISSIONRESULTDETAIL - case "goodReclassifiedAsBulk": - result = GOODRECLASSIFIEDASBULK_SUBMISSIONRESULTDETAIL - case "goodReclassifiedAsGood": - result = GOODRECLASSIFIEDASGOOD_SUBMISSIONRESULTDETAIL - case "goodReclassifiedAsCannotMakeDecision": - result = GOODRECLASSIFIEDASCANNOTMAKEDECISION_SUBMISSIONRESULTDETAIL - case "badReclassifiedAsGood": - result = BADRECLASSIFIEDASGOOD_SUBMISSIONRESULTDETAIL - case "badReclassifiedAsBulk": - result = BADRECLASSIFIEDASBULK_SUBMISSIONRESULTDETAIL - case "badReclassifiedAsBad": - result = BADRECLASSIFIEDASBAD_SUBMISSIONRESULTDETAIL - case "badReclassifiedAsCannotMakeDecision": - result = BADRECLASSIFIEDASCANNOTMAKEDECISION_SUBMISSIONRESULTDETAIL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBMISSIONRESULTDETAIL - default: - return 0, errors.New("Unknown SubmissionResultDetail value: " + v) - } - return &result, nil -} -func SerializeSubmissionResultDetail(values []SubmissionResultDetail) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubmissionResultDetail) isMultiValue() bool { - return false -} diff --git a/models/security/submission_result_user_mailbox_setting.go b/models/security/submission_result_user_mailbox_setting.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/submission_source.go b/models/security/submission_source.go deleted file mode 100644 index ac12b3d228e..00000000000 --- a/models/security/submission_source.go +++ /dev/null @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type SubmissionSource int - -const ( - USER_SUBMISSIONSOURCE SubmissionSource = iota - ADMINISTRATOR_SUBMISSIONSOURCE - UNKNOWNFUTUREVALUE_SUBMISSIONSOURCE -) - -func (i SubmissionSource) String() string { - return []string{"user", "administrator", "unknownFutureValue"}[i] -} -func ParseSubmissionSource(v string) (any, error) { - result := USER_SUBMISSIONSOURCE - switch v { - case "user": - result = USER_SUBMISSIONSOURCE - case "administrator": - result = ADMINISTRATOR_SUBMISSIONSOURCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBMISSIONSOURCE - default: - return 0, errors.New("Unknown SubmissionSource value: " + v) - } - return &result, nil -} -func SerializeSubmissionSource(values []SubmissionSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubmissionSource) isMultiValue() bool { - return false -} diff --git a/models/security/tenant_allow_block_list_action.go b/models/security/tenant_allow_block_list_action.go deleted file mode 100644 index 35d7804bf00..00000000000 --- a/models/security/tenant_allow_block_list_action.go +++ /dev/null @@ -1,40 +0,0 @@ -package security -import ( - "errors" -) -// -type TenantAllowBlockListAction int - -const ( - ALLOW_TENANTALLOWBLOCKLISTACTION TenantAllowBlockListAction = iota - BLOCK_TENANTALLOWBLOCKLISTACTION - UNKNOWNFUTUREVALUE_TENANTALLOWBLOCKLISTACTION -) - -func (i TenantAllowBlockListAction) String() string { - return []string{"allow", "block", "unknownFutureValue"}[i] -} -func ParseTenantAllowBlockListAction(v string) (any, error) { - result := ALLOW_TENANTALLOWBLOCKLISTACTION - switch v { - case "allow": - result = ALLOW_TENANTALLOWBLOCKLISTACTION - case "block": - result = BLOCK_TENANTALLOWBLOCKLISTACTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TENANTALLOWBLOCKLISTACTION - default: - return 0, errors.New("Unknown TenantAllowBlockListAction value: " + v) - } - return &result, nil -} -func SerializeTenantAllowBlockListAction(values []TenantAllowBlockListAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TenantAllowBlockListAction) isMultiValue() bool { - return false -} diff --git a/models/security/tenant_allow_block_list_entry_result.go b/models/security/tenant_allow_block_list_entry_result.go index 79a450a1410..e36b6789a5a 100644 --- a/models/security/tenant_allow_block_list_entry_result.go +++ b/models/security/tenant_allow_block_list_entry_result.go @@ -40,13 +40,13 @@ func (m *TenantAllowBlockListEntryResult) GetBackingStore()(ie8677ce2c7e1b4c22e9 return m.backingStore } // GetEntryType gets the entryType property value. The tenant allow-block list entry type. The possible values are: url, fileHash, sender, recipient and unkownFutureValue. -func (m *TenantAllowBlockListEntryResult) GetEntryType()(*TenantAllowBlockListEntryType) { +func (m *TenantAllowBlockListEntryResult) GetEntryType()(*TenantAllowBlockListEntryResult_entryType) { val, err := m.GetBackingStore().Get("entryType") if err != nil { panic(err) } if val != nil { - return val.(*TenantAllowBlockListEntryType) + return val.(*TenantAllowBlockListEntryResult_entryType) } return nil } @@ -65,12 +65,12 @@ func (m *TenantAllowBlockListEntryResult) GetExpirationDateTime()(*i336074805fc8 func (m *TenantAllowBlockListEntryResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["entryType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTenantAllowBlockListEntryType) + val, err := n.GetEnumValue(ParseTenantAllowBlockListEntryResult_entryType) if err != nil { return err } if val != nil { - m.SetEntryType(val.(*TenantAllowBlockListEntryType)) + m.SetEntryType(val.(*TenantAllowBlockListEntryResult_entryType)) } return nil } @@ -105,12 +105,12 @@ func (m *TenantAllowBlockListEntryResult) GetFieldDeserializers()(map[string]fun return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLongRunningOperationStatus) + val, err := n.GetEnumValue(ParseTenantAllowBlockListEntryResult_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*LongRunningOperationStatus)) + m.SetStatus(val.(*TenantAllowBlockListEntryResult_status)) } return nil } @@ -149,13 +149,13 @@ func (m *TenantAllowBlockListEntryResult) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. Specifies whether the tenant allow block list entry creation operation was successful. The possible values are: notStarted, running, succeeded, failed, skipped and unkownFutureValue. -func (m *TenantAllowBlockListEntryResult) GetStatus()(*LongRunningOperationStatus) { +func (m *TenantAllowBlockListEntryResult) GetStatus()(*TenantAllowBlockListEntryResult_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*LongRunningOperationStatus) + return val.(*TenantAllowBlockListEntryResult_status) } return nil } @@ -230,7 +230,7 @@ func (m *TenantAllowBlockListEntryResult) SetBackingStore(value ie8677ce2c7e1b4c m.backingStore = value } // SetEntryType sets the entryType property value. The tenant allow-block list entry type. The possible values are: url, fileHash, sender, recipient and unkownFutureValue. -func (m *TenantAllowBlockListEntryResult) SetEntryType(value *TenantAllowBlockListEntryType)() { +func (m *TenantAllowBlockListEntryResult) SetEntryType(value *TenantAllowBlockListEntryResult_entryType)() { err := m.GetBackingStore().Set("entryType", value) if err != nil { panic(err) @@ -258,7 +258,7 @@ func (m *TenantAllowBlockListEntryResult) SetOdataType(value *string)() { } } // SetStatus sets the status property value. Specifies whether the tenant allow block list entry creation operation was successful. The possible values are: notStarted, running, succeeded, failed, skipped and unkownFutureValue. -func (m *TenantAllowBlockListEntryResult) SetStatus(value *LongRunningOperationStatus)() { +func (m *TenantAllowBlockListEntryResult) SetStatus(value *TenantAllowBlockListEntryResult_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -277,17 +277,17 @@ type TenantAllowBlockListEntryResultable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEntryType()(*TenantAllowBlockListEntryType) + GetEntryType()(*TenantAllowBlockListEntryResult_entryType) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetIdentity()(*string) GetOdataType()(*string) - GetStatus()(*LongRunningOperationStatus) + GetStatus()(*TenantAllowBlockListEntryResult_status) GetValue()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEntryType(value *TenantAllowBlockListEntryType)() + SetEntryType(value *TenantAllowBlockListEntryResult_entryType)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetIdentity(value *string)() SetOdataType(value *string)() - SetStatus(value *LongRunningOperationStatus)() + SetStatus(value *TenantAllowBlockListEntryResult_status)() SetValue(value *string)() } diff --git a/models/security/tenant_allow_block_list_entry_result_entry_type.go b/models/security/tenant_allow_block_list_entry_result_entry_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/tenant_allow_block_list_entry_result_status.go b/models/security/tenant_allow_block_list_entry_result_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/tenant_allow_block_list_entry_type.go b/models/security/tenant_allow_block_list_entry_type.go deleted file mode 100644 index 4b2d5043f8b..00000000000 --- a/models/security/tenant_allow_block_list_entry_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package security -import ( - "errors" -) -// -type TenantAllowBlockListEntryType int - -const ( - URL_TENANTALLOWBLOCKLISTENTRYTYPE TenantAllowBlockListEntryType = iota - FILEHASH_TENANTALLOWBLOCKLISTENTRYTYPE - SENDER_TENANTALLOWBLOCKLISTENTRYTYPE - RECIPIENT_TENANTALLOWBLOCKLISTENTRYTYPE - UNKNOWNFUTUREVALUE_TENANTALLOWBLOCKLISTENTRYTYPE -) - -func (i TenantAllowBlockListEntryType) String() string { - return []string{"url", "fileHash", "sender", "recipient", "unknownFutureValue"}[i] -} -func ParseTenantAllowBlockListEntryType(v string) (any, error) { - result := URL_TENANTALLOWBLOCKLISTENTRYTYPE - switch v { - case "url": - result = URL_TENANTALLOWBLOCKLISTENTRYTYPE - case "fileHash": - result = FILEHASH_TENANTALLOWBLOCKLISTENTRYTYPE - case "sender": - result = SENDER_TENANTALLOWBLOCKLISTENTRYTYPE - case "recipient": - result = RECIPIENT_TENANTALLOWBLOCKLISTENTRYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TENANTALLOWBLOCKLISTENTRYTYPE - default: - return 0, errors.New("Unknown TenantAllowBlockListEntryType value: " + v) - } - return &result, nil -} -func SerializeTenantAllowBlockListEntryType(values []TenantAllowBlockListEntryType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TenantAllowBlockListEntryType) isMultiValue() bool { - return false -} diff --git a/models/security/tenant_allow_or_block_list_action.go b/models/security/tenant_allow_or_block_list_action.go index 48f16b3549f..02350f06873 100644 --- a/models/security/tenant_allow_or_block_list_action.go +++ b/models/security/tenant_allow_or_block_list_action.go @@ -24,13 +24,13 @@ func CreateTenantAllowOrBlockListActionFromDiscriminatorValue(parseNode i878a80d return NewTenantAllowOrBlockListAction(), nil } // GetAction gets the action property value. Specifies whether the tenant allow-or-block list is an allow or block. The possible values are: allow, block, and unkownFutureValue. -func (m *TenantAllowOrBlockListAction) GetAction()(*TenantAllowBlockListAction) { +func (m *TenantAllowOrBlockListAction) GetAction()(*TenantAllowOrBlockListAction_action) { val, err := m.GetBackingStore().Get("action") if err != nil { panic(err) } if val != nil { - return val.(*TenantAllowBlockListAction) + return val.(*TenantAllowOrBlockListAction_action) } return nil } @@ -65,12 +65,12 @@ func (m *TenantAllowOrBlockListAction) GetExpirationDateTime()(*i336074805fc8539 func (m *TenantAllowOrBlockListAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTenantAllowBlockListAction) + val, err := n.GetEnumValue(ParseTenantAllowOrBlockListAction_action) if err != nil { return err } if val != nil { - m.SetAction(val.(*TenantAllowBlockListAction)) + m.SetAction(val.(*TenantAllowOrBlockListAction_action)) } return nil } @@ -203,7 +203,7 @@ func (m *TenantAllowOrBlockListAction) Serialize(writer i878a80d2330e89d26896388 return nil } // SetAction sets the action property value. Specifies whether the tenant allow-or-block list is an allow or block. The possible values are: allow, block, and unkownFutureValue. -func (m *TenantAllowOrBlockListAction) SetAction(value *TenantAllowBlockListAction)() { +func (m *TenantAllowOrBlockListAction) SetAction(value *TenantAllowOrBlockListAction_action)() { err := m.GetBackingStore().Set("action", value) if err != nil { panic(err) @@ -253,13 +253,13 @@ type TenantAllowOrBlockListActionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAction()(*TenantAllowBlockListAction) + GetAction()(*TenantAllowOrBlockListAction_action) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetNote()(*string) GetOdataType()(*string) GetResults()([]TenantAllowBlockListEntryResultable) - SetAction(value *TenantAllowBlockListAction)() + SetAction(value *TenantAllowOrBlockListAction_action)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetNote(value *string)() diff --git a/models/security/tenant_allow_or_block_list_action_action.go b/models/security/tenant_allow_or_block_list_action_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/threat_submission.go b/models/security/threat_submission.go index 3eca58694c9..3aaa5b1f825 100644 --- a/models/security/threat_submission.go +++ b/models/security/threat_submission.go @@ -74,24 +74,24 @@ func (m *ThreatSubmission) GetCategory()(*SubmissionCategory) { return nil } // GetClientSource gets the clientSource property value. Specifies the source of the submission. The possible values are: microsoft, other and unkownFutureValue. -func (m *ThreatSubmission) GetClientSource()(*SubmissionClientSource) { +func (m *ThreatSubmission) GetClientSource()(*ThreatSubmission_clientSource) { val, err := m.GetBackingStore().Get("clientSource") if err != nil { panic(err) } if val != nil { - return val.(*SubmissionClientSource) + return val.(*ThreatSubmission_clientSource) } return nil } // GetContentType gets the contentType property value. Specifies the type of content being submitted. The possible values are: email, url, file, app and unkownFutureValue. -func (m *ThreatSubmission) GetContentType()(*SubmissionContentType) { +func (m *ThreatSubmission) GetContentType()(*ThreatSubmission_contentType) { val, err := m.GetBackingStore().Get("contentType") if err != nil { panic(err) } if val != nil { - return val.(*SubmissionContentType) + return val.(*ThreatSubmission_contentType) } return nil } @@ -141,22 +141,22 @@ func (m *ThreatSubmission) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["clientSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubmissionClientSource) + val, err := n.GetEnumValue(ParseThreatSubmission_clientSource) if err != nil { return err } if val != nil { - m.SetClientSource(val.(*SubmissionClientSource)) + m.SetClientSource(val.(*ThreatSubmission_clientSource)) } return nil } res["contentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubmissionContentType) + val, err := n.GetEnumValue(ParseThreatSubmission_contentType) if err != nil { return err } if val != nil { - m.SetContentType(val.(*SubmissionContentType)) + m.SetContentType(val.(*ThreatSubmission_contentType)) } return nil } @@ -191,22 +191,22 @@ func (m *ThreatSubmission) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubmissionSource) + val, err := n.GetEnumValue(ParseThreatSubmission_source) if err != nil { return err } if val != nil { - m.SetSource(val.(*SubmissionSource)) + m.SetSource(val.(*ThreatSubmission_source)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLongRunningOperationStatus) + val, err := n.GetEnumValue(ParseThreatSubmission_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*LongRunningOperationStatus)) + m.SetStatus(val.(*ThreatSubmission_status)) } return nil } @@ -234,24 +234,24 @@ func (m *ThreatSubmission) GetResult()(SubmissionResultable) { return nil } // GetSource gets the source property value. Specifies the role of the submitter. Supports $filter = source eq 'value'. The possible values are: administrator, user and unkownFutureValue. -func (m *ThreatSubmission) GetSource()(*SubmissionSource) { +func (m *ThreatSubmission) GetSource()(*ThreatSubmission_source) { val, err := m.GetBackingStore().Get("source") if err != nil { panic(err) } if val != nil { - return val.(*SubmissionSource) + return val.(*ThreatSubmission_source) } return nil } // GetStatus gets the status property value. Indicates whether the threat submission has been analyzed by Microsoft. Supports $filter = status eq 'value'. The possible values are: notStarted, running, succeeded, failed, skipped and unkownFutureValue. -func (m *ThreatSubmission) GetStatus()(*LongRunningOperationStatus) { +func (m *ThreatSubmission) GetStatus()(*ThreatSubmission_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*LongRunningOperationStatus) + return val.(*ThreatSubmission_status) } return nil } @@ -354,14 +354,14 @@ func (m *ThreatSubmission) SetCategory(value *SubmissionCategory)() { } } // SetClientSource sets the clientSource property value. Specifies the source of the submission. The possible values are: microsoft, other and unkownFutureValue. -func (m *ThreatSubmission) SetClientSource(value *SubmissionClientSource)() { +func (m *ThreatSubmission) SetClientSource(value *ThreatSubmission_clientSource)() { err := m.GetBackingStore().Set("clientSource", value) if err != nil { panic(err) } } // SetContentType sets the contentType property value. Specifies the type of content being submitted. The possible values are: email, url, file, app and unkownFutureValue. -func (m *ThreatSubmission) SetContentType(value *SubmissionContentType)() { +func (m *ThreatSubmission) SetContentType(value *ThreatSubmission_contentType)() { err := m.GetBackingStore().Set("contentType", value) if err != nil { panic(err) @@ -389,14 +389,14 @@ func (m *ThreatSubmission) SetResult(value SubmissionResultable)() { } } // SetSource sets the source property value. Specifies the role of the submitter. Supports $filter = source eq 'value'. The possible values are: administrator, user and unkownFutureValue. -func (m *ThreatSubmission) SetSource(value *SubmissionSource)() { +func (m *ThreatSubmission) SetSource(value *ThreatSubmission_source)() { err := m.GetBackingStore().Set("source", value) if err != nil { panic(err) } } // SetStatus sets the status property value. Indicates whether the threat submission has been analyzed by Microsoft. Supports $filter = status eq 'value'. The possible values are: notStarted, running, succeeded, failed, skipped and unkownFutureValue. -func (m *ThreatSubmission) SetStatus(value *LongRunningOperationStatus)() { +func (m *ThreatSubmission) SetStatus(value *ThreatSubmission_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -415,22 +415,22 @@ type ThreatSubmissionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAdminReview()(SubmissionAdminReviewable) GetCategory()(*SubmissionCategory) - GetClientSource()(*SubmissionClientSource) - GetContentType()(*SubmissionContentType) + GetClientSource()(*ThreatSubmission_clientSource) + GetContentType()(*ThreatSubmission_contentType) GetCreatedBy()(SubmissionUserIdentityable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetResult()(SubmissionResultable) - GetSource()(*SubmissionSource) - GetStatus()(*LongRunningOperationStatus) + GetSource()(*ThreatSubmission_source) + GetStatus()(*ThreatSubmission_status) GetTenantId()(*string) SetAdminReview(value SubmissionAdminReviewable)() SetCategory(value *SubmissionCategory)() - SetClientSource(value *SubmissionClientSource)() - SetContentType(value *SubmissionContentType)() + SetClientSource(value *ThreatSubmission_clientSource)() + SetContentType(value *ThreatSubmission_contentType)() SetCreatedBy(value SubmissionUserIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetResult(value SubmissionResultable)() - SetSource(value *SubmissionSource)() - SetStatus(value *LongRunningOperationStatus)() + SetSource(value *ThreatSubmission_source)() + SetStatus(value *ThreatSubmission_status)() SetTenantId(value *string)() } diff --git a/models/security/threat_submission_client_source.go b/models/security/threat_submission_client_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/threat_submission_content_type.go b/models/security/threat_submission_content_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/threat_submission_source.go b/models/security/threat_submission_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/threat_submission_status.go b/models/security/threat_submission_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/unified_group_source.go b/models/security/unified_group_source.go index 4c37309c41b..e77c9d00261 100644 --- a/models/security/unified_group_source.go +++ b/models/security/unified_group_source.go @@ -36,12 +36,12 @@ func (m *UnifiedGroupSource) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["includedSources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSourceType) + val, err := n.GetEnumValue(ParseUnifiedGroupSource_includedSources) if err != nil { return err } if val != nil { - m.SetIncludedSources(val.(*SourceType)) + m.SetIncludedSources(val.(*UnifiedGroupSource_includedSources)) } return nil } @@ -59,13 +59,13 @@ func (m *UnifiedGroupSource) GetGroup()(ie233ee762e29b4ba6970aa2a2efce4b7fde1169 return nil } // GetIncludedSources gets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site. -func (m *UnifiedGroupSource) GetIncludedSources()(*SourceType) { +func (m *UnifiedGroupSource) GetIncludedSources()(*UnifiedGroupSource_includedSources) { val, err := m.GetBackingStore().Get("includedSources") if err != nil { panic(err) } if val != nil { - return val.(*SourceType) + return val.(*UnifiedGroupSource_includedSources) } return nil } @@ -98,7 +98,7 @@ func (m *UnifiedGroupSource) SetGroup(value ie233ee762e29b4ba6970aa2a2efce4b7fde } } // SetIncludedSources sets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site. -func (m *UnifiedGroupSource) SetIncludedSources(value *SourceType)() { +func (m *UnifiedGroupSource) SetIncludedSources(value *UnifiedGroupSource_includedSources)() { err := m.GetBackingStore().Set("includedSources", value) if err != nil { panic(err) @@ -109,7 +109,7 @@ type UnifiedGroupSourceable interface { DataSourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroup()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable) - GetIncludedSources()(*SourceType) + GetIncludedSources()(*UnifiedGroupSource_includedSources) SetGroup(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable)() - SetIncludedSources(value *SourceType)() + SetIncludedSources(value *UnifiedGroupSource_includedSources)() } diff --git a/models/security/unified_group_source_included_sources.go b/models/security/unified_group_source_included_sources.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security/user_mailbox_setting.go b/models/security/user_mailbox_setting.go deleted file mode 100644 index 2d752bfe1de..00000000000 --- a/models/security/user_mailbox_setting.go +++ /dev/null @@ -1,98 +0,0 @@ -package security -import ( - "errors" - "strings" -) -// -type UserMailboxSetting int - -const ( - NONE_USERMAILBOXSETTING UserMailboxSetting = iota - JUNKMAILDELETION_USERMAILBOXSETTING - ISFROMADDRESSINADDRESSBOOK_USERMAILBOXSETTING - ISFROMADDRESSINADDRESSSAFELIST_USERMAILBOXSETTING - ISFROMADDRESSINADDRESSBLOCKLIST_USERMAILBOXSETTING - ISFROMADDRESSINADDRESSIMPLICITSAFELIST_USERMAILBOXSETTING - ISFROMADDRESSINADDRESSIMPLICITJUNKLIST_USERMAILBOXSETTING - ISFROMDOMAININDOMAINSAFELIST_USERMAILBOXSETTING - ISFROMDOMAININDOMAINBLOCKLIST_USERMAILBOXSETTING - ISRECIPIENTINRECIPIENTSAFELIST_USERMAILBOXSETTING - CUSTOMRULE_USERMAILBOXSETTING - JUNKMAILRULE_USERMAILBOXSETTING - SENDERPRAPRESENT_USERMAILBOXSETTING - FROMFIRSTTIMESENDER_USERMAILBOXSETTING - EXCLUSIVE_USERMAILBOXSETTING - PRIORSEENPASS_USERMAILBOXSETTING - SENDERAUTHENTICATIONSUCCEEDED_USERMAILBOXSETTING - ISJUNKMAILRULEENABLED_USERMAILBOXSETTING - UNKNOWNFUTUREVALUE_USERMAILBOXSETTING -) - -func (i UserMailboxSetting) String() string { - var values []string - for p := UserMailboxSetting(1); p <= UNKNOWNFUTUREVALUE_USERMAILBOXSETTING; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "junkMailDeletion", "isFromAddressInAddressBook", "isFromAddressInAddressSafeList", "isFromAddressInAddressBlockList", "isFromAddressInAddressImplicitSafeList", "isFromAddressInAddressImplicitJunkList", "isFromDomainInDomainSafeList", "isFromDomainInDomainBlockList", "isRecipientInRecipientSafeList", "customRule", "junkMailRule", "senderPraPresent", "fromFirstTimeSender", "exclusive", "priorSeenPass", "senderAuthenticationSucceeded", "isJunkMailRuleEnabled", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseUserMailboxSetting(v string) (any, error) { - var result UserMailboxSetting - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_USERMAILBOXSETTING - case "junkMailDeletion": - result |= JUNKMAILDELETION_USERMAILBOXSETTING - case "isFromAddressInAddressBook": - result |= ISFROMADDRESSINADDRESSBOOK_USERMAILBOXSETTING - case "isFromAddressInAddressSafeList": - result |= ISFROMADDRESSINADDRESSSAFELIST_USERMAILBOXSETTING - case "isFromAddressInAddressBlockList": - result |= ISFROMADDRESSINADDRESSBLOCKLIST_USERMAILBOXSETTING - case "isFromAddressInAddressImplicitSafeList": - result |= ISFROMADDRESSINADDRESSIMPLICITSAFELIST_USERMAILBOXSETTING - case "isFromAddressInAddressImplicitJunkList": - result |= ISFROMADDRESSINADDRESSIMPLICITJUNKLIST_USERMAILBOXSETTING - case "isFromDomainInDomainSafeList": - result |= ISFROMDOMAININDOMAINSAFELIST_USERMAILBOXSETTING - case "isFromDomainInDomainBlockList": - result |= ISFROMDOMAININDOMAINBLOCKLIST_USERMAILBOXSETTING - case "isRecipientInRecipientSafeList": - result |= ISRECIPIENTINRECIPIENTSAFELIST_USERMAILBOXSETTING - case "customRule": - result |= CUSTOMRULE_USERMAILBOXSETTING - case "junkMailRule": - result |= JUNKMAILRULE_USERMAILBOXSETTING - case "senderPraPresent": - result |= SENDERPRAPRESENT_USERMAILBOXSETTING - case "fromFirstTimeSender": - result |= FROMFIRSTTIMESENDER_USERMAILBOXSETTING - case "exclusive": - result |= EXCLUSIVE_USERMAILBOXSETTING - case "priorSeenPass": - result |= PRIORSEENPASS_USERMAILBOXSETTING - case "senderAuthenticationSucceeded": - result |= SENDERAUTHENTICATIONSUCCEEDED_USERMAILBOXSETTING - case "isJunkMailRuleEnabled": - result |= ISJUNKMAILRULEENABLED_USERMAILBOXSETTING - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_USERMAILBOXSETTING - default: - return 0, errors.New("Unknown UserMailboxSetting value: " + v) - } - } - return &result, nil -} -func SerializeUserMailboxSetting(values []UserMailboxSetting) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UserMailboxSetting) isMultiValue() bool { - return true -} diff --git a/models/security/user_source.go b/models/security/user_source.go index 4446029a6e9..f42eb0bfc20 100644 --- a/models/security/user_source.go +++ b/models/security/user_source.go @@ -46,12 +46,12 @@ func (m *UserSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["includedSources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSourceType) + val, err := n.GetEnumValue(ParseUserSource_includedSources) if err != nil { return err } if val != nil { - m.SetIncludedSources(val.(*SourceType)) + m.SetIncludedSources(val.(*UserSource_includedSources)) } return nil } @@ -68,13 +68,13 @@ func (m *UserSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return res } // GetIncludedSources gets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site. -func (m *UserSource) GetIncludedSources()(*SourceType) { +func (m *UserSource) GetIncludedSources()(*UserSource_includedSources) { val, err := m.GetBackingStore().Get("includedSources") if err != nil { panic(err) } if val != nil { - return val.(*SourceType) + return val.(*UserSource_includedSources) } return nil } @@ -124,7 +124,7 @@ func (m *UserSource) SetEmail(value *string)() { } } // SetIncludedSources sets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site. -func (m *UserSource) SetIncludedSources(value *SourceType)() { +func (m *UserSource) SetIncludedSources(value *UserSource_includedSources)() { err := m.GetBackingStore().Set("includedSources", value) if err != nil { panic(err) @@ -142,9 +142,9 @@ type UserSourceable interface { DataSourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEmail()(*string) - GetIncludedSources()(*SourceType) + GetIncludedSources()(*UserSource_includedSources) GetSiteWebUrl()(*string) SetEmail(value *string)() - SetIncludedSources(value *SourceType)() + SetIncludedSources(value *UserSource_includedSources)() SetSiteWebUrl(value *string)() } diff --git a/models/security/user_source_included_sources.go b/models/security/user_source_included_sources.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security_action.go b/models/security_action.go index f05fa2d816f..5aa0ec44775 100644 --- a/models/security_action.go +++ b/models/security_action.go @@ -223,12 +223,12 @@ func (m *SecurityAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOperationStatus) + val, err := n.GetEnumValue(ParseSecurityAction_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*OperationStatus)) + m.SetStatus(val.(*SecurityAction_status)) } return nil } @@ -299,13 +299,13 @@ func (m *SecurityAction) GetStates()([]SecurityActionStateable) { return nil } // GetStatus gets the status property value. Status of the action. Possible values are: NotStarted, Running, Completed, Failed. -func (m *SecurityAction) GetStatus()(*OperationStatus) { +func (m *SecurityAction) GetStatus()(*SecurityAction_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*OperationStatus) + return val.(*SecurityAction_status) } return nil } @@ -514,7 +514,7 @@ func (m *SecurityAction) SetStates(value []SecurityActionStateable)() { } } // SetStatus sets the status property value. Status of the action. Possible values are: NotStarted, Running, Completed, Failed. -func (m *SecurityAction) SetStatus(value *OperationStatus)() { +func (m *SecurityAction) SetStatus(value *SecurityAction_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -549,7 +549,7 @@ type SecurityActionable interface { GetName()(*string) GetParameters()([]KeyValuePairable) GetStates()([]SecurityActionStateable) - GetStatus()(*OperationStatus) + GetStatus()(*SecurityAction_status) GetUser()(*string) GetVendorInformation()(SecurityVendorInformationable) SetActionReason(value *string)() @@ -563,7 +563,7 @@ type SecurityActionable interface { SetName(value *string)() SetParameters(value []KeyValuePairable)() SetStates(value []SecurityActionStateable)() - SetStatus(value *OperationStatus)() + SetStatus(value *SecurityAction_status)() SetUser(value *string)() SetVendorInformation(value SecurityVendorInformationable)() } diff --git a/models/security_action_state.go b/models/security_action_state.go index 0ae1c5364a0..53173e59151 100644 --- a/models/security_action_state.go +++ b/models/security_action_state.go @@ -74,12 +74,12 @@ func (m *SecurityActionState) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOperationStatus) + val, err := n.GetEnumValue(ParseSecurityActionState_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*OperationStatus)) + m.SetStatus(val.(*SecurityActionState_status)) } return nil } @@ -117,13 +117,13 @@ func (m *SecurityActionState) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. Status of the securityAction in this update. Possible values are: NotStarted, Running, Completed, Failed. -func (m *SecurityActionState) GetStatus()(*OperationStatus) { +func (m *SecurityActionState) GetStatus()(*SecurityActionState_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*OperationStatus) + return val.(*SecurityActionState_status) } return nil } @@ -216,7 +216,7 @@ func (m *SecurityActionState) SetOdataType(value *string)() { } } // SetStatus sets the status property value. Status of the securityAction in this update. Possible values are: NotStarted, Running, Completed, Failed. -func (m *SecurityActionState) SetStatus(value *OperationStatus)() { +func (m *SecurityActionState) SetStatus(value *SecurityActionState_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -244,13 +244,13 @@ type SecurityActionStateable interface { GetAppId()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetStatus()(*OperationStatus) + GetStatus()(*SecurityActionState_status) GetUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetUser()(*string) SetAppId(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetStatus(value *OperationStatus)() + SetStatus(value *SecurityActionState_status)() SetUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetUser(value *string)() } diff --git a/models/security_action_state_status.go b/models/security_action_state_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security_action_status.go b/models/security_action_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security_network_protocol.go b/models/security_network_protocol.go deleted file mode 100644 index f8d52f0acf4..00000000000 --- a/models/security_network_protocol.go +++ /dev/null @@ -1,103 +0,0 @@ -package models -import ( - "errors" -) -// -type SecurityNetworkProtocol int - -const ( - UNKNOWN_SECURITYNETWORKPROTOCOL SecurityNetworkProtocol = iota - IP_SECURITYNETWORKPROTOCOL - ICMP_SECURITYNETWORKPROTOCOL - IGMP_SECURITYNETWORKPROTOCOL - GGP_SECURITYNETWORKPROTOCOL - IPV4_SECURITYNETWORKPROTOCOL - TCP_SECURITYNETWORKPROTOCOL - PUP_SECURITYNETWORKPROTOCOL - UDP_SECURITYNETWORKPROTOCOL - IDP_SECURITYNETWORKPROTOCOL - IPV6_SECURITYNETWORKPROTOCOL - IPV6ROUTINGHEADER_SECURITYNETWORKPROTOCOL - IPV6FRAGMENTHEADER_SECURITYNETWORKPROTOCOL - IPSECENCAPSULATINGSECURITYPAYLOAD_SECURITYNETWORKPROTOCOL - IPSECAUTHENTICATIONHEADER_SECURITYNETWORKPROTOCOL - ICMPV6_SECURITYNETWORKPROTOCOL - IPV6NONEXTHEADER_SECURITYNETWORKPROTOCOL - IPV6DESTINATIONOPTIONS_SECURITYNETWORKPROTOCOL - ND_SECURITYNETWORKPROTOCOL - RAW_SECURITYNETWORKPROTOCOL - IPX_SECURITYNETWORKPROTOCOL - SPX_SECURITYNETWORKPROTOCOL - SPXII_SECURITYNETWORKPROTOCOL - UNKNOWNFUTUREVALUE_SECURITYNETWORKPROTOCOL -) - -func (i SecurityNetworkProtocol) String() string { - return []string{"unknown", "ip", "icmp", "igmp", "ggp", "ipv4", "tcp", "pup", "udp", "idp", "ipv6", "ipv6RoutingHeader", "ipv6FragmentHeader", "ipSecEncapsulatingSecurityPayload", "ipSecAuthenticationHeader", "icmpV6", "ipv6NoNextHeader", "ipv6DestinationOptions", "nd", "raw", "ipx", "spx", "spxII", "unknownFutureValue"}[i] -} -func ParseSecurityNetworkProtocol(v string) (any, error) { - result := UNKNOWN_SECURITYNETWORKPROTOCOL - switch v { - case "unknown": - result = UNKNOWN_SECURITYNETWORKPROTOCOL - case "ip": - result = IP_SECURITYNETWORKPROTOCOL - case "icmp": - result = ICMP_SECURITYNETWORKPROTOCOL - case "igmp": - result = IGMP_SECURITYNETWORKPROTOCOL - case "ggp": - result = GGP_SECURITYNETWORKPROTOCOL - case "ipv4": - result = IPV4_SECURITYNETWORKPROTOCOL - case "tcp": - result = TCP_SECURITYNETWORKPROTOCOL - case "pup": - result = PUP_SECURITYNETWORKPROTOCOL - case "udp": - result = UDP_SECURITYNETWORKPROTOCOL - case "idp": - result = IDP_SECURITYNETWORKPROTOCOL - case "ipv6": - result = IPV6_SECURITYNETWORKPROTOCOL - case "ipv6RoutingHeader": - result = IPV6ROUTINGHEADER_SECURITYNETWORKPROTOCOL - case "ipv6FragmentHeader": - result = IPV6FRAGMENTHEADER_SECURITYNETWORKPROTOCOL - case "ipSecEncapsulatingSecurityPayload": - result = IPSECENCAPSULATINGSECURITYPAYLOAD_SECURITYNETWORKPROTOCOL - case "ipSecAuthenticationHeader": - result = IPSECAUTHENTICATIONHEADER_SECURITYNETWORKPROTOCOL - case "icmpV6": - result = ICMPV6_SECURITYNETWORKPROTOCOL - case "ipv6NoNextHeader": - result = IPV6NONEXTHEADER_SECURITYNETWORKPROTOCOL - case "ipv6DestinationOptions": - result = IPV6DESTINATIONOPTIONS_SECURITYNETWORKPROTOCOL - case "nd": - result = ND_SECURITYNETWORKPROTOCOL - case "raw": - result = RAW_SECURITYNETWORKPROTOCOL - case "ipx": - result = IPX_SECURITYNETWORKPROTOCOL - case "spx": - result = SPX_SECURITYNETWORKPROTOCOL - case "spxII": - result = SPXII_SECURITYNETWORKPROTOCOL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SECURITYNETWORKPROTOCOL - default: - return 0, errors.New("Unknown SecurityNetworkProtocol value: " + v) - } - return &result, nil -} -func SerializeSecurityNetworkProtocol(values []SecurityNetworkProtocol) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SecurityNetworkProtocol) isMultiValue() bool { - return false -} diff --git a/models/security_resource.go b/models/security_resource.go index 21c20743a48..cd68cc8b462 100644 --- a/models/security_resource.go +++ b/models/security_resource.go @@ -62,12 +62,12 @@ func (m *SecurityResource) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["resourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSecurityResourceType) + val, err := n.GetEnumValue(ParseSecurityResource_resourceType) if err != nil { return err } if val != nil { - m.SetResourceType(val.(*SecurityResourceType)) + m.SetResourceType(val.(*SecurityResource_resourceType)) } return nil } @@ -96,13 +96,13 @@ func (m *SecurityResource) GetResource()(*string) { return nil } // GetResourceType gets the resourceType property value. Represents type of security resources related to an alert. Possible values are: attacked, related. -func (m *SecurityResource) GetResourceType()(*SecurityResourceType) { +func (m *SecurityResource) GetResourceType()(*SecurityResource_resourceType) { val, err := m.GetBackingStore().Get("resourceType") if err != nil { panic(err) } if val != nil { - return val.(*SecurityResourceType) + return val.(*SecurityResource_resourceType) } return nil } @@ -161,7 +161,7 @@ func (m *SecurityResource) SetResource(value *string)() { } } // SetResourceType sets the resourceType property value. Represents type of security resources related to an alert. Possible values are: attacked, related. -func (m *SecurityResource) SetResourceType(value *SecurityResourceType)() { +func (m *SecurityResource) SetResourceType(value *SecurityResource_resourceType)() { err := m.GetBackingStore().Set("resourceType", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type SecurityResourceable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetResource()(*string) - GetResourceType()(*SecurityResourceType) + GetResourceType()(*SecurityResource_resourceType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetResource(value *string)() - SetResourceType(value *SecurityResourceType)() + SetResourceType(value *SecurityResource_resourceType)() } diff --git a/models/security_resource_resource_type.go b/models/security_resource_resource_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/security_resource_type.go b/models/security_resource_type.go deleted file mode 100644 index ad13a0b95ff..00000000000 --- a/models/security_resource_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type SecurityResourceType int - -const ( - UNKNOWN_SECURITYRESOURCETYPE SecurityResourceType = iota - ATTACKED_SECURITYRESOURCETYPE - RELATED_SECURITYRESOURCETYPE - UNKNOWNFUTUREVALUE_SECURITYRESOURCETYPE -) - -func (i SecurityResourceType) String() string { - return []string{"unknown", "attacked", "related", "unknownFutureValue"}[i] -} -func ParseSecurityResourceType(v string) (any, error) { - result := UNKNOWN_SECURITYRESOURCETYPE - switch v { - case "unknown": - result = UNKNOWN_SECURITYRESOURCETYPE - case "attacked": - result = ATTACKED_SECURITYRESOURCETYPE - case "related": - result = RELATED_SECURITYRESOURCETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SECURITYRESOURCETYPE - default: - return 0, errors.New("Unknown SecurityResourceType value: " + v) - } - return &result, nil -} -func SerializeSecurityResourceType(values []SecurityResourceType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SecurityResourceType) isMultiValue() bool { - return false -} diff --git a/models/send_dtmf_completion_reason.go b/models/send_dtmf_completion_reason.go deleted file mode 100644 index bf693deb510..00000000000 --- a/models/send_dtmf_completion_reason.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type SendDtmfCompletionReason int - -const ( - UNKNOWN_SENDDTMFCOMPLETIONREASON SendDtmfCompletionReason = iota - COMPLETEDSUCCESSFULLY_SENDDTMFCOMPLETIONREASON - MEDIAOPERATIONCANCELED_SENDDTMFCOMPLETIONREASON - UNKNOWNFUTUREVALUE_SENDDTMFCOMPLETIONREASON -) - -func (i SendDtmfCompletionReason) String() string { - return []string{"unknown", "completedSuccessfully", "mediaOperationCanceled", "unknownFutureValue"}[i] -} -func ParseSendDtmfCompletionReason(v string) (any, error) { - result := UNKNOWN_SENDDTMFCOMPLETIONREASON - switch v { - case "unknown": - result = UNKNOWN_SENDDTMFCOMPLETIONREASON - case "completedSuccessfully": - result = COMPLETEDSUCCESSFULLY_SENDDTMFCOMPLETIONREASON - case "mediaOperationCanceled": - result = MEDIAOPERATIONCANCELED_SENDDTMFCOMPLETIONREASON - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SENDDTMFCOMPLETIONREASON - default: - return 0, errors.New("Unknown SendDtmfCompletionReason value: " + v) - } - return &result, nil -} -func SerializeSendDtmfCompletionReason(values []SendDtmfCompletionReason) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SendDtmfCompletionReason) isMultiValue() bool { - return false -} diff --git a/models/send_dtmf_tones_operation.go b/models/send_dtmf_tones_operation.go index a907a0fea2f..14c215466bd 100644 --- a/models/send_dtmf_tones_operation.go +++ b/models/send_dtmf_tones_operation.go @@ -20,13 +20,13 @@ func CreateSendDtmfTonesOperationFromDiscriminatorValue(parseNode i878a80d2330e8 return NewSendDtmfTonesOperation(), nil } // GetCompletionReason gets the completionReason property value. The results of the action. Possible values are: unknown, completedSuccessfully, mediaOperationCanceled, unknownfutureValue. -func (m *SendDtmfTonesOperation) GetCompletionReason()(*SendDtmfCompletionReason) { +func (m *SendDtmfTonesOperation) GetCompletionReason()(*SendDtmfTonesOperation_completionReason) { val, err := m.GetBackingStore().Get("completionReason") if err != nil { panic(err) } if val != nil { - return val.(*SendDtmfCompletionReason) + return val.(*SendDtmfTonesOperation_completionReason) } return nil } @@ -34,12 +34,12 @@ func (m *SendDtmfTonesOperation) GetCompletionReason()(*SendDtmfCompletionReason func (m *SendDtmfTonesOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CommsOperation.GetFieldDeserializers() res["completionReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSendDtmfCompletionReason) + val, err := n.GetEnumValue(ParseSendDtmfTonesOperation_completionReason) if err != nil { return err } if val != nil { - m.SetCompletionReason(val.(*SendDtmfCompletionReason)) + m.SetCompletionReason(val.(*SendDtmfTonesOperation_completionReason)) } return nil } @@ -61,7 +61,7 @@ func (m *SendDtmfTonesOperation) Serialize(writer i878a80d2330e89d26896388a3f487 return nil } // SetCompletionReason sets the completionReason property value. The results of the action. Possible values are: unknown, completedSuccessfully, mediaOperationCanceled, unknownfutureValue. -func (m *SendDtmfTonesOperation) SetCompletionReason(value *SendDtmfCompletionReason)() { +func (m *SendDtmfTonesOperation) SetCompletionReason(value *SendDtmfTonesOperation_completionReason)() { err := m.GetBackingStore().Set("completionReason", value) if err != nil { panic(err) @@ -71,6 +71,6 @@ func (m *SendDtmfTonesOperation) SetCompletionReason(value *SendDtmfCompletionRe type SendDtmfTonesOperationable interface { CommsOperationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCompletionReason()(*SendDtmfCompletionReason) - SetCompletionReason(value *SendDtmfCompletionReason)() + GetCompletionReason()(*SendDtmfTonesOperation_completionReason) + SetCompletionReason(value *SendDtmfTonesOperation_completionReason)() } diff --git a/models/send_dtmf_tones_operation_completion_reason.go b/models/send_dtmf_tones_operation_completion_reason.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sensitive_type.go b/models/sensitive_type.go index 9d93f453450..67935a1076d 100644 --- a/models/sensitive_type.go +++ b/models/sensitive_type.go @@ -20,13 +20,13 @@ func CreateSensitiveTypeFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 return NewSensitiveType(), nil } // GetClassificationMethod gets the classificationMethod property value. The classificationMethod property -func (m *SensitiveType) GetClassificationMethod()(*ClassificationMethod) { +func (m *SensitiveType) GetClassificationMethod()(*SensitiveType_classificationMethod) { val, err := m.GetBackingStore().Get("classificationMethod") if err != nil { panic(err) } if val != nil { - return val.(*ClassificationMethod) + return val.(*SensitiveType_classificationMethod) } return nil } @@ -45,12 +45,12 @@ func (m *SensitiveType) GetDescription()(*string) { func (m *SensitiveType) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["classificationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseClassificationMethod) + val, err := n.GetEnumValue(ParseSensitiveType_classificationMethod) if err != nil { return err } if val != nil { - m.SetClassificationMethod(val.(*ClassificationMethod)) + m.SetClassificationMethod(val.(*SensitiveType_classificationMethod)) } return nil } @@ -105,22 +105,22 @@ func (m *SensitiveType) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitiveTypeScope) + val, err := n.GetEnumValue(ParseSensitiveType_scope) if err != nil { return err } if val != nil { - m.SetScope(val.(*SensitiveTypeScope)) + m.SetScope(val.(*SensitiveType_scope)) } return nil } res["sensitiveTypeSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitiveTypeSource) + val, err := n.GetEnumValue(ParseSensitiveType_sensitiveTypeSource) if err != nil { return err } if val != nil { - m.SetSensitiveTypeSource(val.(*SensitiveTypeSource)) + m.SetSensitiveTypeSource(val.(*SensitiveType_sensitiveTypeSource)) } return nil } @@ -181,24 +181,24 @@ func (m *SensitiveType) GetRulePackageType()(*string) { return nil } // GetScope gets the scope property value. The scope property -func (m *SensitiveType) GetScope()(*SensitiveTypeScope) { +func (m *SensitiveType) GetScope()(*SensitiveType_scope) { val, err := m.GetBackingStore().Get("scope") if err != nil { panic(err) } if val != nil { - return val.(*SensitiveTypeScope) + return val.(*SensitiveType_scope) } return nil } // GetSensitiveTypeSource gets the sensitiveTypeSource property value. The sensitiveTypeSource property -func (m *SensitiveType) GetSensitiveTypeSource()(*SensitiveTypeSource) { +func (m *SensitiveType) GetSensitiveTypeSource()(*SensitiveType_sensitiveTypeSource) { val, err := m.GetBackingStore().Get("sensitiveTypeSource") if err != nil { panic(err) } if val != nil { - return val.(*SensitiveTypeSource) + return val.(*SensitiveType_sensitiveTypeSource) } return nil } @@ -279,7 +279,7 @@ func (m *SensitiveType) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return nil } // SetClassificationMethod sets the classificationMethod property value. The classificationMethod property -func (m *SensitiveType) SetClassificationMethod(value *ClassificationMethod)() { +func (m *SensitiveType) SetClassificationMethod(value *SensitiveType_classificationMethod)() { err := m.GetBackingStore().Set("classificationMethod", value) if err != nil { panic(err) @@ -321,14 +321,14 @@ func (m *SensitiveType) SetRulePackageType(value *string)() { } } // SetScope sets the scope property value. The scope property -func (m *SensitiveType) SetScope(value *SensitiveTypeScope)() { +func (m *SensitiveType) SetScope(value *SensitiveType_scope)() { err := m.GetBackingStore().Set("scope", value) if err != nil { panic(err) } } // SetSensitiveTypeSource sets the sensitiveTypeSource property value. The sensitiveTypeSource property -func (m *SensitiveType) SetSensitiveTypeSource(value *SensitiveTypeSource)() { +func (m *SensitiveType) SetSensitiveTypeSource(value *SensitiveType_sensitiveTypeSource)() { err := m.GetBackingStore().Set("sensitiveTypeSource", value) if err != nil { panic(err) @@ -345,22 +345,22 @@ func (m *SensitiveType) SetState(value *string)() { type SensitiveTypeable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetClassificationMethod()(*ClassificationMethod) + GetClassificationMethod()(*SensitiveType_classificationMethod) GetDescription()(*string) GetName()(*string) GetPublisherName()(*string) GetRulePackageId()(*string) GetRulePackageType()(*string) - GetScope()(*SensitiveTypeScope) - GetSensitiveTypeSource()(*SensitiveTypeSource) + GetScope()(*SensitiveType_scope) + GetSensitiveTypeSource()(*SensitiveType_sensitiveTypeSource) GetState()(*string) - SetClassificationMethod(value *ClassificationMethod)() + SetClassificationMethod(value *SensitiveType_classificationMethod)() SetDescription(value *string)() SetName(value *string)() SetPublisherName(value *string)() SetRulePackageId(value *string)() SetRulePackageType(value *string)() - SetScope(value *SensitiveTypeScope)() - SetSensitiveTypeSource(value *SensitiveTypeSource)() + SetScope(value *SensitiveType_scope)() + SetSensitiveTypeSource(value *SensitiveType_sensitiveTypeSource)() SetState(value *string)() } diff --git a/models/sensitive_type_classification_method.go b/models/sensitive_type_classification_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sensitive_type_scope.go b/models/sensitive_type_scope.go index dd990b75da3..e69de29bb2d 100644 --- a/models/sensitive_type_scope.go +++ b/models/sensitive_type_scope.go @@ -1,47 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type SensitiveTypeScope int - -const ( - FULLDOCUMENT_SENSITIVETYPESCOPE SensitiveTypeScope = iota - PARTIALDOCUMENT_SENSITIVETYPESCOPE -) - -func (i SensitiveTypeScope) String() string { - var values []string - for p := SensitiveTypeScope(1); p <= PARTIALDOCUMENT_SENSITIVETYPESCOPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"fullDocument", "partialDocument"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseSensitiveTypeScope(v string) (any, error) { - var result SensitiveTypeScope - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "fullDocument": - result |= FULLDOCUMENT_SENSITIVETYPESCOPE - case "partialDocument": - result |= PARTIALDOCUMENT_SENSITIVETYPESCOPE - default: - return 0, errors.New("Unknown SensitiveTypeScope value: " + v) - } - } - return &result, nil -} -func SerializeSensitiveTypeScope(values []SensitiveTypeScope) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SensitiveTypeScope) isMultiValue() bool { - return true -} diff --git a/models/sensitive_type_sensitive_type_source.go b/models/sensitive_type_sensitive_type_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sensitive_type_source.go b/models/sensitive_type_source.go deleted file mode 100644 index 46d64e303ff..00000000000 --- a/models/sensitive_type_source.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type SensitiveTypeSource int - -const ( - OUTOFBOX_SENSITIVETYPESOURCE SensitiveTypeSource = iota - TENANT_SENSITIVETYPESOURCE -) - -func (i SensitiveTypeSource) String() string { - return []string{"outOfBox", "tenant"}[i] -} -func ParseSensitiveTypeSource(v string) (any, error) { - result := OUTOFBOX_SENSITIVETYPESOURCE - switch v { - case "outOfBox": - result = OUTOFBOX_SENSITIVETYPESOURCE - case "tenant": - result = TENANT_SENSITIVETYPESOURCE - default: - return 0, errors.New("Unknown SensitiveTypeSource value: " + v) - } - return &result, nil -} -func SerializeSensitiveTypeSource(values []SensitiveTypeSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SensitiveTypeSource) isMultiValue() bool { - return false -} diff --git a/models/sensitivity.go b/models/sensitivity.go deleted file mode 100644 index cbfd4649cf0..00000000000 --- a/models/sensitivity.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type Sensitivity int - -const ( - NORMAL_SENSITIVITY Sensitivity = iota - PERSONAL_SENSITIVITY - PRIVATE_SENSITIVITY - CONFIDENTIAL_SENSITIVITY -) - -func (i Sensitivity) String() string { - return []string{"normal", "personal", "private", "confidential"}[i] -} -func ParseSensitivity(v string) (any, error) { - result := NORMAL_SENSITIVITY - switch v { - case "normal": - result = NORMAL_SENSITIVITY - case "personal": - result = PERSONAL_SENSITIVITY - case "private": - result = PRIVATE_SENSITIVITY - case "confidential": - result = CONFIDENTIAL_SENSITIVITY - default: - return 0, errors.New("Unknown Sensitivity value: " + v) - } - return &result, nil -} -func SerializeSensitivity(values []Sensitivity) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Sensitivity) isMultiValue() bool { - return false -} diff --git a/models/sensitivity_label.go b/models/sensitivity_label.go index 936a50a8e5b..6b956420bb7 100644 --- a/models/sensitivity_label.go +++ b/models/sensitivity_label.go @@ -20,24 +20,24 @@ func CreateSensitivityLabelFromDiscriminatorValue(parseNode i878a80d2330e89d2689 return NewSensitivityLabel(), nil } // GetApplicableTo gets the applicableTo property value. The applicableTo property -func (m *SensitivityLabel) GetApplicableTo()(*SensitivityLabelTarget) { +func (m *SensitivityLabel) GetApplicableTo()(*SensitivityLabel_applicableTo) { val, err := m.GetBackingStore().Get("applicableTo") if err != nil { panic(err) } if val != nil { - return val.(*SensitivityLabelTarget) + return val.(*SensitivityLabel_applicableTo) } return nil } // GetApplicationMode gets the applicationMode property value. The applicationMode property -func (m *SensitivityLabel) GetApplicationMode()(*ApplicationMode) { +func (m *SensitivityLabel) GetApplicationMode()(*SensitivityLabel_applicationMode) { val, err := m.GetBackingStore().Get("applicationMode") if err != nil { panic(err) } if val != nil { - return val.(*ApplicationMode) + return val.(*SensitivityLabel_applicationMode) } return nil } @@ -89,22 +89,22 @@ func (m *SensitivityLabel) GetDisplayName()(*string) { func (m *SensitivityLabel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["applicableTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitivityLabelTarget) + val, err := n.GetEnumValue(ParseSensitivityLabel_applicableTo) if err != nil { return err } if val != nil { - m.SetApplicableTo(val.(*SensitivityLabelTarget)) + m.SetApplicableTo(val.(*SensitivityLabel_applicableTo)) } return nil } res["applicationMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseApplicationMode) + val, err := n.GetEnumValue(ParseSensitivityLabel_applicationMode) if err != nil { return err } if val != nil { - m.SetApplicationMode(val.(*ApplicationMode)) + m.SetApplicationMode(val.(*SensitivityLabel_applicationMode)) } return nil } @@ -422,14 +422,14 @@ func (m *SensitivityLabel) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return nil } // SetApplicableTo sets the applicableTo property value. The applicableTo property -func (m *SensitivityLabel) SetApplicableTo(value *SensitivityLabelTarget)() { +func (m *SensitivityLabel) SetApplicableTo(value *SensitivityLabel_applicableTo)() { err := m.GetBackingStore().Set("applicableTo", value) if err != nil { panic(err) } } // SetApplicationMode sets the applicationMode property value. The applicationMode property -func (m *SensitivityLabel) SetApplicationMode(value *ApplicationMode)() { +func (m *SensitivityLabel) SetApplicationMode(value *SensitivityLabel_applicationMode)() { err := m.GetBackingStore().Set("applicationMode", value) if err != nil { panic(err) @@ -516,8 +516,8 @@ func (m *SensitivityLabel) SetToolTip(value *string)() { type SensitivityLabelable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetApplicableTo()(*SensitivityLabelTarget) - GetApplicationMode()(*ApplicationMode) + GetApplicableTo()(*SensitivityLabel_applicableTo) + GetApplicationMode()(*SensitivityLabel_applicationMode) GetAssignedPolicies()([]LabelPolicyable) GetAutoLabeling()(AutoLabelingable) GetDescription()(*string) @@ -529,8 +529,8 @@ type SensitivityLabelable interface { GetPriority()(*int32) GetSublabels()([]SensitivityLabelable) GetToolTip()(*string) - SetApplicableTo(value *SensitivityLabelTarget)() - SetApplicationMode(value *ApplicationMode)() + SetApplicableTo(value *SensitivityLabel_applicableTo)() + SetApplicationMode(value *SensitivityLabel_applicationMode)() SetAssignedPolicies(value []LabelPolicyable)() SetAutoLabeling(value AutoLabelingable)() SetDescription(value *string)() diff --git a/models/sensitivity_label_applicable_to.go b/models/sensitivity_label_applicable_to.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sensitivity_label_application_mode.go b/models/sensitivity_label_application_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sensitivity_label_target.go b/models/sensitivity_label_target.go deleted file mode 100644 index 475d8c25692..00000000000 --- a/models/sensitivity_label_target.go +++ /dev/null @@ -1,56 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type SensitivityLabelTarget int - -const ( - EMAIL_SENSITIVITYLABELTARGET SensitivityLabelTarget = iota - SITE_SENSITIVITYLABELTARGET - UNIFIEDGROUP_SENSITIVITYLABELTARGET - TEAMWORK_SENSITIVITYLABELTARGET - UNKNOWNFUTUREVALUE_SENSITIVITYLABELTARGET -) - -func (i SensitivityLabelTarget) String() string { - var values []string - for p := SensitivityLabelTarget(1); p <= UNKNOWNFUTUREVALUE_SENSITIVITYLABELTARGET; p <<= 1 { - if i&p == p { - values = append(values, []string{"email", "site", "unifiedGroup", "teamwork", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseSensitivityLabelTarget(v string) (any, error) { - var result SensitivityLabelTarget - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "email": - result |= EMAIL_SENSITIVITYLABELTARGET - case "site": - result |= SITE_SENSITIVITYLABELTARGET - case "unifiedGroup": - result |= UNIFIEDGROUP_SENSITIVITYLABELTARGET - case "teamwork": - result |= TEAMWORK_SENSITIVITYLABELTARGET - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_SENSITIVITYLABELTARGET - default: - return 0, errors.New("Unknown SensitivityLabelTarget value: " + v) - } - } - return &result, nil -} -func SerializeSensitivityLabelTarget(values []SensitivityLabelTarget) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SensitivityLabelTarget) isMultiValue() bool { - return true -} diff --git a/models/sensitivity_policy_settings.go b/models/sensitivity_policy_settings.go index aa01af713c7..d450fea9532 100644 --- a/models/sensitivity_policy_settings.go +++ b/models/sensitivity_policy_settings.go @@ -20,13 +20,13 @@ func CreateSensitivityPolicySettingsFromDiscriminatorValue(parseNode i878a80d233 return NewSensitivityPolicySettings(), nil } // GetApplicableTo gets the applicableTo property value. The applicableTo property -func (m *SensitivityPolicySettings) GetApplicableTo()(*SensitivityLabelTarget) { +func (m *SensitivityPolicySettings) GetApplicableTo()(*SensitivityPolicySettings_applicableTo) { val, err := m.GetBackingStore().Get("applicableTo") if err != nil { panic(err) } if val != nil { - return val.(*SensitivityLabelTarget) + return val.(*SensitivityPolicySettings_applicableTo) } return nil } @@ -45,12 +45,12 @@ func (m *SensitivityPolicySettings) GetDowngradeSensitivityRequiresJustification func (m *SensitivityPolicySettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["applicableTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitivityLabelTarget) + val, err := n.GetEnumValue(ParseSensitivityPolicySettings_applicableTo) if err != nil { return err } if val != nil { - m.SetApplicableTo(val.(*SensitivityLabelTarget)) + m.SetApplicableTo(val.(*SensitivityPolicySettings_applicableTo)) } return nil } @@ -142,7 +142,7 @@ func (m *SensitivityPolicySettings) Serialize(writer i878a80d2330e89d26896388a3f return nil } // SetApplicableTo sets the applicableTo property value. The applicableTo property -func (m *SensitivityPolicySettings) SetApplicableTo(value *SensitivityLabelTarget)() { +func (m *SensitivityPolicySettings) SetApplicableTo(value *SensitivityPolicySettings_applicableTo)() { err := m.GetBackingStore().Set("applicableTo", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ func (m *SensitivityPolicySettings) SetIsMandatory(value *bool)() { type SensitivityPolicySettingsable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetApplicableTo()(*SensitivityLabelTarget) + GetApplicableTo()(*SensitivityPolicySettings_applicableTo) GetDowngradeSensitivityRequiresJustification()(*bool) GetHelpWebUrl()(*string) GetIsMandatory()(*bool) - SetApplicableTo(value *SensitivityLabelTarget)() + SetApplicableTo(value *SensitivityPolicySettings_applicableTo)() SetDowngradeSensitivityRequiresJustification(value *bool)() SetHelpWebUrl(value *string)() SetIsMandatory(value *bool)() diff --git a/models/sensitivity_policy_settings_applicable_to.go b/models/sensitivity_policy_settings_applicable_to.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/service_health_issue_post.go b/models/service_health_issue_post.go index 4f9082c6fbe..0029d589c01 100644 --- a/models/service_health_issue_post.go +++ b/models/service_health_issue_post.go @@ -95,12 +95,12 @@ func (m *ServiceHealthIssuePost) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["postType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePostType) + val, err := n.GetEnumValue(ParseServiceHealthIssuePost_postType) if err != nil { return err } if val != nil { - m.SetPostType(val.(*PostType)) + m.SetPostType(val.(*ServiceHealthIssuePost_postType)) } return nil } @@ -118,13 +118,13 @@ func (m *ServiceHealthIssuePost) GetOdataType()(*string) { return nil } // GetPostType gets the postType property value. The post type of the service issue historical post. Possible values are: regular, quick, strategic, unknownFutureValue. -func (m *ServiceHealthIssuePost) GetPostType()(*PostType) { +func (m *ServiceHealthIssuePost) GetPostType()(*ServiceHealthIssuePost_postType) { val, err := m.GetBackingStore().Get("postType") if err != nil { panic(err) } if val != nil { - return val.(*PostType) + return val.(*ServiceHealthIssuePost_postType) } return nil } @@ -196,7 +196,7 @@ func (m *ServiceHealthIssuePost) SetOdataType(value *string)() { } } // SetPostType sets the postType property value. The post type of the service issue historical post. Possible values are: regular, quick, strategic, unknownFutureValue. -func (m *ServiceHealthIssuePost) SetPostType(value *PostType)() { +func (m *ServiceHealthIssuePost) SetPostType(value *ServiceHealthIssuePost_postType)() { err := m.GetBackingStore().Set("postType", value) if err != nil { panic(err) @@ -211,10 +211,10 @@ type ServiceHealthIssuePostable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDescription()(ItemBodyable) GetOdataType()(*string) - GetPostType()(*PostType) + GetPostType()(*ServiceHealthIssuePost_postType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value ItemBodyable)() SetOdataType(value *string)() - SetPostType(value *PostType)() + SetPostType(value *ServiceHealthIssuePost_postType)() } diff --git a/models/service_health_issue_post_post_type.go b/models/service_health_issue_post_post_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/service_principal_risk_detection.go b/models/service_principal_risk_detection.go index 0ea9c8c9472..ae8d4f2c840 100644 --- a/models/service_principal_risk_detection.go +++ b/models/service_principal_risk_detection.go @@ -21,13 +21,13 @@ func CreateServicePrincipalRiskDetectionFromDiscriminatorValue(parseNode i878a80 return NewServicePrincipalRiskDetection(), nil } // GetActivity gets the activity property value. Indicates the activity type the detected risk is linked to. The possible values are: signin, servicePrincipal. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: servicePrincipal. -func (m *ServicePrincipalRiskDetection) GetActivity()(*ActivityType) { +func (m *ServicePrincipalRiskDetection) GetActivity()(*ServicePrincipalRiskDetection_activity) { val, err := m.GetBackingStore().Get("activity") if err != nil { panic(err) } if val != nil { - return val.(*ActivityType) + return val.(*ServicePrincipalRiskDetection_activity) } return nil } @@ -87,13 +87,13 @@ func (m *ServicePrincipalRiskDetection) GetDetectedDateTime()(*i336074805fc85398 return nil } // GetDetectionTimingType gets the detectionTimingType property value. Timing of the detected risk , whether real-time or offline). The possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue. -func (m *ServicePrincipalRiskDetection) GetDetectionTimingType()(*RiskDetectionTimingType) { +func (m *ServicePrincipalRiskDetection) GetDetectionTimingType()(*ServicePrincipalRiskDetection_detectionTimingType) { val, err := m.GetBackingStore().Get("detectionTimingType") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetectionTimingType) + return val.(*ServicePrincipalRiskDetection_detectionTimingType) } return nil } @@ -101,12 +101,12 @@ func (m *ServicePrincipalRiskDetection) GetDetectionTimingType()(*RiskDetectionT func (m *ServicePrincipalRiskDetection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["activity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseActivityType) + val, err := n.GetEnumValue(ParseServicePrincipalRiskDetection_activity) if err != nil { return err } if val != nil { - m.SetActivity(val.(*ActivityType)) + m.SetActivity(val.(*ServicePrincipalRiskDetection_activity)) } return nil } @@ -161,12 +161,12 @@ func (m *ServicePrincipalRiskDetection) GetFieldDeserializers()(map[string]func( return nil } res["detectionTimingType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetectionTimingType) + val, err := n.GetEnumValue(ParseServicePrincipalRiskDetection_detectionTimingType) if err != nil { return err } if val != nil { - m.SetDetectionTimingType(val.(*RiskDetectionTimingType)) + m.SetDetectionTimingType(val.(*ServicePrincipalRiskDetection_detectionTimingType)) } return nil } @@ -237,12 +237,12 @@ func (m *ServicePrincipalRiskDetection) GetFieldDeserializers()(map[string]func( return nil } res["riskDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetail) + val, err := n.GetEnumValue(ParseServicePrincipalRiskDetection_riskDetail) if err != nil { return err } if val != nil { - m.SetRiskDetail(val.(*RiskDetail)) + m.SetRiskDetail(val.(*ServicePrincipalRiskDetection_riskDetail)) } return nil } @@ -257,22 +257,22 @@ func (m *ServicePrincipalRiskDetection) GetFieldDeserializers()(map[string]func( return nil } res["riskLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskLevel) + val, err := n.GetEnumValue(ParseServicePrincipalRiskDetection_riskLevel) if err != nil { return err } if val != nil { - m.SetRiskLevel(val.(*RiskLevel)) + m.SetRiskLevel(val.(*ServicePrincipalRiskDetection_riskLevel)) } return nil } res["riskState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskState) + val, err := n.GetEnumValue(ParseServicePrincipalRiskDetection_riskState) if err != nil { return err } if val != nil { - m.SetRiskState(val.(*RiskState)) + m.SetRiskState(val.(*ServicePrincipalRiskDetection_riskState)) } return nil } @@ -307,12 +307,12 @@ func (m *ServicePrincipalRiskDetection) GetFieldDeserializers()(map[string]func( return nil } res["tokenIssuerType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTokenIssuerType) + val, err := n.GetEnumValue(ParseServicePrincipalRiskDetection_tokenIssuerType) if err != nil { return err } if val != nil { - m.SetTokenIssuerType(val.(*TokenIssuerType)) + m.SetTokenIssuerType(val.(*ServicePrincipalRiskDetection_tokenIssuerType)) } return nil } @@ -385,13 +385,13 @@ func (m *ServicePrincipalRiskDetection) GetRequestId()(*string) { return nil } // GetRiskDetail gets the riskDetail property value. Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: none, hidden, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal. -func (m *ServicePrincipalRiskDetection) GetRiskDetail()(*RiskDetail) { +func (m *ServicePrincipalRiskDetection) GetRiskDetail()(*ServicePrincipalRiskDetection_riskDetail) { val, err := m.GetBackingStore().Get("riskDetail") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetail) + return val.(*ServicePrincipalRiskDetection_riskDetail) } return nil } @@ -407,24 +407,24 @@ func (m *ServicePrincipalRiskDetection) GetRiskEventType()(*string) { return nil } // GetRiskLevel gets the riskLevel property value. Level of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: low, medium, high, hidden, none. -func (m *ServicePrincipalRiskDetection) GetRiskLevel()(*RiskLevel) { +func (m *ServicePrincipalRiskDetection) GetRiskLevel()(*ServicePrincipalRiskDetection_riskLevel) { val, err := m.GetBackingStore().Get("riskLevel") if err != nil { panic(err) } if val != nil { - return val.(*RiskLevel) + return val.(*ServicePrincipalRiskDetection_riskLevel) } return nil } // GetRiskState gets the riskState property value. The state of a detected risky service principal or sign-in activity. The possible values are: none, dismissed, atRisk, confirmedCompromised. -func (m *ServicePrincipalRiskDetection) GetRiskState()(*RiskState) { +func (m *ServicePrincipalRiskDetection) GetRiskState()(*ServicePrincipalRiskDetection_riskState) { val, err := m.GetBackingStore().Get("riskState") if err != nil { panic(err) } if val != nil { - return val.(*RiskState) + return val.(*ServicePrincipalRiskDetection_riskState) } return nil } @@ -462,13 +462,13 @@ func (m *ServicePrincipalRiskDetection) GetSource()(*string) { return nil } // GetTokenIssuerType gets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. The possible values are: AzureAD. -func (m *ServicePrincipalRiskDetection) GetTokenIssuerType()(*TokenIssuerType) { +func (m *ServicePrincipalRiskDetection) GetTokenIssuerType()(*ServicePrincipalRiskDetection_tokenIssuerType) { val, err := m.GetBackingStore().Get("tokenIssuerType") if err != nil { panic(err) } if val != nil { - return val.(*TokenIssuerType) + return val.(*ServicePrincipalRiskDetection_tokenIssuerType) } return nil } @@ -613,7 +613,7 @@ func (m *ServicePrincipalRiskDetection) Serialize(writer i878a80d2330e89d2689638 return nil } // SetActivity sets the activity property value. Indicates the activity type the detected risk is linked to. The possible values are: signin, servicePrincipal. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: servicePrincipal. -func (m *ServicePrincipalRiskDetection) SetActivity(value *ActivityType)() { +func (m *ServicePrincipalRiskDetection) SetActivity(value *ServicePrincipalRiskDetection_activity)() { err := m.GetBackingStore().Set("activity", value) if err != nil { panic(err) @@ -655,7 +655,7 @@ func (m *ServicePrincipalRiskDetection) SetDetectedDateTime(value *i336074805fc8 } } // SetDetectionTimingType sets the detectionTimingType property value. Timing of the detected risk , whether real-time or offline). The possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue. -func (m *ServicePrincipalRiskDetection) SetDetectionTimingType(value *RiskDetectionTimingType)() { +func (m *ServicePrincipalRiskDetection) SetDetectionTimingType(value *ServicePrincipalRiskDetection_detectionTimingType)() { err := m.GetBackingStore().Set("detectionTimingType", value) if err != nil { panic(err) @@ -704,7 +704,7 @@ func (m *ServicePrincipalRiskDetection) SetRequestId(value *string)() { } } // SetRiskDetail sets the riskDetail property value. Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: none, hidden, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal. -func (m *ServicePrincipalRiskDetection) SetRiskDetail(value *RiskDetail)() { +func (m *ServicePrincipalRiskDetection) SetRiskDetail(value *ServicePrincipalRiskDetection_riskDetail)() { err := m.GetBackingStore().Set("riskDetail", value) if err != nil { panic(err) @@ -718,14 +718,14 @@ func (m *ServicePrincipalRiskDetection) SetRiskEventType(value *string)() { } } // SetRiskLevel sets the riskLevel property value. Level of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: low, medium, high, hidden, none. -func (m *ServicePrincipalRiskDetection) SetRiskLevel(value *RiskLevel)() { +func (m *ServicePrincipalRiskDetection) SetRiskLevel(value *ServicePrincipalRiskDetection_riskLevel)() { err := m.GetBackingStore().Set("riskLevel", value) if err != nil { panic(err) } } // SetRiskState sets the riskState property value. The state of a detected risky service principal or sign-in activity. The possible values are: none, dismissed, atRisk, confirmedCompromised. -func (m *ServicePrincipalRiskDetection) SetRiskState(value *RiskState)() { +func (m *ServicePrincipalRiskDetection) SetRiskState(value *ServicePrincipalRiskDetection_riskState)() { err := m.GetBackingStore().Set("riskState", value) if err != nil { panic(err) @@ -753,7 +753,7 @@ func (m *ServicePrincipalRiskDetection) SetSource(value *string)() { } } // SetTokenIssuerType sets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. The possible values are: AzureAD. -func (m *ServicePrincipalRiskDetection) SetTokenIssuerType(value *TokenIssuerType)() { +func (m *ServicePrincipalRiskDetection) SetTokenIssuerType(value *ServicePrincipalRiskDetection_tokenIssuerType)() { err := m.GetBackingStore().Set("tokenIssuerType", value) if err != nil { panic(err) @@ -763,46 +763,46 @@ func (m *ServicePrincipalRiskDetection) SetTokenIssuerType(value *TokenIssuerTyp type ServicePrincipalRiskDetectionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActivity()(*ActivityType) + GetActivity()(*ServicePrincipalRiskDetection_activity) GetActivityDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetAdditionalInfo()(*string) GetAppId()(*string) GetCorrelationId()(*string) GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetDetectionTimingType()(*RiskDetectionTimingType) + GetDetectionTimingType()(*ServicePrincipalRiskDetection_detectionTimingType) GetIpAddress()(*string) GetKeyIds()([]string) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLocation()(SignInLocationable) GetMitreTechniqueId()(*string) GetRequestId()(*string) - GetRiskDetail()(*RiskDetail) + GetRiskDetail()(*ServicePrincipalRiskDetection_riskDetail) GetRiskEventType()(*string) - GetRiskLevel()(*RiskLevel) - GetRiskState()(*RiskState) + GetRiskLevel()(*ServicePrincipalRiskDetection_riskLevel) + GetRiskState()(*ServicePrincipalRiskDetection_riskState) GetServicePrincipalDisplayName()(*string) GetServicePrincipalId()(*string) GetSource()(*string) - GetTokenIssuerType()(*TokenIssuerType) - SetActivity(value *ActivityType)() + GetTokenIssuerType()(*ServicePrincipalRiskDetection_tokenIssuerType) + SetActivity(value *ServicePrincipalRiskDetection_activity)() SetActivityDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetAdditionalInfo(value *string)() SetAppId(value *string)() SetCorrelationId(value *string)() SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetDetectionTimingType(value *RiskDetectionTimingType)() + SetDetectionTimingType(value *ServicePrincipalRiskDetection_detectionTimingType)() SetIpAddress(value *string)() SetKeyIds(value []string)() SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLocation(value SignInLocationable)() SetMitreTechniqueId(value *string)() SetRequestId(value *string)() - SetRiskDetail(value *RiskDetail)() + SetRiskDetail(value *ServicePrincipalRiskDetection_riskDetail)() SetRiskEventType(value *string)() - SetRiskLevel(value *RiskLevel)() - SetRiskState(value *RiskState)() + SetRiskLevel(value *ServicePrincipalRiskDetection_riskLevel)() + SetRiskState(value *ServicePrincipalRiskDetection_riskState)() SetServicePrincipalDisplayName(value *string)() SetServicePrincipalId(value *string)() SetSource(value *string)() - SetTokenIssuerType(value *TokenIssuerType)() + SetTokenIssuerType(value *ServicePrincipalRiskDetection_tokenIssuerType)() } diff --git a/models/service_principal_risk_detection_activity.go b/models/service_principal_risk_detection_activity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/service_principal_risk_detection_detection_timing_type.go b/models/service_principal_risk_detection_detection_timing_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/service_principal_risk_detection_risk_detail.go b/models/service_principal_risk_detection_risk_detail.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/service_principal_risk_detection_risk_level.go b/models/service_principal_risk_detection_risk_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/service_principal_risk_detection_risk_state.go b/models/service_principal_risk_detection_risk_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/service_principal_risk_detection_token_issuer_type.go b/models/service_principal_risk_detection_token_issuer_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/session_lifetime_policy.go b/models/session_lifetime_policy.go index abe03bf7fad..2301583516d 100644 --- a/models/session_lifetime_policy.go +++ b/models/session_lifetime_policy.go @@ -50,13 +50,13 @@ func (m *SessionLifetimePolicy) GetDetail()(*string) { return nil } // GetExpirationRequirement gets the expirationRequirement property value. If a conditional access session management policy required the user to authenticate in this sign-in event, this field describes the policy type that required authentication. The possible values are: rememberMultifactorAuthenticationOnTrustedDevices, tenantTokenLifetimePolicy, audienceTokenLifetimePolicy, signInFrequencyPeriodicReauthentication, ngcMfa, signInFrequencyEveryTime, unknownFutureValue. -func (m *SessionLifetimePolicy) GetExpirationRequirement()(*ExpirationRequirement) { +func (m *SessionLifetimePolicy) GetExpirationRequirement()(*SessionLifetimePolicy_expirationRequirement) { val, err := m.GetBackingStore().Get("expirationRequirement") if err != nil { panic(err) } if val != nil { - return val.(*ExpirationRequirement) + return val.(*SessionLifetimePolicy_expirationRequirement) } return nil } @@ -74,12 +74,12 @@ func (m *SessionLifetimePolicy) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["expirationRequirement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseExpirationRequirement) + val, err := n.GetEnumValue(ParseSessionLifetimePolicy_expirationRequirement) if err != nil { return err } if val != nil { - m.SetExpirationRequirement(val.(*ExpirationRequirement)) + m.SetExpirationRequirement(val.(*SessionLifetimePolicy_expirationRequirement)) } return nil } @@ -154,7 +154,7 @@ func (m *SessionLifetimePolicy) SetDetail(value *string)() { } } // SetExpirationRequirement sets the expirationRequirement property value. If a conditional access session management policy required the user to authenticate in this sign-in event, this field describes the policy type that required authentication. The possible values are: rememberMultifactorAuthenticationOnTrustedDevices, tenantTokenLifetimePolicy, audienceTokenLifetimePolicy, signInFrequencyPeriodicReauthentication, ngcMfa, signInFrequencyEveryTime, unknownFutureValue. -func (m *SessionLifetimePolicy) SetExpirationRequirement(value *ExpirationRequirement)() { +func (m *SessionLifetimePolicy) SetExpirationRequirement(value *SessionLifetimePolicy_expirationRequirement)() { err := m.GetBackingStore().Set("expirationRequirement", value) if err != nil { panic(err) @@ -174,10 +174,10 @@ type SessionLifetimePolicyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDetail()(*string) - GetExpirationRequirement()(*ExpirationRequirement) + GetExpirationRequirement()(*SessionLifetimePolicy_expirationRequirement) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDetail(value *string)() - SetExpirationRequirement(value *ExpirationRequirement)() + SetExpirationRequirement(value *SessionLifetimePolicy_expirationRequirement)() SetOdataType(value *string)() } diff --git a/models/session_lifetime_policy_expiration_requirement.go b/models/session_lifetime_policy_expiration_requirement.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/setup_status.go b/models/setup_status.go deleted file mode 100644 index d083f0b3834..00000000000 --- a/models/setup_status.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type SetupStatus int - -const ( - UNKNOWN_SETUPSTATUS SetupStatus = iota - NOTREGISTEREDYET_SETUPSTATUS - REGISTEREDSETUPNOTSTARTED_SETUPSTATUS - REGISTEREDSETUPINPROGRESS_SETUPSTATUS - REGISTRATIONANDSETUPCOMPLETED_SETUPSTATUS - REGISTRATIONFAILED_SETUPSTATUS - REGISTRATIONTIMEDOUT_SETUPSTATUS - DISABLED_SETUPSTATUS -) - -func (i SetupStatus) String() string { - return []string{"unknown", "notRegisteredYet", "registeredSetupNotStarted", "registeredSetupInProgress", "registrationAndSetupCompleted", "registrationFailed", "registrationTimedOut", "disabled"}[i] -} -func ParseSetupStatus(v string) (any, error) { - result := UNKNOWN_SETUPSTATUS - switch v { - case "unknown": - result = UNKNOWN_SETUPSTATUS - case "notRegisteredYet": - result = NOTREGISTEREDYET_SETUPSTATUS - case "registeredSetupNotStarted": - result = REGISTEREDSETUPNOTSTARTED_SETUPSTATUS - case "registeredSetupInProgress": - result = REGISTEREDSETUPINPROGRESS_SETUPSTATUS - case "registrationAndSetupCompleted": - result = REGISTRATIONANDSETUPCOMPLETED_SETUPSTATUS - case "registrationFailed": - result = REGISTRATIONFAILED_SETUPSTATUS - case "registrationTimedOut": - result = REGISTRATIONTIMEDOUT_SETUPSTATUS - case "disabled": - result = DISABLED_SETUPSTATUS - default: - return 0, errors.New("Unknown SetupStatus value: " + v) - } - return &result, nil -} -func SerializeSetupStatus(values []SetupStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SetupStatus) isMultiValue() bool { - return false -} diff --git a/models/share_point_one_drive_options.go b/models/share_point_one_drive_options.go index 795319c1e4e..5e5a0793615 100644 --- a/models/share_point_one_drive_options.go +++ b/models/share_point_one_drive_options.go @@ -42,12 +42,12 @@ func (m *SharePointOneDriveOptions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827e func (m *SharePointOneDriveOptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["includeContent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSearchContent) + val, err := n.GetEnumValue(ParseSharePointOneDriveOptions_includeContent) if err != nil { return err } if val != nil { - m.SetIncludeContent(val.(*SearchContent)) + m.SetIncludeContent(val.(*SharePointOneDriveOptions_includeContent)) } return nil } @@ -64,13 +64,13 @@ func (m *SharePointOneDriveOptions) GetFieldDeserializers()(map[string]func(i878 return res } // GetIncludeContent gets the includeContent property value. The type of search content. The possible values are: privateContent, sharedContent. Read-only. -func (m *SharePointOneDriveOptions) GetIncludeContent()(*SearchContent) { +func (m *SharePointOneDriveOptions) GetIncludeContent()(*SharePointOneDriveOptions_includeContent) { val, err := m.GetBackingStore().Get("includeContent") if err != nil { panic(err) } if val != nil { - return val.(*SearchContent) + return val.(*SharePointOneDriveOptions_includeContent) } return nil } @@ -120,7 +120,7 @@ func (m *SharePointOneDriveOptions) SetBackingStore(value ie8677ce2c7e1b4c22e9c3 m.backingStore = value } // SetIncludeContent sets the includeContent property value. The type of search content. The possible values are: privateContent, sharedContent. Read-only. -func (m *SharePointOneDriveOptions) SetIncludeContent(value *SearchContent)() { +func (m *SharePointOneDriveOptions) SetIncludeContent(value *SharePointOneDriveOptions_includeContent)() { err := m.GetBackingStore().Set("includeContent", value) if err != nil { panic(err) @@ -139,9 +139,9 @@ type SharePointOneDriveOptionsable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIncludeContent()(*SearchContent) + GetIncludeContent()(*SharePointOneDriveOptions_includeContent) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIncludeContent(value *SearchContent)() + SetIncludeContent(value *SharePointOneDriveOptions_includeContent)() SetOdataType(value *string)() } diff --git a/models/share_point_one_drive_options_include_content.go b/models/share_point_one_drive_options_include_content.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sharepoint_settings.go b/models/sharepoint_settings.go index 74a146d1997..22d2d0bb6d9 100644 --- a/models/sharepoint_settings.go +++ b/models/sharepoint_settings.go @@ -136,12 +136,12 @@ func (m *SharepointSettings) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["imageTaggingOption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseImageTaggingChoice) + val, err := n.GetEnumValue(ParseSharepointSettings_imageTaggingOption) if err != nil { return err } if val != nil { - m.SetImageTaggingOption(val.(*ImageTaggingChoice)) + m.SetImageTaggingOption(val.(*SharepointSettings_imageTaggingOption)) } return nil } @@ -338,22 +338,22 @@ func (m *SharepointSettings) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["sharingCapability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSharingCapabilities) + val, err := n.GetEnumValue(ParseSharepointSettings_sharingCapability) if err != nil { return err } if val != nil { - m.SetSharingCapability(val.(*SharingCapabilities)) + m.SetSharingCapability(val.(*SharepointSettings_sharingCapability)) } return nil } res["sharingDomainRestrictionMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSharingDomainRestrictionMode) + val, err := n.GetEnumValue(ParseSharepointSettings_sharingDomainRestrictionMode) if err != nil { return err } if val != nil { - m.SetSharingDomainRestrictionMode(val.(*SharingDomainRestrictionMode)) + m.SetSharingDomainRestrictionMode(val.(*SharepointSettings_sharingDomainRestrictionMode)) } return nil } @@ -401,13 +401,13 @@ func (m *SharepointSettings) GetIdleSessionSignOut()(IdleSessionSignOutable) { return nil } // GetImageTaggingOption gets the imageTaggingOption property value. Specifies the image tagging option for the tenant. Possible values are: disabled, basic, enhanced. -func (m *SharepointSettings) GetImageTaggingOption()(*ImageTaggingChoice) { +func (m *SharepointSettings) GetImageTaggingOption()(*SharepointSettings_imageTaggingOption) { val, err := m.GetBackingStore().Get("imageTaggingOption") if err != nil { panic(err) } if val != nil { - return val.(*ImageTaggingChoice) + return val.(*SharepointSettings_imageTaggingOption) } return nil } @@ -610,24 +610,24 @@ func (m *SharepointSettings) GetSharingBlockedDomainList()([]string) { return nil } // GetSharingCapability gets the sharingCapability property value. Sharing capability for the tenant. Possible values are: disabled, externalUserSharingOnly, externalUserAndGuestSharing, existingExternalUserSharingOnly. -func (m *SharepointSettings) GetSharingCapability()(*SharingCapabilities) { +func (m *SharepointSettings) GetSharingCapability()(*SharepointSettings_sharingCapability) { val, err := m.GetBackingStore().Get("sharingCapability") if err != nil { panic(err) } if val != nil { - return val.(*SharingCapabilities) + return val.(*SharepointSettings_sharingCapability) } return nil } // GetSharingDomainRestrictionMode gets the sharingDomainRestrictionMode property value. Specifies the external sharing mode for domains. Possible values are: none, allowList, blockList. -func (m *SharepointSettings) GetSharingDomainRestrictionMode()(*SharingDomainRestrictionMode) { +func (m *SharepointSettings) GetSharingDomainRestrictionMode()(*SharepointSettings_sharingDomainRestrictionMode) { val, err := m.GetBackingStore().Get("sharingDomainRestrictionMode") if err != nil { panic(err) } if val != nil { - return val.(*SharingDomainRestrictionMode) + return val.(*SharepointSettings_sharingDomainRestrictionMode) } return nil } @@ -885,7 +885,7 @@ func (m *SharepointSettings) SetIdleSessionSignOut(value IdleSessionSignOutable) } } // SetImageTaggingOption sets the imageTaggingOption property value. Specifies the image tagging option for the tenant. Possible values are: disabled, basic, enhanced. -func (m *SharepointSettings) SetImageTaggingOption(value *ImageTaggingChoice)() { +func (m *SharepointSettings) SetImageTaggingOption(value *SharepointSettings_imageTaggingOption)() { err := m.GetBackingStore().Set("imageTaggingOption", value) if err != nil { panic(err) @@ -1018,14 +1018,14 @@ func (m *SharepointSettings) SetSharingBlockedDomainList(value []string)() { } } // SetSharingCapability sets the sharingCapability property value. Sharing capability for the tenant. Possible values are: disabled, externalUserSharingOnly, externalUserAndGuestSharing, existingExternalUserSharingOnly. -func (m *SharepointSettings) SetSharingCapability(value *SharingCapabilities)() { +func (m *SharepointSettings) SetSharingCapability(value *SharepointSettings_sharingCapability)() { err := m.GetBackingStore().Set("sharingCapability", value) if err != nil { panic(err) } } // SetSharingDomainRestrictionMode sets the sharingDomainRestrictionMode property value. Specifies the external sharing mode for domains. Possible values are: none, allowList, blockList. -func (m *SharepointSettings) SetSharingDomainRestrictionMode(value *SharingDomainRestrictionMode)() { +func (m *SharepointSettings) SetSharingDomainRestrictionMode(value *SharepointSettings_sharingDomainRestrictionMode)() { err := m.GetBackingStore().Set("sharingDomainRestrictionMode", value) if err != nil { panic(err) @@ -1061,7 +1061,7 @@ type SharepointSettingsable interface { GetDeletedUserPersonalSiteRetentionPeriodInDays()(*int32) GetExcludedFileExtensionsForSyncApp()([]string) GetIdleSessionSignOut()(IdleSessionSignOutable) - GetImageTaggingOption()(*ImageTaggingChoice) + GetImageTaggingOption()(*SharepointSettings_imageTaggingOption) GetIsCommentingOnSitePagesEnabled()(*bool) GetIsFileActivityNotificationEnabled()(*bool) GetIsLegacyAuthProtocolsEnabled()(*bool) @@ -1080,8 +1080,8 @@ type SharepointSettingsable interface { GetPersonalSiteDefaultStorageLimitInMB()(*int64) GetSharingAllowedDomainList()([]string) GetSharingBlockedDomainList()([]string) - GetSharingCapability()(*SharingCapabilities) - GetSharingDomainRestrictionMode()(*SharingDomainRestrictionMode) + GetSharingCapability()(*SharepointSettings_sharingCapability) + GetSharingDomainRestrictionMode()(*SharepointSettings_sharingDomainRestrictionMode) GetSiteCreationDefaultManagedPath()(*string) GetSiteCreationDefaultStorageLimitInMB()(*int32) GetTenantDefaultTimezone()(*string) @@ -1090,7 +1090,7 @@ type SharepointSettingsable interface { SetDeletedUserPersonalSiteRetentionPeriodInDays(value *int32)() SetExcludedFileExtensionsForSyncApp(value []string)() SetIdleSessionSignOut(value IdleSessionSignOutable)() - SetImageTaggingOption(value *ImageTaggingChoice)() + SetImageTaggingOption(value *SharepointSettings_imageTaggingOption)() SetIsCommentingOnSitePagesEnabled(value *bool)() SetIsFileActivityNotificationEnabled(value *bool)() SetIsLegacyAuthProtocolsEnabled(value *bool)() @@ -1109,8 +1109,8 @@ type SharepointSettingsable interface { SetPersonalSiteDefaultStorageLimitInMB(value *int64)() SetSharingAllowedDomainList(value []string)() SetSharingBlockedDomainList(value []string)() - SetSharingCapability(value *SharingCapabilities)() - SetSharingDomainRestrictionMode(value *SharingDomainRestrictionMode)() + SetSharingCapability(value *SharepointSettings_sharingCapability)() + SetSharingDomainRestrictionMode(value *SharepointSettings_sharingDomainRestrictionMode)() SetSiteCreationDefaultManagedPath(value *string)() SetSiteCreationDefaultStorageLimitInMB(value *int32)() SetTenantDefaultTimezone(value *string)() diff --git a/models/sharepoint_settings_image_tagging_option.go b/models/sharepoint_settings_image_tagging_option.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sharepoint_settings_sharing_capability.go b/models/sharepoint_settings_sharing_capability.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sharepoint_settings_sharing_domain_restriction_mode.go b/models/sharepoint_settings_sharing_domain_restriction_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sharing_capabilities.go b/models/sharing_capabilities.go deleted file mode 100644 index d24c1cf652a..00000000000 --- a/models/sharing_capabilities.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type SharingCapabilities int - -const ( - DISABLED_SHARINGCAPABILITIES SharingCapabilities = iota - EXTERNALUSERSHARINGONLY_SHARINGCAPABILITIES - EXTERNALUSERANDGUESTSHARING_SHARINGCAPABILITIES - EXISTINGEXTERNALUSERSHARINGONLY_SHARINGCAPABILITIES - UNKNOWNFUTUREVALUE_SHARINGCAPABILITIES -) - -func (i SharingCapabilities) String() string { - return []string{"disabled", "externalUserSharingOnly", "externalUserAndGuestSharing", "existingExternalUserSharingOnly", "unknownFutureValue"}[i] -} -func ParseSharingCapabilities(v string) (any, error) { - result := DISABLED_SHARINGCAPABILITIES - switch v { - case "disabled": - result = DISABLED_SHARINGCAPABILITIES - case "externalUserSharingOnly": - result = EXTERNALUSERSHARINGONLY_SHARINGCAPABILITIES - case "externalUserAndGuestSharing": - result = EXTERNALUSERANDGUESTSHARING_SHARINGCAPABILITIES - case "existingExternalUserSharingOnly": - result = EXISTINGEXTERNALUSERSHARINGONLY_SHARINGCAPABILITIES - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SHARINGCAPABILITIES - default: - return 0, errors.New("Unknown SharingCapabilities value: " + v) - } - return &result, nil -} -func SerializeSharingCapabilities(values []SharingCapabilities) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SharingCapabilities) isMultiValue() bool { - return false -} diff --git a/models/sharing_domain_restriction_mode.go b/models/sharing_domain_restriction_mode.go deleted file mode 100644 index 61d2c393bf2..00000000000 --- a/models/sharing_domain_restriction_mode.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type SharingDomainRestrictionMode int - -const ( - NONE_SHARINGDOMAINRESTRICTIONMODE SharingDomainRestrictionMode = iota - ALLOWLIST_SHARINGDOMAINRESTRICTIONMODE - BLOCKLIST_SHARINGDOMAINRESTRICTIONMODE - UNKNOWNFUTUREVALUE_SHARINGDOMAINRESTRICTIONMODE -) - -func (i SharingDomainRestrictionMode) String() string { - return []string{"none", "allowList", "blockList", "unknownFutureValue"}[i] -} -func ParseSharingDomainRestrictionMode(v string) (any, error) { - result := NONE_SHARINGDOMAINRESTRICTIONMODE - switch v { - case "none": - result = NONE_SHARINGDOMAINRESTRICTIONMODE - case "allowList": - result = ALLOWLIST_SHARINGDOMAINRESTRICTIONMODE - case "blockList": - result = BLOCKLIST_SHARINGDOMAINRESTRICTIONMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SHARINGDOMAINRESTRICTIONMODE - default: - return 0, errors.New("Unknown SharingDomainRestrictionMode value: " + v) - } - return &result, nil -} -func SerializeSharingDomainRestrictionMode(values []SharingDomainRestrictionMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SharingDomainRestrictionMode) isMultiValue() bool { - return false -} diff --git a/models/shift_work_cloud_pc_access_state.go b/models/shift_work_cloud_pc_access_state.go deleted file mode 100644 index 99946271ea1..00000000000 --- a/models/shift_work_cloud_pc_access_state.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type ShiftWorkCloudPcAccessState int - -const ( - UNASSIGNED_SHIFTWORKCLOUDPCACCESSSTATE ShiftWorkCloudPcAccessState = iota - NOLICENSESAVAILABLE_SHIFTWORKCLOUDPCACCESSSTATE - ACTIVATIONFAILED_SHIFTWORKCLOUDPCACCESSSTATE - ACTIVE_SHIFTWORKCLOUDPCACCESSSTATE - ACTIVATING_SHIFTWORKCLOUDPCACCESSSTATE - UNKNOWNFUTUREVALUE_SHIFTWORKCLOUDPCACCESSSTATE - STANDBYMODE_SHIFTWORKCLOUDPCACCESSSTATE -) - -func (i ShiftWorkCloudPcAccessState) String() string { - return []string{"unassigned", "noLicensesAvailable", "activationFailed", "active", "activating", "unknownFutureValue", "standbyMode"}[i] -} -func ParseShiftWorkCloudPcAccessState(v string) (any, error) { - result := UNASSIGNED_SHIFTWORKCLOUDPCACCESSSTATE - switch v { - case "unassigned": - result = UNASSIGNED_SHIFTWORKCLOUDPCACCESSSTATE - case "noLicensesAvailable": - result = NOLICENSESAVAILABLE_SHIFTWORKCLOUDPCACCESSSTATE - case "activationFailed": - result = ACTIVATIONFAILED_SHIFTWORKCLOUDPCACCESSSTATE - case "active": - result = ACTIVE_SHIFTWORKCLOUDPCACCESSSTATE - case "activating": - result = ACTIVATING_SHIFTWORKCLOUDPCACCESSSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SHIFTWORKCLOUDPCACCESSSTATE - case "standbyMode": - result = STANDBYMODE_SHIFTWORKCLOUDPCACCESSSTATE - default: - return 0, errors.New("Unknown ShiftWorkCloudPcAccessState value: " + v) - } - return &result, nil -} -func SerializeShiftWorkCloudPcAccessState(values []ShiftWorkCloudPcAccessState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ShiftWorkCloudPcAccessState) isMultiValue() bool { - return false -} diff --git a/models/sign_in.go b/models/sign_in.go index afbeef7b7bf..1df6cc5a908 100644 --- a/models/sign_in.go +++ b/models/sign_in.go @@ -65,13 +65,13 @@ func (m *SignIn) GetAppliedEventListeners()([]AppliedAuthenticationEventListener return nil } // GetAppTokenProtectionStatus gets the appTokenProtectionStatus property value. The appTokenProtectionStatus property -func (m *SignIn) GetAppTokenProtectionStatus()(*TokenProtectionStatus) { +func (m *SignIn) GetAppTokenProtectionStatus()(*SignIn_appTokenProtectionStatus) { val, err := m.GetBackingStore().Get("appTokenProtectionStatus") if err != nil { panic(err) } if val != nil { - return val.(*TokenProtectionStatus) + return val.(*SignIn_appTokenProtectionStatus) } return nil } @@ -142,13 +142,13 @@ func (m *SignIn) GetAuthenticationProcessingDetails()([]KeyValueable) { return nil } // GetAuthenticationProtocol gets the authenticationProtocol property value. Lists the protocol type or grant type used in the authentication. The possible values are: oAuth2, ropc, wsFederation, saml20, deviceCode, unknownFutureValue, authenticationTransfer, and none. Use none for all authentications that don't have a specific value in that list. -func (m *SignIn) GetAuthenticationProtocol()(*ProtocolType) { +func (m *SignIn) GetAuthenticationProtocol()(*SignIn_authenticationProtocol) { val, err := m.GetBackingStore().Get("authenticationProtocol") if err != nil { panic(err) } if val != nil { - return val.(*ProtocolType) + return val.(*SignIn_authenticationProtocol) } return nil } @@ -208,24 +208,24 @@ func (m *SignIn) GetClientAppUsed()(*string) { return nil } // GetClientCredentialType gets the clientCredentialType property value. Describes the credential type that a user client or service principal provided to Microsoft Entra ID to authenticate itself. You can review this property to track and eliminate less secure credential types or to watch for clients and service principals using anomalous credential types. The possible values are: none, clientSecret, clientAssertion, federatedIdentityCredential, managedIdentity, certificate, unknownFutureValue. -func (m *SignIn) GetClientCredentialType()(*ClientCredentialType) { +func (m *SignIn) GetClientCredentialType()(*SignIn_clientCredentialType) { val, err := m.GetBackingStore().Get("clientCredentialType") if err != nil { panic(err) } if val != nil { - return val.(*ClientCredentialType) + return val.(*SignIn_clientCredentialType) } return nil } // GetConditionalAccessStatus gets the conditionalAccessStatus property value. The status of the conditional access policy triggered. Possible values: success, failure, notApplied, or unknownFutureValue. Supports $filter (eq). -func (m *SignIn) GetConditionalAccessStatus()(*ConditionalAccessStatus) { +func (m *SignIn) GetConditionalAccessStatus()(*SignIn_conditionalAccessStatus) { val, err := m.GetBackingStore().Get("conditionalAccessStatus") if err != nil { panic(err) } if val != nil { - return val.(*ConditionalAccessStatus) + return val.(*SignIn_conditionalAccessStatus) } return nil } @@ -252,13 +252,13 @@ func (m *SignIn) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a return nil } // GetCrossTenantAccessType gets the crossTenantAccessType property value. Describes the type of cross-tenant access used by the actor to access the resource. Possible values are: none, b2bCollaboration, b2bDirectConnect, microsoftSupport, serviceProvider, unknownFutureValue, passthrough. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: passthrough. If the sign in didn't cross tenant boundaries, the value is none. -func (m *SignIn) GetCrossTenantAccessType()(*SignInAccessType) { +func (m *SignIn) GetCrossTenantAccessType()(*SignIn_crossTenantAccessType) { val, err := m.GetBackingStore().Get("crossTenantAccessType") if err != nil { panic(err) } if val != nil { - return val.(*SignInAccessType) + return val.(*SignIn_crossTenantAccessType) } return nil } @@ -340,12 +340,12 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["appTokenProtectionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTokenProtectionStatus) + val, err := n.GetEnumValue(ParseSignIn_appTokenProtectionStatus) if err != nil { return err } if val != nil { - m.SetAppTokenProtectionStatus(val.(*TokenProtectionStatus)) + m.SetAppTokenProtectionStatus(val.(*SignIn_appTokenProtectionStatus)) } return nil } @@ -440,12 +440,12 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["authenticationProtocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProtocolType) + val, err := n.GetEnumValue(ParseSignIn_authenticationProtocol) if err != nil { return err } if val != nil { - m.SetAuthenticationProtocol(val.(*ProtocolType)) + m.SetAuthenticationProtocol(val.(*SignIn_authenticationProtocol)) } return nil } @@ -506,22 +506,22 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["clientCredentialType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseClientCredentialType) + val, err := n.GetEnumValue(ParseSignIn_clientCredentialType) if err != nil { return err } if val != nil { - m.SetClientCredentialType(val.(*ClientCredentialType)) + m.SetClientCredentialType(val.(*SignIn_clientCredentialType)) } return nil } res["conditionalAccessStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConditionalAccessStatus) + val, err := n.GetEnumValue(ParseSignIn_conditionalAccessStatus) if err != nil { return err } if val != nil { - m.SetConditionalAccessStatus(val.(*ConditionalAccessStatus)) + m.SetConditionalAccessStatus(val.(*SignIn_conditionalAccessStatus)) } return nil } @@ -546,12 +546,12 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["crossTenantAccessType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSignInAccessType) + val, err := n.GetEnumValue(ParseSignIn_crossTenantAccessType) if err != nil { return err } if val != nil { - m.SetCrossTenantAccessType(val.(*SignInAccessType)) + m.SetCrossTenantAccessType(val.(*SignIn_crossTenantAccessType)) } return nil } @@ -606,12 +606,12 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["incomingTokenType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIncomingTokenType) + val, err := n.GetEnumValue(ParseSignIn_incomingTokenType) if err != nil { return err } if val != nil { - m.SetIncomingTokenType(val.(*IncomingTokenType)) + m.SetIncomingTokenType(val.(*SignIn_incomingTokenType)) } return nil } @@ -712,12 +712,12 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["originalTransferMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseOriginalTransferMethods) + val, err := n.GetEnumValue(ParseSignIn_originalTransferMethod) if err != nil { return err } if val != nil { - m.SetOriginalTransferMethod(val.(*OriginalTransferMethods)) + m.SetOriginalTransferMethod(val.(*SignIn_originalTransferMethod)) } return nil } @@ -782,12 +782,12 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["riskDetail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskDetail) + val, err := n.GetEnumValue(ParseSignIn_riskDetail) if err != nil { return err } if val != nil { - m.SetRiskDetail(val.(*RiskDetail)) + m.SetRiskDetail(val.(*SignIn_riskDetail)) } return nil } @@ -808,32 +808,32 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["riskLevelAggregated"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskLevel) + val, err := n.GetEnumValue(ParseSignIn_riskLevelAggregated) if err != nil { return err } if val != nil { - m.SetRiskLevelAggregated(val.(*RiskLevel)) + m.SetRiskLevelAggregated(val.(*SignIn_riskLevelAggregated)) } return nil } res["riskLevelDuringSignIn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskLevel) + val, err := n.GetEnumValue(ParseSignIn_riskLevelDuringSignIn) if err != nil { return err } if val != nil { - m.SetRiskLevelDuringSignIn(val.(*RiskLevel)) + m.SetRiskLevelDuringSignIn(val.(*SignIn_riskLevelDuringSignIn)) } return nil } res["riskState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRiskState) + val, err := n.GetEnumValue(ParseSignIn_riskState) if err != nil { return err } if val != nil { - m.SetRiskState(val.(*RiskState)) + m.SetRiskState(val.(*SignIn_riskState)) } return nil } @@ -920,22 +920,22 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["signInIdentifierType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSignInIdentifierType) + val, err := n.GetEnumValue(ParseSignIn_signInIdentifierType) if err != nil { return err } if val != nil { - m.SetSignInIdentifierType(val.(*SignInIdentifierType)) + m.SetSignInIdentifierType(val.(*SignIn_signInIdentifierType)) } return nil } res["signInTokenProtectionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTokenProtectionStatus) + val, err := n.GetEnumValue(ParseSignIn_signInTokenProtectionStatus) if err != nil { return err } if val != nil { - m.SetSignInTokenProtectionStatus(val.(*TokenProtectionStatus)) + m.SetSignInTokenProtectionStatus(val.(*SignIn_signInTokenProtectionStatus)) } return nil } @@ -960,12 +960,12 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["tokenIssuerType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTokenIssuerType) + val, err := n.GetEnumValue(ParseSignIn_tokenIssuerType) if err != nil { return err } if val != nil { - m.SetTokenIssuerType(val.(*TokenIssuerType)) + m.SetTokenIssuerType(val.(*SignIn_tokenIssuerType)) } return nil } @@ -1020,12 +1020,12 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 return nil } res["userType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSignInUserType) + val, err := n.GetEnumValue(ParseSignIn_userType) if err != nil { return err } if val != nil { - m.SetUserType(val.(*SignInUserType)) + m.SetUserType(val.(*SignIn_userType)) } return nil } @@ -1065,13 +1065,13 @@ func (m *SignIn) GetHomeTenantName()(*string) { return nil } // GetIncomingTokenType gets the incomingTokenType property value. Indicates the token types that were presented to Microsoft Entra ID to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Microsoft Entra ID might have also used token types not listed in this enum type to authenticate the actor. Don't infer the lack of a token if it isn't one of the types listed. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: remoteDesktopToken. -func (m *SignIn) GetIncomingTokenType()(*IncomingTokenType) { +func (m *SignIn) GetIncomingTokenType()(*SignIn_incomingTokenType) { val, err := m.GetBackingStore().Get("incomingTokenType") if err != nil { panic(err) } if val != nil { - return val.(*IncomingTokenType) + return val.(*SignIn_incomingTokenType) } return nil } @@ -1175,13 +1175,13 @@ func (m *SignIn) GetOriginalRequestId()(*string) { return nil } // GetOriginalTransferMethod gets the originalTransferMethod property value. Transfer method used to initiate a session throughout all subsequent request. The possible values are: none, deviceCodeFlow, authenticationTransfer, unknownFutureValue. -func (m *SignIn) GetOriginalTransferMethod()(*OriginalTransferMethods) { +func (m *SignIn) GetOriginalTransferMethod()(*SignIn_originalTransferMethod) { val, err := m.GetBackingStore().Get("originalTransferMethod") if err != nil { panic(err) } if val != nil { - return val.(*OriginalTransferMethods) + return val.(*SignIn_originalTransferMethod) } return nil } @@ -1252,13 +1252,13 @@ func (m *SignIn) GetResourceTenantId()(*string) { return nil } // GetRiskDetail gets the riskDetail property value. The reason behind a specific state of a risky user, sign-in, or a risk event. Possible values: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, or unknownFutureValue. The value none means that Microsoft Entra risk detection has not flagged the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. -func (m *SignIn) GetRiskDetail()(*RiskDetail) { +func (m *SignIn) GetRiskDetail()(*SignIn_riskDetail) { val, err := m.GetBackingStore().Get("riskDetail") if err != nil { panic(err) } if val != nil { - return val.(*RiskDetail) + return val.(*SignIn_riskDetail) } return nil } @@ -1274,35 +1274,35 @@ func (m *SignIn) GetRiskEventTypesV2()([]string) { return nil } // GetRiskLevelAggregated gets the riskLevelAggregated property value. The aggregated risk level. Possible values: none, low, medium, high, hidden, or unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. -func (m *SignIn) GetRiskLevelAggregated()(*RiskLevel) { +func (m *SignIn) GetRiskLevelAggregated()(*SignIn_riskLevelAggregated) { val, err := m.GetBackingStore().Get("riskLevelAggregated") if err != nil { panic(err) } if val != nil { - return val.(*RiskLevel) + return val.(*SignIn_riskLevelAggregated) } return nil } // GetRiskLevelDuringSignIn gets the riskLevelDuringSignIn property value. The risk level during sign-in. Possible values: none, low, medium, high, hidden, or unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. -func (m *SignIn) GetRiskLevelDuringSignIn()(*RiskLevel) { +func (m *SignIn) GetRiskLevelDuringSignIn()(*SignIn_riskLevelDuringSignIn) { val, err := m.GetBackingStore().Get("riskLevelDuringSignIn") if err != nil { panic(err) } if val != nil { - return val.(*RiskLevel) + return val.(*SignIn_riskLevelDuringSignIn) } return nil } // GetRiskState gets the riskState property value. The risk state of a risky user, sign-in, or a risk event. Possible values: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, or unknownFutureValue. Supports $filter (eq). -func (m *SignIn) GetRiskState()(*RiskState) { +func (m *SignIn) GetRiskState()(*SignIn_riskState) { val, err := m.GetBackingStore().Get("riskState") if err != nil { panic(err) } if val != nil { - return val.(*RiskState) + return val.(*SignIn_riskState) } return nil } @@ -1384,24 +1384,24 @@ func (m *SignIn) GetSignInIdentifier()(*string) { return nil } // GetSignInIdentifierType gets the signInIdentifierType property value. The type of sign in identifier. Possible values are: userPrincipalName, phoneNumber, proxyAddress, qrCode, onPremisesUserPrincipalName, unknownFutureValue. -func (m *SignIn) GetSignInIdentifierType()(*SignInIdentifierType) { +func (m *SignIn) GetSignInIdentifierType()(*SignIn_signInIdentifierType) { val, err := m.GetBackingStore().Get("signInIdentifierType") if err != nil { panic(err) } if val != nil { - return val.(*SignInIdentifierType) + return val.(*SignIn_signInIdentifierType) } return nil } // GetSignInTokenProtectionStatus gets the signInTokenProtectionStatus property value. Token protection creates a cryptographically secure tie between the token and the device it is issued to. This field indicates whether the signin token was bound to the device or not. The possible values are: none, bound, unbound, unknownFutureValue. -func (m *SignIn) GetSignInTokenProtectionStatus()(*TokenProtectionStatus) { +func (m *SignIn) GetSignInTokenProtectionStatus()(*SignIn_signInTokenProtectionStatus) { val, err := m.GetBackingStore().Get("signInTokenProtectionStatus") if err != nil { panic(err) } if val != nil { - return val.(*TokenProtectionStatus) + return val.(*SignIn_signInTokenProtectionStatus) } return nil } @@ -1428,13 +1428,13 @@ func (m *SignIn) GetTokenIssuerName()(*string) { return nil } // GetTokenIssuerType gets the tokenIssuerType property value. The type of identity provider. The possible values are: AzureAD, ADFederationServices, UnknownFutureValue, AzureADBackupAuth, ADFederationServicesMFAAdapter, NPSExtension. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: AzureADBackupAuth , ADFederationServicesMFAAdapter , NPSExtension. -func (m *SignIn) GetTokenIssuerType()(*TokenIssuerType) { +func (m *SignIn) GetTokenIssuerType()(*SignIn_tokenIssuerType) { val, err := m.GetBackingStore().Get("tokenIssuerType") if err != nil { panic(err) } if val != nil { - return val.(*TokenIssuerType) + return val.(*SignIn_tokenIssuerType) } return nil } @@ -1494,13 +1494,13 @@ func (m *SignIn) GetUserPrincipalName()(*string) { return nil } // GetUserType gets the userType property value. Identifies whether the user is a member or guest in the tenant. Possible values are: member, guest, unknownFutureValue. -func (m *SignIn) GetUserType()(*SignInUserType) { +func (m *SignIn) GetUserType()(*SignIn_userType) { val, err := m.GetBackingStore().Get("userType") if err != nil { panic(err) } if val != nil { - return val.(*SignInUserType) + return val.(*SignIn_userType) } return nil } @@ -2012,7 +2012,7 @@ func (m *SignIn) SetAppliedEventListeners(value []AppliedAuthenticationEventList } } // SetAppTokenProtectionStatus sets the appTokenProtectionStatus property value. The appTokenProtectionStatus property -func (m *SignIn) SetAppTokenProtectionStatus(value *TokenProtectionStatus)() { +func (m *SignIn) SetAppTokenProtectionStatus(value *SignIn_appTokenProtectionStatus)() { err := m.GetBackingStore().Set("appTokenProtectionStatus", value) if err != nil { panic(err) @@ -2061,7 +2061,7 @@ func (m *SignIn) SetAuthenticationProcessingDetails(value []KeyValueable)() { } } // SetAuthenticationProtocol sets the authenticationProtocol property value. Lists the protocol type or grant type used in the authentication. The possible values are: oAuth2, ropc, wsFederation, saml20, deviceCode, unknownFutureValue, authenticationTransfer, and none. Use none for all authentications that don't have a specific value in that list. -func (m *SignIn) SetAuthenticationProtocol(value *ProtocolType)() { +func (m *SignIn) SetAuthenticationProtocol(value *SignIn_authenticationProtocol)() { err := m.GetBackingStore().Set("authenticationProtocol", value) if err != nil { panic(err) @@ -2103,14 +2103,14 @@ func (m *SignIn) SetClientAppUsed(value *string)() { } } // SetClientCredentialType sets the clientCredentialType property value. Describes the credential type that a user client or service principal provided to Microsoft Entra ID to authenticate itself. You can review this property to track and eliminate less secure credential types or to watch for clients and service principals using anomalous credential types. The possible values are: none, clientSecret, clientAssertion, federatedIdentityCredential, managedIdentity, certificate, unknownFutureValue. -func (m *SignIn) SetClientCredentialType(value *ClientCredentialType)() { +func (m *SignIn) SetClientCredentialType(value *SignIn_clientCredentialType)() { err := m.GetBackingStore().Set("clientCredentialType", value) if err != nil { panic(err) } } // SetConditionalAccessStatus sets the conditionalAccessStatus property value. The status of the conditional access policy triggered. Possible values: success, failure, notApplied, or unknownFutureValue. Supports $filter (eq). -func (m *SignIn) SetConditionalAccessStatus(value *ConditionalAccessStatus)() { +func (m *SignIn) SetConditionalAccessStatus(value *SignIn_conditionalAccessStatus)() { err := m.GetBackingStore().Set("conditionalAccessStatus", value) if err != nil { panic(err) @@ -2131,7 +2131,7 @@ func (m *SignIn) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3 } } // SetCrossTenantAccessType sets the crossTenantAccessType property value. Describes the type of cross-tenant access used by the actor to access the resource. Possible values are: none, b2bCollaboration, b2bDirectConnect, microsoftSupport, serviceProvider, unknownFutureValue, passthrough. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: passthrough. If the sign in didn't cross tenant boundaries, the value is none. -func (m *SignIn) SetCrossTenantAccessType(value *SignInAccessType)() { +func (m *SignIn) SetCrossTenantAccessType(value *SignIn_crossTenantAccessType)() { err := m.GetBackingStore().Set("crossTenantAccessType", value) if err != nil { panic(err) @@ -2173,7 +2173,7 @@ func (m *SignIn) SetHomeTenantName(value *string)() { } } // SetIncomingTokenType sets the incomingTokenType property value. Indicates the token types that were presented to Microsoft Entra ID to authenticate the actor in the sign in. The possible values are: none, primaryRefreshToken, saml11, saml20, unknownFutureValue, remoteDesktopToken. NOTE Microsoft Entra ID might have also used token types not listed in this enum type to authenticate the actor. Don't infer the lack of a token if it isn't one of the types listed. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: remoteDesktopToken. -func (m *SignIn) SetIncomingTokenType(value *IncomingTokenType)() { +func (m *SignIn) SetIncomingTokenType(value *SignIn_incomingTokenType)() { err := m.GetBackingStore().Set("incomingTokenType", value) if err != nil { panic(err) @@ -2243,7 +2243,7 @@ func (m *SignIn) SetOriginalRequestId(value *string)() { } } // SetOriginalTransferMethod sets the originalTransferMethod property value. Transfer method used to initiate a session throughout all subsequent request. The possible values are: none, deviceCodeFlow, authenticationTransfer, unknownFutureValue. -func (m *SignIn) SetOriginalTransferMethod(value *OriginalTransferMethods)() { +func (m *SignIn) SetOriginalTransferMethod(value *SignIn_originalTransferMethod)() { err := m.GetBackingStore().Set("originalTransferMethod", value) if err != nil { panic(err) @@ -2292,7 +2292,7 @@ func (m *SignIn) SetResourceTenantId(value *string)() { } } // SetRiskDetail sets the riskDetail property value. The reason behind a specific state of a risky user, sign-in, or a risk event. Possible values: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, or unknownFutureValue. The value none means that Microsoft Entra risk detection has not flagged the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. -func (m *SignIn) SetRiskDetail(value *RiskDetail)() { +func (m *SignIn) SetRiskDetail(value *SignIn_riskDetail)() { err := m.GetBackingStore().Set("riskDetail", value) if err != nil { panic(err) @@ -2306,21 +2306,21 @@ func (m *SignIn) SetRiskEventTypesV2(value []string)() { } } // SetRiskLevelAggregated sets the riskLevelAggregated property value. The aggregated risk level. Possible values: none, low, medium, high, hidden, or unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. -func (m *SignIn) SetRiskLevelAggregated(value *RiskLevel)() { +func (m *SignIn) SetRiskLevelAggregated(value *SignIn_riskLevelAggregated)() { err := m.GetBackingStore().Set("riskLevelAggregated", value) if err != nil { panic(err) } } // SetRiskLevelDuringSignIn sets the riskLevelDuringSignIn property value. The risk level during sign-in. Possible values: none, low, medium, high, hidden, or unknownFutureValue. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. -func (m *SignIn) SetRiskLevelDuringSignIn(value *RiskLevel)() { +func (m *SignIn) SetRiskLevelDuringSignIn(value *SignIn_riskLevelDuringSignIn)() { err := m.GetBackingStore().Set("riskLevelDuringSignIn", value) if err != nil { panic(err) } } // SetRiskState sets the riskState property value. The risk state of a risky user, sign-in, or a risk event. Possible values: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, or unknownFutureValue. Supports $filter (eq). -func (m *SignIn) SetRiskState(value *RiskState)() { +func (m *SignIn) SetRiskState(value *SignIn_riskState)() { err := m.GetBackingStore().Set("riskState", value) if err != nil { panic(err) @@ -2376,14 +2376,14 @@ func (m *SignIn) SetSignInIdentifier(value *string)() { } } // SetSignInIdentifierType sets the signInIdentifierType property value. The type of sign in identifier. Possible values are: userPrincipalName, phoneNumber, proxyAddress, qrCode, onPremisesUserPrincipalName, unknownFutureValue. -func (m *SignIn) SetSignInIdentifierType(value *SignInIdentifierType)() { +func (m *SignIn) SetSignInIdentifierType(value *SignIn_signInIdentifierType)() { err := m.GetBackingStore().Set("signInIdentifierType", value) if err != nil { panic(err) } } // SetSignInTokenProtectionStatus sets the signInTokenProtectionStatus property value. Token protection creates a cryptographically secure tie between the token and the device it is issued to. This field indicates whether the signin token was bound to the device or not. The possible values are: none, bound, unbound, unknownFutureValue. -func (m *SignIn) SetSignInTokenProtectionStatus(value *TokenProtectionStatus)() { +func (m *SignIn) SetSignInTokenProtectionStatus(value *SignIn_signInTokenProtectionStatus)() { err := m.GetBackingStore().Set("signInTokenProtectionStatus", value) if err != nil { panic(err) @@ -2404,7 +2404,7 @@ func (m *SignIn) SetTokenIssuerName(value *string)() { } } // SetTokenIssuerType sets the tokenIssuerType property value. The type of identity provider. The possible values are: AzureAD, ADFederationServices, UnknownFutureValue, AzureADBackupAuth, ADFederationServicesMFAAdapter, NPSExtension. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: AzureADBackupAuth , ADFederationServicesMFAAdapter , NPSExtension. -func (m *SignIn) SetTokenIssuerType(value *TokenIssuerType)() { +func (m *SignIn) SetTokenIssuerType(value *SignIn_tokenIssuerType)() { err := m.GetBackingStore().Set("tokenIssuerType", value) if err != nil { panic(err) @@ -2446,7 +2446,7 @@ func (m *SignIn) SetUserPrincipalName(value *string)() { } } // SetUserType sets the userType property value. Identifies whether the user is a member or guest in the tenant. Possible values are: member, guest, unknownFutureValue. -func (m *SignIn) SetUserType(value *SignInUserType)() { +func (m *SignIn) SetUserType(value *SignIn_userType)() { err := m.GetBackingStore().Set("userType", value) if err != nil { panic(err) @@ -2460,30 +2460,30 @@ type SignInable interface { GetAppId()(*string) GetAppliedConditionalAccessPolicies()([]AppliedConditionalAccessPolicyable) GetAppliedEventListeners()([]AppliedAuthenticationEventListenerable) - GetAppTokenProtectionStatus()(*TokenProtectionStatus) + GetAppTokenProtectionStatus()(*SignIn_appTokenProtectionStatus) GetAuthenticationAppDeviceDetails()(AuthenticationAppDeviceDetailsable) GetAuthenticationAppPolicyEvaluationDetails()([]AuthenticationAppPolicyDetailsable) GetAuthenticationContextClassReferences()([]AuthenticationContextable) GetAuthenticationDetails()([]AuthenticationDetailable) GetAuthenticationMethodsUsed()([]string) GetAuthenticationProcessingDetails()([]KeyValueable) - GetAuthenticationProtocol()(*ProtocolType) + GetAuthenticationProtocol()(*SignIn_authenticationProtocol) GetAuthenticationRequirement()(*string) GetAuthenticationRequirementPolicies()([]AuthenticationRequirementPolicyable) GetAutonomousSystemNumber()(*int32) GetAzureResourceId()(*string) GetClientAppUsed()(*string) - GetClientCredentialType()(*ClientCredentialType) - GetConditionalAccessStatus()(*ConditionalAccessStatus) + GetClientCredentialType()(*SignIn_clientCredentialType) + GetConditionalAccessStatus()(*SignIn_conditionalAccessStatus) GetCorrelationId()(*string) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetCrossTenantAccessType()(*SignInAccessType) + GetCrossTenantAccessType()(*SignIn_crossTenantAccessType) GetDeviceDetail()(DeviceDetailable) GetFederatedCredentialId()(*string) GetFlaggedForReview()(*bool) GetHomeTenantId()(*string) GetHomeTenantName()(*string) - GetIncomingTokenType()(*IncomingTokenType) + GetIncomingTokenType()(*SignIn_incomingTokenType) GetIpAddress()(*string) GetIpAddressFromResourceProvider()(*string) GetIsInteractive()(*bool) @@ -2493,18 +2493,18 @@ type SignInable interface { GetMfaDetail()(MfaDetailable) GetNetworkLocationDetails()([]NetworkLocationDetailable) GetOriginalRequestId()(*string) - GetOriginalTransferMethod()(*OriginalTransferMethods) + GetOriginalTransferMethod()(*SignIn_originalTransferMethod) GetPrivateLinkDetails()(PrivateLinkDetailsable) GetProcessingTimeInMilliseconds()(*int32) GetResourceDisplayName()(*string) GetResourceId()(*string) GetResourceServicePrincipalId()(*string) GetResourceTenantId()(*string) - GetRiskDetail()(*RiskDetail) + GetRiskDetail()(*SignIn_riskDetail) GetRiskEventTypesV2()([]string) - GetRiskLevelAggregated()(*RiskLevel) - GetRiskLevelDuringSignIn()(*RiskLevel) - GetRiskState()(*RiskState) + GetRiskLevelAggregated()(*SignIn_riskLevelAggregated) + GetRiskLevelDuringSignIn()(*SignIn_riskLevelDuringSignIn) + GetRiskState()(*SignIn_riskState) GetServicePrincipalCredentialKeyId()(*string) GetServicePrincipalCredentialThumbprint()(*string) GetServicePrincipalId()(*string) @@ -2512,45 +2512,45 @@ type SignInable interface { GetSessionLifetimePolicies()([]SessionLifetimePolicyable) GetSignInEventTypes()([]string) GetSignInIdentifier()(*string) - GetSignInIdentifierType()(*SignInIdentifierType) - GetSignInTokenProtectionStatus()(*TokenProtectionStatus) + GetSignInIdentifierType()(*SignIn_signInIdentifierType) + GetSignInTokenProtectionStatus()(*SignIn_signInTokenProtectionStatus) GetStatus()(SignInStatusable) GetTokenIssuerName()(*string) - GetTokenIssuerType()(*TokenIssuerType) + GetTokenIssuerType()(*SignIn_tokenIssuerType) GetUniqueTokenIdentifier()(*string) GetUserAgent()(*string) GetUserDisplayName()(*string) GetUserId()(*string) GetUserPrincipalName()(*string) - GetUserType()(*SignInUserType) + GetUserType()(*SignIn_userType) SetAppDisplayName(value *string)() SetAppId(value *string)() SetAppliedConditionalAccessPolicies(value []AppliedConditionalAccessPolicyable)() SetAppliedEventListeners(value []AppliedAuthenticationEventListenerable)() - SetAppTokenProtectionStatus(value *TokenProtectionStatus)() + SetAppTokenProtectionStatus(value *SignIn_appTokenProtectionStatus)() SetAuthenticationAppDeviceDetails(value AuthenticationAppDeviceDetailsable)() SetAuthenticationAppPolicyEvaluationDetails(value []AuthenticationAppPolicyDetailsable)() SetAuthenticationContextClassReferences(value []AuthenticationContextable)() SetAuthenticationDetails(value []AuthenticationDetailable)() SetAuthenticationMethodsUsed(value []string)() SetAuthenticationProcessingDetails(value []KeyValueable)() - SetAuthenticationProtocol(value *ProtocolType)() + SetAuthenticationProtocol(value *SignIn_authenticationProtocol)() SetAuthenticationRequirement(value *string)() SetAuthenticationRequirementPolicies(value []AuthenticationRequirementPolicyable)() SetAutonomousSystemNumber(value *int32)() SetAzureResourceId(value *string)() SetClientAppUsed(value *string)() - SetClientCredentialType(value *ClientCredentialType)() - SetConditionalAccessStatus(value *ConditionalAccessStatus)() + SetClientCredentialType(value *SignIn_clientCredentialType)() + SetConditionalAccessStatus(value *SignIn_conditionalAccessStatus)() SetCorrelationId(value *string)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetCrossTenantAccessType(value *SignInAccessType)() + SetCrossTenantAccessType(value *SignIn_crossTenantAccessType)() SetDeviceDetail(value DeviceDetailable)() SetFederatedCredentialId(value *string)() SetFlaggedForReview(value *bool)() SetHomeTenantId(value *string)() SetHomeTenantName(value *string)() - SetIncomingTokenType(value *IncomingTokenType)() + SetIncomingTokenType(value *SignIn_incomingTokenType)() SetIpAddress(value *string)() SetIpAddressFromResourceProvider(value *string)() SetIsInteractive(value *bool)() @@ -2560,18 +2560,18 @@ type SignInable interface { SetMfaDetail(value MfaDetailable)() SetNetworkLocationDetails(value []NetworkLocationDetailable)() SetOriginalRequestId(value *string)() - SetOriginalTransferMethod(value *OriginalTransferMethods)() + SetOriginalTransferMethod(value *SignIn_originalTransferMethod)() SetPrivateLinkDetails(value PrivateLinkDetailsable)() SetProcessingTimeInMilliseconds(value *int32)() SetResourceDisplayName(value *string)() SetResourceId(value *string)() SetResourceServicePrincipalId(value *string)() SetResourceTenantId(value *string)() - SetRiskDetail(value *RiskDetail)() + SetRiskDetail(value *SignIn_riskDetail)() SetRiskEventTypesV2(value []string)() - SetRiskLevelAggregated(value *RiskLevel)() - SetRiskLevelDuringSignIn(value *RiskLevel)() - SetRiskState(value *RiskState)() + SetRiskLevelAggregated(value *SignIn_riskLevelAggregated)() + SetRiskLevelDuringSignIn(value *SignIn_riskLevelDuringSignIn)() + SetRiskState(value *SignIn_riskState)() SetServicePrincipalCredentialKeyId(value *string)() SetServicePrincipalCredentialThumbprint(value *string)() SetServicePrincipalId(value *string)() @@ -2579,15 +2579,15 @@ type SignInable interface { SetSessionLifetimePolicies(value []SessionLifetimePolicyable)() SetSignInEventTypes(value []string)() SetSignInIdentifier(value *string)() - SetSignInIdentifierType(value *SignInIdentifierType)() - SetSignInTokenProtectionStatus(value *TokenProtectionStatus)() + SetSignInIdentifierType(value *SignIn_signInIdentifierType)() + SetSignInTokenProtectionStatus(value *SignIn_signInTokenProtectionStatus)() SetStatus(value SignInStatusable)() SetTokenIssuerName(value *string)() - SetTokenIssuerType(value *TokenIssuerType)() + SetTokenIssuerType(value *SignIn_tokenIssuerType)() SetUniqueTokenIdentifier(value *string)() SetUserAgent(value *string)() SetUserDisplayName(value *string)() SetUserId(value *string)() SetUserPrincipalName(value *string)() - SetUserType(value *SignInUserType)() + SetUserType(value *SignIn_userType)() } diff --git a/models/sign_in_access_type.go b/models/sign_in_access_type.go deleted file mode 100644 index 1072bd249b3..00000000000 --- a/models/sign_in_access_type.go +++ /dev/null @@ -1,62 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type SignInAccessType int - -const ( - NONE_SIGNINACCESSTYPE SignInAccessType = iota - B2BCOLLABORATION_SIGNINACCESSTYPE - B2BDIRECTCONNECT_SIGNINACCESSTYPE - MICROSOFTSUPPORT_SIGNINACCESSTYPE - SERVICEPROVIDER_SIGNINACCESSTYPE - UNKNOWNFUTUREVALUE_SIGNINACCESSTYPE - PASSTHROUGH_SIGNINACCESSTYPE -) - -func (i SignInAccessType) String() string { - var values []string - for p := SignInAccessType(1); p <= PASSTHROUGH_SIGNINACCESSTYPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "b2bCollaboration", "b2bDirectConnect", "microsoftSupport", "serviceProvider", "unknownFutureValue", "passthrough"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseSignInAccessType(v string) (any, error) { - var result SignInAccessType - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_SIGNINACCESSTYPE - case "b2bCollaboration": - result |= B2BCOLLABORATION_SIGNINACCESSTYPE - case "b2bDirectConnect": - result |= B2BDIRECTCONNECT_SIGNINACCESSTYPE - case "microsoftSupport": - result |= MICROSOFTSUPPORT_SIGNINACCESSTYPE - case "serviceProvider": - result |= SERVICEPROVIDER_SIGNINACCESSTYPE - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_SIGNINACCESSTYPE - case "passthrough": - result |= PASSTHROUGH_SIGNINACCESSTYPE - default: - return 0, errors.New("Unknown SignInAccessType value: " + v) - } - } - return &result, nil -} -func SerializeSignInAccessType(values []SignInAccessType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SignInAccessType) isMultiValue() bool { - return true -} diff --git a/models/sign_in_app_token_protection_status.go b/models/sign_in_app_token_protection_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_authentication_protocol.go b/models/sign_in_authentication_protocol.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_client_credential_type.go b/models/sign_in_client_credential_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_conditional_access_status.go b/models/sign_in_conditional_access_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_cross_tenant_access_type.go b/models/sign_in_cross_tenant_access_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_frequency_authentication_type.go b/models/sign_in_frequency_authentication_type.go deleted file mode 100644 index f5d28e0a983..00000000000 --- a/models/sign_in_frequency_authentication_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type SignInFrequencyAuthenticationType int - -const ( - PRIMARYANDSECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE SignInFrequencyAuthenticationType = iota - SECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE - UNKNOWNFUTUREVALUE_SIGNINFREQUENCYAUTHENTICATIONTYPE -) - -func (i SignInFrequencyAuthenticationType) String() string { - return []string{"primaryAndSecondaryAuthentication", "secondaryAuthentication", "unknownFutureValue"}[i] -} -func ParseSignInFrequencyAuthenticationType(v string) (any, error) { - result := PRIMARYANDSECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE - switch v { - case "primaryAndSecondaryAuthentication": - result = PRIMARYANDSECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE - case "secondaryAuthentication": - result = SECONDARYAUTHENTICATION_SIGNINFREQUENCYAUTHENTICATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIGNINFREQUENCYAUTHENTICATIONTYPE - default: - return 0, errors.New("Unknown SignInFrequencyAuthenticationType value: " + v) - } - return &result, nil -} -func SerializeSignInFrequencyAuthenticationType(values []SignInFrequencyAuthenticationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SignInFrequencyAuthenticationType) isMultiValue() bool { - return false -} diff --git a/models/sign_in_frequency_interval.go b/models/sign_in_frequency_interval.go deleted file mode 100644 index eaf77bd34d9..00000000000 --- a/models/sign_in_frequency_interval.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type SignInFrequencyInterval int - -const ( - TIMEBASED_SIGNINFREQUENCYINTERVAL SignInFrequencyInterval = iota - EVERYTIME_SIGNINFREQUENCYINTERVAL - UNKNOWNFUTUREVALUE_SIGNINFREQUENCYINTERVAL -) - -func (i SignInFrequencyInterval) String() string { - return []string{"timeBased", "everyTime", "unknownFutureValue"}[i] -} -func ParseSignInFrequencyInterval(v string) (any, error) { - result := TIMEBASED_SIGNINFREQUENCYINTERVAL - switch v { - case "timeBased": - result = TIMEBASED_SIGNINFREQUENCYINTERVAL - case "everyTime": - result = EVERYTIME_SIGNINFREQUENCYINTERVAL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIGNINFREQUENCYINTERVAL - default: - return 0, errors.New("Unknown SignInFrequencyInterval value: " + v) - } - return &result, nil -} -func SerializeSignInFrequencyInterval(values []SignInFrequencyInterval) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SignInFrequencyInterval) isMultiValue() bool { - return false -} diff --git a/models/sign_in_frequency_session_control.go b/models/sign_in_frequency_session_control.go index 1a9a8d45e1e..91ae1b60c6e 100644 --- a/models/sign_in_frequency_session_control.go +++ b/models/sign_in_frequency_session_control.go @@ -22,13 +22,13 @@ func CreateSignInFrequencySessionControlFromDiscriminatorValue(parseNode i878a80 return NewSignInFrequencySessionControl(), nil } // GetAuthenticationType gets the authenticationType property value. The possible values are primaryAndSecondaryAuthentication, secondaryAuthentication, unknownFutureValue. -func (m *SignInFrequencySessionControl) GetAuthenticationType()(*SignInFrequencyAuthenticationType) { +func (m *SignInFrequencySessionControl) GetAuthenticationType()(*SignInFrequencySessionControl_authenticationType) { val, err := m.GetBackingStore().Get("authenticationType") if err != nil { panic(err) } if val != nil { - return val.(*SignInFrequencyAuthenticationType) + return val.(*SignInFrequencySessionControl_authenticationType) } return nil } @@ -36,32 +36,32 @@ func (m *SignInFrequencySessionControl) GetAuthenticationType()(*SignInFrequency func (m *SignInFrequencySessionControl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ConditionalAccessSessionControl.GetFieldDeserializers() res["authenticationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSignInFrequencyAuthenticationType) + val, err := n.GetEnumValue(ParseSignInFrequencySessionControl_authenticationType) if err != nil { return err } if val != nil { - m.SetAuthenticationType(val.(*SignInFrequencyAuthenticationType)) + m.SetAuthenticationType(val.(*SignInFrequencySessionControl_authenticationType)) } return nil } res["frequencyInterval"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSignInFrequencyInterval) + val, err := n.GetEnumValue(ParseSignInFrequencySessionControl_frequencyInterval) if err != nil { return err } if val != nil { - m.SetFrequencyInterval(val.(*SignInFrequencyInterval)) + m.SetFrequencyInterval(val.(*SignInFrequencySessionControl_frequencyInterval)) } return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSigninFrequencyType) + val, err := n.GetEnumValue(ParseSignInFrequencySessionControl_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*SigninFrequencyType)) + m.SetTypeEscaped(val.(*SignInFrequencySessionControl_type)) } return nil } @@ -78,24 +78,24 @@ func (m *SignInFrequencySessionControl) GetFieldDeserializers()(map[string]func( return res } // GetFrequencyInterval gets the frequencyInterval property value. The possible values are timeBased, everyTime, unknownFutureValue. -func (m *SignInFrequencySessionControl) GetFrequencyInterval()(*SignInFrequencyInterval) { +func (m *SignInFrequencySessionControl) GetFrequencyInterval()(*SignInFrequencySessionControl_frequencyInterval) { val, err := m.GetBackingStore().Get("frequencyInterval") if err != nil { panic(err) } if val != nil { - return val.(*SignInFrequencyInterval) + return val.(*SignInFrequencySessionControl_frequencyInterval) } return nil } // GetTypeEscaped gets the type property value. Possible values are: days, hours, or null if frequencyInterval is everyTime . -func (m *SignInFrequencySessionControl) GetTypeEscaped()(*SigninFrequencyType) { +func (m *SignInFrequencySessionControl) GetTypeEscaped()(*SignInFrequencySessionControl_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*SigninFrequencyType) + return val.(*SignInFrequencySessionControl_type) } return nil } @@ -146,21 +146,21 @@ func (m *SignInFrequencySessionControl) Serialize(writer i878a80d2330e89d2689638 return nil } // SetAuthenticationType sets the authenticationType property value. The possible values are primaryAndSecondaryAuthentication, secondaryAuthentication, unknownFutureValue. -func (m *SignInFrequencySessionControl) SetAuthenticationType(value *SignInFrequencyAuthenticationType)() { +func (m *SignInFrequencySessionControl) SetAuthenticationType(value *SignInFrequencySessionControl_authenticationType)() { err := m.GetBackingStore().Set("authenticationType", value) if err != nil { panic(err) } } // SetFrequencyInterval sets the frequencyInterval property value. The possible values are timeBased, everyTime, unknownFutureValue. -func (m *SignInFrequencySessionControl) SetFrequencyInterval(value *SignInFrequencyInterval)() { +func (m *SignInFrequencySessionControl) SetFrequencyInterval(value *SignInFrequencySessionControl_frequencyInterval)() { err := m.GetBackingStore().Set("frequencyInterval", value) if err != nil { panic(err) } } // SetTypeEscaped sets the type property value. Possible values are: days, hours, or null if frequencyInterval is everyTime . -func (m *SignInFrequencySessionControl) SetTypeEscaped(value *SigninFrequencyType)() { +func (m *SignInFrequencySessionControl) SetTypeEscaped(value *SignInFrequencySessionControl_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -177,12 +177,12 @@ func (m *SignInFrequencySessionControl) SetValue(value *int32)() { type SignInFrequencySessionControlable interface { ConditionalAccessSessionControlable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAuthenticationType()(*SignInFrequencyAuthenticationType) - GetFrequencyInterval()(*SignInFrequencyInterval) - GetTypeEscaped()(*SigninFrequencyType) + GetAuthenticationType()(*SignInFrequencySessionControl_authenticationType) + GetFrequencyInterval()(*SignInFrequencySessionControl_frequencyInterval) + GetTypeEscaped()(*SignInFrequencySessionControl_type) GetValue()(*int32) - SetAuthenticationType(value *SignInFrequencyAuthenticationType)() - SetFrequencyInterval(value *SignInFrequencyInterval)() - SetTypeEscaped(value *SigninFrequencyType)() + SetAuthenticationType(value *SignInFrequencySessionControl_authenticationType)() + SetFrequencyInterval(value *SignInFrequencySessionControl_frequencyInterval)() + SetTypeEscaped(value *SignInFrequencySessionControl_type)() SetValue(value *int32)() } diff --git a/models/sign_in_frequency_session_control_authentication_type.go b/models/sign_in_frequency_session_control_authentication_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_frequency_session_control_frequency_interval.go b/models/sign_in_frequency_session_control_frequency_interval.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_frequency_session_control_type.go b/models/sign_in_frequency_session_control_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_identifier_type.go b/models/sign_in_identifier_type.go deleted file mode 100644 index 5ecbe471037..00000000000 --- a/models/sign_in_identifier_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type SignInIdentifierType int - -const ( - USERPRINCIPALNAME_SIGNINIDENTIFIERTYPE SignInIdentifierType = iota - PHONENUMBER_SIGNINIDENTIFIERTYPE - PROXYADDRESS_SIGNINIDENTIFIERTYPE - QRCODE_SIGNINIDENTIFIERTYPE - ONPREMISESUSERPRINCIPALNAME_SIGNINIDENTIFIERTYPE - UNKNOWNFUTUREVALUE_SIGNINIDENTIFIERTYPE -) - -func (i SignInIdentifierType) String() string { - return []string{"userPrincipalName", "phoneNumber", "proxyAddress", "qrCode", "onPremisesUserPrincipalName", "unknownFutureValue"}[i] -} -func ParseSignInIdentifierType(v string) (any, error) { - result := USERPRINCIPALNAME_SIGNINIDENTIFIERTYPE - switch v { - case "userPrincipalName": - result = USERPRINCIPALNAME_SIGNINIDENTIFIERTYPE - case "phoneNumber": - result = PHONENUMBER_SIGNINIDENTIFIERTYPE - case "proxyAddress": - result = PROXYADDRESS_SIGNINIDENTIFIERTYPE - case "qrCode": - result = QRCODE_SIGNINIDENTIFIERTYPE - case "onPremisesUserPrincipalName": - result = ONPREMISESUSERPRINCIPALNAME_SIGNINIDENTIFIERTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIGNINIDENTIFIERTYPE - default: - return 0, errors.New("Unknown SignInIdentifierType value: " + v) - } - return &result, nil -} -func SerializeSignInIdentifierType(values []SignInIdentifierType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SignInIdentifierType) isMultiValue() bool { - return false -} diff --git a/models/sign_in_incoming_token_type.go b/models/sign_in_incoming_token_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_original_transfer_method.go b/models/sign_in_original_transfer_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_preferences.go b/models/sign_in_preferences.go index 13c38c1c7eb..f38f861bfc1 100644 --- a/models/sign_in_preferences.go +++ b/models/sign_in_preferences.go @@ -62,12 +62,12 @@ func (m *SignInPreferences) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["userPreferredMethodForSecondaryAuthentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserDefaultAuthenticationMethodType) + val, err := n.GetEnumValue(ParseSignInPreferences_userPreferredMethodForSecondaryAuthentication) if err != nil { return err } if val != nil { - m.SetUserPreferredMethodForSecondaryAuthentication(val.(*UserDefaultAuthenticationMethodType)) + m.SetUserPreferredMethodForSecondaryAuthentication(val.(*SignInPreferences_userPreferredMethodForSecondaryAuthentication)) } return nil } @@ -96,13 +96,13 @@ func (m *SignInPreferences) GetOdataType()(*string) { return nil } // GetUserPreferredMethodForSecondaryAuthentication gets the userPreferredMethodForSecondaryAuthentication property value. The default second-factor method used by the user when signing in. If a user is enabled for system-preferred authentication, then this value is ignored except for a few scenarios where a user is authenticating via NPS extension or ADFS adapter. Possible values are push, oath, voiceMobile, voiceAlternateMobile, voiceOffice, sms, and unknownFutureValue -func (m *SignInPreferences) GetUserPreferredMethodForSecondaryAuthentication()(*UserDefaultAuthenticationMethodType) { +func (m *SignInPreferences) GetUserPreferredMethodForSecondaryAuthentication()(*SignInPreferences_userPreferredMethodForSecondaryAuthentication) { val, err := m.GetBackingStore().Get("userPreferredMethodForSecondaryAuthentication") if err != nil { panic(err) } if val != nil { - return val.(*UserDefaultAuthenticationMethodType) + return val.(*SignInPreferences_userPreferredMethodForSecondaryAuthentication) } return nil } @@ -161,7 +161,7 @@ func (m *SignInPreferences) SetOdataType(value *string)() { } } // SetUserPreferredMethodForSecondaryAuthentication sets the userPreferredMethodForSecondaryAuthentication property value. The default second-factor method used by the user when signing in. If a user is enabled for system-preferred authentication, then this value is ignored except for a few scenarios where a user is authenticating via NPS extension or ADFS adapter. Possible values are push, oath, voiceMobile, voiceAlternateMobile, voiceOffice, sms, and unknownFutureValue -func (m *SignInPreferences) SetUserPreferredMethodForSecondaryAuthentication(value *UserDefaultAuthenticationMethodType)() { +func (m *SignInPreferences) SetUserPreferredMethodForSecondaryAuthentication(value *SignInPreferences_userPreferredMethodForSecondaryAuthentication)() { err := m.GetBackingStore().Set("userPreferredMethodForSecondaryAuthentication", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type SignInPreferencesable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetIsSystemPreferredAuthenticationMethodEnabled()(*bool) GetOdataType()(*string) - GetUserPreferredMethodForSecondaryAuthentication()(*UserDefaultAuthenticationMethodType) + GetUserPreferredMethodForSecondaryAuthentication()(*SignInPreferences_userPreferredMethodForSecondaryAuthentication) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetIsSystemPreferredAuthenticationMethodEnabled(value *bool)() SetOdataType(value *string)() - SetUserPreferredMethodForSecondaryAuthentication(value *UserDefaultAuthenticationMethodType)() + SetUserPreferredMethodForSecondaryAuthentication(value *SignInPreferences_userPreferredMethodForSecondaryAuthentication)() } diff --git a/models/sign_in_preferences_user_preferred_method_for_secondary_authentication.go b/models/sign_in_preferences_user_preferred_method_for_secondary_authentication.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_risk_detail.go b/models/sign_in_risk_detail.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_risk_level_aggregated.go b/models/sign_in_risk_level_aggregated.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_risk_level_during_sign_in.go b/models/sign_in_risk_level_during_sign_in.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_risk_state.go b/models/sign_in_risk_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_sign_in_identifier_type.go b/models/sign_in_sign_in_identifier_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_sign_in_token_protection_status.go b/models/sign_in_sign_in_token_protection_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_token_issuer_type.go b/models/sign_in_token_issuer_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/sign_in_user_type.go b/models/sign_in_user_type.go index cae813bc73d..e69de29bb2d 100644 --- a/models/sign_in_user_type.go +++ b/models/sign_in_user_type.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type SignInUserType int - -const ( - MEMBER_SIGNINUSERTYPE SignInUserType = iota - GUEST_SIGNINUSERTYPE - UNKNOWNFUTUREVALUE_SIGNINUSERTYPE -) - -func (i SignInUserType) String() string { - return []string{"member", "guest", "unknownFutureValue"}[i] -} -func ParseSignInUserType(v string) (any, error) { - result := MEMBER_SIGNINUSERTYPE - switch v { - case "member": - result = MEMBER_SIGNINUSERTYPE - case "guest": - result = GUEST_SIGNINUSERTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIGNINUSERTYPE - default: - return 0, errors.New("Unknown SignInUserType value: " + v) - } - return &result, nil -} -func SerializeSignInUserType(values []SignInUserType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SignInUserType) isMultiValue() bool { - return false -} diff --git a/models/signin_frequency_type.go b/models/signin_frequency_type.go deleted file mode 100644 index a91461e543f..00000000000 --- a/models/signin_frequency_type.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type SigninFrequencyType int - -const ( - DAYS_SIGNINFREQUENCYTYPE SigninFrequencyType = iota - HOURS_SIGNINFREQUENCYTYPE -) - -func (i SigninFrequencyType) String() string { - return []string{"days", "hours"}[i] -} -func ParseSigninFrequencyType(v string) (any, error) { - result := DAYS_SIGNINFREQUENCYTYPE - switch v { - case "days": - result = DAYS_SIGNINFREQUENCYTYPE - case "hours": - result = HOURS_SIGNINFREQUENCYTYPE - default: - return 0, errors.New("Unknown SigninFrequencyType value: " + v) - } - return &result, nil -} -func SerializeSigninFrequencyType(values []SigninFrequencyType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SigninFrequencyType) isMultiValue() bool { - return false -} diff --git a/models/simulation.go b/models/simulation.go index 78849dfb5b1..7fa582378ca 100644 --- a/models/simulation.go +++ b/models/simulation.go @@ -21,24 +21,24 @@ func CreateSimulationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3 return NewSimulation(), nil } // GetAttackTechnique gets the attackTechnique property value. The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue, oAuthConsentGrant. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: oAuthConsentGrant. For more information on the types of social engineering attack techniques, see simulations. -func (m *Simulation) GetAttackTechnique()(*SimulationAttackTechnique) { +func (m *Simulation) GetAttackTechnique()(*Simulation_attackTechnique) { val, err := m.GetBackingStore().Get("attackTechnique") if err != nil { panic(err) } if val != nil { - return val.(*SimulationAttackTechnique) + return val.(*Simulation_attackTechnique) } return nil } // GetAttackType gets the attackType property value. Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue. -func (m *Simulation) GetAttackType()(*SimulationAttackType) { +func (m *Simulation) GetAttackType()(*Simulation_attackType) { val, err := m.GetBackingStore().Get("attackType") if err != nil { panic(err) } if val != nil { - return val.(*SimulationAttackType) + return val.(*Simulation_attackType) } return nil } @@ -145,22 +145,22 @@ func (m *Simulation) GetExcludedAccountTarget()(AccountTargetContentable) { func (m *Simulation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["attackTechnique"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationAttackTechnique) + val, err := n.GetEnumValue(ParseSimulation_attackTechnique) if err != nil { return err } if val != nil { - m.SetAttackTechnique(val.(*SimulationAttackTechnique)) + m.SetAttackTechnique(val.(*Simulation_attackTechnique)) } return nil } res["attackType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationAttackType) + val, err := n.GetEnumValue(ParseSimulation_attackType) if err != nil { return err } if val != nil { - m.SetAttackType(val.(*SimulationAttackType)) + m.SetAttackType(val.(*Simulation_attackType)) } return nil } @@ -345,12 +345,12 @@ func (m *Simulation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["payloadDeliveryPlatform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePayloadDeliveryPlatform) + val, err := n.GetEnumValue(ParseSimulation_payloadDeliveryPlatform) if err != nil { return err } if val != nil { - m.SetPayloadDeliveryPlatform(val.(*PayloadDeliveryPlatform)) + m.SetPayloadDeliveryPlatform(val.(*Simulation_payloadDeliveryPlatform)) } return nil } @@ -365,12 +365,12 @@ func (m *Simulation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationStatus) + val, err := n.GetEnumValue(ParseSimulation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SimulationStatus)) + m.SetStatus(val.(*Simulation_status)) } return nil } @@ -486,13 +486,13 @@ func (m *Simulation) GetPayload()(Payloadable) { return nil } // GetPayloadDeliveryPlatform gets the payloadDeliveryPlatform property value. Method of delivery of the phishing payload used in the attack simulation and training campaign. Possible values are: unknown, sms, email, teams, unknownFutureValue. -func (m *Simulation) GetPayloadDeliveryPlatform()(*PayloadDeliveryPlatform) { +func (m *Simulation) GetPayloadDeliveryPlatform()(*Simulation_payloadDeliveryPlatform) { val, err := m.GetBackingStore().Get("payloadDeliveryPlatform") if err != nil { panic(err) } if val != nil { - return val.(*PayloadDeliveryPlatform) + return val.(*Simulation_payloadDeliveryPlatform) } return nil } @@ -508,13 +508,13 @@ func (m *Simulation) GetReport()(SimulationReportable) { return nil } // GetStatus gets the status property value. Status of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, draft, running, scheduled, succeeded, failed, cancelled, excluded, unknownFutureValue. -func (m *Simulation) GetStatus()(*SimulationStatus) { +func (m *Simulation) GetStatus()(*Simulation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SimulationStatus) + return val.(*Simulation_status) } return nil } @@ -686,14 +686,14 @@ func (m *Simulation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return nil } // SetAttackTechnique sets the attackTechnique property value. The social engineering technique used in the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, credentialHarvesting, attachmentMalware, driveByUrl, linkInAttachment, linkToMalwareFile, unknownFutureValue, oAuthConsentGrant. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: oAuthConsentGrant. For more information on the types of social engineering attack techniques, see simulations. -func (m *Simulation) SetAttackTechnique(value *SimulationAttackTechnique)() { +func (m *Simulation) SetAttackTechnique(value *Simulation_attackTechnique)() { err := m.GetBackingStore().Set("attackTechnique", value) if err != nil { panic(err) } } // SetAttackType sets the attackType property value. Attack type of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, social, cloud, endpoint, unknownFutureValue. -func (m *Simulation) SetAttackType(value *SimulationAttackType)() { +func (m *Simulation) SetAttackType(value *Simulation_attackType)() { err := m.GetBackingStore().Set("attackType", value) if err != nil { panic(err) @@ -826,7 +826,7 @@ func (m *Simulation) SetPayload(value Payloadable)() { } } // SetPayloadDeliveryPlatform sets the payloadDeliveryPlatform property value. Method of delivery of the phishing payload used in the attack simulation and training campaign. Possible values are: unknown, sms, email, teams, unknownFutureValue. -func (m *Simulation) SetPayloadDeliveryPlatform(value *PayloadDeliveryPlatform)() { +func (m *Simulation) SetPayloadDeliveryPlatform(value *Simulation_payloadDeliveryPlatform)() { err := m.GetBackingStore().Set("payloadDeliveryPlatform", value) if err != nil { panic(err) @@ -840,7 +840,7 @@ func (m *Simulation) SetReport(value SimulationReportable)() { } } // SetStatus sets the status property value. Status of the attack simulation and training campaign. Supports $filter and $orderby. Possible values are: unknown, draft, running, scheduled, succeeded, failed, cancelled, excluded, unknownFutureValue. -func (m *Simulation) SetStatus(value *SimulationStatus)() { +func (m *Simulation) SetStatus(value *Simulation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -857,8 +857,8 @@ func (m *Simulation) SetTrainingSetting(value TrainingSettingable)() { type Simulationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAttackTechnique()(*SimulationAttackTechnique) - GetAttackType()(*SimulationAttackType) + GetAttackTechnique()(*Simulation_attackTechnique) + GetAttackType()(*Simulation_attackType) GetAutomationId()(*string) GetCompletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCreatedBy()(EmailIdentityable) @@ -877,12 +877,12 @@ type Simulationable interface { GetLoginPage()(LoginPageable) GetOAuthConsentAppDetail()(OAuthConsentAppDetailable) GetPayload()(Payloadable) - GetPayloadDeliveryPlatform()(*PayloadDeliveryPlatform) + GetPayloadDeliveryPlatform()(*Simulation_payloadDeliveryPlatform) GetReport()(SimulationReportable) - GetStatus()(*SimulationStatus) + GetStatus()(*Simulation_status) GetTrainingSetting()(TrainingSettingable) - SetAttackTechnique(value *SimulationAttackTechnique)() - SetAttackType(value *SimulationAttackType)() + SetAttackTechnique(value *Simulation_attackTechnique)() + SetAttackType(value *Simulation_attackType)() SetAutomationId(value *string)() SetCompletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCreatedBy(value EmailIdentityable)() @@ -901,8 +901,8 @@ type Simulationable interface { SetLoginPage(value LoginPageable)() SetOAuthConsentAppDetail(value OAuthConsentAppDetailable)() SetPayload(value Payloadable)() - SetPayloadDeliveryPlatform(value *PayloadDeliveryPlatform)() + SetPayloadDeliveryPlatform(value *Simulation_payloadDeliveryPlatform)() SetReport(value SimulationReportable)() - SetStatus(value *SimulationStatus)() + SetStatus(value *Simulation_status)() SetTrainingSetting(value TrainingSettingable)() } diff --git a/models/simulation_attack_technique.go b/models/simulation_attack_technique.go index ecef345b40c..e69de29bb2d 100644 --- a/models/simulation_attack_technique.go +++ b/models/simulation_attack_technique.go @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type SimulationAttackTechnique int - -const ( - UNKNOWN_SIMULATIONATTACKTECHNIQUE SimulationAttackTechnique = iota - CREDENTIALHARVESTING_SIMULATIONATTACKTECHNIQUE - ATTACHMENTMALWARE_SIMULATIONATTACKTECHNIQUE - DRIVEBYURL_SIMULATIONATTACKTECHNIQUE - LINKINATTACHMENT_SIMULATIONATTACKTECHNIQUE - LINKTOMALWAREFILE_SIMULATIONATTACKTECHNIQUE - UNKNOWNFUTUREVALUE_SIMULATIONATTACKTECHNIQUE - OAUTHCONSENTGRANT_SIMULATIONATTACKTECHNIQUE -) - -func (i SimulationAttackTechnique) String() string { - return []string{"unknown", "credentialHarvesting", "attachmentMalware", "driveByUrl", "linkInAttachment", "linkToMalwareFile", "unknownFutureValue", "oAuthConsentGrant"}[i] -} -func ParseSimulationAttackTechnique(v string) (any, error) { - result := UNKNOWN_SIMULATIONATTACKTECHNIQUE - switch v { - case "unknown": - result = UNKNOWN_SIMULATIONATTACKTECHNIQUE - case "credentialHarvesting": - result = CREDENTIALHARVESTING_SIMULATIONATTACKTECHNIQUE - case "attachmentMalware": - result = ATTACHMENTMALWARE_SIMULATIONATTACKTECHNIQUE - case "driveByUrl": - result = DRIVEBYURL_SIMULATIONATTACKTECHNIQUE - case "linkInAttachment": - result = LINKINATTACHMENT_SIMULATIONATTACKTECHNIQUE - case "linkToMalwareFile": - result = LINKTOMALWAREFILE_SIMULATIONATTACKTECHNIQUE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIMULATIONATTACKTECHNIQUE - case "oAuthConsentGrant": - result = OAUTHCONSENTGRANT_SIMULATIONATTACKTECHNIQUE - default: - return 0, errors.New("Unknown SimulationAttackTechnique value: " + v) - } - return &result, nil -} -func SerializeSimulationAttackTechnique(values []SimulationAttackTechnique) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SimulationAttackTechnique) isMultiValue() bool { - return false -} diff --git a/models/simulation_attack_type.go b/models/simulation_attack_type.go index 070e161ce1e..e69de29bb2d 100644 --- a/models/simulation_attack_type.go +++ b/models/simulation_attack_type.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type SimulationAttackType int - -const ( - UNKNOWN_SIMULATIONATTACKTYPE SimulationAttackType = iota - SOCIAL_SIMULATIONATTACKTYPE - CLOUD_SIMULATIONATTACKTYPE - ENDPOINT_SIMULATIONATTACKTYPE - UNKNOWNFUTUREVALUE_SIMULATIONATTACKTYPE -) - -func (i SimulationAttackType) String() string { - return []string{"unknown", "social", "cloud", "endpoint", "unknownFutureValue"}[i] -} -func ParseSimulationAttackType(v string) (any, error) { - result := UNKNOWN_SIMULATIONATTACKTYPE - switch v { - case "unknown": - result = UNKNOWN_SIMULATIONATTACKTYPE - case "social": - result = SOCIAL_SIMULATIONATTACKTYPE - case "cloud": - result = CLOUD_SIMULATIONATTACKTYPE - case "endpoint": - result = ENDPOINT_SIMULATIONATTACKTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIMULATIONATTACKTYPE - default: - return 0, errors.New("Unknown SimulationAttackType value: " + v) - } - return &result, nil -} -func SerializeSimulationAttackType(values []SimulationAttackType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SimulationAttackType) isMultiValue() bool { - return false -} diff --git a/models/simulation_automation.go b/models/simulation_automation.go index 0a7240b7b2a..11c190c11ff 100644 --- a/models/simulation_automation.go +++ b/models/simulation_automation.go @@ -164,12 +164,12 @@ func (m *SimulationAutomation) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationAutomationStatus) + val, err := n.GetEnumValue(ParseSimulationAutomation_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SimulationAutomationStatus)) + m.SetStatus(val.(*SimulationAutomation_status)) } return nil } @@ -231,13 +231,13 @@ func (m *SimulationAutomation) GetRuns()([]SimulationAutomationRunable) { return nil } // GetStatus gets the status property value. Status of the attack simulation automation. Supports $filter and $orderby. The possible values are: unknown, draft, notRunning, running, completed, unknownFutureValue. -func (m *SimulationAutomation) GetStatus()(*SimulationAutomationStatus) { +func (m *SimulationAutomation) GetStatus()(*SimulationAutomation_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SimulationAutomationStatus) + return val.(*SimulationAutomation_status) } return nil } @@ -380,7 +380,7 @@ func (m *SimulationAutomation) SetRuns(value []SimulationAutomationRunable)() { } } // SetStatus sets the status property value. Status of the attack simulation automation. Supports $filter and $orderby. The possible values are: unknown, draft, notRunning, running, completed, unknownFutureValue. -func (m *SimulationAutomation) SetStatus(value *SimulationAutomationStatus)() { +func (m *SimulationAutomation) SetStatus(value *SimulationAutomation_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -399,7 +399,7 @@ type SimulationAutomationable interface { GetLastRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetNextRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRuns()([]SimulationAutomationRunable) - GetStatus()(*SimulationAutomationStatus) + GetStatus()(*SimulationAutomation_status) SetCreatedBy(value EmailIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() @@ -409,5 +409,5 @@ type SimulationAutomationable interface { SetLastRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetNextRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRuns(value []SimulationAutomationRunable)() - SetStatus(value *SimulationAutomationStatus)() + SetStatus(value *SimulationAutomation_status)() } diff --git a/models/simulation_automation_run.go b/models/simulation_automation_run.go index fd061a7cc3d..0b6c4609307 100644 --- a/models/simulation_automation_run.go +++ b/models/simulation_automation_run.go @@ -65,12 +65,12 @@ func (m *SimulationAutomationRun) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationAutomationRunStatus) + val, err := n.GetEnumValue(ParseSimulationAutomationRun_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SimulationAutomationRunStatus)) + m.SetStatus(val.(*SimulationAutomationRun_status)) } return nil } @@ -99,13 +99,13 @@ func (m *SimulationAutomationRun) GetStartDateTime()(*i336074805fc853987abe6f7fe return nil } // GetStatus gets the status property value. Status of the attack simulation automation run. The possible values are: unknown, running, succeeded, failed, skipped, unknownFutureValue. -func (m *SimulationAutomationRun) GetStatus()(*SimulationAutomationRunStatus) { +func (m *SimulationAutomationRun) GetStatus()(*SimulationAutomationRun_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SimulationAutomationRunStatus) + return val.(*SimulationAutomationRun_status) } return nil } @@ -164,7 +164,7 @@ func (m *SimulationAutomationRun) SetStartDateTime(value *i336074805fc853987abe6 } } // SetStatus sets the status property value. Status of the attack simulation automation run. The possible values are: unknown, running, succeeded, failed, skipped, unknownFutureValue. -func (m *SimulationAutomationRun) SetStatus(value *SimulationAutomationRunStatus)() { +func (m *SimulationAutomationRun) SetStatus(value *SimulationAutomationRun_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -177,9 +177,9 @@ type SimulationAutomationRunable interface { GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSimulationId()(*string) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*SimulationAutomationRunStatus) + GetStatus()(*SimulationAutomationRun_status) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSimulationId(value *string)() SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *SimulationAutomationRunStatus)() + SetStatus(value *SimulationAutomationRun_status)() } diff --git a/models/simulation_automation_run_status.go b/models/simulation_automation_run_status.go index bc62394c77d..e69de29bb2d 100644 --- a/models/simulation_automation_run_status.go +++ b/models/simulation_automation_run_status.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type SimulationAutomationRunStatus int - -const ( - UNKNOWN_SIMULATIONAUTOMATIONRUNSTATUS SimulationAutomationRunStatus = iota - RUNNING_SIMULATIONAUTOMATIONRUNSTATUS - SUCCEEDED_SIMULATIONAUTOMATIONRUNSTATUS - FAILED_SIMULATIONAUTOMATIONRUNSTATUS - SKIPPED_SIMULATIONAUTOMATIONRUNSTATUS - UNKNOWNFUTUREVALUE_SIMULATIONAUTOMATIONRUNSTATUS -) - -func (i SimulationAutomationRunStatus) String() string { - return []string{"unknown", "running", "succeeded", "failed", "skipped", "unknownFutureValue"}[i] -} -func ParseSimulationAutomationRunStatus(v string) (any, error) { - result := UNKNOWN_SIMULATIONAUTOMATIONRUNSTATUS - switch v { - case "unknown": - result = UNKNOWN_SIMULATIONAUTOMATIONRUNSTATUS - case "running": - result = RUNNING_SIMULATIONAUTOMATIONRUNSTATUS - case "succeeded": - result = SUCCEEDED_SIMULATIONAUTOMATIONRUNSTATUS - case "failed": - result = FAILED_SIMULATIONAUTOMATIONRUNSTATUS - case "skipped": - result = SKIPPED_SIMULATIONAUTOMATIONRUNSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIMULATIONAUTOMATIONRUNSTATUS - default: - return 0, errors.New("Unknown SimulationAutomationRunStatus value: " + v) - } - return &result, nil -} -func SerializeSimulationAutomationRunStatus(values []SimulationAutomationRunStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SimulationAutomationRunStatus) isMultiValue() bool { - return false -} diff --git a/models/simulation_automation_status.go b/models/simulation_automation_status.go index 962fc6be554..e69de29bb2d 100644 --- a/models/simulation_automation_status.go +++ b/models/simulation_automation_status.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type SimulationAutomationStatus int - -const ( - UNKNOWN_SIMULATIONAUTOMATIONSTATUS SimulationAutomationStatus = iota - DRAFT_SIMULATIONAUTOMATIONSTATUS - NOTRUNNING_SIMULATIONAUTOMATIONSTATUS - RUNNING_SIMULATIONAUTOMATIONSTATUS - COMPLETED_SIMULATIONAUTOMATIONSTATUS - UNKNOWNFUTUREVALUE_SIMULATIONAUTOMATIONSTATUS -) - -func (i SimulationAutomationStatus) String() string { - return []string{"unknown", "draft", "notRunning", "running", "completed", "unknownFutureValue"}[i] -} -func ParseSimulationAutomationStatus(v string) (any, error) { - result := UNKNOWN_SIMULATIONAUTOMATIONSTATUS - switch v { - case "unknown": - result = UNKNOWN_SIMULATIONAUTOMATIONSTATUS - case "draft": - result = DRAFT_SIMULATIONAUTOMATIONSTATUS - case "notRunning": - result = NOTRUNNING_SIMULATIONAUTOMATIONSTATUS - case "running": - result = RUNNING_SIMULATIONAUTOMATIONSTATUS - case "completed": - result = COMPLETED_SIMULATIONAUTOMATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIMULATIONAUTOMATIONSTATUS - default: - return 0, errors.New("Unknown SimulationAutomationStatus value: " + v) - } - return &result, nil -} -func SerializeSimulationAutomationStatus(values []SimulationAutomationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SimulationAutomationStatus) isMultiValue() bool { - return false -} diff --git a/models/simulation_content_status.go b/models/simulation_content_status.go deleted file mode 100644 index 215aec9d0a6..00000000000 --- a/models/simulation_content_status.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type SimulationContentStatus int - -const ( - UNKNOWN_SIMULATIONCONTENTSTATUS SimulationContentStatus = iota - DRAFT_SIMULATIONCONTENTSTATUS - READY_SIMULATIONCONTENTSTATUS - ARCHIVE_SIMULATIONCONTENTSTATUS - DELETE_SIMULATIONCONTENTSTATUS - UNKNOWNFUTUREVALUE_SIMULATIONCONTENTSTATUS -) - -func (i SimulationContentStatus) String() string { - return []string{"unknown", "draft", "ready", "archive", "delete", "unknownFutureValue"}[i] -} -func ParseSimulationContentStatus(v string) (any, error) { - result := UNKNOWN_SIMULATIONCONTENTSTATUS - switch v { - case "unknown": - result = UNKNOWN_SIMULATIONCONTENTSTATUS - case "draft": - result = DRAFT_SIMULATIONCONTENTSTATUS - case "ready": - result = READY_SIMULATIONCONTENTSTATUS - case "archive": - result = ARCHIVE_SIMULATIONCONTENTSTATUS - case "delete": - result = DELETE_SIMULATIONCONTENTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIMULATIONCONTENTSTATUS - default: - return 0, errors.New("Unknown SimulationContentStatus value: " + v) - } - return &result, nil -} -func SerializeSimulationContentStatus(values []SimulationContentStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SimulationContentStatus) isMultiValue() bool { - return false -} diff --git a/models/simulation_notification.go b/models/simulation_notification.go index 4aeb08386d4..a337990b9ff 100644 --- a/models/simulation_notification.go +++ b/models/simulation_notification.go @@ -25,25 +25,25 @@ func CreateSimulationNotificationFromDiscriminatorValue(parseNode i878a80d2330e8 func (m *SimulationNotification) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseEndUserNotification.GetFieldDeserializers() res["targettedUserType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTargettedUserType) + val, err := n.GetEnumValue(ParseSimulationNotification_targettedUserType) if err != nil { return err } if val != nil { - m.SetTargettedUserType(val.(*TargettedUserType)) + m.SetTargettedUserType(val.(*SimulationNotification_targettedUserType)) } return nil } return res } // GetTargettedUserType gets the targettedUserType property value. Target user type. Possible values are: unknown, clicked, compromised, allUsers, unknownFutureValue. -func (m *SimulationNotification) GetTargettedUserType()(*TargettedUserType) { +func (m *SimulationNotification) GetTargettedUserType()(*SimulationNotification_targettedUserType) { val, err := m.GetBackingStore().Get("targettedUserType") if err != nil { panic(err) } if val != nil { - return val.(*TargettedUserType) + return val.(*SimulationNotification_targettedUserType) } return nil } @@ -63,7 +63,7 @@ func (m *SimulationNotification) Serialize(writer i878a80d2330e89d26896388a3f487 return nil } // SetTargettedUserType sets the targettedUserType property value. Target user type. Possible values are: unknown, clicked, compromised, allUsers, unknownFutureValue. -func (m *SimulationNotification) SetTargettedUserType(value *TargettedUserType)() { +func (m *SimulationNotification) SetTargettedUserType(value *SimulationNotification_targettedUserType)() { err := m.GetBackingStore().Set("targettedUserType", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *SimulationNotification) SetTargettedUserType(value *TargettedUserType)( type SimulationNotificationable interface { BaseEndUserNotificationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetTargettedUserType()(*TargettedUserType) - SetTargettedUserType(value *TargettedUserType)() + GetTargettedUserType()(*SimulationNotification_targettedUserType) + SetTargettedUserType(value *SimulationNotification_targettedUserType)() } diff --git a/models/simulation_notification_targetted_user_type.go b/models/simulation_notification_targetted_user_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/simulation_payload_delivery_platform.go b/models/simulation_payload_delivery_platform.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/simulation_status.go b/models/simulation_status.go index fea4f938c0d..e69de29bb2d 100644 --- a/models/simulation_status.go +++ b/models/simulation_status.go @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type SimulationStatus int - -const ( - UNKNOWN_SIMULATIONSTATUS SimulationStatus = iota - DRAFT_SIMULATIONSTATUS - RUNNING_SIMULATIONSTATUS - SCHEDULED_SIMULATIONSTATUS - SUCCEEDED_SIMULATIONSTATUS - FAILED_SIMULATIONSTATUS - CANCELLED_SIMULATIONSTATUS - EXCLUDED_SIMULATIONSTATUS - UNKNOWNFUTUREVALUE_SIMULATIONSTATUS -) - -func (i SimulationStatus) String() string { - return []string{"unknown", "draft", "running", "scheduled", "succeeded", "failed", "cancelled", "excluded", "unknownFutureValue"}[i] -} -func ParseSimulationStatus(v string) (any, error) { - result := UNKNOWN_SIMULATIONSTATUS - switch v { - case "unknown": - result = UNKNOWN_SIMULATIONSTATUS - case "draft": - result = DRAFT_SIMULATIONSTATUS - case "running": - result = RUNNING_SIMULATIONSTATUS - case "scheduled": - result = SCHEDULED_SIMULATIONSTATUS - case "succeeded": - result = SUCCEEDED_SIMULATIONSTATUS - case "failed": - result = FAILED_SIMULATIONSTATUS - case "cancelled": - result = CANCELLED_SIMULATIONSTATUS - case "excluded": - result = EXCLUDED_SIMULATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SIMULATIONSTATUS - default: - return 0, errors.New("Unknown SimulationStatus value: " + v) - } - return &result, nil -} -func SerializeSimulationStatus(values []SimulationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SimulationStatus) isMultiValue() bool { - return false -} diff --git a/models/single_sign_on_mode.go b/models/single_sign_on_mode.go deleted file mode 100644 index 67ef3b01397..00000000000 --- a/models/single_sign_on_mode.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type SingleSignOnMode int - -const ( - NONE_SINGLESIGNONMODE SingleSignOnMode = iota - ONPREMISESKERBEROS_SINGLESIGNONMODE - SAML_SINGLESIGNONMODE - PINGHEADERBASED_SINGLESIGNONMODE - AADHEADERBASED_SINGLESIGNONMODE - OAUTHTOKEN_SINGLESIGNONMODE - UNKNOWNFUTUREVALUE_SINGLESIGNONMODE -) - -func (i SingleSignOnMode) String() string { - return []string{"none", "onPremisesKerberos", "saml", "pingHeaderBased", "aadHeaderBased", "oAuthToken", "unknownFutureValue"}[i] -} -func ParseSingleSignOnMode(v string) (any, error) { - result := NONE_SINGLESIGNONMODE - switch v { - case "none": - result = NONE_SINGLESIGNONMODE - case "onPremisesKerberos": - result = ONPREMISESKERBEROS_SINGLESIGNONMODE - case "saml": - result = SAML_SINGLESIGNONMODE - case "pingHeaderBased": - result = PINGHEADERBASED_SINGLESIGNONMODE - case "aadHeaderBased": - result = AADHEADERBASED_SINGLESIGNONMODE - case "oAuthToken": - result = OAUTHTOKEN_SINGLESIGNONMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SINGLESIGNONMODE - default: - return 0, errors.New("Unknown SingleSignOnMode value: " + v) - } - return &result, nil -} -func SerializeSingleSignOnMode(values []SingleSignOnMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SingleSignOnMode) isMultiValue() bool { - return false -} diff --git a/models/site_access_type.go b/models/site_access_type.go deleted file mode 100644 index 9f92fc47baf..00000000000 --- a/models/site_access_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type SiteAccessType int - -const ( - BLOCK_SITEACCESSTYPE SiteAccessType = iota - FULL_SITEACCESSTYPE - LIMITED_SITEACCESSTYPE -) - -func (i SiteAccessType) String() string { - return []string{"block", "full", "limited"}[i] -} -func ParseSiteAccessType(v string) (any, error) { - result := BLOCK_SITEACCESSTYPE - switch v { - case "block": - result = BLOCK_SITEACCESSTYPE - case "full": - result = FULL_SITEACCESSTYPE - case "limited": - result = LIMITED_SITEACCESSTYPE - default: - return 0, errors.New("Unknown SiteAccessType value: " + v) - } - return &result, nil -} -func SerializeSiteAccessType(values []SiteAccessType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SiteAccessType) isMultiValue() bool { - return false -} diff --git a/models/site_page.go b/models/site_page.go index 836d3a78d8a..0e0d121c448 100644 --- a/models/site_page.go +++ b/models/site_page.go @@ -44,12 +44,12 @@ func (m *SitePage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["promotionKind"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePagePromotionType) + val, err := n.GetEnumValue(ParseSitePage_promotionKind) if err != nil { return err } if val != nil { - m.SetPromotionKind(val.(*PagePromotionType)) + m.SetPromotionKind(val.(*SitePage_promotionKind)) } return nil } @@ -122,13 +122,13 @@ func (m *SitePage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return res } // GetPromotionKind gets the promotionKind property value. Indicates the promotion kind of the sitePage. The possible values are: microsoftReserved, page, newsPost, unknownFutureValue. -func (m *SitePage) GetPromotionKind()(*PagePromotionType) { +func (m *SitePage) GetPromotionKind()(*SitePage_promotionKind) { val, err := m.GetBackingStore().Get("promotionKind") if err != nil { panic(err) } if val != nil { - return val.(*PagePromotionType) + return val.(*SitePage_promotionKind) } return nil } @@ -269,7 +269,7 @@ func (m *SitePage) SetCanvasLayout(value CanvasLayoutable)() { } } // SetPromotionKind sets the promotionKind property value. Indicates the promotion kind of the sitePage. The possible values are: microsoftReserved, page, newsPost, unknownFutureValue. -func (m *SitePage) SetPromotionKind(value *PagePromotionType)() { +func (m *SitePage) SetPromotionKind(value *SitePage_promotionKind)() { err := m.GetBackingStore().Set("promotionKind", value) if err != nil { panic(err) @@ -322,7 +322,7 @@ type SitePageable interface { BaseSitePageable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCanvasLayout()(CanvasLayoutable) - GetPromotionKind()(*PagePromotionType) + GetPromotionKind()(*SitePage_promotionKind) GetReactions()(ReactionsFacetable) GetShowComments()(*bool) GetShowRecommendedPages()(*bool) @@ -330,7 +330,7 @@ type SitePageable interface { GetTitleArea()(TitleAreaable) GetWebParts()([]WebPartable) SetCanvasLayout(value CanvasLayoutable)() - SetPromotionKind(value *PagePromotionType)() + SetPromotionKind(value *SitePage_promotionKind)() SetReactions(value ReactionsFacetable)() SetShowComments(value *bool)() SetShowRecommendedPages(value *bool)() diff --git a/models/site_page_promotion_kind.go b/models/site_page_promotion_kind.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/skill_proficiency.go b/models/skill_proficiency.go index 5c139ac91fc..0db34cb2716 100644 --- a/models/skill_proficiency.go +++ b/models/skill_proficiency.go @@ -100,12 +100,12 @@ func (m *SkillProficiency) GetFieldDeserializers()(map[string]func(i878a80d2330e return nil } res["proficiency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSkillProficiencyLevel) + val, err := n.GetEnumValue(ParseSkillProficiency_proficiency) if err != nil { return err } if val != nil { - m.SetProficiency(val.(*SkillProficiencyLevel)) + m.SetProficiency(val.(*SkillProficiency_proficiency)) } return nil } @@ -132,13 +132,13 @@ func (m *SkillProficiency) GetFieldDeserializers()(map[string]func(i878a80d2330e return res } // GetProficiency gets the proficiency property value. Detail of the users proficiency with this skill. Possible values are: elementary, limitedWorking, generalProfessional, advancedProfessional, expert, unknownFutureValue. -func (m *SkillProficiency) GetProficiency()(*SkillProficiencyLevel) { +func (m *SkillProficiency) GetProficiency()(*SkillProficiency_proficiency) { val, err := m.GetBackingStore().Get("proficiency") if err != nil { panic(err) } if val != nil { - return val.(*SkillProficiencyLevel) + return val.(*SkillProficiency_proficiency) } return nil } @@ -231,7 +231,7 @@ func (m *SkillProficiency) SetDisplayName(value *string)() { } } // SetProficiency sets the proficiency property value. Detail of the users proficiency with this skill. Possible values are: elementary, limitedWorking, generalProfessional, advancedProfessional, expert, unknownFutureValue. -func (m *SkillProficiency) SetProficiency(value *SkillProficiencyLevel)() { +func (m *SkillProficiency) SetProficiency(value *SkillProficiency_proficiency)() { err := m.GetBackingStore().Set("proficiency", value) if err != nil { panic(err) @@ -258,13 +258,13 @@ type SkillProficiencyable interface { GetCategories()([]string) GetCollaborationTags()([]string) GetDisplayName()(*string) - GetProficiency()(*SkillProficiencyLevel) + GetProficiency()(*SkillProficiency_proficiency) GetThumbnailUrl()(*string) GetWebUrl()(*string) SetCategories(value []string)() SetCollaborationTags(value []string)() SetDisplayName(value *string)() - SetProficiency(value *SkillProficiencyLevel)() + SetProficiency(value *SkillProficiency_proficiency)() SetThumbnailUrl(value *string)() SetWebUrl(value *string)() } diff --git a/models/skill_proficiency_level.go b/models/skill_proficiency_level.go deleted file mode 100644 index b32c52b5752..00000000000 --- a/models/skill_proficiency_level.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type SkillProficiencyLevel int - -const ( - ELEMENTARY_SKILLPROFICIENCYLEVEL SkillProficiencyLevel = iota - LIMITEDWORKING_SKILLPROFICIENCYLEVEL - GENERALPROFESSIONAL_SKILLPROFICIENCYLEVEL - ADVANCEDPROFESSIONAL_SKILLPROFICIENCYLEVEL - EXPERT_SKILLPROFICIENCYLEVEL - UNKNOWNFUTUREVALUE_SKILLPROFICIENCYLEVEL -) - -func (i SkillProficiencyLevel) String() string { - return []string{"elementary", "limitedWorking", "generalProfessional", "advancedProfessional", "expert", "unknownFutureValue"}[i] -} -func ParseSkillProficiencyLevel(v string) (any, error) { - result := ELEMENTARY_SKILLPROFICIENCYLEVEL - switch v { - case "elementary": - result = ELEMENTARY_SKILLPROFICIENCYLEVEL - case "limitedWorking": - result = LIMITEDWORKING_SKILLPROFICIENCYLEVEL - case "generalProfessional": - result = GENERALPROFESSIONAL_SKILLPROFICIENCYLEVEL - case "advancedProfessional": - result = ADVANCEDPROFESSIONAL_SKILLPROFICIENCYLEVEL - case "expert": - result = EXPERT_SKILLPROFICIENCYLEVEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SKILLPROFICIENCYLEVEL - default: - return 0, errors.New("Unknown SkillProficiencyLevel value: " + v) - } - return &result, nil -} -func SerializeSkillProficiencyLevel(values []SkillProficiencyLevel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SkillProficiencyLevel) isMultiValue() bool { - return false -} diff --git a/models/skill_proficiency_proficiency.go b/models/skill_proficiency_proficiency.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/standard_time_zone_offset.go b/models/standard_time_zone_offset.go index 53dc6534ba0..c55e4f20ec3 100644 --- a/models/standard_time_zone_offset.go +++ b/models/standard_time_zone_offset.go @@ -68,13 +68,13 @@ func (m *StandardTimeZoneOffset) GetDayOccurrence()(*int32) { return nil } // GetDayOfWeek gets the dayOfWeek property value. Represents the day of the week when the transition from daylight saving time to standard time. -func (m *StandardTimeZoneOffset) GetDayOfWeek()(*DayOfWeek) { +func (m *StandardTimeZoneOffset) GetDayOfWeek()(*StandardTimeZoneOffset_dayOfWeek) { val, err := m.GetBackingStore().Get("dayOfWeek") if err != nil { panic(err) } if val != nil { - return val.(*DayOfWeek) + return val.(*StandardTimeZoneOffset_dayOfWeek) } return nil } @@ -92,12 +92,12 @@ func (m *StandardTimeZoneOffset) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["dayOfWeek"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDayOfWeek) + val, err := n.GetEnumValue(ParseStandardTimeZoneOffset_dayOfWeek) if err != nil { return err } if val != nil { - m.SetDayOfWeek(val.(*DayOfWeek)) + m.SetDayOfWeek(val.(*StandardTimeZoneOffset_dayOfWeek)) } return nil } @@ -253,7 +253,7 @@ func (m *StandardTimeZoneOffset) SetDayOccurrence(value *int32)() { } } // SetDayOfWeek sets the dayOfWeek property value. Represents the day of the week when the transition from daylight saving time to standard time. -func (m *StandardTimeZoneOffset) SetDayOfWeek(value *DayOfWeek)() { +func (m *StandardTimeZoneOffset) SetDayOfWeek(value *StandardTimeZoneOffset_dayOfWeek)() { err := m.GetBackingStore().Set("dayOfWeek", value) if err != nil { panic(err) @@ -294,14 +294,14 @@ type StandardTimeZoneOffsetable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDayOccurrence()(*int32) - GetDayOfWeek()(*DayOfWeek) + GetDayOfWeek()(*StandardTimeZoneOffset_dayOfWeek) GetMonth()(*int32) GetOdataType()(*string) GetTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) GetYear()(*int32) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDayOccurrence(value *int32)() - SetDayOfWeek(value *DayOfWeek)() + SetDayOfWeek(value *StandardTimeZoneOffset_dayOfWeek)() SetMonth(value *int32)() SetOdataType(value *string)() SetTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() diff --git a/models/standard_time_zone_offset_day_of_week.go b/models/standard_time_zone_offset_day_of_week.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/status.go b/models/status.go deleted file mode 100644 index d86c4b6eea2..00000000000 --- a/models/status.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type Status int - -const ( - ACTIVE_STATUS Status = iota - UPDATED_STATUS - DELETED_STATUS - IGNORED_STATUS - UNKNOWNFUTUREVALUE_STATUS -) - -func (i Status) String() string { - return []string{"active", "updated", "deleted", "ignored", "unknownFutureValue"}[i] -} -func ParseStatus(v string) (any, error) { - result := ACTIVE_STATUS - switch v { - case "active": - result = ACTIVE_STATUS - case "updated": - result = UPDATED_STATUS - case "deleted": - result = DELETED_STATUS - case "ignored": - result = IGNORED_STATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_STATUS - default: - return 0, errors.New("Unknown Status value: " + v) - } - return &result, nil -} -func SerializeStatus(values []Status) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Status) isMultiValue() bool { - return false -} diff --git a/models/status_base.go b/models/status_base.go index 34926f51350..8369a805ec0 100644 --- a/models/status_base.go +++ b/models/status_base.go @@ -70,12 +70,12 @@ func (m *StatusBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProvisioningResult) + val, err := n.GetEnumValue(ParseStatusBase_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*ProvisioningResult)) + m.SetStatus(val.(*StatusBase_status)) } return nil } @@ -93,13 +93,13 @@ func (m *StatusBase) GetOdataType()(*string) { return nil } // GetStatus gets the status property value. Possible values are: success, warning, failure, skipped, unknownFutureValue. Supports $filter (eq, contains). -func (m *StatusBase) GetStatus()(*ProvisioningResult) { +func (m *StatusBase) GetStatus()(*StatusBase_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*ProvisioningResult) + return val.(*StatusBase_status) } return nil } @@ -145,7 +145,7 @@ func (m *StatusBase) SetOdataType(value *string)() { } } // SetStatus sets the status property value. Possible values are: success, warning, failure, skipped, unknownFutureValue. Supports $filter (eq, contains). -func (m *StatusBase) SetStatus(value *ProvisioningResult)() { +func (m *StatusBase) SetStatus(value *StatusBase_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -158,8 +158,8 @@ type StatusBaseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetStatus()(*ProvisioningResult) + GetStatus()(*StatusBase_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetStatus(value *ProvisioningResult)() + SetStatus(value *StatusBase_status)() } diff --git a/models/status_base_status.go b/models/status_base_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/status_details.go b/models/status_details.go index 1a234233cf4..679257f65b1 100644 --- a/models/status_details.go +++ b/models/status_details.go @@ -33,13 +33,13 @@ func (m *StatusDetails) GetAdditionalDetails()(*string) { return nil } // GetErrorCategory gets the errorCategory property value. Categorizes the error code. Possible values are Failure, NonServiceFailure, Success. -func (m *StatusDetails) GetErrorCategory()(*ProvisioningStatusErrorCategory) { +func (m *StatusDetails) GetErrorCategory()(*StatusDetails_errorCategory) { val, err := m.GetBackingStore().Get("errorCategory") if err != nil { panic(err) } if val != nil { - return val.(*ProvisioningStatusErrorCategory) + return val.(*StatusDetails_errorCategory) } return nil } @@ -68,12 +68,12 @@ func (m *StatusDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["errorCategory"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseProvisioningStatusErrorCategory) + val, err := n.GetEnumValue(ParseStatusDetails_errorCategory) if err != nil { return err } if val != nil { - m.SetErrorCategory(val.(*ProvisioningStatusErrorCategory)) + m.SetErrorCategory(val.(*StatusDetails_errorCategory)) } return nil } @@ -178,7 +178,7 @@ func (m *StatusDetails) SetAdditionalDetails(value *string)() { } } // SetErrorCategory sets the errorCategory property value. Categorizes the error code. Possible values are Failure, NonServiceFailure, Success. -func (m *StatusDetails) SetErrorCategory(value *ProvisioningStatusErrorCategory)() { +func (m *StatusDetails) SetErrorCategory(value *StatusDetails_errorCategory)() { err := m.GetBackingStore().Set("errorCategory", value) if err != nil { panic(err) @@ -210,12 +210,12 @@ type StatusDetailsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable StatusBaseable GetAdditionalDetails()(*string) - GetErrorCategory()(*ProvisioningStatusErrorCategory) + GetErrorCategory()(*StatusDetails_errorCategory) GetErrorCode()(*string) GetReason()(*string) GetRecommendedAction()(*string) SetAdditionalDetails(value *string)() - SetErrorCategory(value *ProvisioningStatusErrorCategory)() + SetErrorCategory(value *StatusDetails_errorCategory)() SetErrorCode(value *string)() SetReason(value *string)() SetRecommendedAction(value *string)() diff --git a/models/status_details_error_category.go b/models/status_details_error_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/subject_rights_request.go b/models/subject_rights_request.go index d77a7d5b705..2df0017c809 100644 --- a/models/subject_rights_request.go +++ b/models/subject_rights_request.go @@ -109,13 +109,13 @@ func (m *SubjectRightsRequest) GetDataSubject()(DataSubjectable) { return nil } // GetDataSubjectType gets the dataSubjectType property value. The type of the data subject. Possible values are: customer, currentEmployee, formerEmployee, prospectiveEmployee, student, teacher, faculty, other, unknownFutureValue. -func (m *SubjectRightsRequest) GetDataSubjectType()(*DataSubjectType) { +func (m *SubjectRightsRequest) GetDataSubjectType()(*SubjectRightsRequest_dataSubjectType) { val, err := m.GetBackingStore().Get("dataSubjectType") if err != nil { panic(err) } if val != nil { - return val.(*DataSubjectType) + return val.(*SubjectRightsRequest_dataSubjectType) } return nil } @@ -248,12 +248,12 @@ func (m *SubjectRightsRequest) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["dataSubjectType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDataSubjectType) + val, err := n.GetEnumValue(ParseSubjectRightsRequest_dataSubjectType) if err != nil { return err } if val != nil { - m.SetDataSubjectType(val.(*DataSubjectType)) + m.SetDataSubjectType(val.(*SubjectRightsRequest_dataSubjectType)) } return nil } @@ -442,12 +442,12 @@ func (m *SubjectRightsRequest) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectRightsRequestStatus) + val, err := n.GetEnumValue(ParseSubjectRightsRequest_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SubjectRightsRequestStatus)) + m.SetStatus(val.(*SubjectRightsRequest_status)) } return nil } @@ -462,12 +462,12 @@ func (m *SubjectRightsRequest) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectRightsRequestType) + val, err := n.GetEnumValue(ParseSubjectRightsRequest_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*SubjectRightsRequestType)) + m.SetTypeEscaped(val.(*SubjectRightsRequest_type)) } return nil } @@ -617,13 +617,13 @@ func (m *SubjectRightsRequest) GetStages()([]SubjectRightsRequestStageDetailable return nil } // GetStatus gets the status property value. The status of the request. Possible values are: active, closed, unknownFutureValue. -func (m *SubjectRightsRequest) GetStatus()(*SubjectRightsRequestStatus) { +func (m *SubjectRightsRequest) GetStatus()(*SubjectRightsRequest_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SubjectRightsRequestStatus) + return val.(*SubjectRightsRequest_status) } return nil } @@ -639,13 +639,13 @@ func (m *SubjectRightsRequest) GetTeam()(Teamable) { return nil } // GetTypeEscaped gets the type property value. The type of the request. Possible values are: export, delete, access, tagForAction, unknownFutureValue. -func (m *SubjectRightsRequest) GetTypeEscaped()(*SubjectRightsRequestType) { +func (m *SubjectRightsRequest) GetTypeEscaped()(*SubjectRightsRequest_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*SubjectRightsRequestType) + return val.(*SubjectRightsRequest_type) } return nil } @@ -915,7 +915,7 @@ func (m *SubjectRightsRequest) SetDataSubject(value DataSubjectable)() { } } // SetDataSubjectType sets the dataSubjectType property value. The type of the data subject. Possible values are: customer, currentEmployee, formerEmployee, prospectiveEmployee, student, teacher, faculty, other, unknownFutureValue. -func (m *SubjectRightsRequest) SetDataSubjectType(value *DataSubjectType)() { +func (m *SubjectRightsRequest) SetDataSubjectType(value *SubjectRightsRequest_dataSubjectType)() { err := m.GetBackingStore().Set("dataSubjectType", value) if err != nil { panic(err) @@ -1034,7 +1034,7 @@ func (m *SubjectRightsRequest) SetStages(value []SubjectRightsRequestStageDetail } } // SetStatus sets the status property value. The status of the request. Possible values are: active, closed, unknownFutureValue. -func (m *SubjectRightsRequest) SetStatus(value *SubjectRightsRequestStatus)() { +func (m *SubjectRightsRequest) SetStatus(value *SubjectRightsRequest_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -1048,7 +1048,7 @@ func (m *SubjectRightsRequest) SetTeam(value Teamable)() { } } // SetTypeEscaped sets the type property value. The type of the request. Possible values are: export, delete, access, tagForAction, unknownFutureValue. -func (m *SubjectRightsRequest) SetTypeEscaped(value *SubjectRightsRequestType)() { +func (m *SubjectRightsRequest) SetTypeEscaped(value *SubjectRightsRequest_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -1066,7 +1066,7 @@ type SubjectRightsRequestable interface { GetCreatedBy()(IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDataSubject()(DataSubjectable) - GetDataSubjectType()(*DataSubjectType) + GetDataSubjectType()(*SubjectRightsRequest_dataSubjectType) GetDescription()(*string) GetDisplayName()(*string) GetExternalId()(*string) @@ -1083,9 +1083,9 @@ type SubjectRightsRequestable interface { GetRegulations()([]string) GetSiteLocations()(SubjectRightsRequestSiteLocationable) GetStages()([]SubjectRightsRequestStageDetailable) - GetStatus()(*SubjectRightsRequestStatus) + GetStatus()(*SubjectRightsRequest_status) GetTeam()(Teamable) - GetTypeEscaped()(*SubjectRightsRequestType) + GetTypeEscaped()(*SubjectRightsRequest_type) SetApprovers(value []Userable)() SetAssignedTo(value Identityable)() SetClosedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -1094,7 +1094,7 @@ type SubjectRightsRequestable interface { SetCreatedBy(value IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDataSubject(value DataSubjectable)() - SetDataSubjectType(value *DataSubjectType)() + SetDataSubjectType(value *SubjectRightsRequest_dataSubjectType)() SetDescription(value *string)() SetDisplayName(value *string)() SetExternalId(value *string)() @@ -1111,7 +1111,7 @@ type SubjectRightsRequestable interface { SetRegulations(value []string)() SetSiteLocations(value SubjectRightsRequestSiteLocationable)() SetStages(value []SubjectRightsRequestStageDetailable)() - SetStatus(value *SubjectRightsRequestStatus)() + SetStatus(value *SubjectRightsRequest_status)() SetTeam(value Teamable)() - SetTypeEscaped(value *SubjectRightsRequestType)() + SetTypeEscaped(value *SubjectRightsRequest_type)() } diff --git a/models/subject_rights_request_data_subject_type.go b/models/subject_rights_request_data_subject_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/subject_rights_request_history.go b/models/subject_rights_request_history.go index 1827a460281..695feebbd08 100644 --- a/models/subject_rights_request_history.go +++ b/models/subject_rights_request_history.go @@ -95,22 +95,22 @@ func (m *SubjectRightsRequestHistory) GetFieldDeserializers()(map[string]func(i8 return nil } res["stage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectRightsRequestStage) + val, err := n.GetEnumValue(ParseSubjectRightsRequestHistory_stage) if err != nil { return err } if val != nil { - m.SetStage(val.(*SubjectRightsRequestStage)) + m.SetStage(val.(*SubjectRightsRequestHistory_stage)) } return nil } res["stageStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectRightsRequestStageStatus) + val, err := n.GetEnumValue(ParseSubjectRightsRequestHistory_stageStatus) if err != nil { return err } if val != nil { - m.SetStageStatus(val.(*SubjectRightsRequestStageStatus)) + m.SetStageStatus(val.(*SubjectRightsRequestHistory_stageStatus)) } return nil } @@ -138,24 +138,24 @@ func (m *SubjectRightsRequestHistory) GetOdataType()(*string) { return nil } // GetStage gets the stage property value. The stage when the entity was changed. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: approval. -func (m *SubjectRightsRequestHistory) GetStage()(*SubjectRightsRequestStage) { +func (m *SubjectRightsRequestHistory) GetStage()(*SubjectRightsRequestHistory_stage) { val, err := m.GetBackingStore().Get("stage") if err != nil { panic(err) } if val != nil { - return val.(*SubjectRightsRequestStage) + return val.(*SubjectRightsRequestHistory_stage) } return nil } // GetStageStatus gets the stageStatus property value. The status of the stage when the entity was changed. Possible values are: notStarted, current, completed, failed, unknownFutureValue. -func (m *SubjectRightsRequestHistory) GetStageStatus()(*SubjectRightsRequestStageStatus) { +func (m *SubjectRightsRequestHistory) GetStageStatus()(*SubjectRightsRequestHistory_stageStatus) { val, err := m.GetBackingStore().Get("stageStatus") if err != nil { panic(err) } if val != nil { - return val.(*SubjectRightsRequestStageStatus) + return val.(*SubjectRightsRequestHistory_stageStatus) } return nil } @@ -251,14 +251,14 @@ func (m *SubjectRightsRequestHistory) SetOdataType(value *string)() { } } // SetStage sets the stage property value. The stage when the entity was changed. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: approval. -func (m *SubjectRightsRequestHistory) SetStage(value *SubjectRightsRequestStage)() { +func (m *SubjectRightsRequestHistory) SetStage(value *SubjectRightsRequestHistory_stage)() { err := m.GetBackingStore().Set("stage", value) if err != nil { panic(err) } } // SetStageStatus sets the stageStatus property value. The status of the stage when the entity was changed. Possible values are: notStarted, current, completed, failed, unknownFutureValue. -func (m *SubjectRightsRequestHistory) SetStageStatus(value *SubjectRightsRequestStageStatus)() { +func (m *SubjectRightsRequestHistory) SetStageStatus(value *SubjectRightsRequestHistory_stageStatus)() { err := m.GetBackingStore().Set("stageStatus", value) if err != nil { panic(err) @@ -280,14 +280,14 @@ type SubjectRightsRequestHistoryable interface { GetChangedBy()(IdentitySetable) GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOdataType()(*string) - GetStage()(*SubjectRightsRequestStage) - GetStageStatus()(*SubjectRightsRequestStageStatus) + GetStage()(*SubjectRightsRequestHistory_stage) + GetStageStatus()(*SubjectRightsRequestHistory_stageStatus) GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetChangedBy(value IdentitySetable)() SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOdataType(value *string)() - SetStage(value *SubjectRightsRequestStage)() - SetStageStatus(value *SubjectRightsRequestStageStatus)() + SetStage(value *SubjectRightsRequestHistory_stage)() + SetStageStatus(value *SubjectRightsRequestHistory_stageStatus)() SetTypeEscaped(value *string)() } diff --git a/models/subject_rights_request_history_stage.go b/models/subject_rights_request_history_stage.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/subject_rights_request_history_stage_status.go b/models/subject_rights_request_history_stage_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/subject_rights_request_stage.go b/models/subject_rights_request_stage.go deleted file mode 100644 index 8558a7569bd..00000000000 --- a/models/subject_rights_request_stage.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type SubjectRightsRequestStage int - -const ( - CONTENTRETRIEVAL_SUBJECTRIGHTSREQUESTSTAGE SubjectRightsRequestStage = iota - CONTENTREVIEW_SUBJECTRIGHTSREQUESTSTAGE - GENERATEREPORT_SUBJECTRIGHTSREQUESTSTAGE - CONTENTDELETION_SUBJECTRIGHTSREQUESTSTAGE - CASERESOLVED_SUBJECTRIGHTSREQUESTSTAGE - CONTENTESTIMATE_SUBJECTRIGHTSREQUESTSTAGE - UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTSTAGE - APPROVAL_SUBJECTRIGHTSREQUESTSTAGE -) - -func (i SubjectRightsRequestStage) String() string { - return []string{"contentRetrieval", "contentReview", "generateReport", "contentDeletion", "caseResolved", "contentEstimate", "unknownFutureValue", "approval"}[i] -} -func ParseSubjectRightsRequestStage(v string) (any, error) { - result := CONTENTRETRIEVAL_SUBJECTRIGHTSREQUESTSTAGE - switch v { - case "contentRetrieval": - result = CONTENTRETRIEVAL_SUBJECTRIGHTSREQUESTSTAGE - case "contentReview": - result = CONTENTREVIEW_SUBJECTRIGHTSREQUESTSTAGE - case "generateReport": - result = GENERATEREPORT_SUBJECTRIGHTSREQUESTSTAGE - case "contentDeletion": - result = CONTENTDELETION_SUBJECTRIGHTSREQUESTSTAGE - case "caseResolved": - result = CASERESOLVED_SUBJECTRIGHTSREQUESTSTAGE - case "contentEstimate": - result = CONTENTESTIMATE_SUBJECTRIGHTSREQUESTSTAGE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTSTAGE - case "approval": - result = APPROVAL_SUBJECTRIGHTSREQUESTSTAGE - default: - return 0, errors.New("Unknown SubjectRightsRequestStage value: " + v) - } - return &result, nil -} -func SerializeSubjectRightsRequestStage(values []SubjectRightsRequestStage) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubjectRightsRequestStage) isMultiValue() bool { - return false -} diff --git a/models/subject_rights_request_stage_detail.go b/models/subject_rights_request_stage_detail.go index 9c448df0d6f..2b6822829b6 100644 --- a/models/subject_rights_request_stage_detail.go +++ b/models/subject_rights_request_stage_detail.go @@ -73,22 +73,22 @@ func (m *SubjectRightsRequestStageDetail) GetFieldDeserializers()(map[string]fun return nil } res["stage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectRightsRequestStage) + val, err := n.GetEnumValue(ParseSubjectRightsRequestStageDetail_stage) if err != nil { return err } if val != nil { - m.SetStage(val.(*SubjectRightsRequestStage)) + m.SetStage(val.(*SubjectRightsRequestStageDetail_stage)) } return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectRightsRequestStageStatus) + val, err := n.GetEnumValue(ParseSubjectRightsRequestStageDetail_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*SubjectRightsRequestStageStatus)) + m.SetStatus(val.(*SubjectRightsRequestStageDetail_status)) } return nil } @@ -106,24 +106,24 @@ func (m *SubjectRightsRequestStageDetail) GetOdataType()(*string) { return nil } // GetStage gets the stage property value. The stage of the subject rights request. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. You must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: approval. -func (m *SubjectRightsRequestStageDetail) GetStage()(*SubjectRightsRequestStage) { +func (m *SubjectRightsRequestStageDetail) GetStage()(*SubjectRightsRequestStageDetail_stage) { val, err := m.GetBackingStore().Get("stage") if err != nil { panic(err) } if val != nil { - return val.(*SubjectRightsRequestStage) + return val.(*SubjectRightsRequestStageDetail_stage) } return nil } // GetStatus gets the status property value. Status of the current stage. Possible values are: notStarted, current, completed, failed, unknownFutureValue. -func (m *SubjectRightsRequestStageDetail) GetStatus()(*SubjectRightsRequestStageStatus) { +func (m *SubjectRightsRequestStageDetail) GetStatus()(*SubjectRightsRequestStageDetail_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*SubjectRightsRequestStageStatus) + return val.(*SubjectRightsRequestStageDetail_status) } return nil } @@ -189,14 +189,14 @@ func (m *SubjectRightsRequestStageDetail) SetOdataType(value *string)() { } } // SetStage sets the stage property value. The stage of the subject rights request. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. You must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: approval. -func (m *SubjectRightsRequestStageDetail) SetStage(value *SubjectRightsRequestStage)() { +func (m *SubjectRightsRequestStageDetail) SetStage(value *SubjectRightsRequestStageDetail_stage)() { err := m.GetBackingStore().Set("stage", value) if err != nil { panic(err) } } // SetStatus sets the status property value. Status of the current stage. Possible values are: notStarted, current, completed, failed, unknownFutureValue. -func (m *SubjectRightsRequestStageDetail) SetStatus(value *SubjectRightsRequestStageStatus)() { +func (m *SubjectRightsRequestStageDetail) SetStatus(value *SubjectRightsRequestStageDetail_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -210,11 +210,11 @@ type SubjectRightsRequestStageDetailable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetError()(PublicErrorable) GetOdataType()(*string) - GetStage()(*SubjectRightsRequestStage) - GetStatus()(*SubjectRightsRequestStageStatus) + GetStage()(*SubjectRightsRequestStageDetail_stage) + GetStatus()(*SubjectRightsRequestStageDetail_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetError(value PublicErrorable)() SetOdataType(value *string)() - SetStage(value *SubjectRightsRequestStage)() - SetStatus(value *SubjectRightsRequestStageStatus)() + SetStage(value *SubjectRightsRequestStageDetail_stage)() + SetStatus(value *SubjectRightsRequestStageDetail_status)() } diff --git a/models/subject_rights_request_stage_detail_stage.go b/models/subject_rights_request_stage_detail_stage.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/subject_rights_request_stage_detail_status.go b/models/subject_rights_request_stage_detail_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/subject_rights_request_stage_status.go b/models/subject_rights_request_stage_status.go deleted file mode 100644 index 91f54e8923d..00000000000 --- a/models/subject_rights_request_stage_status.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type SubjectRightsRequestStageStatus int - -const ( - NOTSTARTED_SUBJECTRIGHTSREQUESTSTAGESTATUS SubjectRightsRequestStageStatus = iota - CURRENT_SUBJECTRIGHTSREQUESTSTAGESTATUS - COMPLETED_SUBJECTRIGHTSREQUESTSTAGESTATUS - FAILED_SUBJECTRIGHTSREQUESTSTAGESTATUS - UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTSTAGESTATUS -) - -func (i SubjectRightsRequestStageStatus) String() string { - return []string{"notStarted", "current", "completed", "failed", "unknownFutureValue"}[i] -} -func ParseSubjectRightsRequestStageStatus(v string) (any, error) { - result := NOTSTARTED_SUBJECTRIGHTSREQUESTSTAGESTATUS - switch v { - case "notStarted": - result = NOTSTARTED_SUBJECTRIGHTSREQUESTSTAGESTATUS - case "current": - result = CURRENT_SUBJECTRIGHTSREQUESTSTAGESTATUS - case "completed": - result = COMPLETED_SUBJECTRIGHTSREQUESTSTAGESTATUS - case "failed": - result = FAILED_SUBJECTRIGHTSREQUESTSTAGESTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTSTAGESTATUS - default: - return 0, errors.New("Unknown SubjectRightsRequestStageStatus value: " + v) - } - return &result, nil -} -func SerializeSubjectRightsRequestStageStatus(values []SubjectRightsRequestStageStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubjectRightsRequestStageStatus) isMultiValue() bool { - return false -} diff --git a/models/subject_rights_request_status.go b/models/subject_rights_request_status.go index ac7c16c33ad..e69de29bb2d 100644 --- a/models/subject_rights_request_status.go +++ b/models/subject_rights_request_status.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type SubjectRightsRequestStatus int - -const ( - ACTIVE_SUBJECTRIGHTSREQUESTSTATUS SubjectRightsRequestStatus = iota - CLOSED_SUBJECTRIGHTSREQUESTSTATUS - UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTSTATUS -) - -func (i SubjectRightsRequestStatus) String() string { - return []string{"active", "closed", "unknownFutureValue"}[i] -} -func ParseSubjectRightsRequestStatus(v string) (any, error) { - result := ACTIVE_SUBJECTRIGHTSREQUESTSTATUS - switch v { - case "active": - result = ACTIVE_SUBJECTRIGHTSREQUESTSTATUS - case "closed": - result = CLOSED_SUBJECTRIGHTSREQUESTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTSTATUS - default: - return 0, errors.New("Unknown SubjectRightsRequestStatus value: " + v) - } - return &result, nil -} -func SerializeSubjectRightsRequestStatus(values []SubjectRightsRequestStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubjectRightsRequestStatus) isMultiValue() bool { - return false -} diff --git a/models/subject_rights_request_type.go b/models/subject_rights_request_type.go index 49ee207251f..e69de29bb2d 100644 --- a/models/subject_rights_request_type.go +++ b/models/subject_rights_request_type.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type SubjectRightsRequestType int - -const ( - EXPORT_SUBJECTRIGHTSREQUESTTYPE SubjectRightsRequestType = iota - DELETE_SUBJECTRIGHTSREQUESTTYPE - ACCESS_SUBJECTRIGHTSREQUESTTYPE - TAGFORACTION_SUBJECTRIGHTSREQUESTTYPE - UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTTYPE -) - -func (i SubjectRightsRequestType) String() string { - return []string{"export", "delete", "access", "tagForAction", "unknownFutureValue"}[i] -} -func ParseSubjectRightsRequestType(v string) (any, error) { - result := EXPORT_SUBJECTRIGHTSREQUESTTYPE - switch v { - case "export": - result = EXPORT_SUBJECTRIGHTSREQUESTTYPE - case "delete": - result = DELETE_SUBJECTRIGHTSREQUESTTYPE - case "access": - result = ACCESS_SUBJECTRIGHTSREQUESTTYPE - case "tagForAction": - result = TAGFORACTION_SUBJECTRIGHTSREQUESTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTTYPE - default: - return 0, errors.New("Unknown SubjectRightsRequestType value: " + v) - } - return &result, nil -} -func SerializeSubjectRightsRequestType(values []SubjectRightsRequestType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SubjectRightsRequestType) isMultiValue() bool { - return false -} diff --git a/models/synchronization_job_restart_criteria.go b/models/synchronization_job_restart_criteria.go index 2ae7c7beb46..63416155a47 100644 --- a/models/synchronization_job_restart_criteria.go +++ b/models/synchronization_job_restart_criteria.go @@ -52,12 +52,12 @@ func (m *SynchronizationJobRestartCriteria) GetFieldDeserializers()(map[string]f return nil } res["resetScope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSynchronizationJobRestartScope) + val, err := n.GetEnumValue(ParseSynchronizationJobRestartCriteria_resetScope) if err != nil { return err } if val != nil { - m.SetResetScope(val.(*SynchronizationJobRestartScope)) + m.SetResetScope(val.(*SynchronizationJobRestartCriteria_resetScope)) } return nil } @@ -75,13 +75,13 @@ func (m *SynchronizationJobRestartCriteria) GetOdataType()(*string) { return nil } // GetResetScope gets the resetScope property value. Comma-separated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore - Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows - Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark - Removing the watermark causes the service to re-evaluate all the users again, rather than just processing changes.QuarantineState - Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes - Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Microsoft Entra admin center. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs. -func (m *SynchronizationJobRestartCriteria) GetResetScope()(*SynchronizationJobRestartScope) { +func (m *SynchronizationJobRestartCriteria) GetResetScope()(*SynchronizationJobRestartCriteria_resetScope) { val, err := m.GetBackingStore().Get("resetScope") if err != nil { panic(err) } if val != nil { - return val.(*SynchronizationJobRestartScope) + return val.(*SynchronizationJobRestartCriteria_resetScope) } return nil } @@ -127,7 +127,7 @@ func (m *SynchronizationJobRestartCriteria) SetOdataType(value *string)() { } } // SetResetScope sets the resetScope property value. Comma-separated combination of the following values: None, ConnectorDataStore, Escrows, Watermark, QuarantineState, Full, ForceDeletes. The property can also be empty. None: Starts a paused or quarantined provisioning job. DO NOT USE. Use the Start synchronizationJob API instead.ConnectorDataStore - Clears the underlying cache for all users. DO NOT USE. Contact Microsoft Support for guidance.Escrows - Provisioning failures are marked as escrows and retried. Clearing escrows will stop the service from retrying failures.Watermark - Removing the watermark causes the service to re-evaluate all the users again, rather than just processing changes.QuarantineState - Temporarily lifts the quarantine.Use Full if you want all of the options.ForceDeletes - Forces the system to delete the pending deleted users when using the accidental deletions prevention feature and the deletion threshold is exceeded. Leaving this property empty emulates the Restart provisioning option in the Microsoft Entra admin center. It is similar to setting the resetScope to include QuarantineState, Watermark, and Escrows. This option meets most customer needs. -func (m *SynchronizationJobRestartCriteria) SetResetScope(value *SynchronizationJobRestartScope)() { +func (m *SynchronizationJobRestartCriteria) SetResetScope(value *SynchronizationJobRestartCriteria_resetScope)() { err := m.GetBackingStore().Set("resetScope", value) if err != nil { panic(err) @@ -140,8 +140,8 @@ type SynchronizationJobRestartCriteriaable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetResetScope()(*SynchronizationJobRestartScope) + GetResetScope()(*SynchronizationJobRestartCriteria_resetScope) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetResetScope(value *SynchronizationJobRestartScope)() + SetResetScope(value *SynchronizationJobRestartCriteria_resetScope)() } diff --git a/models/synchronization_job_restart_criteria_reset_scope.go b/models/synchronization_job_restart_criteria_reset_scope.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/synchronization_job_restart_scope.go b/models/synchronization_job_restart_scope.go deleted file mode 100644 index caefd84a0f5..00000000000 --- a/models/synchronization_job_restart_scope.go +++ /dev/null @@ -1,62 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type SynchronizationJobRestartScope int - -const ( - NONE_SYNCHRONIZATIONJOBRESTARTSCOPE SynchronizationJobRestartScope = iota - CONNECTORDATASTORE_SYNCHRONIZATIONJOBRESTARTSCOPE - ESCROWS_SYNCHRONIZATIONJOBRESTARTSCOPE - WATERMARK_SYNCHRONIZATIONJOBRESTARTSCOPE - QUARANTINESTATE_SYNCHRONIZATIONJOBRESTARTSCOPE - FULL_SYNCHRONIZATIONJOBRESTARTSCOPE - FORCEDELETES_SYNCHRONIZATIONJOBRESTARTSCOPE -) - -func (i SynchronizationJobRestartScope) String() string { - var values []string - for p := SynchronizationJobRestartScope(1); p <= FORCEDELETES_SYNCHRONIZATIONJOBRESTARTSCOPE; p <<= 1 { - if i&p == p { - values = append(values, []string{"None", "ConnectorDataStore", "Escrows", "Watermark", "QuarantineState", "Full", "ForceDeletes"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseSynchronizationJobRestartScope(v string) (any, error) { - var result SynchronizationJobRestartScope - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "None": - result |= NONE_SYNCHRONIZATIONJOBRESTARTSCOPE - case "ConnectorDataStore": - result |= CONNECTORDATASTORE_SYNCHRONIZATIONJOBRESTARTSCOPE - case "Escrows": - result |= ESCROWS_SYNCHRONIZATIONJOBRESTARTSCOPE - case "Watermark": - result |= WATERMARK_SYNCHRONIZATIONJOBRESTARTSCOPE - case "QuarantineState": - result |= QUARANTINESTATE_SYNCHRONIZATIONJOBRESTARTSCOPE - case "Full": - result |= FULL_SYNCHRONIZATIONJOBRESTARTSCOPE - case "ForceDeletes": - result |= FORCEDELETES_SYNCHRONIZATIONJOBRESTARTSCOPE - default: - return 0, errors.New("Unknown SynchronizationJobRestartScope value: " + v) - } - } - return &result, nil -} -func SerializeSynchronizationJobRestartScope(values []SynchronizationJobRestartScope) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SynchronizationJobRestartScope) isMultiValue() bool { - return true -} diff --git a/models/synchronization_metadata.go b/models/synchronization_metadata.go deleted file mode 100644 index 9303acf8de2..00000000000 --- a/models/synchronization_metadata.go +++ /dev/null @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type SynchronizationMetadata int - -const ( - GALLERYAPPLICATIONIDENTIFIER_SYNCHRONIZATIONMETADATA SynchronizationMetadata = iota - GALLERYAPPLICATIONKEY_SYNCHRONIZATIONMETADATA - ISOAUTHENABLED_SYNCHRONIZATIONMETADATA - ISSYNCHRONIZATIONAGENTASSIGNMENTREQUIRED_SYNCHRONIZATIONMETADATA - ISSYNCHRONIZATIONAGENTREQUIRED_SYNCHRONIZATIONMETADATA - ISSYNCHRONIZATIONINPREVIEW_SYNCHRONIZATIONMETADATA - OAUTHSETTINGS_SYNCHRONIZATIONMETADATA - SYNCHRONIZATIONLEARNMOREIBIZAFWLINK_SYNCHRONIZATIONMETADATA - CONFIGURATIONFIELDS_SYNCHRONIZATIONMETADATA -) - -func (i SynchronizationMetadata) String() string { - return []string{"galleryApplicationIdentifier", "galleryApplicationKey", "isOAuthEnabled", "IsSynchronizationAgentAssignmentRequired", "isSynchronizationAgentRequired", "isSynchronizationInPreview", "oAuthSettings", "synchronizationLearnMoreIbizaFwLink", "configurationFields"}[i] -} -func ParseSynchronizationMetadata(v string) (any, error) { - result := GALLERYAPPLICATIONIDENTIFIER_SYNCHRONIZATIONMETADATA - switch v { - case "galleryApplicationIdentifier": - result = GALLERYAPPLICATIONIDENTIFIER_SYNCHRONIZATIONMETADATA - case "galleryApplicationKey": - result = GALLERYAPPLICATIONKEY_SYNCHRONIZATIONMETADATA - case "isOAuthEnabled": - result = ISOAUTHENABLED_SYNCHRONIZATIONMETADATA - case "IsSynchronizationAgentAssignmentRequired": - result = ISSYNCHRONIZATIONAGENTASSIGNMENTREQUIRED_SYNCHRONIZATIONMETADATA - case "isSynchronizationAgentRequired": - result = ISSYNCHRONIZATIONAGENTREQUIRED_SYNCHRONIZATIONMETADATA - case "isSynchronizationInPreview": - result = ISSYNCHRONIZATIONINPREVIEW_SYNCHRONIZATIONMETADATA - case "oAuthSettings": - result = OAUTHSETTINGS_SYNCHRONIZATIONMETADATA - case "synchronizationLearnMoreIbizaFwLink": - result = SYNCHRONIZATIONLEARNMOREIBIZAFWLINK_SYNCHRONIZATIONMETADATA - case "configurationFields": - result = CONFIGURATIONFIELDS_SYNCHRONIZATIONMETADATA - default: - return 0, errors.New("Unknown SynchronizationMetadata value: " + v) - } - return &result, nil -} -func SerializeSynchronizationMetadata(values []SynchronizationMetadata) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SynchronizationMetadata) isMultiValue() bool { - return false -} diff --git a/models/synchronization_metadata_entry.go b/models/synchronization_metadata_entry.go index 8a80002453a..bd1114bb75e 100644 --- a/models/synchronization_metadata_entry.go +++ b/models/synchronization_metadata_entry.go @@ -42,12 +42,12 @@ func (m *SynchronizationMetadataEntry) GetBackingStore()(ie8677ce2c7e1b4c22e9c38 func (m *SynchronizationMetadataEntry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSynchronizationMetadata) + val, err := n.GetEnumValue(ParseSynchronizationMetadataEntry_key) if err != nil { return err } if val != nil { - m.SetKey(val.(*SynchronizationMetadata)) + m.SetKey(val.(*SynchronizationMetadataEntry_key)) } return nil } @@ -74,13 +74,13 @@ func (m *SynchronizationMetadataEntry) GetFieldDeserializers()(map[string]func(i return res } // GetKey gets the key property value. Possible values are: GalleryApplicationIdentifier, GalleryApplicationKey, IsOAuthEnabled, IsSynchronizationAgentAssignmentRequired, IsSynchronizationAgentRequired, IsSynchronizationInPreview, OAuthSettings, SynchronizationLearnMoreIbizaFwLink, ConfigurationFields. -func (m *SynchronizationMetadataEntry) GetKey()(*SynchronizationMetadata) { +func (m *SynchronizationMetadataEntry) GetKey()(*SynchronizationMetadataEntry_key) { val, err := m.GetBackingStore().Get("key") if err != nil { panic(err) } if val != nil { - return val.(*SynchronizationMetadata) + return val.(*SynchronizationMetadataEntry_key) } return nil } @@ -147,7 +147,7 @@ func (m *SynchronizationMetadataEntry) SetBackingStore(value ie8677ce2c7e1b4c22e m.backingStore = value } // SetKey sets the key property value. Possible values are: GalleryApplicationIdentifier, GalleryApplicationKey, IsOAuthEnabled, IsSynchronizationAgentAssignmentRequired, IsSynchronizationAgentRequired, IsSynchronizationInPreview, OAuthSettings, SynchronizationLearnMoreIbizaFwLink, ConfigurationFields. -func (m *SynchronizationMetadataEntry) SetKey(value *SynchronizationMetadata)() { +func (m *SynchronizationMetadataEntry) SetKey(value *SynchronizationMetadataEntry_key)() { err := m.GetBackingStore().Set("key", value) if err != nil { panic(err) @@ -173,11 +173,11 @@ type SynchronizationMetadataEntryable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetKey()(*SynchronizationMetadata) + GetKey()(*SynchronizationMetadataEntry_key) GetOdataType()(*string) GetValue()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetKey(value *SynchronizationMetadata)() + SetKey(value *SynchronizationMetadataEntry_key)() SetOdataType(value *string)() SetValue(value *string)() } diff --git a/models/synchronization_metadata_entry_key.go b/models/synchronization_metadata_entry_key.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/target_resource.go b/models/target_resource.go index 1a762aa9068..99f8c7c8414 100644 --- a/models/target_resource.go +++ b/models/target_resource.go @@ -63,12 +63,12 @@ func (m *TargetResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["groupType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseGroupType) + val, err := n.GetEnumValue(ParseTargetResource_groupType) if err != nil { return err } if val != nil { - m.SetGroupType(val.(*GroupType)) + m.SetGroupType(val.(*TargetResource_groupType)) } return nil } @@ -131,13 +131,13 @@ func (m *TargetResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return res } // GetGroupType gets the groupType property value. When type is set to Group, this indicates the group type. Possible values are: unifiedGroups, azureAD, and unknownFutureValue -func (m *TargetResource) GetGroupType()(*GroupType) { +func (m *TargetResource) GetGroupType()(*TargetResource_groupType) { val, err := m.GetBackingStore().Get("groupType") if err != nil { panic(err) } if val != nil { - return val.(*GroupType) + return val.(*TargetResource_groupType) } return nil } @@ -274,7 +274,7 @@ func (m *TargetResource) SetDisplayName(value *string)() { } } // SetGroupType sets the groupType property value. When type is set to Group, this indicates the group type. Possible values are: unifiedGroups, azureAD, and unknownFutureValue -func (m *TargetResource) SetGroupType(value *GroupType)() { +func (m *TargetResource) SetGroupType(value *TargetResource_groupType)() { err := m.GetBackingStore().Set("groupType", value) if err != nil { panic(err) @@ -322,7 +322,7 @@ type TargetResourceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDisplayName()(*string) - GetGroupType()(*GroupType) + GetGroupType()(*TargetResource_groupType) GetId()(*string) GetModifiedProperties()([]ModifiedPropertyable) GetOdataType()(*string) @@ -330,7 +330,7 @@ type TargetResourceable interface { GetUserPrincipalName()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() - SetGroupType(value *GroupType)() + SetGroupType(value *TargetResource_groupType)() SetId(value *string)() SetModifiedProperties(value []ModifiedPropertyable)() SetOdataType(value *string)() diff --git a/models/target_resource_group_type.go b/models/target_resource_group_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/targetted_user_type.go b/models/targetted_user_type.go deleted file mode 100644 index d93402aa0a0..00000000000 --- a/models/targetted_user_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type TargettedUserType int - -const ( - UNKNOWN_TARGETTEDUSERTYPE TargettedUserType = iota - CLICKED_TARGETTEDUSERTYPE - COMPROMISED_TARGETTEDUSERTYPE - ALLUSERS_TARGETTEDUSERTYPE - UNKNOWNFUTUREVALUE_TARGETTEDUSERTYPE -) - -func (i TargettedUserType) String() string { - return []string{"unknown", "clicked", "compromised", "allUsers", "unknownFutureValue"}[i] -} -func ParseTargettedUserType(v string) (any, error) { - result := UNKNOWN_TARGETTEDUSERTYPE - switch v { - case "unknown": - result = UNKNOWN_TARGETTEDUSERTYPE - case "clicked": - result = CLICKED_TARGETTEDUSERTYPE - case "compromised": - result = COMPROMISED_TARGETTEDUSERTYPE - case "allUsers": - result = ALLUSERS_TARGETTEDUSERTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TARGETTEDUSERTYPE - default: - return 0, errors.New("Unknown TargettedUserType value: " + v) - } - return &result, nil -} -func SerializeTargettedUserType(values []TargettedUserType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TargettedUserType) isMultiValue() bool { - return false -} diff --git a/models/team.go b/models/team.go index 51cb2a2e393..970c2238dc0 100644 --- a/models/team.go +++ b/models/team.go @@ -389,12 +389,12 @@ func (m *Team) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["specialization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamSpecialization) + val, err := n.GetEnumValue(ParseTeam_specialization) if err != nil { return err } if val != nil { - m.SetSpecialization(val.(*TeamSpecialization)) + m.SetSpecialization(val.(*Team_specialization)) } return nil } @@ -455,12 +455,12 @@ func (m *Team) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["visibility"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamVisibilityType) + val, err := n.GetEnumValue(ParseTeam_visibility) if err != nil { return err } if val != nil { - m.SetVisibility(val.(*TeamVisibilityType)) + m.SetVisibility(val.(*Team_visibility)) } return nil } @@ -664,13 +664,13 @@ func (m *Team) GetSchedule()(Scheduleable) { return nil } // GetSpecialization gets the specialization property value. Optional. Indicates whether the team is intended for a particular use case. Each team specialization has access to unique behaviors and experiences targeted to its use case. -func (m *Team) GetSpecialization()(*TeamSpecialization) { +func (m *Team) GetSpecialization()(*Team_specialization) { val, err := m.GetBackingStore().Get("specialization") if err != nil { panic(err) } if val != nil { - return val.(*TeamSpecialization) + return val.(*Team_specialization) } return nil } @@ -730,13 +730,13 @@ func (m *Team) GetTenantId()(*string) { return nil } // GetVisibility gets the visibility property value. The visibility of the group and team. Defaults to Public. -func (m *Team) GetVisibility()(*TeamVisibilityType) { +func (m *Team) GetVisibility()(*Team_visibility) { val, err := m.GetBackingStore().Get("visibility") if err != nil { panic(err) } if val != nil { - return val.(*TeamVisibilityType) + return val.(*Team_visibility) } return nil } @@ -1176,7 +1176,7 @@ func (m *Team) SetSchedule(value Scheduleable)() { } } // SetSpecialization sets the specialization property value. Optional. Indicates whether the team is intended for a particular use case. Each team specialization has access to unique behaviors and experiences targeted to its use case. -func (m *Team) SetSpecialization(value *TeamSpecialization)() { +func (m *Team) SetSpecialization(value *Team_specialization)() { err := m.GetBackingStore().Set("specialization", value) if err != nil { panic(err) @@ -1218,7 +1218,7 @@ func (m *Team) SetTenantId(value *string)() { } } // SetVisibility sets the visibility property value. The visibility of the group and team. Defaults to Public. -func (m *Team) SetVisibility(value *TeamVisibilityType)() { +func (m *Team) SetVisibility(value *Team_visibility)() { err := m.GetBackingStore().Set("visibility", value) if err != nil { panic(err) @@ -1259,13 +1259,13 @@ type Teamable interface { GetPhoto()(ProfilePhotoable) GetPrimaryChannel()(Channelable) GetSchedule()(Scheduleable) - GetSpecialization()(*TeamSpecialization) + GetSpecialization()(*Team_specialization) GetSummary()(TeamSummaryable) GetTags()([]TeamworkTagable) GetTemplate()(TeamsTemplateable) GetTemplateDefinition()(TeamTemplateDefinitionable) GetTenantId()(*string) - GetVisibility()(*TeamVisibilityType) + GetVisibility()(*Team_visibility) GetWebUrl()(*string) SetAllChannels(value []Channelable)() SetChannels(value []Channelable)() @@ -1291,12 +1291,12 @@ type Teamable interface { SetPhoto(value ProfilePhotoable)() SetPrimaryChannel(value Channelable)() SetSchedule(value Scheduleable)() - SetSpecialization(value *TeamSpecialization)() + SetSpecialization(value *Team_specialization)() SetSummary(value TeamSummaryable)() SetTags(value []TeamworkTagable)() SetTemplate(value TeamsTemplateable)() SetTemplateDefinition(value TeamTemplateDefinitionable)() SetTenantId(value *string)() - SetVisibility(value *TeamVisibilityType)() + SetVisibility(value *Team_visibility)() SetWebUrl(value *string)() } diff --git a/models/team_fun_settings.go b/models/team_fun_settings.go index 54480a2f97c..40865c66928 100644 --- a/models/team_fun_settings.go +++ b/models/team_fun_settings.go @@ -105,12 +105,12 @@ func (m *TeamFunSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["giphyContentRating"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseGiphyRatingType) + val, err := n.GetEnumValue(ParseTeamFunSettings_giphyContentRating) if err != nil { return err } if val != nil { - m.SetGiphyContentRating(val.(*GiphyRatingType)) + m.SetGiphyContentRating(val.(*TeamFunSettings_giphyContentRating)) } return nil } @@ -127,13 +127,13 @@ func (m *TeamFunSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return res } // GetGiphyContentRating gets the giphyContentRating property value. Giphy content rating. Possible values are: moderate, strict. -func (m *TeamFunSettings) GetGiphyContentRating()(*GiphyRatingType) { +func (m *TeamFunSettings) GetGiphyContentRating()(*TeamFunSettings_giphyContentRating) { val, err := m.GetBackingStore().Get("giphyContentRating") if err != nil { panic(err) } if val != nil { - return val.(*GiphyRatingType) + return val.(*TeamFunSettings_giphyContentRating) } return nil } @@ -222,7 +222,7 @@ func (m *TeamFunSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d m.backingStore = value } // SetGiphyContentRating sets the giphyContentRating property value. Giphy content rating. Possible values are: moderate, strict. -func (m *TeamFunSettings) SetGiphyContentRating(value *GiphyRatingType)() { +func (m *TeamFunSettings) SetGiphyContentRating(value *TeamFunSettings_giphyContentRating)() { err := m.GetBackingStore().Set("giphyContentRating", value) if err != nil { panic(err) @@ -244,12 +244,12 @@ type TeamFunSettingsable interface { GetAllowGiphy()(*bool) GetAllowStickersAndMemes()(*bool) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetGiphyContentRating()(*GiphyRatingType) + GetGiphyContentRating()(*TeamFunSettings_giphyContentRating) GetOdataType()(*string) SetAllowCustomMemes(value *bool)() SetAllowGiphy(value *bool)() SetAllowStickersAndMemes(value *bool)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetGiphyContentRating(value *GiphyRatingType)() + SetGiphyContentRating(value *TeamFunSettings_giphyContentRating)() SetOdataType(value *string)() } diff --git a/models/team_fun_settings_giphy_content_rating.go b/models/team_fun_settings_giphy_content_rating.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/team_specialization.go b/models/team_specialization.go index 750f12641f2..e69de29bb2d 100644 --- a/models/team_specialization.go +++ b/models/team_specialization.go @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamSpecialization int - -const ( - NONE_TEAMSPECIALIZATION TeamSpecialization = iota - EDUCATIONSTANDARD_TEAMSPECIALIZATION - EDUCATIONCLASS_TEAMSPECIALIZATION - EDUCATIONPROFESSIONALLEARNINGCOMMUNITY_TEAMSPECIALIZATION - EDUCATIONSTAFF_TEAMSPECIALIZATION - HEALTHCARESTANDARD_TEAMSPECIALIZATION - HEALTHCARECARECOORDINATION_TEAMSPECIALIZATION - UNKNOWNFUTUREVALUE_TEAMSPECIALIZATION -) - -func (i TeamSpecialization) String() string { - return []string{"none", "educationStandard", "educationClass", "educationProfessionalLearningCommunity", "educationStaff", "healthcareStandard", "healthcareCareCoordination", "unknownFutureValue"}[i] -} -func ParseTeamSpecialization(v string) (any, error) { - result := NONE_TEAMSPECIALIZATION - switch v { - case "none": - result = NONE_TEAMSPECIALIZATION - case "educationStandard": - result = EDUCATIONSTANDARD_TEAMSPECIALIZATION - case "educationClass": - result = EDUCATIONCLASS_TEAMSPECIALIZATION - case "educationProfessionalLearningCommunity": - result = EDUCATIONPROFESSIONALLEARNINGCOMMUNITY_TEAMSPECIALIZATION - case "educationStaff": - result = EDUCATIONSTAFF_TEAMSPECIALIZATION - case "healthcareStandard": - result = HEALTHCARESTANDARD_TEAMSPECIALIZATION - case "healthcareCareCoordination": - result = HEALTHCARECARECOORDINATION_TEAMSPECIALIZATION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMSPECIALIZATION - default: - return 0, errors.New("Unknown TeamSpecialization value: " + v) - } - return &result, nil -} -func SerializeTeamSpecialization(values []TeamSpecialization) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamSpecialization) isMultiValue() bool { - return false -} diff --git a/models/team_template_audience.go b/models/team_template_audience.go deleted file mode 100644 index 27d270a52bf..00000000000 --- a/models/team_template_audience.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamTemplateAudience int - -const ( - ORGANIZATION_TEAMTEMPLATEAUDIENCE TeamTemplateAudience = iota - USER_TEAMTEMPLATEAUDIENCE - PUBLIC_TEAMTEMPLATEAUDIENCE - UNKNOWNFUTUREVALUE_TEAMTEMPLATEAUDIENCE -) - -func (i TeamTemplateAudience) String() string { - return []string{"organization", "user", "public", "unknownFutureValue"}[i] -} -func ParseTeamTemplateAudience(v string) (any, error) { - result := ORGANIZATION_TEAMTEMPLATEAUDIENCE - switch v { - case "organization": - result = ORGANIZATION_TEAMTEMPLATEAUDIENCE - case "user": - result = USER_TEAMTEMPLATEAUDIENCE - case "public": - result = PUBLIC_TEAMTEMPLATEAUDIENCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMTEMPLATEAUDIENCE - default: - return 0, errors.New("Unknown TeamTemplateAudience value: " + v) - } - return &result, nil -} -func SerializeTeamTemplateAudience(values []TeamTemplateAudience) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamTemplateAudience) isMultiValue() bool { - return false -} diff --git a/models/team_template_definition.go b/models/team_template_definition.go index 920c5f7d12f..bb47b5d5c8b 100644 --- a/models/team_template_definition.go +++ b/models/team_template_definition.go @@ -21,13 +21,13 @@ func CreateTeamTemplateDefinitionFromDiscriminatorValue(parseNode i878a80d2330e8 return NewTeamTemplateDefinition(), nil } // GetAudience gets the audience property value. Describes the audience the team template is available to. The possible values are: organization, user, public, unknownFutureValue. -func (m *TeamTemplateDefinition) GetAudience()(*TeamTemplateAudience) { +func (m *TeamTemplateDefinition) GetAudience()(*TeamTemplateDefinition_audience) { val, err := m.GetBackingStore().Get("audience") if err != nil { panic(err) } if val != nil { - return val.(*TeamTemplateAudience) + return val.(*TeamTemplateDefinition_audience) } return nil } @@ -68,12 +68,12 @@ func (m *TeamTemplateDefinition) GetDisplayName()(*string) { func (m *TeamTemplateDefinition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["audience"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamTemplateAudience) + val, err := n.GetEnumValue(ParseTeamTemplateDefinition_audience) if err != nil { return err } if val != nil { - m.SetAudience(val.(*TeamTemplateAudience)) + m.SetAudience(val.(*TeamTemplateDefinition_audience)) } return nil } @@ -365,7 +365,7 @@ func (m *TeamTemplateDefinition) Serialize(writer i878a80d2330e89d26896388a3f487 return nil } // SetAudience sets the audience property value. Describes the audience the team template is available to. The possible values are: organization, user, public, unknownFutureValue. -func (m *TeamTemplateDefinition) SetAudience(value *TeamTemplateAudience)() { +func (m *TeamTemplateDefinition) SetAudience(value *TeamTemplateDefinition_audience)() { err := m.GetBackingStore().Set("audience", value) if err != nil { panic(err) @@ -452,7 +452,7 @@ func (m *TeamTemplateDefinition) SetTeamDefinition(value Teamable)() { type TeamTemplateDefinitionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAudience()(*TeamTemplateAudience) + GetAudience()(*TeamTemplateDefinition_audience) GetCategories()([]string) GetDescription()(*string) GetDisplayName()(*string) @@ -464,7 +464,7 @@ type TeamTemplateDefinitionable interface { GetPublisherName()(*string) GetShortDescription()(*string) GetTeamDefinition()(Teamable) - SetAudience(value *TeamTemplateAudience)() + SetAudience(value *TeamTemplateDefinition_audience)() SetCategories(value []string)() SetDescription(value *string)() SetDisplayName(value *string)() diff --git a/models/team_template_definition_audience.go b/models/team_template_definition_audience.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/team_visibility.go b/models/team_visibility.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teams_app.go b/models/teams_app.go index 4ce40104bb8..11c3afebd8e 100644 --- a/models/teams_app.go +++ b/models/teams_app.go @@ -42,13 +42,13 @@ func (m *TeamsApp) GetDisplayName()(*string) { return nil } // GetDistributionMethod gets the distributionMethod property value. The method of distribution for the app. Read-only. -func (m *TeamsApp) GetDistributionMethod()(*TeamsAppDistributionMethod) { +func (m *TeamsApp) GetDistributionMethod()(*TeamsApp_distributionMethod) { val, err := m.GetBackingStore().Get("distributionMethod") if err != nil { panic(err) } if val != nil { - return val.(*TeamsAppDistributionMethod) + return val.(*TeamsApp_distributionMethod) } return nil } @@ -93,12 +93,12 @@ func (m *TeamsApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["distributionMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamsAppDistributionMethod) + val, err := n.GetEnumValue(ParseTeamsApp_distributionMethod) if err != nil { return err } if val != nil { - m.SetDistributionMethod(val.(*TeamsAppDistributionMethod)) + m.SetDistributionMethod(val.(*TeamsApp_distributionMethod)) } return nil } @@ -168,7 +168,7 @@ func (m *TeamsApp) SetDisplayName(value *string)() { } } // SetDistributionMethod sets the distributionMethod property value. The method of distribution for the app. Read-only. -func (m *TeamsApp) SetDistributionMethod(value *TeamsAppDistributionMethod)() { +func (m *TeamsApp) SetDistributionMethod(value *TeamsApp_distributionMethod)() { err := m.GetBackingStore().Set("distributionMethod", value) if err != nil { panic(err) @@ -187,10 +187,10 @@ type TeamsAppable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAppDefinitions()([]TeamsAppDefinitionable) GetDisplayName()(*string) - GetDistributionMethod()(*TeamsAppDistributionMethod) + GetDistributionMethod()(*TeamsApp_distributionMethod) GetExternalId()(*string) SetAppDefinitions(value []TeamsAppDefinitionable)() SetDisplayName(value *string)() - SetDistributionMethod(value *TeamsAppDistributionMethod)() + SetDistributionMethod(value *TeamsApp_distributionMethod)() SetExternalId(value *string)() } diff --git a/models/teams_app_definition.go b/models/teams_app_definition.go index 02afc730dcc..b50552da1b9 100644 --- a/models/teams_app_definition.go +++ b/models/teams_app_definition.go @@ -21,13 +21,13 @@ func CreateTeamsAppDefinitionFromDiscriminatorValue(parseNode i878a80d2330e89d26 return NewTeamsAppDefinition(), nil } // GetAllowedInstallationScopes gets the allowedInstallationScopes property value. A collection of scopes where the Teams app can be installed. Possible values are:team—Indicates that the Teams app can be installed within a team and is authorized to access that team's data. groupChat—Indicates that the Teams app can be installed within a group chat and is authorized to access that group chat's data. personal—Indicates that the Teams app can be installed in the personal scope of a user and is authorized to access that user's data. -func (m *TeamsAppDefinition) GetAllowedInstallationScopes()(*TeamsAppInstallationScopes) { +func (m *TeamsAppDefinition) GetAllowedInstallationScopes()(*TeamsAppDefinition_allowedInstallationScopes) { val, err := m.GetBackingStore().Get("allowedInstallationScopes") if err != nil { panic(err) } if val != nil { - return val.(*TeamsAppInstallationScopes) + return val.(*TeamsAppDefinition_allowedInstallationScopes) } return nil } @@ -112,12 +112,12 @@ func (m *TeamsAppDefinition) GetDisplayName()(*string) { func (m *TeamsAppDefinition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["allowedInstallationScopes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamsAppInstallationScopes) + val, err := n.GetEnumValue(ParseTeamsAppDefinition_allowedInstallationScopes) if err != nil { return err } if val != nil { - m.SetAllowedInstallationScopes(val.(*TeamsAppInstallationScopes)) + m.SetAllowedInstallationScopes(val.(*TeamsAppDefinition_allowedInstallationScopes)) } return nil } @@ -212,12 +212,12 @@ func (m *TeamsAppDefinition) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["publishingState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamsAppPublishingState) + val, err := n.GetEnumValue(ParseTeamsAppDefinition_publishingState) if err != nil { return err } if val != nil { - m.SetPublishingState(val.(*TeamsAppPublishingState)) + m.SetPublishingState(val.(*TeamsAppDefinition_publishingState)) } return nil } @@ -276,13 +276,13 @@ func (m *TeamsAppDefinition) GetOutlineIcon()(TeamsAppIconable) { return nil } // GetPublishingState gets the publishingState property value. The published status of a specific version of a Teams app. Possible values are:submitted—The specific version of the Teams app has been submitted and is under review. published—The request to publish the specific version of the Teams app has been approved by the admin and the app is published. rejected — The request to publish the specific version of the Teams app was rejected by the admin. -func (m *TeamsAppDefinition) GetPublishingState()(*TeamsAppPublishingState) { +func (m *TeamsAppDefinition) GetPublishingState()(*TeamsAppDefinition_publishingState) { val, err := m.GetBackingStore().Get("publishingState") if err != nil { panic(err) } if val != nil { - return val.(*TeamsAppPublishingState) + return val.(*TeamsAppDefinition_publishingState) } return nil } @@ -414,7 +414,7 @@ func (m *TeamsAppDefinition) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return nil } // SetAllowedInstallationScopes sets the allowedInstallationScopes property value. A collection of scopes where the Teams app can be installed. Possible values are:team—Indicates that the Teams app can be installed within a team and is authorized to access that team's data. groupChat—Indicates that the Teams app can be installed within a group chat and is authorized to access that group chat's data. personal—Indicates that the Teams app can be installed in the personal scope of a user and is authorized to access that user's data. -func (m *TeamsAppDefinition) SetAllowedInstallationScopes(value *TeamsAppInstallationScopes)() { +func (m *TeamsAppDefinition) SetAllowedInstallationScopes(value *TeamsAppDefinition_allowedInstallationScopes)() { err := m.GetBackingStore().Set("allowedInstallationScopes", value) if err != nil { panic(err) @@ -484,7 +484,7 @@ func (m *TeamsAppDefinition) SetOutlineIcon(value TeamsAppIconable)() { } } // SetPublishingState sets the publishingState property value. The published status of a specific version of a Teams app. Possible values are:submitted—The specific version of the Teams app has been submitted and is under review. published—The request to publish the specific version of the Teams app has been approved by the admin and the app is published. rejected — The request to publish the specific version of the Teams app was rejected by the admin. -func (m *TeamsAppDefinition) SetPublishingState(value *TeamsAppPublishingState)() { +func (m *TeamsAppDefinition) SetPublishingState(value *TeamsAppDefinition_publishingState)() { err := m.GetBackingStore().Set("publishingState", value) if err != nil { panic(err) @@ -515,7 +515,7 @@ func (m *TeamsAppDefinition) SetVersion(value *string)() { type TeamsAppDefinitionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedInstallationScopes()(*TeamsAppInstallationScopes) + GetAllowedInstallationScopes()(*TeamsAppDefinition_allowedInstallationScopes) GetAuthorization()(TeamsAppAuthorizationable) GetAzureADAppId()(*string) GetBot()(TeamworkBotable) @@ -525,11 +525,11 @@ type TeamsAppDefinitionable interface { GetDisplayName()(*string) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOutlineIcon()(TeamsAppIconable) - GetPublishingState()(*TeamsAppPublishingState) + GetPublishingState()(*TeamsAppDefinition_publishingState) GetShortdescription()(*string) GetTeamsAppId()(*string) GetVersion()(*string) - SetAllowedInstallationScopes(value *TeamsAppInstallationScopes)() + SetAllowedInstallationScopes(value *TeamsAppDefinition_allowedInstallationScopes)() SetAuthorization(value TeamsAppAuthorizationable)() SetAzureADAppId(value *string)() SetBot(value TeamworkBotable)() @@ -539,7 +539,7 @@ type TeamsAppDefinitionable interface { SetDisplayName(value *string)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOutlineIcon(value TeamsAppIconable)() - SetPublishingState(value *TeamsAppPublishingState)() + SetPublishingState(value *TeamsAppDefinition_publishingState)() SetShortdescription(value *string)() SetTeamsAppId(value *string)() SetVersion(value *string)() diff --git a/models/teams_app_definition_allowed_installation_scopes.go b/models/teams_app_definition_allowed_installation_scopes.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teams_app_definition_publishing_state.go b/models/teams_app_definition_publishing_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teams_app_distribution_method.go b/models/teams_app_distribution_method.go index 101ce98e8ec..e69de29bb2d 100644 --- a/models/teams_app_distribution_method.go +++ b/models/teams_app_distribution_method.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamsAppDistributionMethod int - -const ( - STORE_TEAMSAPPDISTRIBUTIONMETHOD TeamsAppDistributionMethod = iota - ORGANIZATION_TEAMSAPPDISTRIBUTIONMETHOD - SIDELOADED_TEAMSAPPDISTRIBUTIONMETHOD - UNKNOWNFUTUREVALUE_TEAMSAPPDISTRIBUTIONMETHOD -) - -func (i TeamsAppDistributionMethod) String() string { - return []string{"store", "organization", "sideloaded", "unknownFutureValue"}[i] -} -func ParseTeamsAppDistributionMethod(v string) (any, error) { - result := STORE_TEAMSAPPDISTRIBUTIONMETHOD - switch v { - case "store": - result = STORE_TEAMSAPPDISTRIBUTIONMETHOD - case "organization": - result = ORGANIZATION_TEAMSAPPDISTRIBUTIONMETHOD - case "sideloaded": - result = SIDELOADED_TEAMSAPPDISTRIBUTIONMETHOD - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMSAPPDISTRIBUTIONMETHOD - default: - return 0, errors.New("Unknown TeamsAppDistributionMethod value: " + v) - } - return &result, nil -} -func SerializeTeamsAppDistributionMethod(values []TeamsAppDistributionMethod) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamsAppDistributionMethod) isMultiValue() bool { - return false -} diff --git a/models/teams_app_installation_scopes.go b/models/teams_app_installation_scopes.go deleted file mode 100644 index 9c62013383a..00000000000 --- a/models/teams_app_installation_scopes.go +++ /dev/null @@ -1,53 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type TeamsAppInstallationScopes int - -const ( - TEAM_TEAMSAPPINSTALLATIONSCOPES TeamsAppInstallationScopes = iota - GROUPCHAT_TEAMSAPPINSTALLATIONSCOPES - PERSONAL_TEAMSAPPINSTALLATIONSCOPES - UNKNOWNFUTUREVALUE_TEAMSAPPINSTALLATIONSCOPES -) - -func (i TeamsAppInstallationScopes) String() string { - var values []string - for p := TeamsAppInstallationScopes(1); p <= UNKNOWNFUTUREVALUE_TEAMSAPPINSTALLATIONSCOPES; p <<= 1 { - if i&p == p { - values = append(values, []string{"team", "groupChat", "personal", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseTeamsAppInstallationScopes(v string) (any, error) { - var result TeamsAppInstallationScopes - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "team": - result |= TEAM_TEAMSAPPINSTALLATIONSCOPES - case "groupChat": - result |= GROUPCHAT_TEAMSAPPINSTALLATIONSCOPES - case "personal": - result |= PERSONAL_TEAMSAPPINSTALLATIONSCOPES - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_TEAMSAPPINSTALLATIONSCOPES - default: - return 0, errors.New("Unknown TeamsAppInstallationScopes value: " + v) - } - } - return &result, nil -} -func SerializeTeamsAppInstallationScopes(values []TeamsAppInstallationScopes) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamsAppInstallationScopes) isMultiValue() bool { - return true -} diff --git a/models/teams_app_publishing_state.go b/models/teams_app_publishing_state.go deleted file mode 100644 index 5b44db4cd6e..00000000000 --- a/models/teams_app_publishing_state.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamsAppPublishingState int - -const ( - SUBMITTED_TEAMSAPPPUBLISHINGSTATE TeamsAppPublishingState = iota - REJECTED_TEAMSAPPPUBLISHINGSTATE - PUBLISHED_TEAMSAPPPUBLISHINGSTATE - UNKNOWNFUTUREVALUE_TEAMSAPPPUBLISHINGSTATE -) - -func (i TeamsAppPublishingState) String() string { - return []string{"submitted", "rejected", "published", "unknownFutureValue"}[i] -} -func ParseTeamsAppPublishingState(v string) (any, error) { - result := SUBMITTED_TEAMSAPPPUBLISHINGSTATE - switch v { - case "submitted": - result = SUBMITTED_TEAMSAPPPUBLISHINGSTATE - case "rejected": - result = REJECTED_TEAMSAPPPUBLISHINGSTATE - case "published": - result = PUBLISHED_TEAMSAPPPUBLISHINGSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMSAPPPUBLISHINGSTATE - default: - return 0, errors.New("Unknown TeamsAppPublishingState value: " + v) - } - return &result, nil -} -func SerializeTeamsAppPublishingState(values []TeamsAppPublishingState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamsAppPublishingState) isMultiValue() bool { - return false -} diff --git a/models/teams_app_resource_specific_permission.go b/models/teams_app_resource_specific_permission.go index 056f02de66d..169a72a3246 100644 --- a/models/teams_app_resource_specific_permission.go +++ b/models/teams_app_resource_specific_permission.go @@ -52,12 +52,12 @@ func (m *TeamsAppResourceSpecificPermission) GetFieldDeserializers()(map[string] return nil } res["permissionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamsAppResourceSpecificPermissionType) + val, err := n.GetEnumValue(ParseTeamsAppResourceSpecificPermission_permissionType) if err != nil { return err } if val != nil { - m.SetPermissionType(val.(*TeamsAppResourceSpecificPermissionType)) + m.SetPermissionType(val.(*TeamsAppResourceSpecificPermission_permissionType)) } return nil } @@ -85,13 +85,13 @@ func (m *TeamsAppResourceSpecificPermission) GetOdataType()(*string) { return nil } // GetPermissionType gets the permissionType property value. The type of resource-specific permission. -func (m *TeamsAppResourceSpecificPermission) GetPermissionType()(*TeamsAppResourceSpecificPermissionType) { +func (m *TeamsAppResourceSpecificPermission) GetPermissionType()(*TeamsAppResourceSpecificPermission_permissionType) { val, err := m.GetBackingStore().Get("permissionType") if err != nil { panic(err) } if val != nil { - return val.(*TeamsAppResourceSpecificPermissionType) + return val.(*TeamsAppResourceSpecificPermission_permissionType) } return nil } @@ -154,7 +154,7 @@ func (m *TeamsAppResourceSpecificPermission) SetOdataType(value *string)() { } } // SetPermissionType sets the permissionType property value. The type of resource-specific permission. -func (m *TeamsAppResourceSpecificPermission) SetPermissionType(value *TeamsAppResourceSpecificPermissionType)() { +func (m *TeamsAppResourceSpecificPermission) SetPermissionType(value *TeamsAppResourceSpecificPermission_permissionType)() { err := m.GetBackingStore().Set("permissionType", value) if err != nil { panic(err) @@ -174,10 +174,10 @@ type TeamsAppResourceSpecificPermissionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetPermissionType()(*TeamsAppResourceSpecificPermissionType) + GetPermissionType()(*TeamsAppResourceSpecificPermission_permissionType) GetPermissionValue()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetPermissionType(value *TeamsAppResourceSpecificPermissionType)() + SetPermissionType(value *TeamsAppResourceSpecificPermission_permissionType)() SetPermissionValue(value *string)() } diff --git a/models/teams_app_resource_specific_permission_permission_type.go b/models/teams_app_resource_specific_permission_permission_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teams_app_resource_specific_permission_type.go b/models/teams_app_resource_specific_permission_type.go deleted file mode 100644 index 33531b77b33..00000000000 --- a/models/teams_app_resource_specific_permission_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamsAppResourceSpecificPermissionType int - -const ( - DELEGATED_TEAMSAPPRESOURCESPECIFICPERMISSIONTYPE TeamsAppResourceSpecificPermissionType = iota - APPLICATION_TEAMSAPPRESOURCESPECIFICPERMISSIONTYPE - UNKNOWNFUTUREVALUE_TEAMSAPPRESOURCESPECIFICPERMISSIONTYPE -) - -func (i TeamsAppResourceSpecificPermissionType) String() string { - return []string{"delegated", "application", "unknownFutureValue"}[i] -} -func ParseTeamsAppResourceSpecificPermissionType(v string) (any, error) { - result := DELEGATED_TEAMSAPPRESOURCESPECIFICPERMISSIONTYPE - switch v { - case "delegated": - result = DELEGATED_TEAMSAPPRESOURCESPECIFICPERMISSIONTYPE - case "application": - result = APPLICATION_TEAMSAPPRESOURCESPECIFICPERMISSIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMSAPPRESOURCESPECIFICPERMISSIONTYPE - default: - return 0, errors.New("Unknown TeamsAppResourceSpecificPermissionType value: " + v) - } - return &result, nil -} -func SerializeTeamsAppResourceSpecificPermissionType(values []TeamsAppResourceSpecificPermissionType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamsAppResourceSpecificPermissionType) isMultiValue() bool { - return false -} diff --git a/models/teams_async_operation_type.go b/models/teams_async_operation_type.go index c5e80a84756..20bb1d90a6b 100644 --- a/models/teams_async_operation_type.go +++ b/models/teams_async_operation_type.go @@ -15,10 +15,12 @@ const ( TEAMIFYGROUP_TEAMSASYNCOPERATIONTYPE CREATECHANNEL_TEAMSASYNCOPERATIONTYPE CREATECHAT_TEAMSASYNCOPERATIONTYPE + ARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE + UNARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE ) func (i TeamsAsyncOperationType) String() string { - return []string{"invalid", "cloneTeam", "archiveTeam", "unarchiveTeam", "createTeam", "unknownFutureValue", "teamifyGroup", "createChannel", "createChat"}[i] + return []string{"invalid", "cloneTeam", "archiveTeam", "unarchiveTeam", "createTeam", "unknownFutureValue", "teamifyGroup", "createChannel", "createChat", "archiveChannel", "unarchiveChannel"}[i] } func ParseTeamsAsyncOperationType(v string) (any, error) { result := INVALID_TEAMSASYNCOPERATIONTYPE @@ -41,6 +43,10 @@ func ParseTeamsAsyncOperationType(v string) (any, error) { result = CREATECHANNEL_TEAMSASYNCOPERATIONTYPE case "createChat": result = CREATECHAT_TEAMSASYNCOPERATIONTYPE + case "archiveChannel": + result = ARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE + case "unarchiveChannel": + result = UNARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE default: return 0, errors.New("Unknown TeamsAsyncOperationType value: " + v) } diff --git a/models/teams_licensing_details.go b/models/teams_licensing_details.go new file mode 100644 index 00000000000..a6157839e70 --- /dev/null +++ b/models/teams_licensing_details.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// TeamsLicensingDetails +type TeamsLicensingDetails struct { + Entity +} +// NewTeamsLicensingDetails instantiates a new teamsLicensingDetails and sets the default values. +func NewTeamsLicensingDetails()(*TeamsLicensingDetails) { + m := &TeamsLicensingDetails{ + Entity: *NewEntity(), + } + return m +} +// CreateTeamsLicensingDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTeamsLicensingDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamsLicensingDetails(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *TeamsLicensingDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["hasTeamsLicense"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasTeamsLicense(val) + } + return nil + } + return res +} +// GetHasTeamsLicense gets the hasTeamsLicense property value. Indicates whether the user has a valid license to use Microsoft Teams. +func (m *TeamsLicensingDetails) GetHasTeamsLicense()(*bool) { + val, err := m.GetBackingStore().Get("hasTeamsLicense") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamsLicensingDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteBoolValue("hasTeamsLicense", m.GetHasTeamsLicense()) + if err != nil { + return err + } + } + return nil +} +// SetHasTeamsLicense sets the hasTeamsLicense property value. Indicates whether the user has a valid license to use Microsoft Teams. +func (m *TeamsLicensingDetails) SetHasTeamsLicense(value *bool)() { + err := m.GetBackingStore().Set("hasTeamsLicense", value) + if err != nil { + panic(err) + } +} +// TeamsLicensingDetailsable +type TeamsLicensingDetailsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetHasTeamsLicense()(*bool) + SetHasTeamsLicense(value *bool)() +} diff --git a/models/teamwork.go b/models/teamwork.go index d071fc07a12..c32109e5ce9 100644 --- a/models/teamwork.go +++ b/models/teamwork.go @@ -103,6 +103,26 @@ func (m *Teamwork) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["isTeamsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsTeamsEnabled(val) + } + return nil + } + res["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegion(val) + } + return nil + } res["teamsAppSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateTeamsAppSettingsFromDiscriminatorValue) if err != nil { @@ -147,6 +167,28 @@ func (m *Teamwork) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } +// GetIsTeamsEnabled gets the isTeamsEnabled property value. Indicates whether Microsoft Teams is enabled for the organization. +func (m *Teamwork) GetIsTeamsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isTeamsEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetRegion gets the region property value. Represents the region of the organization. +func (m *Teamwork) GetRegion()(*string) { + val, err := m.GetBackingStore().Get("region") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamsAppSettings gets the teamsAppSettings property value. Represents tenant-wide settings for all Teams apps in the tenant. func (m *Teamwork) GetTeamsAppSettings()(TeamsAppSettingsable) { val, err := m.GetBackingStore().Get("teamsAppSettings") @@ -222,6 +264,18 @@ func (m *Teamwork) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteBoolValue("isTeamsEnabled", m.GetIsTeamsEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("region", m.GetRegion()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("teamsAppSettings", m.GetTeamsAppSettings()) if err != nil { @@ -275,6 +329,20 @@ func (m *Teamwork) SetDevices(value []TeamworkDeviceable)() { panic(err) } } +// SetIsTeamsEnabled sets the isTeamsEnabled property value. Indicates whether Microsoft Teams is enabled for the organization. +func (m *Teamwork) SetIsTeamsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isTeamsEnabled", value) + if err != nil { + panic(err) + } +} +// SetRegion sets the region property value. Represents the region of the organization. +func (m *Teamwork) SetRegion(value *string)() { + err := m.GetBackingStore().Set("region", value) + if err != nil { + panic(err) + } +} // SetTeamsAppSettings sets the teamsAppSettings property value. Represents tenant-wide settings for all Teams apps in the tenant. func (m *Teamwork) SetTeamsAppSettings(value TeamsAppSettingsable)() { err := m.GetBackingStore().Set("teamsAppSettings", value) @@ -303,12 +371,16 @@ type Teamworkable interface { GetDeletedChats()([]DeletedChatable) GetDeletedTeams()([]DeletedTeamable) GetDevices()([]TeamworkDeviceable) + GetIsTeamsEnabled()(*bool) + GetRegion()(*string) GetTeamsAppSettings()(TeamsAppSettingsable) GetTeamTemplates()([]TeamTemplateable) GetWorkforceIntegrations()([]WorkforceIntegrationable) SetDeletedChats(value []DeletedChatable)() SetDeletedTeams(value []DeletedTeamable)() SetDevices(value []TeamworkDeviceable)() + SetIsTeamsEnabled(value *bool)() + SetRegion(value *string)() SetTeamsAppSettings(value TeamsAppSettingsable)() SetTeamTemplates(value []TeamTemplateable)() SetWorkforceIntegrations(value []WorkforceIntegrationable)() diff --git a/models/teamwork_account_configuration.go b/models/teamwork_account_configuration.go index 3e0572eb2d6..ae59f098bba 100644 --- a/models/teamwork_account_configuration.go +++ b/models/teamwork_account_configuration.go @@ -62,12 +62,12 @@ func (m *TeamworkAccountConfiguration) GetFieldDeserializers()(map[string]func(i return nil } res["supportedClient"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkSupportedClient) + val, err := n.GetEnumValue(ParseTeamworkAccountConfiguration_supportedClient) if err != nil { return err } if val != nil { - m.SetSupportedClient(val.(*TeamworkSupportedClient)) + m.SetSupportedClient(val.(*TeamworkAccountConfiguration_supportedClient)) } return nil } @@ -96,13 +96,13 @@ func (m *TeamworkAccountConfiguration) GetOnPremisesCalendarSyncConfiguration()( return nil } // GetSupportedClient gets the supportedClient property value. The supported client for Teams Rooms devices. The possible values are: unknown, skypeDefaultAndTeams, teamsDefaultAndSkype, skypeOnly, teamsOnly, unknownFutureValue. -func (m *TeamworkAccountConfiguration) GetSupportedClient()(*TeamworkSupportedClient) { +func (m *TeamworkAccountConfiguration) GetSupportedClient()(*TeamworkAccountConfiguration_supportedClient) { val, err := m.GetBackingStore().Get("supportedClient") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkSupportedClient) + return val.(*TeamworkAccountConfiguration_supportedClient) } return nil } @@ -161,7 +161,7 @@ func (m *TeamworkAccountConfiguration) SetOnPremisesCalendarSyncConfiguration(va } } // SetSupportedClient sets the supportedClient property value. The supported client for Teams Rooms devices. The possible values are: unknown, skypeDefaultAndTeams, teamsDefaultAndSkype, skypeOnly, teamsOnly, unknownFutureValue. -func (m *TeamworkAccountConfiguration) SetSupportedClient(value *TeamworkSupportedClient)() { +func (m *TeamworkAccountConfiguration) SetSupportedClient(value *TeamworkAccountConfiguration_supportedClient)() { err := m.GetBackingStore().Set("supportedClient", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type TeamworkAccountConfigurationable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetOnPremisesCalendarSyncConfiguration()(TeamworkOnPremisesCalendarSyncConfigurationable) - GetSupportedClient()(*TeamworkSupportedClient) + GetSupportedClient()(*TeamworkAccountConfiguration_supportedClient) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetOnPremisesCalendarSyncConfiguration(value TeamworkOnPremisesCalendarSyncConfigurationable)() - SetSupportedClient(value *TeamworkSupportedClient)() + SetSupportedClient(value *TeamworkAccountConfiguration_supportedClient)() } diff --git a/models/teamwork_account_configuration_supported_client.go b/models/teamwork_account_configuration_supported_client.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teamwork_activity_topic.go b/models/teamwork_activity_topic.go index f027c3731ad..9b4aa4d781e 100644 --- a/models/teamwork_activity_topic.go +++ b/models/teamwork_activity_topic.go @@ -52,12 +52,12 @@ func (m *TeamworkActivityTopic) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkActivityTopicSource) + val, err := n.GetEnumValue(ParseTeamworkActivityTopic_source) if err != nil { return err } if val != nil { - m.SetSource(val.(*TeamworkActivityTopicSource)) + m.SetSource(val.(*TeamworkActivityTopic_source)) } return nil } @@ -95,13 +95,13 @@ func (m *TeamworkActivityTopic) GetOdataType()(*string) { return nil } // GetSource gets the source property value. Type of source. Possible values are: entityUrl, text. For supported Microsoft Graph URLs, use entityUrl. For custom text, use text. -func (m *TeamworkActivityTopic) GetSource()(*TeamworkActivityTopicSource) { +func (m *TeamworkActivityTopic) GetSource()(*TeamworkActivityTopic_source) { val, err := m.GetBackingStore().Get("source") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkActivityTopicSource) + return val.(*TeamworkActivityTopic_source) } return nil } @@ -181,7 +181,7 @@ func (m *TeamworkActivityTopic) SetOdataType(value *string)() { } } // SetSource sets the source property value. Type of source. Possible values are: entityUrl, text. For supported Microsoft Graph URLs, use entityUrl. For custom text, use text. -func (m *TeamworkActivityTopic) SetSource(value *TeamworkActivityTopicSource)() { +func (m *TeamworkActivityTopic) SetSource(value *TeamworkActivityTopic_source)() { err := m.GetBackingStore().Set("source", value) if err != nil { panic(err) @@ -208,12 +208,12 @@ type TeamworkActivityTopicable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetSource()(*TeamworkActivityTopicSource) + GetSource()(*TeamworkActivityTopic_source) GetValue()(*string) GetWebUrl()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetSource(value *TeamworkActivityTopicSource)() + SetSource(value *TeamworkActivityTopic_source)() SetValue(value *string)() SetWebUrl(value *string)() } diff --git a/models/teamwork_activity_topic_source.go b/models/teamwork_activity_topic_source.go index 229c48e0ad1..e69de29bb2d 100644 --- a/models/teamwork_activity_topic_source.go +++ b/models/teamwork_activity_topic_source.go @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkActivityTopicSource int - -const ( - ENTITYURL_TEAMWORKACTIVITYTOPICSOURCE TeamworkActivityTopicSource = iota - TEXT_TEAMWORKACTIVITYTOPICSOURCE -) - -func (i TeamworkActivityTopicSource) String() string { - return []string{"entityUrl", "text"}[i] -} -func ParseTeamworkActivityTopicSource(v string) (any, error) { - result := ENTITYURL_TEAMWORKACTIVITYTOPICSOURCE - switch v { - case "entityUrl": - result = ENTITYURL_TEAMWORKACTIVITYTOPICSOURCE - case "text": - result = TEXT_TEAMWORKACTIVITYTOPICSOURCE - default: - return 0, errors.New("Unknown TeamworkActivityTopicSource value: " + v) - } - return &result, nil -} -func SerializeTeamworkActivityTopicSource(values []TeamworkActivityTopicSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkActivityTopicSource) isMultiValue() bool { - return false -} diff --git a/models/teamwork_application_identity.go b/models/teamwork_application_identity.go index dbea4b0c8b5..e209678c0b9 100644 --- a/models/teamwork_application_identity.go +++ b/models/teamwork_application_identity.go @@ -22,13 +22,13 @@ func CreateTeamworkApplicationIdentityFromDiscriminatorValue(parseNode i878a80d2 return NewTeamworkApplicationIdentity(), nil } // GetApplicationIdentityType gets the applicationIdentityType property value. Type of application that is referenced. Possible values are: aadApplication, bot, tenantBot, office365Connector, and outgoingWebhook. -func (m *TeamworkApplicationIdentity) GetApplicationIdentityType()(*TeamworkApplicationIdentityType) { +func (m *TeamworkApplicationIdentity) GetApplicationIdentityType()(*TeamworkApplicationIdentity_applicationIdentityType) { val, err := m.GetBackingStore().Get("applicationIdentityType") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkApplicationIdentityType) + return val.(*TeamworkApplicationIdentity_applicationIdentityType) } return nil } @@ -36,12 +36,12 @@ func (m *TeamworkApplicationIdentity) GetApplicationIdentityType()(*TeamworkAppl func (m *TeamworkApplicationIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Identity.GetFieldDeserializers() res["applicationIdentityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkApplicationIdentityType) + val, err := n.GetEnumValue(ParseTeamworkApplicationIdentity_applicationIdentityType) if err != nil { return err } if val != nil { - m.SetApplicationIdentityType(val.(*TeamworkApplicationIdentityType)) + m.SetApplicationIdentityType(val.(*TeamworkApplicationIdentity_applicationIdentityType)) } return nil } @@ -63,7 +63,7 @@ func (m *TeamworkApplicationIdentity) Serialize(writer i878a80d2330e89d26896388a return nil } // SetApplicationIdentityType sets the applicationIdentityType property value. Type of application that is referenced. Possible values are: aadApplication, bot, tenantBot, office365Connector, and outgoingWebhook. -func (m *TeamworkApplicationIdentity) SetApplicationIdentityType(value *TeamworkApplicationIdentityType)() { +func (m *TeamworkApplicationIdentity) SetApplicationIdentityType(value *TeamworkApplicationIdentity_applicationIdentityType)() { err := m.GetBackingStore().Set("applicationIdentityType", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *TeamworkApplicationIdentity) SetApplicationIdentityType(value *Teamwork type TeamworkApplicationIdentityable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetApplicationIdentityType()(*TeamworkApplicationIdentityType) - SetApplicationIdentityType(value *TeamworkApplicationIdentityType)() + GetApplicationIdentityType()(*TeamworkApplicationIdentity_applicationIdentityType) + SetApplicationIdentityType(value *TeamworkApplicationIdentity_applicationIdentityType)() } diff --git a/models/teamwork_application_identity_application_identity_type.go b/models/teamwork_application_identity_application_identity_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teamwork_application_identity_type.go b/models/teamwork_application_identity_type.go deleted file mode 100644 index 19f45e750fa..00000000000 --- a/models/teamwork_application_identity_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkApplicationIdentityType int - -const ( - AADAPPLICATION_TEAMWORKAPPLICATIONIDENTITYTYPE TeamworkApplicationIdentityType = iota - BOT_TEAMWORKAPPLICATIONIDENTITYTYPE - TENANTBOT_TEAMWORKAPPLICATIONIDENTITYTYPE - OFFICE365CONNECTOR_TEAMWORKAPPLICATIONIDENTITYTYPE - OUTGOINGWEBHOOK_TEAMWORKAPPLICATIONIDENTITYTYPE - UNKNOWNFUTUREVALUE_TEAMWORKAPPLICATIONIDENTITYTYPE -) - -func (i TeamworkApplicationIdentityType) String() string { - return []string{"aadApplication", "bot", "tenantBot", "office365Connector", "outgoingWebhook", "unknownFutureValue"}[i] -} -func ParseTeamworkApplicationIdentityType(v string) (any, error) { - result := AADAPPLICATION_TEAMWORKAPPLICATIONIDENTITYTYPE - switch v { - case "aadApplication": - result = AADAPPLICATION_TEAMWORKAPPLICATIONIDENTITYTYPE - case "bot": - result = BOT_TEAMWORKAPPLICATIONIDENTITYTYPE - case "tenantBot": - result = TENANTBOT_TEAMWORKAPPLICATIONIDENTITYTYPE - case "office365Connector": - result = OFFICE365CONNECTOR_TEAMWORKAPPLICATIONIDENTITYTYPE - case "outgoingWebhook": - result = OUTGOINGWEBHOOK_TEAMWORKAPPLICATIONIDENTITYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKAPPLICATIONIDENTITYTYPE - default: - return 0, errors.New("Unknown TeamworkApplicationIdentityType value: " + v) - } - return &result, nil -} -func SerializeTeamworkApplicationIdentityType(values []TeamworkApplicationIdentityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkApplicationIdentityType) isMultiValue() bool { - return false -} diff --git a/models/teamwork_call_event_type.go b/models/teamwork_call_event_type.go deleted file mode 100644 index 6ddcb14e428..00000000000 --- a/models/teamwork_call_event_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkCallEventType int - -const ( - CALL_TEAMWORKCALLEVENTTYPE TeamworkCallEventType = iota - MEETING_TEAMWORKCALLEVENTTYPE - SCREENSHARE_TEAMWORKCALLEVENTTYPE - UNKNOWNFUTUREVALUE_TEAMWORKCALLEVENTTYPE -) - -func (i TeamworkCallEventType) String() string { - return []string{"call", "meeting", "screenShare", "unknownFutureValue"}[i] -} -func ParseTeamworkCallEventType(v string) (any, error) { - result := CALL_TEAMWORKCALLEVENTTYPE - switch v { - case "call": - result = CALL_TEAMWORKCALLEVENTTYPE - case "meeting": - result = MEETING_TEAMWORKCALLEVENTTYPE - case "screenShare": - result = SCREENSHARE_TEAMWORKCALLEVENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKCALLEVENTTYPE - default: - return 0, errors.New("Unknown TeamworkCallEventType value: " + v) - } - return &result, nil -} -func SerializeTeamworkCallEventType(values []TeamworkCallEventType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkCallEventType) isMultiValue() bool { - return false -} diff --git a/models/teamwork_connection.go b/models/teamwork_connection.go index 88aac5fbe60..72f6454778e 100644 --- a/models/teamwork_connection.go +++ b/models/teamwork_connection.go @@ -40,13 +40,13 @@ func (m *TeamworkConnection) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d4 return m.backingStore } // GetConnectionStatus gets the connectionStatus property value. Indicates whether a component/peripheral is connected/disconnected or its state is unknown. The possible values are: unknown, connected, disconnected, unknownFutureValue. -func (m *TeamworkConnection) GetConnectionStatus()(*TeamworkConnectionStatus) { +func (m *TeamworkConnection) GetConnectionStatus()(*TeamworkConnection_connectionStatus) { val, err := m.GetBackingStore().Get("connectionStatus") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkConnectionStatus) + return val.(*TeamworkConnection_connectionStatus) } return nil } @@ -54,12 +54,12 @@ func (m *TeamworkConnection) GetConnectionStatus()(*TeamworkConnectionStatus) { func (m *TeamworkConnection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["connectionStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkConnectionStatus) + val, err := n.GetEnumValue(ParseTeamworkConnection_connectionStatus) if err != nil { return err } if val != nil { - m.SetConnectionStatus(val.(*TeamworkConnectionStatus)) + m.SetConnectionStatus(val.(*TeamworkConnection_connectionStatus)) } return nil } @@ -148,7 +148,7 @@ func (m *TeamworkConnection) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd0 m.backingStore = value } // SetConnectionStatus sets the connectionStatus property value. Indicates whether a component/peripheral is connected/disconnected or its state is unknown. The possible values are: unknown, connected, disconnected, unknownFutureValue. -func (m *TeamworkConnection) SetConnectionStatus(value *TeamworkConnectionStatus)() { +func (m *TeamworkConnection) SetConnectionStatus(value *TeamworkConnection_connectionStatus)() { err := m.GetBackingStore().Set("connectionStatus", value) if err != nil { panic(err) @@ -174,11 +174,11 @@ type TeamworkConnectionable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetConnectionStatus()(*TeamworkConnectionStatus) + GetConnectionStatus()(*TeamworkConnection_connectionStatus) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetConnectionStatus(value *TeamworkConnectionStatus)() + SetConnectionStatus(value *TeamworkConnection_connectionStatus)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOdataType(value *string)() } diff --git a/models/teamwork_connection_connection_status.go b/models/teamwork_connection_connection_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teamwork_connection_status.go b/models/teamwork_connection_status.go deleted file mode 100644 index 44c7ef63972..00000000000 --- a/models/teamwork_connection_status.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkConnectionStatus int - -const ( - UNKNOWN_TEAMWORKCONNECTIONSTATUS TeamworkConnectionStatus = iota - CONNECTED_TEAMWORKCONNECTIONSTATUS - DISCONNECTED_TEAMWORKCONNECTIONSTATUS - UNKNOWNFUTUREVALUE_TEAMWORKCONNECTIONSTATUS -) - -func (i TeamworkConnectionStatus) String() string { - return []string{"unknown", "connected", "disconnected", "unknownFutureValue"}[i] -} -func ParseTeamworkConnectionStatus(v string) (any, error) { - result := UNKNOWN_TEAMWORKCONNECTIONSTATUS - switch v { - case "unknown": - result = UNKNOWN_TEAMWORKCONNECTIONSTATUS - case "connected": - result = CONNECTED_TEAMWORKCONNECTIONSTATUS - case "disconnected": - result = DISCONNECTED_TEAMWORKCONNECTIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKCONNECTIONSTATUS - default: - return 0, errors.New("Unknown TeamworkConnectionStatus value: " + v) - } - return &result, nil -} -func SerializeTeamworkConnectionStatus(values []TeamworkConnectionStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkConnectionStatus) isMultiValue() bool { - return false -} diff --git a/models/teamwork_conversation_identity.go b/models/teamwork_conversation_identity.go index 1c61e149443..9b2faa5c2f4 100644 --- a/models/teamwork_conversation_identity.go +++ b/models/teamwork_conversation_identity.go @@ -22,13 +22,13 @@ func CreateTeamworkConversationIdentityFromDiscriminatorValue(parseNode i878a80d return NewTeamworkConversationIdentity(), nil } // GetConversationIdentityType gets the conversationIdentityType property value. Type of conversation. Possible values are: team, channel, and chat. -func (m *TeamworkConversationIdentity) GetConversationIdentityType()(*TeamworkConversationIdentityType) { +func (m *TeamworkConversationIdentity) GetConversationIdentityType()(*TeamworkConversationIdentity_conversationIdentityType) { val, err := m.GetBackingStore().Get("conversationIdentityType") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkConversationIdentityType) + return val.(*TeamworkConversationIdentity_conversationIdentityType) } return nil } @@ -36,12 +36,12 @@ func (m *TeamworkConversationIdentity) GetConversationIdentityType()(*TeamworkCo func (m *TeamworkConversationIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Identity.GetFieldDeserializers() res["conversationIdentityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkConversationIdentityType) + val, err := n.GetEnumValue(ParseTeamworkConversationIdentity_conversationIdentityType) if err != nil { return err } if val != nil { - m.SetConversationIdentityType(val.(*TeamworkConversationIdentityType)) + m.SetConversationIdentityType(val.(*TeamworkConversationIdentity_conversationIdentityType)) } return nil } @@ -63,7 +63,7 @@ func (m *TeamworkConversationIdentity) Serialize(writer i878a80d2330e89d26896388 return nil } // SetConversationIdentityType sets the conversationIdentityType property value. Type of conversation. Possible values are: team, channel, and chat. -func (m *TeamworkConversationIdentity) SetConversationIdentityType(value *TeamworkConversationIdentityType)() { +func (m *TeamworkConversationIdentity) SetConversationIdentityType(value *TeamworkConversationIdentity_conversationIdentityType)() { err := m.GetBackingStore().Set("conversationIdentityType", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *TeamworkConversationIdentity) SetConversationIdentityType(value *Teamwo type TeamworkConversationIdentityable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetConversationIdentityType()(*TeamworkConversationIdentityType) - SetConversationIdentityType(value *TeamworkConversationIdentityType)() + GetConversationIdentityType()(*TeamworkConversationIdentity_conversationIdentityType) + SetConversationIdentityType(value *TeamworkConversationIdentity_conversationIdentityType)() } diff --git a/models/teamwork_conversation_identity_conversation_identity_type.go b/models/teamwork_conversation_identity_conversation_identity_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teamwork_conversation_identity_type.go b/models/teamwork_conversation_identity_type.go deleted file mode 100644 index d9f247a2fd9..00000000000 --- a/models/teamwork_conversation_identity_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkConversationIdentityType int - -const ( - TEAM_TEAMWORKCONVERSATIONIDENTITYTYPE TeamworkConversationIdentityType = iota - CHANNEL_TEAMWORKCONVERSATIONIDENTITYTYPE - CHAT_TEAMWORKCONVERSATIONIDENTITYTYPE - UNKNOWNFUTUREVALUE_TEAMWORKCONVERSATIONIDENTITYTYPE -) - -func (i TeamworkConversationIdentityType) String() string { - return []string{"team", "channel", "chat", "unknownFutureValue"}[i] -} -func ParseTeamworkConversationIdentityType(v string) (any, error) { - result := TEAM_TEAMWORKCONVERSATIONIDENTITYTYPE - switch v { - case "team": - result = TEAM_TEAMWORKCONVERSATIONIDENTITYTYPE - case "channel": - result = CHANNEL_TEAMWORKCONVERSATIONIDENTITYTYPE - case "chat": - result = CHAT_TEAMWORKCONVERSATIONIDENTITYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKCONVERSATIONIDENTITYTYPE - default: - return 0, errors.New("Unknown TeamworkConversationIdentityType value: " + v) - } - return &result, nil -} -func SerializeTeamworkConversationIdentityType(values []TeamworkConversationIdentityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkConversationIdentityType) isMultiValue() bool { - return false -} diff --git a/models/teamwork_device.go b/models/teamwork_device.go index 67c1b9434eb..72c69dee1ee 100644 --- a/models/teamwork_device.go +++ b/models/teamwork_device.go @@ -32,13 +32,13 @@ func (m *TeamworkDevice) GetActivity()(TeamworkDeviceActivityable) { return nil } // GetActivityState gets the activityState property value. The activity state of the device. The possible values are: unknown, busy, idle, unavailable, unknownFutureValue. -func (m *TeamworkDevice) GetActivityState()(*TeamworkDeviceActivityState) { +func (m *TeamworkDevice) GetActivityState()(*TeamworkDevice_activityState) { val, err := m.GetBackingStore().Get("activityState") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkDeviceActivityState) + return val.(*TeamworkDevice_activityState) } return nil } @@ -122,12 +122,12 @@ func (m *TeamworkDevice) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["activityState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkDeviceActivityState) + val, err := n.GetEnumValue(ParseTeamworkDevice_activityState) if err != nil { return err } if val != nil { - m.SetActivityState(val.(*TeamworkDeviceActivityState)) + m.SetActivityState(val.(*TeamworkDevice_activityState)) } return nil } @@ -212,12 +212,12 @@ func (m *TeamworkDevice) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["healthStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkDeviceHealthStatus) + val, err := n.GetEnumValue(ParseTeamworkDevice_healthStatus) if err != nil { return err } if val != nil { - m.SetHealthStatus(val.(*TeamworkDeviceHealthStatus)) + m.SetHealthStatus(val.(*TeamworkDevice_healthStatus)) } return nil } @@ -292,13 +292,13 @@ func (m *TeamworkDevice) GetHealth()(TeamworkDeviceHealthable) { return nil } // GetHealthStatus gets the healthStatus property value. The health status of the device. The possible values are: unknown, offline, critical, nonUrgent, healthy, unknownFutureValue. -func (m *TeamworkDevice) GetHealthStatus()(*TeamworkDeviceHealthStatus) { +func (m *TeamworkDevice) GetHealthStatus()(*TeamworkDevice_healthStatus) { val, err := m.GetBackingStore().Get("healthStatus") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkDeviceHealthStatus) + return val.(*TeamworkDevice_healthStatus) } return nil } @@ -461,7 +461,7 @@ func (m *TeamworkDevice) SetActivity(value TeamworkDeviceActivityable)() { } } // SetActivityState sets the activityState property value. The activity state of the device. The possible values are: unknown, busy, idle, unavailable, unknownFutureValue. -func (m *TeamworkDevice) SetActivityState(value *TeamworkDeviceActivityState)() { +func (m *TeamworkDevice) SetActivityState(value *TeamworkDevice_activityState)() { err := m.GetBackingStore().Set("activityState", value) if err != nil { panic(err) @@ -524,7 +524,7 @@ func (m *TeamworkDevice) SetHealth(value TeamworkDeviceHealthable)() { } } // SetHealthStatus sets the healthStatus property value. The health status of the device. The possible values are: unknown, offline, critical, nonUrgent, healthy, unknownFutureValue. -func (m *TeamworkDevice) SetHealthStatus(value *TeamworkDeviceHealthStatus)() { +func (m *TeamworkDevice) SetHealthStatus(value *TeamworkDevice_healthStatus)() { err := m.GetBackingStore().Set("healthStatus", value) if err != nil { panic(err) @@ -563,7 +563,7 @@ type TeamworkDeviceable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActivity()(TeamworkDeviceActivityable) - GetActivityState()(*TeamworkDeviceActivityState) + GetActivityState()(*TeamworkDevice_activityState) GetCompanyAssetTag()(*string) GetConfiguration()(TeamworkDeviceConfigurationable) GetCreatedBy()(IdentitySetable) @@ -572,13 +572,13 @@ type TeamworkDeviceable interface { GetDeviceType()(*TeamworkDeviceType) GetHardwareDetail()(TeamworkHardwareDetailable) GetHealth()(TeamworkDeviceHealthable) - GetHealthStatus()(*TeamworkDeviceHealthStatus) + GetHealthStatus()(*TeamworkDevice_healthStatus) GetLastModifiedBy()(IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetNotes()(*string) GetOperations()([]TeamworkDeviceOperationable) SetActivity(value TeamworkDeviceActivityable)() - SetActivityState(value *TeamworkDeviceActivityState)() + SetActivityState(value *TeamworkDevice_activityState)() SetCompanyAssetTag(value *string)() SetConfiguration(value TeamworkDeviceConfigurationable)() SetCreatedBy(value IdentitySetable)() @@ -587,7 +587,7 @@ type TeamworkDeviceable interface { SetDeviceType(value *TeamworkDeviceType)() SetHardwareDetail(value TeamworkHardwareDetailable)() SetHealth(value TeamworkDeviceHealthable)() - SetHealthStatus(value *TeamworkDeviceHealthStatus)() + SetHealthStatus(value *TeamworkDevice_healthStatus)() SetLastModifiedBy(value IdentitySetable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetNotes(value *string)() diff --git a/models/teamwork_device_activity_state.go b/models/teamwork_device_activity_state.go index f1c28818d4f..e69de29bb2d 100644 --- a/models/teamwork_device_activity_state.go +++ b/models/teamwork_device_activity_state.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkDeviceActivityState int - -const ( - UNKNOWN_TEAMWORKDEVICEACTIVITYSTATE TeamworkDeviceActivityState = iota - BUSY_TEAMWORKDEVICEACTIVITYSTATE - IDLE_TEAMWORKDEVICEACTIVITYSTATE - UNAVAILABLE_TEAMWORKDEVICEACTIVITYSTATE - UNKNOWNFUTUREVALUE_TEAMWORKDEVICEACTIVITYSTATE -) - -func (i TeamworkDeviceActivityState) String() string { - return []string{"unknown", "busy", "idle", "unavailable", "unknownFutureValue"}[i] -} -func ParseTeamworkDeviceActivityState(v string) (any, error) { - result := UNKNOWN_TEAMWORKDEVICEACTIVITYSTATE - switch v { - case "unknown": - result = UNKNOWN_TEAMWORKDEVICEACTIVITYSTATE - case "busy": - result = BUSY_TEAMWORKDEVICEACTIVITYSTATE - case "idle": - result = IDLE_TEAMWORKDEVICEACTIVITYSTATE - case "unavailable": - result = UNAVAILABLE_TEAMWORKDEVICEACTIVITYSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKDEVICEACTIVITYSTATE - default: - return 0, errors.New("Unknown TeamworkDeviceActivityState value: " + v) - } - return &result, nil -} -func SerializeTeamworkDeviceActivityState(values []TeamworkDeviceActivityState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkDeviceActivityState) isMultiValue() bool { - return false -} diff --git a/models/teamwork_device_health_status.go b/models/teamwork_device_health_status.go index 4a340be22d9..e69de29bb2d 100644 --- a/models/teamwork_device_health_status.go +++ b/models/teamwork_device_health_status.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkDeviceHealthStatus int - -const ( - UNKNOWN_TEAMWORKDEVICEHEALTHSTATUS TeamworkDeviceHealthStatus = iota - OFFLINE_TEAMWORKDEVICEHEALTHSTATUS - CRITICAL_TEAMWORKDEVICEHEALTHSTATUS - NONURGENT_TEAMWORKDEVICEHEALTHSTATUS - HEALTHY_TEAMWORKDEVICEHEALTHSTATUS - UNKNOWNFUTUREVALUE_TEAMWORKDEVICEHEALTHSTATUS -) - -func (i TeamworkDeviceHealthStatus) String() string { - return []string{"unknown", "offline", "critical", "nonUrgent", "healthy", "unknownFutureValue"}[i] -} -func ParseTeamworkDeviceHealthStatus(v string) (any, error) { - result := UNKNOWN_TEAMWORKDEVICEHEALTHSTATUS - switch v { - case "unknown": - result = UNKNOWN_TEAMWORKDEVICEHEALTHSTATUS - case "offline": - result = OFFLINE_TEAMWORKDEVICEHEALTHSTATUS - case "critical": - result = CRITICAL_TEAMWORKDEVICEHEALTHSTATUS - case "nonUrgent": - result = NONURGENT_TEAMWORKDEVICEHEALTHSTATUS - case "healthy": - result = HEALTHY_TEAMWORKDEVICEHEALTHSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKDEVICEHEALTHSTATUS - default: - return 0, errors.New("Unknown TeamworkDeviceHealthStatus value: " + v) - } - return &result, nil -} -func SerializeTeamworkDeviceHealthStatus(values []TeamworkDeviceHealthStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkDeviceHealthStatus) isMultiValue() bool { - return false -} diff --git a/models/teamwork_software_freshness.go b/models/teamwork_software_freshness.go deleted file mode 100644 index 030e8a5d66c..00000000000 --- a/models/teamwork_software_freshness.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkSoftwareFreshness int - -const ( - UNKNOWN_TEAMWORKSOFTWAREFRESHNESS TeamworkSoftwareFreshness = iota - LATEST_TEAMWORKSOFTWAREFRESHNESS - UPDATEAVAILABLE_TEAMWORKSOFTWAREFRESHNESS - UNKNOWNFUTUREVALUE_TEAMWORKSOFTWAREFRESHNESS -) - -func (i TeamworkSoftwareFreshness) String() string { - return []string{"unknown", "latest", "updateAvailable", "unknownFutureValue"}[i] -} -func ParseTeamworkSoftwareFreshness(v string) (any, error) { - result := UNKNOWN_TEAMWORKSOFTWAREFRESHNESS - switch v { - case "unknown": - result = UNKNOWN_TEAMWORKSOFTWAREFRESHNESS - case "latest": - result = LATEST_TEAMWORKSOFTWAREFRESHNESS - case "updateAvailable": - result = UPDATEAVAILABLE_TEAMWORKSOFTWAREFRESHNESS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKSOFTWAREFRESHNESS - default: - return 0, errors.New("Unknown TeamworkSoftwareFreshness value: " + v) - } - return &result, nil -} -func SerializeTeamworkSoftwareFreshness(values []TeamworkSoftwareFreshness) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkSoftwareFreshness) isMultiValue() bool { - return false -} diff --git a/models/teamwork_software_update_status.go b/models/teamwork_software_update_status.go index 72c8059e19c..664113faa43 100644 --- a/models/teamwork_software_update_status.go +++ b/models/teamwork_software_update_status.go @@ -94,12 +94,12 @@ func (m *TeamworkSoftwareUpdateStatus) GetFieldDeserializers()(map[string]func(i return nil } res["softwareFreshness"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkSoftwareFreshness) + val, err := n.GetEnumValue(ParseTeamworkSoftwareUpdateStatus_softwareFreshness) if err != nil { return err } if val != nil { - m.SetSoftwareFreshness(val.(*TeamworkSoftwareFreshness)) + m.SetSoftwareFreshness(val.(*TeamworkSoftwareUpdateStatus_softwareFreshness)) } return nil } @@ -117,13 +117,13 @@ func (m *TeamworkSoftwareUpdateStatus) GetOdataType()(*string) { return nil } // GetSoftwareFreshness gets the softwareFreshness property value. The update status of the software. The possible values are: unknown, latest, updateAvailable, unknownFutureValue. -func (m *TeamworkSoftwareUpdateStatus) GetSoftwareFreshness()(*TeamworkSoftwareFreshness) { +func (m *TeamworkSoftwareUpdateStatus) GetSoftwareFreshness()(*TeamworkSoftwareUpdateStatus_softwareFreshness) { val, err := m.GetBackingStore().Get("softwareFreshness") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkSoftwareFreshness) + return val.(*TeamworkSoftwareUpdateStatus_softwareFreshness) } return nil } @@ -195,7 +195,7 @@ func (m *TeamworkSoftwareUpdateStatus) SetOdataType(value *string)() { } } // SetSoftwareFreshness sets the softwareFreshness property value. The update status of the software. The possible values are: unknown, latest, updateAvailable, unknownFutureValue. -func (m *TeamworkSoftwareUpdateStatus) SetSoftwareFreshness(value *TeamworkSoftwareFreshness)() { +func (m *TeamworkSoftwareUpdateStatus) SetSoftwareFreshness(value *TeamworkSoftwareUpdateStatus_softwareFreshness)() { err := m.GetBackingStore().Set("softwareFreshness", value) if err != nil { panic(err) @@ -210,10 +210,10 @@ type TeamworkSoftwareUpdateStatusable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCurrentVersion()(*string) GetOdataType()(*string) - GetSoftwareFreshness()(*TeamworkSoftwareFreshness) + GetSoftwareFreshness()(*TeamworkSoftwareUpdateStatus_softwareFreshness) SetAvailableVersion(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCurrentVersion(value *string)() SetOdataType(value *string)() - SetSoftwareFreshness(value *TeamworkSoftwareFreshness)() + SetSoftwareFreshness(value *TeamworkSoftwareUpdateStatus_softwareFreshness)() } diff --git a/models/teamwork_software_update_status_software_freshness.go b/models/teamwork_software_update_status_software_freshness.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teamwork_supported_client.go b/models/teamwork_supported_client.go deleted file mode 100644 index dd3f865d534..00000000000 --- a/models/teamwork_supported_client.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkSupportedClient int - -const ( - UNKNOWN_TEAMWORKSUPPORTEDCLIENT TeamworkSupportedClient = iota - SKYPEDEFAULTANDTEAMS_TEAMWORKSUPPORTEDCLIENT - TEAMSDEFAULTANDSKYPE_TEAMWORKSUPPORTEDCLIENT - SKYPEONLY_TEAMWORKSUPPORTEDCLIENT - TEAMSONLY_TEAMWORKSUPPORTEDCLIENT - UNKNOWNFUTUREVALUE_TEAMWORKSUPPORTEDCLIENT -) - -func (i TeamworkSupportedClient) String() string { - return []string{"unknown", "skypeDefaultAndTeams", "teamsDefaultAndSkype", "skypeOnly", "teamsOnly", "unknownFutureValue"}[i] -} -func ParseTeamworkSupportedClient(v string) (any, error) { - result := UNKNOWN_TEAMWORKSUPPORTEDCLIENT - switch v { - case "unknown": - result = UNKNOWN_TEAMWORKSUPPORTEDCLIENT - case "skypeDefaultAndTeams": - result = SKYPEDEFAULTANDTEAMS_TEAMWORKSUPPORTEDCLIENT - case "teamsDefaultAndSkype": - result = TEAMSDEFAULTANDSKYPE_TEAMWORKSUPPORTEDCLIENT - case "skypeOnly": - result = SKYPEONLY_TEAMWORKSUPPORTEDCLIENT - case "teamsOnly": - result = TEAMSONLY_TEAMWORKSUPPORTEDCLIENT - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKSUPPORTEDCLIENT - default: - return 0, errors.New("Unknown TeamworkSupportedClient value: " + v) - } - return &result, nil -} -func SerializeTeamworkSupportedClient(values []TeamworkSupportedClient) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkSupportedClient) isMultiValue() bool { - return false -} diff --git a/models/teamwork_tag.go b/models/teamwork_tag.go index a770d700804..4c34902c8ef 100644 --- a/models/teamwork_tag.go +++ b/models/teamwork_tag.go @@ -91,12 +91,12 @@ func (m *TeamworkTag) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["tagType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkTagType) + val, err := n.GetEnumValue(ParseTeamworkTag_tagType) if err != nil { return err } if val != nil { - m.SetTagType(val.(*TeamworkTagType)) + m.SetTagType(val.(*TeamworkTag_tagType)) } return nil } @@ -135,13 +135,13 @@ func (m *TeamworkTag) GetMembers()([]TeamworkTagMemberable) { return nil } // GetTagType gets the tagType property value. The type of tag. Default is standard. -func (m *TeamworkTag) GetTagType()(*TeamworkTagType) { +func (m *TeamworkTag) GetTagType()(*TeamworkTag_tagType) { val, err := m.GetBackingStore().Get("tagType") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkTagType) + return val.(*TeamworkTag_tagType) } return nil } @@ -236,7 +236,7 @@ func (m *TeamworkTag) SetMembers(value []TeamworkTagMemberable)() { } } // SetTagType sets the tagType property value. The type of tag. Default is standard. -func (m *TeamworkTag) SetTagType(value *TeamworkTagType)() { +func (m *TeamworkTag) SetTagType(value *TeamworkTag_tagType)() { err := m.GetBackingStore().Set("tagType", value) if err != nil { panic(err) @@ -257,12 +257,12 @@ type TeamworkTagable interface { GetDisplayName()(*string) GetMemberCount()(*int32) GetMembers()([]TeamworkTagMemberable) - GetTagType()(*TeamworkTagType) + GetTagType()(*TeamworkTag_tagType) GetTeamId()(*string) SetDescription(value *string)() SetDisplayName(value *string)() SetMemberCount(value *int32)() SetMembers(value []TeamworkTagMemberable)() - SetTagType(value *TeamworkTagType)() + SetTagType(value *TeamworkTag_tagType)() SetTeamId(value *string)() } diff --git a/models/teamwork_tag_tag_type.go b/models/teamwork_tag_tag_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/teamwork_tag_type.go b/models/teamwork_tag_type.go deleted file mode 100644 index f18e9b9d2fc..00000000000 --- a/models/teamwork_tag_type.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkTagType int - -const ( - STANDARD_TEAMWORKTAGTYPE TeamworkTagType = iota - UNKNOWNFUTUREVALUE_TEAMWORKTAGTYPE -) - -func (i TeamworkTagType) String() string { - return []string{"standard", "unknownFutureValue"}[i] -} -func ParseTeamworkTagType(v string) (any, error) { - result := STANDARD_TEAMWORKTAGTYPE - switch v { - case "standard": - result = STANDARD_TEAMWORKTAGTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKTAGTYPE - default: - return 0, errors.New("Unknown TeamworkTagType value: " + v) - } - return &result, nil -} -func SerializeTeamworkTagType(values []TeamworkTagType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkTagType) isMultiValue() bool { - return false -} diff --git a/models/teamwork_user_identity.go b/models/teamwork_user_identity.go index dc59cd39bbf..3a845c75eab 100644 --- a/models/teamwork_user_identity.go +++ b/models/teamwork_user_identity.go @@ -25,25 +25,25 @@ func CreateTeamworkUserIdentityFromDiscriminatorValue(parseNode i878a80d2330e89d func (m *TeamworkUserIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Identity.GetFieldDeserializers() res["userIdentityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTeamworkUserIdentityType) + val, err := n.GetEnumValue(ParseTeamworkUserIdentity_userIdentityType) if err != nil { return err } if val != nil { - m.SetUserIdentityType(val.(*TeamworkUserIdentityType)) + m.SetUserIdentityType(val.(*TeamworkUserIdentity_userIdentityType)) } return nil } return res } // GetUserIdentityType gets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, emailUser and azureCommunicationServicesUser. -func (m *TeamworkUserIdentity) GetUserIdentityType()(*TeamworkUserIdentityType) { +func (m *TeamworkUserIdentity) GetUserIdentityType()(*TeamworkUserIdentity_userIdentityType) { val, err := m.GetBackingStore().Get("userIdentityType") if err != nil { panic(err) } if val != nil { - return val.(*TeamworkUserIdentityType) + return val.(*TeamworkUserIdentity_userIdentityType) } return nil } @@ -63,7 +63,7 @@ func (m *TeamworkUserIdentity) Serialize(writer i878a80d2330e89d26896388a3f487ee return nil } // SetUserIdentityType sets the userIdentityType property value. Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser, emailUser and azureCommunicationServicesUser. -func (m *TeamworkUserIdentity) SetUserIdentityType(value *TeamworkUserIdentityType)() { +func (m *TeamworkUserIdentity) SetUserIdentityType(value *TeamworkUserIdentity_userIdentityType)() { err := m.GetBackingStore().Set("userIdentityType", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *TeamworkUserIdentity) SetUserIdentityType(value *TeamworkUserIdentityTy type TeamworkUserIdentityable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetUserIdentityType()(*TeamworkUserIdentityType) - SetUserIdentityType(value *TeamworkUserIdentityType)() + GetUserIdentityType()(*TeamworkUserIdentity_userIdentityType) + SetUserIdentityType(value *TeamworkUserIdentity_userIdentityType)() } diff --git a/models/teamwork_user_identity_type.go b/models/teamwork_user_identity_type.go deleted file mode 100644 index 1f3ce687567..00000000000 --- a/models/teamwork_user_identity_type.go +++ /dev/null @@ -1,61 +0,0 @@ -package models -import ( - "errors" -) -// -type TeamworkUserIdentityType int - -const ( - AADUSER_TEAMWORKUSERIDENTITYTYPE TeamworkUserIdentityType = iota - ONPREMISEAADUSER_TEAMWORKUSERIDENTITYTYPE - ANONYMOUSGUEST_TEAMWORKUSERIDENTITYTYPE - FEDERATEDUSER_TEAMWORKUSERIDENTITYTYPE - PERSONALMICROSOFTACCOUNTUSER_TEAMWORKUSERIDENTITYTYPE - SKYPEUSER_TEAMWORKUSERIDENTITYTYPE - PHONEUSER_TEAMWORKUSERIDENTITYTYPE - UNKNOWNFUTUREVALUE_TEAMWORKUSERIDENTITYTYPE - EMAILUSER_TEAMWORKUSERIDENTITYTYPE - AZURECOMMUNICATIONSERVICESUSER_TEAMWORKUSERIDENTITYTYPE -) - -func (i TeamworkUserIdentityType) String() string { - return []string{"aadUser", "onPremiseAadUser", "anonymousGuest", "federatedUser", "personalMicrosoftAccountUser", "skypeUser", "phoneUser", "unknownFutureValue", "emailUser", "azureCommunicationServicesUser"}[i] -} -func ParseTeamworkUserIdentityType(v string) (any, error) { - result := AADUSER_TEAMWORKUSERIDENTITYTYPE - switch v { - case "aadUser": - result = AADUSER_TEAMWORKUSERIDENTITYTYPE - case "onPremiseAadUser": - result = ONPREMISEAADUSER_TEAMWORKUSERIDENTITYTYPE - case "anonymousGuest": - result = ANONYMOUSGUEST_TEAMWORKUSERIDENTITYTYPE - case "federatedUser": - result = FEDERATEDUSER_TEAMWORKUSERIDENTITYTYPE - case "personalMicrosoftAccountUser": - result = PERSONALMICROSOFTACCOUNTUSER_TEAMWORKUSERIDENTITYTYPE - case "skypeUser": - result = SKYPEUSER_TEAMWORKUSERIDENTITYTYPE - case "phoneUser": - result = PHONEUSER_TEAMWORKUSERIDENTITYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TEAMWORKUSERIDENTITYTYPE - case "emailUser": - result = EMAILUSER_TEAMWORKUSERIDENTITYTYPE - case "azureCommunicationServicesUser": - result = AZURECOMMUNICATIONSERVICESUSER_TEAMWORKUSERIDENTITYTYPE - default: - return 0, errors.New("Unknown TeamworkUserIdentityType value: " + v) - } - return &result, nil -} -func SerializeTeamworkUserIdentityType(values []TeamworkUserIdentityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TeamworkUserIdentityType) isMultiValue() bool { - return false -} diff --git a/models/teamwork_user_identity_user_identity_type.go b/models/teamwork_user_identity_user_identity_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/tenant_setup_info.go b/models/tenant_setup_info.go index 46b6d4e6996..da1a17e2538 100644 --- a/models/tenant_setup_info.go +++ b/models/tenant_setup_info.go @@ -70,12 +70,12 @@ func (m *TenantSetupInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["setupStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSetupStatus) + val, err := n.GetEnumValue(ParseTenantSetupInfo_setupStatus) if err != nil { return err } if val != nil { - m.SetSetupStatus(val.(*SetupStatus)) + m.SetSetupStatus(val.(*TenantSetupInfo_setupStatus)) } return nil } @@ -124,13 +124,13 @@ func (m *TenantSetupInfo) GetRelevantRolesSettings()([]string) { return nil } // GetSetupStatus gets the setupStatus property value. The setupStatus property -func (m *TenantSetupInfo) GetSetupStatus()(*SetupStatus) { +func (m *TenantSetupInfo) GetSetupStatus()(*TenantSetupInfo_setupStatus) { val, err := m.GetBackingStore().Get("setupStatus") if err != nil { panic(err) } if val != nil { - return val.(*SetupStatus) + return val.(*TenantSetupInfo_setupStatus) } return nil } @@ -223,7 +223,7 @@ func (m *TenantSetupInfo) SetRelevantRolesSettings(value []string)() { } } // SetSetupStatus sets the setupStatus property value. The setupStatus property -func (m *TenantSetupInfo) SetSetupStatus(value *SetupStatus)() { +func (m *TenantSetupInfo) SetSetupStatus(value *TenantSetupInfo_setupStatus)() { err := m.GetBackingStore().Set("setupStatus", value) if err != nil { panic(err) @@ -250,13 +250,13 @@ type TenantSetupInfoable interface { GetDefaultRolesSettings()(PrivilegedRoleSettingsable) GetFirstTimeSetup()(*bool) GetRelevantRolesSettings()([]string) - GetSetupStatus()(*SetupStatus) + GetSetupStatus()(*TenantSetupInfo_setupStatus) GetSkipSetup()(*bool) GetUserRolesActions()(*string) SetDefaultRolesSettings(value PrivilegedRoleSettingsable)() SetFirstTimeSetup(value *bool)() SetRelevantRolesSettings(value []string)() - SetSetupStatus(value *SetupStatus)() + SetSetupStatus(value *TenantSetupInfo_setupStatus)() SetSkipSetup(value *bool)() SetUserRolesActions(value *string)() } diff --git a/models/tenant_setup_info_setup_status.go b/models/tenant_setup_info_setup_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/termstore/group.go b/models/termstore/group.go index 15e3222fcd9..2b8dc4c7298 100644 --- a/models/termstore/group.go +++ b/models/termstore/group.go @@ -98,12 +98,12 @@ func (m *Group) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 return nil } res["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTermGroupScope) + val, err := n.GetEnumValue(ParseGroup_scope) if err != nil { return err } if val != nil { - m.SetScope(val.(*TermGroupScope)) + m.SetScope(val.(*Group_scope)) } return nil } @@ -137,13 +137,13 @@ func (m *Group) GetParentSiteId()(*string) { return nil } // GetScope gets the scope property value. Returns the type of the group. Possible values are: global, system, and siteCollection. -func (m *Group) GetScope()(*TermGroupScope) { +func (m *Group) GetScope()(*Group_scope) { val, err := m.GetBackingStore().Get("scope") if err != nil { panic(err) } if val != nil { - return val.(*TermGroupScope) + return val.(*Group_scope) } return nil } @@ -238,7 +238,7 @@ func (m *Group) SetParentSiteId(value *string)() { } } // SetScope sets the scope property value. Returns the type of the group. Possible values are: global, system, and siteCollection. -func (m *Group) SetScope(value *TermGroupScope)() { +func (m *Group) SetScope(value *Group_scope)() { err := m.GetBackingStore().Set("scope", value) if err != nil { panic(err) @@ -259,12 +259,12 @@ type Groupable interface { GetDescription()(*string) GetDisplayName()(*string) GetParentSiteId()(*string) - GetScope()(*TermGroupScope) + GetScope()(*Group_scope) GetSets()([]Setable) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() SetDisplayName(value *string)() SetParentSiteId(value *string)() - SetScope(value *TermGroupScope)() + SetScope(value *Group_scope)() SetSets(value []Setable)() } diff --git a/models/termstore/group_scope.go b/models/termstore/group_scope.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/termstore/relation.go b/models/termstore/relation.go index ddb42dbce55..23fbd0b84d6 100644 --- a/models/termstore/relation.go +++ b/models/termstore/relation.go @@ -34,12 +34,12 @@ func (m *Relation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["relationship"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRelationType) + val, err := n.GetEnumValue(ParseRelation_relationship) if err != nil { return err } if val != nil { - m.SetRelationship(val.(*RelationType)) + m.SetRelationship(val.(*Relation_relationship)) } return nil } @@ -77,13 +77,13 @@ func (m *Relation) GetFromTerm()(Termable) { return nil } // GetRelationship gets the relationship property value. The type of relation. Possible values are: pin, reuse. -func (m *Relation) GetRelationship()(*RelationType) { +func (m *Relation) GetRelationship()(*Relation_relationship) { val, err := m.GetBackingStore().Get("relationship") if err != nil { panic(err) } if val != nil { - return val.(*RelationType) + return val.(*Relation_relationship) } return nil } @@ -150,7 +150,7 @@ func (m *Relation) SetFromTerm(value Termable)() { } } // SetRelationship sets the relationship property value. The type of relation. Possible values are: pin, reuse. -func (m *Relation) SetRelationship(value *RelationType)() { +func (m *Relation) SetRelationship(value *Relation_relationship)() { err := m.GetBackingStore().Set("relationship", value) if err != nil { panic(err) @@ -175,11 +175,11 @@ type Relationable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFromTerm()(Termable) - GetRelationship()(*RelationType) + GetRelationship()(*Relation_relationship) GetSet()(Setable) GetToTerm()(Termable) SetFromTerm(value Termable)() - SetRelationship(value *RelationType)() + SetRelationship(value *Relation_relationship)() SetSet(value Setable)() SetToTerm(value Termable)() } diff --git a/models/termstore/relation_relationship.go b/models/termstore/relation_relationship.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/termstore/relation_type.go b/models/termstore/relation_type.go deleted file mode 100644 index 4d73f006727..00000000000 --- a/models/termstore/relation_type.go +++ /dev/null @@ -1,37 +0,0 @@ -package termstore -import ( - "errors" -) -// -type RelationType int - -const ( - PIN_RELATIONTYPE RelationType = iota - REUSE_RELATIONTYPE -) - -func (i RelationType) String() string { - return []string{"pin", "reuse"}[i] -} -func ParseRelationType(v string) (any, error) { - result := PIN_RELATIONTYPE - switch v { - case "pin": - result = PIN_RELATIONTYPE - case "reuse": - result = REUSE_RELATIONTYPE - default: - return 0, errors.New("Unknown RelationType value: " + v) - } - return &result, nil -} -func SerializeRelationType(values []RelationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i RelationType) isMultiValue() bool { - return false -} diff --git a/models/termstore/term_group_scope.go b/models/termstore/term_group_scope.go deleted file mode 100644 index 27452dabc64..00000000000 --- a/models/termstore/term_group_scope.go +++ /dev/null @@ -1,40 +0,0 @@ -package termstore -import ( - "errors" -) -// -type TermGroupScope int - -const ( - GLOBAL_TERMGROUPSCOPE TermGroupScope = iota - SYSTEM_TERMGROUPSCOPE - SITECOLLECTION_TERMGROUPSCOPE -) - -func (i TermGroupScope) String() string { - return []string{"global", "system", "siteCollection"}[i] -} -func ParseTermGroupScope(v string) (any, error) { - result := GLOBAL_TERMGROUPSCOPE - switch v { - case "global": - result = GLOBAL_TERMGROUPSCOPE - case "system": - result = SYSTEM_TERMGROUPSCOPE - case "siteCollection": - result = SITECOLLECTION_TERMGROUPSCOPE - default: - return 0, errors.New("Unknown TermGroupScope value: " + v) - } - return &result, nil -} -func SerializeTermGroupScope(values []TermGroupScope) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TermGroupScope) isMultiValue() bool { - return false -} diff --git a/models/text_classification_request.go b/models/text_classification_request.go index e56d8db574d..8653111e029 100644 --- a/models/text_classification_request.go +++ b/models/text_classification_request.go @@ -54,22 +54,22 @@ func (m *TextClassificationRequest) GetFieldDeserializers()(map[string]func(i878 return nil } res["matchTolerancesToInclude"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMlClassificationMatchTolerance) + val, err := n.GetEnumValue(ParseTextClassificationRequest_matchTolerancesToInclude) if err != nil { return err } if val != nil { - m.SetMatchTolerancesToInclude(val.(*MlClassificationMatchTolerance)) + m.SetMatchTolerancesToInclude(val.(*TextClassificationRequest_matchTolerancesToInclude)) } return nil } res["scopesToRun"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSensitiveTypeScope) + val, err := n.GetEnumValue(ParseTextClassificationRequest_scopesToRun) if err != nil { return err } if val != nil { - m.SetScopesToRun(val.(*SensitiveTypeScope)) + m.SetScopesToRun(val.(*TextClassificationRequest_scopesToRun)) } return nil } @@ -113,24 +113,24 @@ func (m *TextClassificationRequest) GetFileExtension()(*string) { return nil } // GetMatchTolerancesToInclude gets the matchTolerancesToInclude property value. The matchTolerancesToInclude property -func (m *TextClassificationRequest) GetMatchTolerancesToInclude()(*MlClassificationMatchTolerance) { +func (m *TextClassificationRequest) GetMatchTolerancesToInclude()(*TextClassificationRequest_matchTolerancesToInclude) { val, err := m.GetBackingStore().Get("matchTolerancesToInclude") if err != nil { panic(err) } if val != nil { - return val.(*MlClassificationMatchTolerance) + return val.(*TextClassificationRequest_matchTolerancesToInclude) } return nil } // GetScopesToRun gets the scopesToRun property value. The scopesToRun property -func (m *TextClassificationRequest) GetScopesToRun()(*SensitiveTypeScope) { +func (m *TextClassificationRequest) GetScopesToRun()(*TextClassificationRequest_scopesToRun) { val, err := m.GetBackingStore().Get("scopesToRun") if err != nil { panic(err) } if val != nil { - return val.(*SensitiveTypeScope) + return val.(*TextClassificationRequest_scopesToRun) } return nil } @@ -217,14 +217,14 @@ func (m *TextClassificationRequest) SetFileExtension(value *string)() { } } // SetMatchTolerancesToInclude sets the matchTolerancesToInclude property value. The matchTolerancesToInclude property -func (m *TextClassificationRequest) SetMatchTolerancesToInclude(value *MlClassificationMatchTolerance)() { +func (m *TextClassificationRequest) SetMatchTolerancesToInclude(value *TextClassificationRequest_matchTolerancesToInclude)() { err := m.GetBackingStore().Set("matchTolerancesToInclude", value) if err != nil { panic(err) } } // SetScopesToRun sets the scopesToRun property value. The scopesToRun property -func (m *TextClassificationRequest) SetScopesToRun(value *SensitiveTypeScope)() { +func (m *TextClassificationRequest) SetScopesToRun(value *TextClassificationRequest_scopesToRun)() { err := m.GetBackingStore().Set("scopesToRun", value) if err != nil { panic(err) @@ -250,14 +250,14 @@ type TextClassificationRequestable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetContentMetaData()(ClassificationRequestContentMetaDataable) GetFileExtension()(*string) - GetMatchTolerancesToInclude()(*MlClassificationMatchTolerance) - GetScopesToRun()(*SensitiveTypeScope) + GetMatchTolerancesToInclude()(*TextClassificationRequest_matchTolerancesToInclude) + GetScopesToRun()(*TextClassificationRequest_scopesToRun) GetSensitiveTypeIds()([]string) GetText()(*string) SetContentMetaData(value ClassificationRequestContentMetaDataable)() SetFileExtension(value *string)() - SetMatchTolerancesToInclude(value *MlClassificationMatchTolerance)() - SetScopesToRun(value *SensitiveTypeScope)() + SetMatchTolerancesToInclude(value *TextClassificationRequest_matchTolerancesToInclude)() + SetScopesToRun(value *TextClassificationRequest_scopesToRun)() SetSensitiveTypeIds(value []string)() SetText(value *string)() } diff --git a/models/text_classification_request_match_tolerances_to_include.go b/models/text_classification_request_match_tolerances_to_include.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/text_classification_request_scopes_to_run.go b/models/text_classification_request_scopes_to_run.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/threat_assessment_content_type.go b/models/threat_assessment_content_type.go deleted file mode 100644 index 51e0b6f46b8..00000000000 --- a/models/threat_assessment_content_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ThreatAssessmentContentType int - -const ( - MAIL_THREATASSESSMENTCONTENTTYPE ThreatAssessmentContentType = iota - URL_THREATASSESSMENTCONTENTTYPE - FILE_THREATASSESSMENTCONTENTTYPE -) - -func (i ThreatAssessmentContentType) String() string { - return []string{"mail", "url", "file"}[i] -} -func ParseThreatAssessmentContentType(v string) (any, error) { - result := MAIL_THREATASSESSMENTCONTENTTYPE - switch v { - case "mail": - result = MAIL_THREATASSESSMENTCONTENTTYPE - case "url": - result = URL_THREATASSESSMENTCONTENTTYPE - case "file": - result = FILE_THREATASSESSMENTCONTENTTYPE - default: - return 0, errors.New("Unknown ThreatAssessmentContentType value: " + v) - } - return &result, nil -} -func SerializeThreatAssessmentContentType(values []ThreatAssessmentContentType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ThreatAssessmentContentType) isMultiValue() bool { - return false -} diff --git a/models/threat_assessment_request.go b/models/threat_assessment_request.go index c9982f430b9..3f164cc4928 100644 --- a/models/threat_assessment_request.go +++ b/models/threat_assessment_request.go @@ -56,13 +56,13 @@ func (m *ThreatAssessmentRequest) GetCategory()(*ThreatCategory) { return nil } // GetContentType gets the contentType property value. The content type of threat assessment. Possible values are: mail, url, file. -func (m *ThreatAssessmentRequest) GetContentType()(*ThreatAssessmentContentType) { +func (m *ThreatAssessmentRequest) GetContentType()(*ThreatAssessmentRequest_contentType) { val, err := m.GetBackingStore().Get("contentType") if err != nil { panic(err) } if val != nil { - return val.(*ThreatAssessmentContentType) + return val.(*ThreatAssessmentRequest_contentType) } return nil } @@ -113,12 +113,12 @@ func (m *ThreatAssessmentRequest) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["contentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseThreatAssessmentContentType) + val, err := n.GetEnumValue(ParseThreatAssessmentRequest_contentType) if err != nil { return err } if val != nil { - m.SetContentType(val.(*ThreatAssessmentContentType)) + m.SetContentType(val.(*ThreatAssessmentRequest_contentType)) } return nil } @@ -153,12 +153,12 @@ func (m *ThreatAssessmentRequest) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["requestSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseThreatAssessmentRequestSource) + val, err := n.GetEnumValue(ParseThreatAssessmentRequest_requestSource) if err != nil { return err } if val != nil { - m.SetRequestSource(val.(*ThreatAssessmentRequestSource)) + m.SetRequestSource(val.(*ThreatAssessmentRequest_requestSource)) } return nil } @@ -179,25 +179,25 @@ func (m *ThreatAssessmentRequest) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseThreatAssessmentStatus) + val, err := n.GetEnumValue(ParseThreatAssessmentRequest_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*ThreatAssessmentStatus)) + m.SetStatus(val.(*ThreatAssessmentRequest_status)) } return nil } return res } // GetRequestSource gets the requestSource property value. The source of the threat assessment request. Possible values are: user, administrator. -func (m *ThreatAssessmentRequest) GetRequestSource()(*ThreatAssessmentRequestSource) { +func (m *ThreatAssessmentRequest) GetRequestSource()(*ThreatAssessmentRequest_requestSource) { val, err := m.GetBackingStore().Get("requestSource") if err != nil { panic(err) } if val != nil { - return val.(*ThreatAssessmentRequestSource) + return val.(*ThreatAssessmentRequest_requestSource) } return nil } @@ -213,13 +213,13 @@ func (m *ThreatAssessmentRequest) GetResults()([]ThreatAssessmentResultable) { return nil } // GetStatus gets the status property value. The assessment process status. Possible values are: pending, completed. -func (m *ThreatAssessmentRequest) GetStatus()(*ThreatAssessmentStatus) { +func (m *ThreatAssessmentRequest) GetStatus()(*ThreatAssessmentRequest_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*ThreatAssessmentStatus) + return val.(*ThreatAssessmentRequest_status) } return nil } @@ -298,7 +298,7 @@ func (m *ThreatAssessmentRequest) SetCategory(value *ThreatCategory)() { } } // SetContentType sets the contentType property value. The content type of threat assessment. Possible values are: mail, url, file. -func (m *ThreatAssessmentRequest) SetContentType(value *ThreatAssessmentContentType)() { +func (m *ThreatAssessmentRequest) SetContentType(value *ThreatAssessmentRequest_contentType)() { err := m.GetBackingStore().Set("contentType", value) if err != nil { panic(err) @@ -326,7 +326,7 @@ func (m *ThreatAssessmentRequest) SetExpectedAssessment(value *ThreatExpectedAss } } // SetRequestSource sets the requestSource property value. The source of the threat assessment request. Possible values are: user, administrator. -func (m *ThreatAssessmentRequest) SetRequestSource(value *ThreatAssessmentRequestSource)() { +func (m *ThreatAssessmentRequest) SetRequestSource(value *ThreatAssessmentRequest_requestSource)() { err := m.GetBackingStore().Set("requestSource", value) if err != nil { panic(err) @@ -340,7 +340,7 @@ func (m *ThreatAssessmentRequest) SetResults(value []ThreatAssessmentResultable) } } // SetStatus sets the status property value. The assessment process status. Possible values are: pending, completed. -func (m *ThreatAssessmentRequest) SetStatus(value *ThreatAssessmentStatus)() { +func (m *ThreatAssessmentRequest) SetStatus(value *ThreatAssessmentRequest_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -351,19 +351,19 @@ type ThreatAssessmentRequestable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCategory()(*ThreatCategory) - GetContentType()(*ThreatAssessmentContentType) + GetContentType()(*ThreatAssessmentRequest_contentType) GetCreatedBy()(IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetExpectedAssessment()(*ThreatExpectedAssessment) - GetRequestSource()(*ThreatAssessmentRequestSource) + GetRequestSource()(*ThreatAssessmentRequest_requestSource) GetResults()([]ThreatAssessmentResultable) - GetStatus()(*ThreatAssessmentStatus) + GetStatus()(*ThreatAssessmentRequest_status) SetCategory(value *ThreatCategory)() - SetContentType(value *ThreatAssessmentContentType)() + SetContentType(value *ThreatAssessmentRequest_contentType)() SetCreatedBy(value IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetExpectedAssessment(value *ThreatExpectedAssessment)() - SetRequestSource(value *ThreatAssessmentRequestSource)() + SetRequestSource(value *ThreatAssessmentRequest_requestSource)() SetResults(value []ThreatAssessmentResultable)() - SetStatus(value *ThreatAssessmentStatus)() + SetStatus(value *ThreatAssessmentRequest_status)() } diff --git a/models/threat_assessment_request_content_type.go b/models/threat_assessment_request_content_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/threat_assessment_request_request_source.go b/models/threat_assessment_request_request_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/threat_assessment_request_source.go b/models/threat_assessment_request_source.go deleted file mode 100644 index 6df0247ff0f..00000000000 --- a/models/threat_assessment_request_source.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ThreatAssessmentRequestSource int - -const ( - UNDEFINED_THREATASSESSMENTREQUESTSOURCE ThreatAssessmentRequestSource = iota - USER_THREATASSESSMENTREQUESTSOURCE - ADMINISTRATOR_THREATASSESSMENTREQUESTSOURCE -) - -func (i ThreatAssessmentRequestSource) String() string { - return []string{"undefined", "user", "administrator"}[i] -} -func ParseThreatAssessmentRequestSource(v string) (any, error) { - result := UNDEFINED_THREATASSESSMENTREQUESTSOURCE - switch v { - case "undefined": - result = UNDEFINED_THREATASSESSMENTREQUESTSOURCE - case "user": - result = USER_THREATASSESSMENTREQUESTSOURCE - case "administrator": - result = ADMINISTRATOR_THREATASSESSMENTREQUESTSOURCE - default: - return 0, errors.New("Unknown ThreatAssessmentRequestSource value: " + v) - } - return &result, nil -} -func SerializeThreatAssessmentRequestSource(values []ThreatAssessmentRequestSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ThreatAssessmentRequestSource) isMultiValue() bool { - return false -} diff --git a/models/threat_assessment_request_status.go b/models/threat_assessment_request_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/threat_assessment_result.go b/models/threat_assessment_result.go index b7abf422824..71bc51bd10f 100644 --- a/models/threat_assessment_result.go +++ b/models/threat_assessment_result.go @@ -55,12 +55,12 @@ func (m *ThreatAssessmentResult) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["resultType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseThreatAssessmentResultType) + val, err := n.GetEnumValue(ParseThreatAssessmentResult_resultType) if err != nil { return err } if val != nil { - m.SetResultType(val.(*ThreatAssessmentResultType)) + m.SetResultType(val.(*ThreatAssessmentResult_resultType)) } return nil } @@ -78,13 +78,13 @@ func (m *ThreatAssessmentResult) GetMessage()(*string) { return nil } // GetResultType gets the resultType property value. The threat assessment result type. Possible values are: checkPolicy (only for mail assessment), rescan. -func (m *ThreatAssessmentResult) GetResultType()(*ThreatAssessmentResultType) { +func (m *ThreatAssessmentResult) GetResultType()(*ThreatAssessmentResult_resultType) { val, err := m.GetBackingStore().Get("resultType") if err != nil { panic(err) } if val != nil { - return val.(*ThreatAssessmentResultType) + return val.(*ThreatAssessmentResult_resultType) } return nil } @@ -130,7 +130,7 @@ func (m *ThreatAssessmentResult) SetMessage(value *string)() { } } // SetResultType sets the resultType property value. The threat assessment result type. Possible values are: checkPolicy (only for mail assessment), rescan. -func (m *ThreatAssessmentResult) SetResultType(value *ThreatAssessmentResultType)() { +func (m *ThreatAssessmentResult) SetResultType(value *ThreatAssessmentResult_resultType)() { err := m.GetBackingStore().Set("resultType", value) if err != nil { panic(err) @@ -142,8 +142,8 @@ type ThreatAssessmentResultable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMessage()(*string) - GetResultType()(*ThreatAssessmentResultType) + GetResultType()(*ThreatAssessmentResult_resultType) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMessage(value *string)() - SetResultType(value *ThreatAssessmentResultType)() + SetResultType(value *ThreatAssessmentResult_resultType)() } diff --git a/models/threat_assessment_result_result_type.go b/models/threat_assessment_result_result_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/threat_assessment_result_type.go b/models/threat_assessment_result_type.go deleted file mode 100644 index f3cd2967030..00000000000 --- a/models/threat_assessment_result_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type ThreatAssessmentResultType int - -const ( - CHECKPOLICY_THREATASSESSMENTRESULTTYPE ThreatAssessmentResultType = iota - RESCAN_THREATASSESSMENTRESULTTYPE - UNKNOWNFUTUREVALUE_THREATASSESSMENTRESULTTYPE -) - -func (i ThreatAssessmentResultType) String() string { - return []string{"checkPolicy", "rescan", "unknownFutureValue"}[i] -} -func ParseThreatAssessmentResultType(v string) (any, error) { - result := CHECKPOLICY_THREATASSESSMENTRESULTTYPE - switch v { - case "checkPolicy": - result = CHECKPOLICY_THREATASSESSMENTRESULTTYPE - case "rescan": - result = RESCAN_THREATASSESSMENTRESULTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_THREATASSESSMENTRESULTTYPE - default: - return 0, errors.New("Unknown ThreatAssessmentResultType value: " + v) - } - return &result, nil -} -func SerializeThreatAssessmentResultType(values []ThreatAssessmentResultType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ThreatAssessmentResultType) isMultiValue() bool { - return false -} diff --git a/models/threat_assessment_status.go b/models/threat_assessment_status.go deleted file mode 100644 index 07276bb58ef..00000000000 --- a/models/threat_assessment_status.go +++ /dev/null @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type ThreatAssessmentStatus int - -const ( - PENDING_THREATASSESSMENTSTATUS ThreatAssessmentStatus = iota - COMPLETED_THREATASSESSMENTSTATUS -) - -func (i ThreatAssessmentStatus) String() string { - return []string{"pending", "completed"}[i] -} -func ParseThreatAssessmentStatus(v string) (any, error) { - result := PENDING_THREATASSESSMENTSTATUS - switch v { - case "pending": - result = PENDING_THREATASSESSMENTSTATUS - case "completed": - result = COMPLETED_THREATASSESSMENTSTATUS - default: - return 0, errors.New("Unknown ThreatAssessmentStatus value: " + v) - } - return &result, nil -} -func SerializeThreatAssessmentStatus(values []ThreatAssessmentStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ThreatAssessmentStatus) isMultiValue() bool { - return false -} diff --git a/models/ti_action.go b/models/ti_action.go deleted file mode 100644 index bfe9c2bf487..00000000000 --- a/models/ti_action.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type TiAction int - -const ( - UNKNOWN_TIACTION TiAction = iota - ALLOW_TIACTION - BLOCK_TIACTION - ALERT_TIACTION - UNKNOWNFUTUREVALUE_TIACTION -) - -func (i TiAction) String() string { - return []string{"unknown", "allow", "block", "alert", "unknownFutureValue"}[i] -} -func ParseTiAction(v string) (any, error) { - result := UNKNOWN_TIACTION - switch v { - case "unknown": - result = UNKNOWN_TIACTION - case "allow": - result = ALLOW_TIACTION - case "block": - result = BLOCK_TIACTION - case "alert": - result = ALERT_TIACTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TIACTION - default: - return 0, errors.New("Unknown TiAction value: " + v) - } - return &result, nil -} -func SerializeTiAction(values []TiAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TiAction) isMultiValue() bool { - return false -} diff --git a/models/ti_indicator.go b/models/ti_indicator.go index 27f3dfee96c..e1cb34d162b 100644 --- a/models/ti_indicator.go +++ b/models/ti_indicator.go @@ -21,13 +21,13 @@ func CreateTiIndicatorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a return NewTiIndicator(), nil } // GetAction gets the action property value. The action to apply if the indicator is matched from within the targetProduct security tool. Possible values are: unknown, allow, block, alert. Required. -func (m *TiIndicator) GetAction()(*TiAction) { +func (m *TiIndicator) GetAction()(*TiIndicator_action) { val, err := m.GetBackingStore().Get("action") if err != nil { panic(err) } if val != nil { - return val.(*TiAction) + return val.(*TiIndicator_action) } return nil } @@ -87,13 +87,13 @@ func (m *TiIndicator) GetDescription()(*string) { return nil } // GetDiamondModel gets the diamondModel property value. The area of the Diamond Model in which this indicator exists. Possible values are: unknown, adversary, capability, infrastructure, victim. -func (m *TiIndicator) GetDiamondModel()(*DiamondModel) { +func (m *TiIndicator) GetDiamondModel()(*TiIndicator_diamondModel) { val, err := m.GetBackingStore().Get("diamondModel") if err != nil { panic(err) } if val != nil { - return val.(*DiamondModel) + return val.(*TiIndicator_diamondModel) } return nil } @@ -233,12 +233,12 @@ func (m *TiIndicator) GetExternalId()(*string) { func (m *TiIndicator) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTiAction) + val, err := n.GetEnumValue(ParseTiIndicator_action) if err != nil { return err } if val != nil { - m.SetAction(val.(*TiAction)) + m.SetAction(val.(*TiIndicator_action)) } return nil } @@ -299,12 +299,12 @@ func (m *TiIndicator) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["diamondModel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDiamondModel) + val, err := n.GetEnumValue(ParseTiIndicator_diamondModel) if err != nil { return err } if val != nil { - m.SetDiamondModel(val.(*DiamondModel)) + m.SetDiamondModel(val.(*TiIndicator_diamondModel)) } return nil } @@ -449,12 +449,12 @@ func (m *TiIndicator) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["fileHashType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseFileHashType) + val, err := n.GetEnumValue(ParseTiIndicator_fileHashType) if err != nil { return err } if val != nil { - m.SetFileHashType(val.(*FileHashType)) + m.SetFileHashType(val.(*TiIndicator_fileHashType)) } return nil } @@ -807,12 +807,12 @@ func (m *TiIndicator) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["tlpLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTlpLevel) + val, err := n.GetEnumValue(ParseTiIndicator_tlpLevel) if err != nil { return err } if val != nil { - m.SetTlpLevel(val.(*TlpLevel)) + m.SetTlpLevel(val.(*TiIndicator_tlpLevel)) } return nil } @@ -861,13 +861,13 @@ func (m *TiIndicator) GetFileCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a return nil } // GetFileHashType gets the fileHashType property value. The fileHashType property -func (m *TiIndicator) GetFileHashType()(*FileHashType) { +func (m *TiIndicator) GetFileHashType()(*TiIndicator_fileHashType) { val, err := m.GetBackingStore().Get("fileHashType") if err != nil { panic(err) } if val != nil { - return val.(*FileHashType) + return val.(*TiIndicator_fileHashType) } return nil } @@ -1235,13 +1235,13 @@ func (m *TiIndicator) GetThreatType()(*string) { return nil } // GetTlpLevel gets the tlpLevel property value. Traffic Light Protocol value for the indicator. Possible values are: unknown, white, green, amber, red. Required. -func (m *TiIndicator) GetTlpLevel()(*TlpLevel) { +func (m *TiIndicator) GetTlpLevel()(*TiIndicator_tlpLevel) { val, err := m.GetBackingStore().Get("tlpLevel") if err != nil { panic(err) } if val != nil { - return val.(*TlpLevel) + return val.(*TiIndicator_tlpLevel) } return nil } @@ -1628,7 +1628,7 @@ func (m *TiIndicator) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return nil } // SetAction sets the action property value. The action to apply if the indicator is matched from within the targetProduct security tool. Possible values are: unknown, allow, block, alert. Required. -func (m *TiIndicator) SetAction(value *TiAction)() { +func (m *TiIndicator) SetAction(value *TiIndicator_action)() { err := m.GetBackingStore().Set("action", value) if err != nil { panic(err) @@ -1670,7 +1670,7 @@ func (m *TiIndicator) SetDescription(value *string)() { } } // SetDiamondModel sets the diamondModel property value. The area of the Diamond Model in which this indicator exists. Possible values are: unknown, adversary, capability, infrastructure, victim. -func (m *TiIndicator) SetDiamondModel(value *DiamondModel)() { +func (m *TiIndicator) SetDiamondModel(value *TiIndicator_diamondModel)() { err := m.GetBackingStore().Set("diamondModel", value) if err != nil { panic(err) @@ -1775,7 +1775,7 @@ func (m *TiIndicator) SetFileCreatedDateTime(value *i336074805fc853987abe6f7fe3a } } // SetFileHashType sets the fileHashType property value. The fileHashType property -func (m *TiIndicator) SetFileHashType(value *FileHashType)() { +func (m *TiIndicator) SetFileHashType(value *TiIndicator_fileHashType)() { err := m.GetBackingStore().Set("fileHashType", value) if err != nil { panic(err) @@ -2013,7 +2013,7 @@ func (m *TiIndicator) SetThreatType(value *string)() { } } // SetTlpLevel sets the tlpLevel property value. Traffic Light Protocol value for the indicator. Possible values are: unknown, white, green, amber, red. Required. -func (m *TiIndicator) SetTlpLevel(value *TlpLevel)() { +func (m *TiIndicator) SetTlpLevel(value *TiIndicator_tlpLevel)() { err := m.GetBackingStore().Set("tlpLevel", value) if err != nil { panic(err) @@ -2037,13 +2037,13 @@ func (m *TiIndicator) SetUserAgent(value *string)() { type TiIndicatorable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAction()(*TiAction) + GetAction()(*TiIndicator_action) GetActivityGroupNames()([]string) GetAdditionalInformation()(*string) GetAzureTenantId()(*string) GetConfidence()(*int32) GetDescription()(*string) - GetDiamondModel()(*DiamondModel) + GetDiamondModel()(*TiIndicator_diamondModel) GetDomainName()(*string) GetEmailEncoding()(*string) GetEmailLanguage()(*string) @@ -2058,7 +2058,7 @@ type TiIndicatorable interface { GetExternalId()(*string) GetFileCompileDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetFileCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetFileHashType()(*FileHashType) + GetFileHashType()(*TiIndicator_fileHashType) GetFileHashValue()(*string) GetFileMutexName()(*string) GetFileName()(*string) @@ -2092,16 +2092,16 @@ type TiIndicatorable interface { GetTags()([]string) GetTargetProduct()(*string) GetThreatType()(*string) - GetTlpLevel()(*TlpLevel) + GetTlpLevel()(*TiIndicator_tlpLevel) GetUrl()(*string) GetUserAgent()(*string) - SetAction(value *TiAction)() + SetAction(value *TiIndicator_action)() SetActivityGroupNames(value []string)() SetAdditionalInformation(value *string)() SetAzureTenantId(value *string)() SetConfidence(value *int32)() SetDescription(value *string)() - SetDiamondModel(value *DiamondModel)() + SetDiamondModel(value *TiIndicator_diamondModel)() SetDomainName(value *string)() SetEmailEncoding(value *string)() SetEmailLanguage(value *string)() @@ -2116,7 +2116,7 @@ type TiIndicatorable interface { SetExternalId(value *string)() SetFileCompileDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetFileCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetFileHashType(value *FileHashType)() + SetFileHashType(value *TiIndicator_fileHashType)() SetFileHashValue(value *string)() SetFileMutexName(value *string)() SetFileName(value *string)() @@ -2150,7 +2150,7 @@ type TiIndicatorable interface { SetTags(value []string)() SetTargetProduct(value *string)() SetThreatType(value *string)() - SetTlpLevel(value *TlpLevel)() + SetTlpLevel(value *TiIndicator_tlpLevel)() SetUrl(value *string)() SetUserAgent(value *string)() } diff --git a/models/ti_indicator_action.go b/models/ti_indicator_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ti_indicator_diamond_model.go b/models/ti_indicator_diamond_model.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ti_indicator_file_hash_type.go b/models/ti_indicator_file_hash_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/ti_indicator_tlp_level.go b/models/ti_indicator_tlp_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/time_card.go b/models/time_card.go index ece2466d105..c8334605408 100644 --- a/models/time_card.go +++ b/models/time_card.go @@ -55,13 +55,13 @@ func (m *TimeCard) GetClockOutEvent()(TimeCardEventable) { return nil } // GetConfirmedBy gets the confirmedBy property value. Indicates whether this timeCard entry is confirmed. Possible values are none, user, manager, unknownFutureValue. -func (m *TimeCard) GetConfirmedBy()(*ConfirmedBy) { +func (m *TimeCard) GetConfirmedBy()(*TimeCard_confirmedBy) { val, err := m.GetBackingStore().Get("confirmedBy") if err != nil { panic(err) } if val != nil { - return val.(*ConfirmedBy) + return val.(*TimeCard_confirmedBy) } return nil } @@ -105,12 +105,12 @@ func (m *TimeCard) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["confirmedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseConfirmedBy) + val, err := n.GetEnumValue(ParseTimeCard_confirmedBy) if err != nil { return err } if val != nil { - m.SetConfirmedBy(val.(*ConfirmedBy)) + m.SetConfirmedBy(val.(*TimeCard_confirmedBy)) } return nil } @@ -135,12 +135,12 @@ func (m *TimeCard) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTimeCardState) + val, err := n.GetEnumValue(ParseTimeCard_state) if err != nil { return err } if val != nil { - m.SetState(val.(*TimeCardState)) + m.SetState(val.(*TimeCard_state)) } return nil } @@ -179,13 +179,13 @@ func (m *TimeCard) GetOriginalEntry()(TimeCardEntryable) { return nil } // GetState gets the state property value. The current state of the timeCard during its life cycle.Possible values are: clockedIn, onBreak, clockedOut, unknownFutureValue. -func (m *TimeCard) GetState()(*TimeCardState) { +func (m *TimeCard) GetState()(*TimeCard_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*TimeCardState) + return val.(*TimeCard_state) } return nil } @@ -286,7 +286,7 @@ func (m *TimeCard) SetClockOutEvent(value TimeCardEventable)() { } } // SetConfirmedBy sets the confirmedBy property value. Indicates whether this timeCard entry is confirmed. Possible values are none, user, manager, unknownFutureValue. -func (m *TimeCard) SetConfirmedBy(value *ConfirmedBy)() { +func (m *TimeCard) SetConfirmedBy(value *TimeCard_confirmedBy)() { err := m.GetBackingStore().Set("confirmedBy", value) if err != nil { panic(err) @@ -307,7 +307,7 @@ func (m *TimeCard) SetOriginalEntry(value TimeCardEntryable)() { } } // SetState sets the state property value. The current state of the timeCard during its life cycle.Possible values are: clockedIn, onBreak, clockedOut, unknownFutureValue. -func (m *TimeCard) SetState(value *TimeCardState)() { +func (m *TimeCard) SetState(value *TimeCard_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -327,17 +327,17 @@ type TimeCardable interface { GetBreaks()([]TimeCardBreakable) GetClockInEvent()(TimeCardEventable) GetClockOutEvent()(TimeCardEventable) - GetConfirmedBy()(*ConfirmedBy) + GetConfirmedBy()(*TimeCard_confirmedBy) GetNotes()(ItemBodyable) GetOriginalEntry()(TimeCardEntryable) - GetState()(*TimeCardState) + GetState()(*TimeCard_state) GetUserId()(*string) SetBreaks(value []TimeCardBreakable)() SetClockInEvent(value TimeCardEventable)() SetClockOutEvent(value TimeCardEventable)() - SetConfirmedBy(value *ConfirmedBy)() + SetConfirmedBy(value *TimeCard_confirmedBy)() SetNotes(value ItemBodyable)() SetOriginalEntry(value TimeCardEntryable)() - SetState(value *TimeCardState)() + SetState(value *TimeCard_state)() SetUserId(value *string)() } diff --git a/models/time_card_confirmed_by.go b/models/time_card_confirmed_by.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/time_card_state.go b/models/time_card_state.go index a17ef42d1fb..e69de29bb2d 100644 --- a/models/time_card_state.go +++ b/models/time_card_state.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TimeCardState int - -const ( - CLOCKEDIN_TIMECARDSTATE TimeCardState = iota - ONBREAK_TIMECARDSTATE - CLOCKEDOUT_TIMECARDSTATE - UNKNOWNFUTUREVALUE_TIMECARDSTATE -) - -func (i TimeCardState) String() string { - return []string{"clockedIn", "onBreak", "clockedOut", "unknownFutureValue"}[i] -} -func ParseTimeCardState(v string) (any, error) { - result := CLOCKEDIN_TIMECARDSTATE - switch v { - case "clockedIn": - result = CLOCKEDIN_TIMECARDSTATE - case "onBreak": - result = ONBREAK_TIMECARDSTATE - case "clockedOut": - result = CLOCKEDOUT_TIMECARDSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TIMECARDSTATE - default: - return 0, errors.New("Unknown TimeCardState value: " + v) - } - return &result, nil -} -func SerializeTimeCardState(values []TimeCardState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TimeCardState) isMultiValue() bool { - return false -} diff --git a/models/time_constraint.go b/models/time_constraint.go index a25cb99652c..e92bd91e275 100644 --- a/models/time_constraint.go +++ b/models/time_constraint.go @@ -23,13 +23,13 @@ func CreateTimeConstraintFromDiscriminatorValue(parseNode i878a80d2330e89d268963 return NewTimeConstraint(), nil } // GetActivityDomain gets the activityDomain property value. The nature of the activity, optional. Possible values are: work, personal, unrestricted, or unknown. -func (m *TimeConstraint) GetActivityDomain()(*ActivityDomain) { +func (m *TimeConstraint) GetActivityDomain()(*TimeConstraint_activityDomain) { val, err := m.GetBackingStore().Get("activityDomain") if err != nil { panic(err) } if val != nil { - return val.(*ActivityDomain) + return val.(*TimeConstraint_activityDomain) } return nil } @@ -53,12 +53,12 @@ func (m *TimeConstraint) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185 func (m *TimeConstraint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["activityDomain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseActivityDomain) + val, err := n.GetEnumValue(ParseTimeConstraint_activityDomain) if err != nil { return err } if val != nil { - m.SetActivityDomain(val.(*ActivityDomain)) + m.SetActivityDomain(val.(*TimeConstraint_activityDomain)) } return nil } @@ -148,7 +148,7 @@ func (m *TimeConstraint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return nil } // SetActivityDomain sets the activityDomain property value. The nature of the activity, optional. Possible values are: work, personal, unrestricted, or unknown. -func (m *TimeConstraint) SetActivityDomain(value *ActivityDomain)() { +func (m *TimeConstraint) SetActivityDomain(value *TimeConstraint_activityDomain)() { err := m.GetBackingStore().Set("activityDomain", value) if err != nil { panic(err) @@ -184,11 +184,11 @@ type TimeConstraintable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetActivityDomain()(*ActivityDomain) + GetActivityDomain()(*TimeConstraint_activityDomain) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetTimeSlots()([]TimeSlotable) - SetActivityDomain(value *ActivityDomain)() + SetActivityDomain(value *TimeConstraint_activityDomain)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetTimeSlots(value []TimeSlotable)() diff --git a/models/time_constraint_activity_domain.go b/models/time_constraint_activity_domain.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/time_off_reason.go b/models/time_off_reason.go index 65dd0ff1038..7c3c964f6d6 100644 --- a/models/time_off_reason.go +++ b/models/time_off_reason.go @@ -67,12 +67,12 @@ func (m *TimeOffReason) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return nil } res["iconType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTimeOffReasonIconType) + val, err := n.GetEnumValue(ParseTimeOffReason_iconType) if err != nil { return err } if val != nil { - m.SetIconType(val.(*TimeOffReasonIconType)) + m.SetIconType(val.(*TimeOffReason_iconType)) } return nil } @@ -89,13 +89,13 @@ func (m *TimeOffReason) GetFieldDeserializers()(map[string]func(i878a80d2330e89d return res } // GetIconType gets the iconType property value. Supported icon types are: none, car, calendar, running, plane, firstAid, doctor, notWorking, clock, juryDuty, globe, cup, phone, weather, umbrella, piggyBank, dog, cake, trafficCone, pin, sunny. Required. -func (m *TimeOffReason) GetIconType()(*TimeOffReasonIconType) { +func (m *TimeOffReason) GetIconType()(*TimeOffReason_iconType) { val, err := m.GetBackingStore().Get("iconType") if err != nil { panic(err) } if val != nil { - return val.(*TimeOffReasonIconType) + return val.(*TimeOffReason_iconType) } return nil } @@ -158,7 +158,7 @@ func (m *TimeOffReason) SetDisplayName(value *string)() { } } // SetIconType sets the iconType property value. Supported icon types are: none, car, calendar, running, plane, firstAid, doctor, notWorking, clock, juryDuty, globe, cup, phone, weather, umbrella, piggyBank, dog, cake, trafficCone, pin, sunny. Required. -func (m *TimeOffReason) SetIconType(value *TimeOffReasonIconType)() { +func (m *TimeOffReason) SetIconType(value *TimeOffReason_iconType)() { err := m.GetBackingStore().Set("iconType", value) if err != nil { panic(err) @@ -177,10 +177,10 @@ type TimeOffReasonable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCode()(*string) GetDisplayName()(*string) - GetIconType()(*TimeOffReasonIconType) + GetIconType()(*TimeOffReason_iconType) GetIsActive()(*bool) SetCode(value *string)() SetDisplayName(value *string)() - SetIconType(value *TimeOffReasonIconType)() + SetIconType(value *TimeOffReason_iconType)() SetIsActive(value *bool)() } diff --git a/models/time_off_reason_icon_type.go b/models/time_off_reason_icon_type.go index c2681687126..e69de29bb2d 100644 --- a/models/time_off_reason_icon_type.go +++ b/models/time_off_reason_icon_type.go @@ -1,97 +0,0 @@ -package models -import ( - "errors" -) -// -type TimeOffReasonIconType int - -const ( - NONE_TIMEOFFREASONICONTYPE TimeOffReasonIconType = iota - CAR_TIMEOFFREASONICONTYPE - CALENDAR_TIMEOFFREASONICONTYPE - RUNNING_TIMEOFFREASONICONTYPE - PLANE_TIMEOFFREASONICONTYPE - FIRSTAID_TIMEOFFREASONICONTYPE - DOCTOR_TIMEOFFREASONICONTYPE - NOTWORKING_TIMEOFFREASONICONTYPE - CLOCK_TIMEOFFREASONICONTYPE - JURYDUTY_TIMEOFFREASONICONTYPE - GLOBE_TIMEOFFREASONICONTYPE - CUP_TIMEOFFREASONICONTYPE - PHONE_TIMEOFFREASONICONTYPE - WEATHER_TIMEOFFREASONICONTYPE - UMBRELLA_TIMEOFFREASONICONTYPE - PIGGYBANK_TIMEOFFREASONICONTYPE - DOG_TIMEOFFREASONICONTYPE - CAKE_TIMEOFFREASONICONTYPE - TRAFFICCONE_TIMEOFFREASONICONTYPE - PIN_TIMEOFFREASONICONTYPE - SUNNY_TIMEOFFREASONICONTYPE - UNKNOWNFUTUREVALUE_TIMEOFFREASONICONTYPE -) - -func (i TimeOffReasonIconType) String() string { - return []string{"none", "car", "calendar", "running", "plane", "firstAid", "doctor", "notWorking", "clock", "juryDuty", "globe", "cup", "phone", "weather", "umbrella", "piggyBank", "dog", "cake", "trafficCone", "pin", "sunny", "unknownFutureValue"}[i] -} -func ParseTimeOffReasonIconType(v string) (any, error) { - result := NONE_TIMEOFFREASONICONTYPE - switch v { - case "none": - result = NONE_TIMEOFFREASONICONTYPE - case "car": - result = CAR_TIMEOFFREASONICONTYPE - case "calendar": - result = CALENDAR_TIMEOFFREASONICONTYPE - case "running": - result = RUNNING_TIMEOFFREASONICONTYPE - case "plane": - result = PLANE_TIMEOFFREASONICONTYPE - case "firstAid": - result = FIRSTAID_TIMEOFFREASONICONTYPE - case "doctor": - result = DOCTOR_TIMEOFFREASONICONTYPE - case "notWorking": - result = NOTWORKING_TIMEOFFREASONICONTYPE - case "clock": - result = CLOCK_TIMEOFFREASONICONTYPE - case "juryDuty": - result = JURYDUTY_TIMEOFFREASONICONTYPE - case "globe": - result = GLOBE_TIMEOFFREASONICONTYPE - case "cup": - result = CUP_TIMEOFFREASONICONTYPE - case "phone": - result = PHONE_TIMEOFFREASONICONTYPE - case "weather": - result = WEATHER_TIMEOFFREASONICONTYPE - case "umbrella": - result = UMBRELLA_TIMEOFFREASONICONTYPE - case "piggyBank": - result = PIGGYBANK_TIMEOFFREASONICONTYPE - case "dog": - result = DOG_TIMEOFFREASONICONTYPE - case "cake": - result = CAKE_TIMEOFFREASONICONTYPE - case "trafficCone": - result = TRAFFICCONE_TIMEOFFREASONICONTYPE - case "pin": - result = PIN_TIMEOFFREASONICONTYPE - case "sunny": - result = SUNNY_TIMEOFFREASONICONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TIMEOFFREASONICONTYPE - default: - return 0, errors.New("Unknown TimeOffReasonIconType value: " + v) - } - return &result, nil -} -func SerializeTimeOffReasonIconType(values []TimeOffReasonIconType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TimeOffReasonIconType) isMultiValue() bool { - return false -} diff --git a/models/title_area.go b/models/title_area.go index e3f1fd28d13..6036acf9db5 100644 --- a/models/title_area.go +++ b/models/title_area.go @@ -94,12 +94,12 @@ func (m *TitleArea) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["layout"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTitleAreaLayoutType) + val, err := n.GetEnumValue(ParseTitleArea_layout) if err != nil { return err } if val != nil { - m.SetLayout(val.(*TitleAreaLayoutType)) + m.SetLayout(val.(*TitleArea_layout)) } return nil } @@ -164,12 +164,12 @@ func (m *TitleArea) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 return nil } res["textAlignment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTitleAreaTextAlignmentType) + val, err := n.GetEnumValue(ParseTitleArea_textAlignment) if err != nil { return err } if val != nil { - m.SetTextAlignment(val.(*TitleAreaTextAlignmentType)) + m.SetTextAlignment(val.(*TitleArea_textAlignment)) } return nil } @@ -187,13 +187,13 @@ func (m *TitleArea) GetImageWebUrl()(*string) { return nil } // GetLayout gets the layout property value. Enumeration value that indicates the layout of the title area. The possible values are: imageAndTitle, plain, colorBlock, overlap, unknownFutureValue. -func (m *TitleArea) GetLayout()(*TitleAreaLayoutType) { +func (m *TitleArea) GetLayout()(*TitleArea_layout) { val, err := m.GetBackingStore().Get("layout") if err != nil { panic(err) } if val != nil { - return val.(*TitleAreaLayoutType) + return val.(*TitleArea_layout) } return nil } @@ -264,13 +264,13 @@ func (m *TitleArea) GetTextAboveTitle()(*string) { return nil } // GetTextAlignment gets the textAlignment property value. Enumeration value that indicates the text alignment of the title area. The possible values are: left, center, unknownFutureValue. -func (m *TitleArea) GetTextAlignment()(*TitleAreaTextAlignmentType) { +func (m *TitleArea) GetTextAlignment()(*TitleArea_textAlignment) { val, err := m.GetBackingStore().Get("textAlignment") if err != nil { panic(err) } if val != nil { - return val.(*TitleAreaTextAlignmentType) + return val.(*TitleArea_textAlignment) } return nil } @@ -385,7 +385,7 @@ func (m *TitleArea) SetImageWebUrl(value *string)() { } } // SetLayout sets the layout property value. Enumeration value that indicates the layout of the title area. The possible values are: imageAndTitle, plain, colorBlock, overlap, unknownFutureValue. -func (m *TitleArea) SetLayout(value *TitleAreaLayoutType)() { +func (m *TitleArea) SetLayout(value *TitleArea_layout)() { err := m.GetBackingStore().Set("layout", value) if err != nil { panic(err) @@ -434,7 +434,7 @@ func (m *TitleArea) SetTextAboveTitle(value *string)() { } } // SetTextAlignment sets the textAlignment property value. Enumeration value that indicates the text alignment of the title area. The possible values are: left, center, unknownFutureValue. -func (m *TitleArea) SetTextAlignment(value *TitleAreaTextAlignmentType)() { +func (m *TitleArea) SetTextAlignment(value *TitleArea_textAlignment)() { err := m.GetBackingStore().Set("textAlignment", value) if err != nil { panic(err) @@ -449,24 +449,24 @@ type TitleAreaable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetEnableGradientEffect()(*bool) GetImageWebUrl()(*string) - GetLayout()(*TitleAreaLayoutType) + GetLayout()(*TitleArea_layout) GetOdataType()(*string) GetServerProcessedContent()(ServerProcessedContentable) GetShowAuthor()(*bool) GetShowPublishedDate()(*bool) GetShowTextBlockAboveTitle()(*bool) GetTextAboveTitle()(*string) - GetTextAlignment()(*TitleAreaTextAlignmentType) + GetTextAlignment()(*TitleArea_textAlignment) SetAlternativeText(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetEnableGradientEffect(value *bool)() SetImageWebUrl(value *string)() - SetLayout(value *TitleAreaLayoutType)() + SetLayout(value *TitleArea_layout)() SetOdataType(value *string)() SetServerProcessedContent(value ServerProcessedContentable)() SetShowAuthor(value *bool)() SetShowPublishedDate(value *bool)() SetShowTextBlockAboveTitle(value *bool)() SetTextAboveTitle(value *string)() - SetTextAlignment(value *TitleAreaTextAlignmentType)() + SetTextAlignment(value *TitleArea_textAlignment)() } diff --git a/models/title_area_layout.go b/models/title_area_layout.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/title_area_layout_type.go b/models/title_area_layout_type.go deleted file mode 100644 index 70e2149ec18..00000000000 --- a/models/title_area_layout_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type TitleAreaLayoutType int - -const ( - IMAGEANDTITLE_TITLEAREALAYOUTTYPE TitleAreaLayoutType = iota - PLAIN_TITLEAREALAYOUTTYPE - COLORBLOCK_TITLEAREALAYOUTTYPE - OVERLAP_TITLEAREALAYOUTTYPE - UNKNOWNFUTUREVALUE_TITLEAREALAYOUTTYPE -) - -func (i TitleAreaLayoutType) String() string { - return []string{"imageAndTitle", "plain", "colorBlock", "overlap", "unknownFutureValue"}[i] -} -func ParseTitleAreaLayoutType(v string) (any, error) { - result := IMAGEANDTITLE_TITLEAREALAYOUTTYPE - switch v { - case "imageAndTitle": - result = IMAGEANDTITLE_TITLEAREALAYOUTTYPE - case "plain": - result = PLAIN_TITLEAREALAYOUTTYPE - case "colorBlock": - result = COLORBLOCK_TITLEAREALAYOUTTYPE - case "overlap": - result = OVERLAP_TITLEAREALAYOUTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TITLEAREALAYOUTTYPE - default: - return 0, errors.New("Unknown TitleAreaLayoutType value: " + v) - } - return &result, nil -} -func SerializeTitleAreaLayoutType(values []TitleAreaLayoutType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TitleAreaLayoutType) isMultiValue() bool { - return false -} diff --git a/models/title_area_text_alignment.go b/models/title_area_text_alignment.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/title_area_text_alignment_type.go b/models/title_area_text_alignment_type.go deleted file mode 100644 index b0cf4905d67..00000000000 --- a/models/title_area_text_alignment_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type TitleAreaTextAlignmentType int - -const ( - LEFT_TITLEAREATEXTALIGNMENTTYPE TitleAreaTextAlignmentType = iota - CENTER_TITLEAREATEXTALIGNMENTTYPE - UNKNOWNFUTUREVALUE_TITLEAREATEXTALIGNMENTTYPE -) - -func (i TitleAreaTextAlignmentType) String() string { - return []string{"left", "center", "unknownFutureValue"}[i] -} -func ParseTitleAreaTextAlignmentType(v string) (any, error) { - result := LEFT_TITLEAREATEXTALIGNMENTTYPE - switch v { - case "left": - result = LEFT_TITLEAREATEXTALIGNMENTTYPE - case "center": - result = CENTER_TITLEAREATEXTALIGNMENTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TITLEAREATEXTALIGNMENTTYPE - default: - return 0, errors.New("Unknown TitleAreaTextAlignmentType value: " + v) - } - return &result, nil -} -func SerializeTitleAreaTextAlignmentType(values []TitleAreaTextAlignmentType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TitleAreaTextAlignmentType) isMultiValue() bool { - return false -} diff --git a/models/tlp_level.go b/models/tlp_level.go deleted file mode 100644 index 55fa0108b10..00000000000 --- a/models/tlp_level.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type TlpLevel int - -const ( - UNKNOWN_TLPLEVEL TlpLevel = iota - WHITE_TLPLEVEL - GREEN_TLPLEVEL - AMBER_TLPLEVEL - RED_TLPLEVEL - UNKNOWNFUTUREVALUE_TLPLEVEL -) - -func (i TlpLevel) String() string { - return []string{"unknown", "white", "green", "amber", "red", "unknownFutureValue"}[i] -} -func ParseTlpLevel(v string) (any, error) { - result := UNKNOWN_TLPLEVEL - switch v { - case "unknown": - result = UNKNOWN_TLPLEVEL - case "white": - result = WHITE_TLPLEVEL - case "green": - result = GREEN_TLPLEVEL - case "amber": - result = AMBER_TLPLEVEL - case "red": - result = RED_TLPLEVEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TLPLEVEL - default: - return 0, errors.New("Unknown TlpLevel value: " + v) - } - return &result, nil -} -func SerializeTlpLevel(values []TlpLevel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TlpLevel) isMultiValue() bool { - return false -} diff --git a/models/token_issuer_type.go b/models/token_issuer_type.go deleted file mode 100644 index 9f9c8c695cf..00000000000 --- a/models/token_issuer_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type TokenIssuerType int - -const ( - AZUREAD_TOKENISSUERTYPE TokenIssuerType = iota - ADFEDERATIONSERVICES_TOKENISSUERTYPE - UNKNOWNFUTUREVALUE_TOKENISSUERTYPE - AZUREADBACKUPAUTH_TOKENISSUERTYPE - ADFEDERATIONSERVICESMFAADAPTER_TOKENISSUERTYPE - NPSEXTENSION_TOKENISSUERTYPE -) - -func (i TokenIssuerType) String() string { - return []string{"AzureAD", "ADFederationServices", "UnknownFutureValue", "AzureADBackupAuth", "ADFederationServicesMFAAdapter", "NPSExtension"}[i] -} -func ParseTokenIssuerType(v string) (any, error) { - result := AZUREAD_TOKENISSUERTYPE - switch v { - case "AzureAD": - result = AZUREAD_TOKENISSUERTYPE - case "ADFederationServices": - result = ADFEDERATIONSERVICES_TOKENISSUERTYPE - case "UnknownFutureValue": - result = UNKNOWNFUTUREVALUE_TOKENISSUERTYPE - case "AzureADBackupAuth": - result = AZUREADBACKUPAUTH_TOKENISSUERTYPE - case "ADFederationServicesMFAAdapter": - result = ADFEDERATIONSERVICESMFAADAPTER_TOKENISSUERTYPE - case "NPSExtension": - result = NPSEXTENSION_TOKENISSUERTYPE - default: - return 0, errors.New("Unknown TokenIssuerType value: " + v) - } - return &result, nil -} -func SerializeTokenIssuerType(values []TokenIssuerType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TokenIssuerType) isMultiValue() bool { - return false -} diff --git a/models/token_protection_status.go b/models/token_protection_status.go deleted file mode 100644 index 4bb2dc2db73..00000000000 --- a/models/token_protection_status.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TokenProtectionStatus int - -const ( - NONE_TOKENPROTECTIONSTATUS TokenProtectionStatus = iota - BOUND_TOKENPROTECTIONSTATUS - UNBOUND_TOKENPROTECTIONSTATUS - UNKNOWNFUTUREVALUE_TOKENPROTECTIONSTATUS -) - -func (i TokenProtectionStatus) String() string { - return []string{"none", "bound", "unbound", "unknownFutureValue"}[i] -} -func ParseTokenProtectionStatus(v string) (any, error) { - result := NONE_TOKENPROTECTIONSTATUS - switch v { - case "none": - result = NONE_TOKENPROTECTIONSTATUS - case "bound": - result = BOUND_TOKENPROTECTIONSTATUS - case "unbound": - result = UNBOUND_TOKENPROTECTIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TOKENPROTECTIONSTATUS - default: - return 0, errors.New("Unknown TokenProtectionStatus value: " + v) - } - return &result, nil -} -func SerializeTokenProtectionStatus(values []TokenProtectionStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TokenProtectionStatus) isMultiValue() bool { - return false -} diff --git a/models/training.go b/models/training.go index d3191e60378..af29f4877bf 100644 --- a/models/training.go +++ b/models/training.go @@ -21,13 +21,13 @@ func CreateTrainingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f4 return NewTraining(), nil } // GetAvailabilityStatus gets the availabilityStatus property value. Training availability status. Possible values are: unknown, notAvailable, available, archive, delete, unknownFutureValue. -func (m *Training) GetAvailabilityStatus()(*TrainingAvailabilityStatus) { +func (m *Training) GetAvailabilityStatus()(*Training_availabilityStatus) { val, err := m.GetBackingStore().Get("availabilityStatus") if err != nil { panic(err) } if val != nil { - return val.(*TrainingAvailabilityStatus) + return val.(*Training_availabilityStatus) } return nil } @@ -90,12 +90,12 @@ func (m *Training) GetDurationInMinutes()(*int32) { func (m *Training) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["availabilityStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTrainingAvailabilityStatus) + val, err := n.GetEnumValue(ParseTraining_availabilityStatus) if err != nil { return err } if val != nil { - m.SetAvailabilityStatus(val.(*TrainingAvailabilityStatus)) + m.SetAvailabilityStatus(val.(*Training_availabilityStatus)) } return nil } @@ -196,12 +196,12 @@ func (m *Training) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSimulationContentSource) + val, err := n.GetEnumValue(ParseTraining_source) if err != nil { return err } if val != nil { - m.SetSource(val.(*SimulationContentSource)) + m.SetSource(val.(*Training_source)) } return nil } @@ -238,12 +238,12 @@ func (m *Training) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTrainingType) + val, err := n.GetEnumValue(ParseTraining_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*TrainingType)) + m.SetTypeEscaped(val.(*Training_type)) } return nil } @@ -294,13 +294,13 @@ func (m *Training) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a return nil } // GetSource gets the source property value. Training content source. Possible values are: unknown, global, tenant, unknownFutureValue. -func (m *Training) GetSource()(*SimulationContentSource) { +func (m *Training) GetSource()(*Training_source) { val, err := m.GetBackingStore().Get("source") if err != nil { panic(err) } if val != nil { - return val.(*SimulationContentSource) + return val.(*Training_source) } return nil } @@ -327,13 +327,13 @@ func (m *Training) GetTags()([]string) { return nil } // GetTypeEscaped gets the type property value. The type of training. Possible values are: unknown, phishing, unknownFutureValue. -func (m *Training) GetTypeEscaped()(*TrainingType) { +func (m *Training) GetTypeEscaped()(*Training_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*TrainingType) + return val.(*Training_type) } return nil } @@ -439,7 +439,7 @@ func (m *Training) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return nil } // SetAvailabilityStatus sets the availabilityStatus property value. Training availability status. Possible values are: unknown, notAvailable, available, archive, delete, unknownFutureValue. -func (m *Training) SetAvailabilityStatus(value *TrainingAvailabilityStatus)() { +func (m *Training) SetAvailabilityStatus(value *Training_availabilityStatus)() { err := m.GetBackingStore().Set("availabilityStatus", value) if err != nil { panic(err) @@ -509,7 +509,7 @@ func (m *Training) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad9 } } // SetSource sets the source property value. Training content source. Possible values are: unknown, global, tenant, unknownFutureValue. -func (m *Training) SetSource(value *SimulationContentSource)() { +func (m *Training) SetSource(value *Training_source)() { err := m.GetBackingStore().Set("source", value) if err != nil { panic(err) @@ -530,7 +530,7 @@ func (m *Training) SetTags(value []string)() { } } // SetTypeEscaped sets the type property value. The type of training. Possible values are: unknown, phishing, unknownFutureValue. -func (m *Training) SetTypeEscaped(value *TrainingType)() { +func (m *Training) SetTypeEscaped(value *Training_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -540,7 +540,7 @@ func (m *Training) SetTypeEscaped(value *TrainingType)() { type Trainingable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAvailabilityStatus()(*TrainingAvailabilityStatus) + GetAvailabilityStatus()(*Training_availabilityStatus) GetCreatedBy()(EmailIdentityable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDescription()(*string) @@ -550,11 +550,11 @@ type Trainingable interface { GetLanguageDetails()([]TrainingLanguageDetailable) GetLastModifiedBy()(EmailIdentityable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetSource()(*SimulationContentSource) + GetSource()(*Training_source) GetSupportedLocales()([]string) GetTags()([]string) - GetTypeEscaped()(*TrainingType) - SetAvailabilityStatus(value *TrainingAvailabilityStatus)() + GetTypeEscaped()(*Training_type) + SetAvailabilityStatus(value *Training_availabilityStatus)() SetCreatedBy(value EmailIdentityable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDescription(value *string)() @@ -564,8 +564,8 @@ type Trainingable interface { SetLanguageDetails(value []TrainingLanguageDetailable)() SetLastModifiedBy(value EmailIdentityable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetSource(value *SimulationContentSource)() + SetSource(value *Training_source)() SetSupportedLocales(value []string)() SetTags(value []string)() - SetTypeEscaped(value *TrainingType)() + SetTypeEscaped(value *Training_type)() } diff --git a/models/training_assigned_to.go b/models/training_assigned_to.go deleted file mode 100644 index 0a9056a8e49..00000000000 --- a/models/training_assigned_to.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type TrainingAssignedTo int - -const ( - NONE_TRAININGASSIGNEDTO TrainingAssignedTo = iota - ALLUSERS_TRAININGASSIGNEDTO - CLICKEDPAYLOAD_TRAININGASSIGNEDTO - COMPROMISED_TRAININGASSIGNEDTO - REPORTEDPHISH_TRAININGASSIGNEDTO - READBUTNOTCLICKED_TRAININGASSIGNEDTO - DIDNOTHING_TRAININGASSIGNEDTO - UNKNOWNFUTUREVALUE_TRAININGASSIGNEDTO -) - -func (i TrainingAssignedTo) String() string { - return []string{"none", "allUsers", "clickedPayload", "compromised", "reportedPhish", "readButNotClicked", "didNothing", "unknownFutureValue"}[i] -} -func ParseTrainingAssignedTo(v string) (any, error) { - result := NONE_TRAININGASSIGNEDTO - switch v { - case "none": - result = NONE_TRAININGASSIGNEDTO - case "allUsers": - result = ALLUSERS_TRAININGASSIGNEDTO - case "clickedPayload": - result = CLICKEDPAYLOAD_TRAININGASSIGNEDTO - case "compromised": - result = COMPROMISED_TRAININGASSIGNEDTO - case "reportedPhish": - result = REPORTEDPHISH_TRAININGASSIGNEDTO - case "readButNotClicked": - result = READBUTNOTCLICKED_TRAININGASSIGNEDTO - case "didNothing": - result = DIDNOTHING_TRAININGASSIGNEDTO - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TRAININGASSIGNEDTO - default: - return 0, errors.New("Unknown TrainingAssignedTo value: " + v) - } - return &result, nil -} -func SerializeTrainingAssignedTo(values []TrainingAssignedTo) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TrainingAssignedTo) isMultiValue() bool { - return false -} diff --git a/models/training_availability_status.go b/models/training_availability_status.go index 372a3211823..e69de29bb2d 100644 --- a/models/training_availability_status.go +++ b/models/training_availability_status.go @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type TrainingAvailabilityStatus int - -const ( - UNKNOWN_TRAININGAVAILABILITYSTATUS TrainingAvailabilityStatus = iota - NOTAVAILABLE_TRAININGAVAILABILITYSTATUS - AVAILABLE_TRAININGAVAILABILITYSTATUS - ARCHIVE_TRAININGAVAILABILITYSTATUS - DELETE_TRAININGAVAILABILITYSTATUS - UNKNOWNFUTUREVALUE_TRAININGAVAILABILITYSTATUS -) - -func (i TrainingAvailabilityStatus) String() string { - return []string{"unknown", "notAvailable", "available", "archive", "delete", "unknownFutureValue"}[i] -} -func ParseTrainingAvailabilityStatus(v string) (any, error) { - result := UNKNOWN_TRAININGAVAILABILITYSTATUS - switch v { - case "unknown": - result = UNKNOWN_TRAININGAVAILABILITYSTATUS - case "notAvailable": - result = NOTAVAILABLE_TRAININGAVAILABILITYSTATUS - case "available": - result = AVAILABLE_TRAININGAVAILABILITYSTATUS - case "archive": - result = ARCHIVE_TRAININGAVAILABILITYSTATUS - case "delete": - result = DELETE_TRAININGAVAILABILITYSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TRAININGAVAILABILITYSTATUS - default: - return 0, errors.New("Unknown TrainingAvailabilityStatus value: " + v) - } - return &result, nil -} -func SerializeTrainingAvailabilityStatus(values []TrainingAvailabilityStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TrainingAvailabilityStatus) isMultiValue() bool { - return false -} diff --git a/models/training_completion_duration.go b/models/training_completion_duration.go deleted file mode 100644 index 278164a2f51..00000000000 --- a/models/training_completion_duration.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type TrainingCompletionDuration int - -const ( - WEEK_TRAININGCOMPLETIONDURATION TrainingCompletionDuration = iota - FORTNITE_TRAININGCOMPLETIONDURATION - MONTH_TRAININGCOMPLETIONDURATION - UNKNOWNFUTUREVALUE_TRAININGCOMPLETIONDURATION -) - -func (i TrainingCompletionDuration) String() string { - return []string{"week", "fortnite", "month", "unknownFutureValue"}[i] -} -func ParseTrainingCompletionDuration(v string) (any, error) { - result := WEEK_TRAININGCOMPLETIONDURATION - switch v { - case "week": - result = WEEK_TRAININGCOMPLETIONDURATION - case "fortnite": - result = FORTNITE_TRAININGCOMPLETIONDURATION - case "month": - result = MONTH_TRAININGCOMPLETIONDURATION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TRAININGCOMPLETIONDURATION - default: - return 0, errors.New("Unknown TrainingCompletionDuration value: " + v) - } - return &result, nil -} -func SerializeTrainingCompletionDuration(values []TrainingCompletionDuration) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TrainingCompletionDuration) isMultiValue() bool { - return false -} diff --git a/models/training_reminder_notification.go b/models/training_reminder_notification.go index 6f6f218e50c..684a9766eda 100644 --- a/models/training_reminder_notification.go +++ b/models/training_reminder_notification.go @@ -22,13 +22,13 @@ func CreateTrainingReminderNotificationFromDiscriminatorValue(parseNode i878a80d return NewTrainingReminderNotification(), nil } // GetDeliveryFrequency gets the deliveryFrequency property value. Configurable frequency for the reminder email introduced during simulation creation. Possible values are: unknown, weekly, biWeekly, unknownFutureValue. -func (m *TrainingReminderNotification) GetDeliveryFrequency()(*NotificationDeliveryFrequency) { +func (m *TrainingReminderNotification) GetDeliveryFrequency()(*TrainingReminderNotification_deliveryFrequency) { val, err := m.GetBackingStore().Get("deliveryFrequency") if err != nil { panic(err) } if val != nil { - return val.(*NotificationDeliveryFrequency) + return val.(*TrainingReminderNotification_deliveryFrequency) } return nil } @@ -36,12 +36,12 @@ func (m *TrainingReminderNotification) GetDeliveryFrequency()(*NotificationDeliv func (m *TrainingReminderNotification) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseEndUserNotification.GetFieldDeserializers() res["deliveryFrequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNotificationDeliveryFrequency) + val, err := n.GetEnumValue(ParseTrainingReminderNotification_deliveryFrequency) if err != nil { return err } if val != nil { - m.SetDeliveryFrequency(val.(*NotificationDeliveryFrequency)) + m.SetDeliveryFrequency(val.(*TrainingReminderNotification_deliveryFrequency)) } return nil } @@ -63,7 +63,7 @@ func (m *TrainingReminderNotification) Serialize(writer i878a80d2330e89d26896388 return nil } // SetDeliveryFrequency sets the deliveryFrequency property value. Configurable frequency for the reminder email introduced during simulation creation. Possible values are: unknown, weekly, biWeekly, unknownFutureValue. -func (m *TrainingReminderNotification) SetDeliveryFrequency(value *NotificationDeliveryFrequency)() { +func (m *TrainingReminderNotification) SetDeliveryFrequency(value *TrainingReminderNotification_deliveryFrequency)() { err := m.GetBackingStore().Set("deliveryFrequency", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *TrainingReminderNotification) SetDeliveryFrequency(value *NotificationD type TrainingReminderNotificationable interface { BaseEndUserNotificationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDeliveryFrequency()(*NotificationDeliveryFrequency) - SetDeliveryFrequency(value *NotificationDeliveryFrequency)() + GetDeliveryFrequency()(*TrainingReminderNotification_deliveryFrequency) + SetDeliveryFrequency(value *TrainingReminderNotification_deliveryFrequency)() } diff --git a/models/training_reminder_notification_delivery_frequency.go b/models/training_reminder_notification_delivery_frequency.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/training_setting.go b/models/training_setting.go index 358a99d4962..fd8d56f48a2 100644 --- a/models/training_setting.go +++ b/models/training_setting.go @@ -78,12 +78,12 @@ func (m *TrainingSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e8 return nil } res["settingType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTrainingSettingType) + val, err := n.GetEnumValue(ParseTrainingSetting_settingType) if err != nil { return err } if val != nil { - m.SetSettingType(val.(*TrainingSettingType)) + m.SetSettingType(val.(*TrainingSetting_settingType)) } return nil } @@ -101,13 +101,13 @@ func (m *TrainingSetting) GetOdataType()(*string) { return nil } // GetSettingType gets the settingType property value. Type of setting. Possible values are: microsoftCustom, microsoftManaged, noTraining, custom, unknownFutureValue. -func (m *TrainingSetting) GetSettingType()(*TrainingSettingType) { +func (m *TrainingSetting) GetSettingType()(*TrainingSetting_settingType) { val, err := m.GetBackingStore().Get("settingType") if err != nil { panic(err) } if val != nil { - return val.(*TrainingSettingType) + return val.(*TrainingSetting_settingType) } return nil } @@ -153,7 +153,7 @@ func (m *TrainingSetting) SetOdataType(value *string)() { } } // SetSettingType sets the settingType property value. Type of setting. Possible values are: microsoftCustom, microsoftManaged, noTraining, custom, unknownFutureValue. -func (m *TrainingSetting) SetSettingType(value *TrainingSettingType)() { +func (m *TrainingSetting) SetSettingType(value *TrainingSetting_settingType)() { err := m.GetBackingStore().Set("settingType", value) if err != nil { panic(err) @@ -166,8 +166,8 @@ type TrainingSettingable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetSettingType()(*TrainingSettingType) + GetSettingType()(*TrainingSetting_settingType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetSettingType(value *TrainingSettingType)() + SetSettingType(value *TrainingSetting_settingType)() } diff --git a/models/training_setting_setting_type.go b/models/training_setting_setting_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/training_setting_type.go b/models/training_setting_type.go deleted file mode 100644 index ebef34730a9..00000000000 --- a/models/training_setting_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type TrainingSettingType int - -const ( - MICROSOFTCUSTOM_TRAININGSETTINGTYPE TrainingSettingType = iota - MICROSOFTMANAGED_TRAININGSETTINGTYPE - NOTRAINING_TRAININGSETTINGTYPE - CUSTOM_TRAININGSETTINGTYPE - UNKNOWNFUTUREVALUE_TRAININGSETTINGTYPE -) - -func (i TrainingSettingType) String() string { - return []string{"microsoftCustom", "microsoftManaged", "noTraining", "custom", "unknownFutureValue"}[i] -} -func ParseTrainingSettingType(v string) (any, error) { - result := MICROSOFTCUSTOM_TRAININGSETTINGTYPE - switch v { - case "microsoftCustom": - result = MICROSOFTCUSTOM_TRAININGSETTINGTYPE - case "microsoftManaged": - result = MICROSOFTMANAGED_TRAININGSETTINGTYPE - case "noTraining": - result = NOTRAINING_TRAININGSETTINGTYPE - case "custom": - result = CUSTOM_TRAININGSETTINGTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TRAININGSETTINGTYPE - default: - return 0, errors.New("Unknown TrainingSettingType value: " + v) - } - return &result, nil -} -func SerializeTrainingSettingType(values []TrainingSettingType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TrainingSettingType) isMultiValue() bool { - return false -} diff --git a/models/training_source.go b/models/training_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/training_status.go b/models/training_status.go deleted file mode 100644 index 6e7bdefde14..00000000000 --- a/models/training_status.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type TrainingStatus int - -const ( - UNKNOWN_TRAININGSTATUS TrainingStatus = iota - ASSIGNED_TRAININGSTATUS - INPROGRESS_TRAININGSTATUS - COMPLETED_TRAININGSTATUS - OVERDUE_TRAININGSTATUS - UNKNOWNFUTUREVALUE_TRAININGSTATUS -) - -func (i TrainingStatus) String() string { - return []string{"unknown", "assigned", "inProgress", "completed", "overdue", "unknownFutureValue"}[i] -} -func ParseTrainingStatus(v string) (any, error) { - result := UNKNOWN_TRAININGSTATUS - switch v { - case "unknown": - result = UNKNOWN_TRAININGSTATUS - case "assigned": - result = ASSIGNED_TRAININGSTATUS - case "inProgress": - result = INPROGRESS_TRAININGSTATUS - case "completed": - result = COMPLETED_TRAININGSTATUS - case "overdue": - result = OVERDUE_TRAININGSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TRAININGSTATUS - default: - return 0, errors.New("Unknown TrainingStatus value: " + v) - } - return &result, nil -} -func SerializeTrainingStatus(values []TrainingStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TrainingStatus) isMultiValue() bool { - return false -} diff --git a/models/training_type.go b/models/training_type.go index 29c1b93cc9c..e69de29bb2d 100644 --- a/models/training_type.go +++ b/models/training_type.go @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type TrainingType int - -const ( - UNKNOWN_TRAININGTYPE TrainingType = iota - PHISHING_TRAININGTYPE - UNKNOWNFUTUREVALUE_TRAININGTYPE -) - -func (i TrainingType) String() string { - return []string{"unknown", "phishing", "unknownFutureValue"}[i] -} -func ParseTrainingType(v string) (any, error) { - result := UNKNOWN_TRAININGTYPE - switch v { - case "unknown": - result = UNKNOWN_TRAININGTYPE - case "phishing": - result = PHISHING_TRAININGTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_TRAININGTYPE - default: - return 0, errors.New("Unknown TrainingType value: " + v) - } - return &result, nil -} -func SerializeTrainingType(values []TrainingType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TrainingType) isMultiValue() bool { - return false -} diff --git a/models/translation_behavior.go b/models/translation_behavior.go deleted file mode 100644 index 280e0f40c23..00000000000 --- a/models/translation_behavior.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type TranslationBehavior int - -const ( - ASK_TRANSLATIONBEHAVIOR TranslationBehavior = iota - YES_TRANSLATIONBEHAVIOR - NO_TRANSLATIONBEHAVIOR -) - -func (i TranslationBehavior) String() string { - return []string{"Ask", "Yes", "No"}[i] -} -func ParseTranslationBehavior(v string) (any, error) { - result := ASK_TRANSLATIONBEHAVIOR - switch v { - case "Ask": - result = ASK_TRANSLATIONBEHAVIOR - case "Yes": - result = YES_TRANSLATIONBEHAVIOR - case "No": - result = NO_TRANSLATIONBEHAVIOR - default: - return 0, errors.New("Unknown TranslationBehavior value: " + v) - } - return &result, nil -} -func SerializeTranslationBehavior(values []TranslationBehavior) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i TranslationBehavior) isMultiValue() bool { - return false -} diff --git a/models/translation_language_override.go b/models/translation_language_override.go index 5d1892161fd..b8a1f100232 100644 --- a/models/translation_language_override.go +++ b/models/translation_language_override.go @@ -62,12 +62,12 @@ func (m *TranslationLanguageOverride) GetFieldDeserializers()(map[string]func(i8 return nil } res["translationBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTranslationBehavior) + val, err := n.GetEnumValue(ParseTranslationLanguageOverride_translationBehavior) if err != nil { return err } if val != nil { - m.SetTranslationBehavior(val.(*TranslationBehavior)) + m.SetTranslationBehavior(val.(*TranslationLanguageOverride_translationBehavior)) } return nil } @@ -96,13 +96,13 @@ func (m *TranslationLanguageOverride) GetOdataType()(*string) { return nil } // GetTranslationBehavior gets the translationBehavior property value. The translation override behavior for the language, if any.Returned by default. Not nullable. -func (m *TranslationLanguageOverride) GetTranslationBehavior()(*TranslationBehavior) { +func (m *TranslationLanguageOverride) GetTranslationBehavior()(*TranslationLanguageOverride_translationBehavior) { val, err := m.GetBackingStore().Get("translationBehavior") if err != nil { panic(err) } if val != nil { - return val.(*TranslationBehavior) + return val.(*TranslationLanguageOverride_translationBehavior) } return nil } @@ -161,7 +161,7 @@ func (m *TranslationLanguageOverride) SetOdataType(value *string)() { } } // SetTranslationBehavior sets the translationBehavior property value. The translation override behavior for the language, if any.Returned by default. Not nullable. -func (m *TranslationLanguageOverride) SetTranslationBehavior(value *TranslationBehavior)() { +func (m *TranslationLanguageOverride) SetTranslationBehavior(value *TranslationLanguageOverride_translationBehavior)() { err := m.GetBackingStore().Set("translationBehavior", value) if err != nil { panic(err) @@ -175,9 +175,9 @@ type TranslationLanguageOverrideable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetLanguageTag()(*string) GetOdataType()(*string) - GetTranslationBehavior()(*TranslationBehavior) + GetTranslationBehavior()(*TranslationLanguageOverride_translationBehavior) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetLanguageTag(value *string)() SetOdataType(value *string)() - SetTranslationBehavior(value *TranslationBehavior)() + SetTranslationBehavior(value *TranslationLanguageOverride_translationBehavior)() } diff --git a/models/translation_language_override_translation_behavior.go b/models/translation_language_override_translation_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/translation_preferences.go b/models/translation_preferences.go index 73613ebed66..5f3e4ca013b 100644 --- a/models/translation_preferences.go +++ b/models/translation_preferences.go @@ -68,12 +68,12 @@ func (m *TranslationPreferences) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["translationBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTranslationBehavior) + val, err := n.GetEnumValue(ParseTranslationPreferences_translationBehavior) if err != nil { return err } if val != nil { - m.SetTranslationBehavior(val.(*TranslationBehavior)) + m.SetTranslationBehavior(val.(*TranslationPreferences_translationBehavior)) } return nil } @@ -118,13 +118,13 @@ func (m *TranslationPreferences) GetOdataType()(*string) { return nil } // GetTranslationBehavior gets the translationBehavior property value. The user's preferred translation behavior.Returned by default. Not nullable. -func (m *TranslationPreferences) GetTranslationBehavior()(*TranslationBehavior) { +func (m *TranslationPreferences) GetTranslationBehavior()(*TranslationPreferences_translationBehavior) { val, err := m.GetBackingStore().Get("translationBehavior") if err != nil { panic(err) } if val != nil { - return val.(*TranslationBehavior) + return val.(*TranslationPreferences_translationBehavior) } return nil } @@ -206,7 +206,7 @@ func (m *TranslationPreferences) SetOdataType(value *string)() { } } // SetTranslationBehavior sets the translationBehavior property value. The user's preferred translation behavior.Returned by default. Not nullable. -func (m *TranslationPreferences) SetTranslationBehavior(value *TranslationBehavior)() { +func (m *TranslationPreferences) SetTranslationBehavior(value *TranslationPreferences_translationBehavior)() { err := m.GetBackingStore().Set("translationBehavior", value) if err != nil { panic(err) @@ -227,11 +227,11 @@ type TranslationPreferencesable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetLanguageOverrides()([]TranslationLanguageOverrideable) GetOdataType()(*string) - GetTranslationBehavior()(*TranslationBehavior) + GetTranslationBehavior()(*TranslationPreferences_translationBehavior) GetUntranslatedLanguages()([]string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetLanguageOverrides(value []TranslationLanguageOverrideable)() SetOdataType(value *string)() - SetTranslationBehavior(value *TranslationBehavior)() + SetTranslationBehavior(value *TranslationPreferences_translationBehavior)() SetUntranslatedLanguages(value []string)() } diff --git a/models/translation_preferences_translation_behavior.go b/models/translation_preferences_translation_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/typed_email_address.go b/models/typed_email_address.go index f755baf4624..971c032389a 100644 --- a/models/typed_email_address.go +++ b/models/typed_email_address.go @@ -35,12 +35,12 @@ func (m *TypedEmailAddress) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEmailType) + val, err := n.GetEnumValue(ParseTypedEmailAddress_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*EmailType)) + m.SetTypeEscaped(val.(*TypedEmailAddress_type)) } return nil } @@ -58,13 +58,13 @@ func (m *TypedEmailAddress) GetOtherLabel()(*string) { return nil } // GetTypeEscaped gets the type property value. The type of email address. Possible values are: unknown, work, personal, main, other. The default value is unknown, which means address has not been set as a specific type. -func (m *TypedEmailAddress) GetTypeEscaped()(*EmailType) { +func (m *TypedEmailAddress) GetTypeEscaped()(*TypedEmailAddress_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*EmailType) + return val.(*TypedEmailAddress_type) } return nil } @@ -97,7 +97,7 @@ func (m *TypedEmailAddress) SetOtherLabel(value *string)() { } } // SetTypeEscaped sets the type property value. The type of email address. Possible values are: unknown, work, personal, main, other. The default value is unknown, which means address has not been set as a specific type. -func (m *TypedEmailAddress) SetTypeEscaped(value *EmailType)() { +func (m *TypedEmailAddress) SetTypeEscaped(value *TypedEmailAddress_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -108,7 +108,7 @@ type TypedEmailAddressable interface { EmailAddressable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetOtherLabel()(*string) - GetTypeEscaped()(*EmailType) + GetTypeEscaped()(*TypedEmailAddress_type) SetOtherLabel(value *string)() - SetTypeEscaped(value *EmailType)() + SetTypeEscaped(value *TypedEmailAddress_type)() } diff --git a/models/typed_email_address_type.go b/models/typed_email_address_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/unified_role_definition.go b/models/unified_role_definition.go index 706253db352..27d79bf7807 100644 --- a/models/unified_role_definition.go +++ b/models/unified_role_definition.go @@ -20,13 +20,13 @@ func CreateUnifiedRoleDefinitionFromDiscriminatorValue(parseNode i878a80d2330e89 return NewUnifiedRoleDefinition(), nil } // GetAllowedPrincipalTypes gets the allowedPrincipalTypes property value. Types of principals that can be assigned the role. Read-only. The possible values are: user, servicePrincipal, group, unknownFutureValue. This is a multi-valued enumeration that can contain up to three values as a comma-separated string. For example, user, group. Supports $filter (eq). -func (m *UnifiedRoleDefinition) GetAllowedPrincipalTypes()(*AllowedRolePrincipalTypes) { +func (m *UnifiedRoleDefinition) GetAllowedPrincipalTypes()(*UnifiedRoleDefinition_allowedPrincipalTypes) { val, err := m.GetBackingStore().Get("allowedPrincipalTypes") if err != nil { panic(err) } if val != nil { - return val.(*AllowedRolePrincipalTypes) + return val.(*UnifiedRoleDefinition_allowedPrincipalTypes) } return nil } @@ -56,12 +56,12 @@ func (m *UnifiedRoleDefinition) GetDisplayName()(*string) { func (m *UnifiedRoleDefinition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["allowedPrincipalTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAllowedRolePrincipalTypes) + val, err := n.GetEnumValue(ParseUnifiedRoleDefinition_allowedPrincipalTypes) if err != nil { return err } if val != nil { - m.SetAllowedPrincipalTypes(val.(*AllowedRolePrincipalTypes)) + m.SetAllowedPrincipalTypes(val.(*UnifiedRoleDefinition_allowedPrincipalTypes)) } return nil } @@ -361,7 +361,7 @@ func (m *UnifiedRoleDefinition) Serialize(writer i878a80d2330e89d26896388a3f487e return nil } // SetAllowedPrincipalTypes sets the allowedPrincipalTypes property value. Types of principals that can be assigned the role. Read-only. The possible values are: user, servicePrincipal, group, unknownFutureValue. This is a multi-valued enumeration that can contain up to three values as a comma-separated string. For example, user, group. Supports $filter (eq). -func (m *UnifiedRoleDefinition) SetAllowedPrincipalTypes(value *AllowedRolePrincipalTypes)() { +func (m *UnifiedRoleDefinition) SetAllowedPrincipalTypes(value *UnifiedRoleDefinition_allowedPrincipalTypes)() { err := m.GetBackingStore().Set("allowedPrincipalTypes", value) if err != nil { panic(err) @@ -441,7 +441,7 @@ func (m *UnifiedRoleDefinition) SetVersion(value *string)() { type UnifiedRoleDefinitionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedPrincipalTypes()(*AllowedRolePrincipalTypes) + GetAllowedPrincipalTypes()(*UnifiedRoleDefinition_allowedPrincipalTypes) GetDescription()(*string) GetDisplayName()(*string) GetInheritsPermissionsFrom()([]UnifiedRoleDefinitionable) @@ -452,7 +452,7 @@ type UnifiedRoleDefinitionable interface { GetRolePermissions()([]UnifiedRolePermissionable) GetTemplateId()(*string) GetVersion()(*string) - SetAllowedPrincipalTypes(value *AllowedRolePrincipalTypes)() + SetAllowedPrincipalTypes(value *UnifiedRoleDefinition_allowedPrincipalTypes)() SetDescription(value *string)() SetDisplayName(value *string)() SetInheritsPermissionsFrom(value []UnifiedRoleDefinitionable)() diff --git a/models/unified_role_definition_allowed_principal_types.go b/models/unified_role_definition_allowed_principal_types.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/unified_role_management_alert_definition.go b/models/unified_role_management_alert_definition.go index bea87a884a8..aed31cd9645 100644 --- a/models/unified_role_management_alert_definition.go +++ b/models/unified_role_management_alert_definition.go @@ -135,12 +135,12 @@ func (m *UnifiedRoleManagementAlertDefinition) GetFieldDeserializers()(map[strin return nil } res["severityLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAlertSeverity) + val, err := n.GetEnumValue(ParseUnifiedRoleManagementAlertDefinition_severityLevel) if err != nil { return err } if val != nil { - m.SetSeverityLevel(val.(*AlertSeverity)) + m.SetSeverityLevel(val.(*UnifiedRoleManagementAlertDefinition_severityLevel)) } return nil } @@ -224,13 +224,13 @@ func (m *UnifiedRoleManagementAlertDefinition) GetSecurityImpact()(*string) { return nil } // GetSeverityLevel gets the severityLevel property value. Severity level of the alert. The possible values are: unknown, informational, low, medium, high, unknownFutureValue. -func (m *UnifiedRoleManagementAlertDefinition) GetSeverityLevel()(*AlertSeverity) { +func (m *UnifiedRoleManagementAlertDefinition) GetSeverityLevel()(*UnifiedRoleManagementAlertDefinition_severityLevel) { val, err := m.GetBackingStore().Get("severityLevel") if err != nil { panic(err) } if val != nil { - return val.(*AlertSeverity) + return val.(*UnifiedRoleManagementAlertDefinition_severityLevel) } return nil } @@ -367,7 +367,7 @@ func (m *UnifiedRoleManagementAlertDefinition) SetSecurityImpact(value *string)( } } // SetSeverityLevel sets the severityLevel property value. Severity level of the alert. The possible values are: unknown, informational, low, medium, high, unknownFutureValue. -func (m *UnifiedRoleManagementAlertDefinition) SetSeverityLevel(value *AlertSeverity)() { +func (m *UnifiedRoleManagementAlertDefinition) SetSeverityLevel(value *UnifiedRoleManagementAlertDefinition_severityLevel)() { err := m.GetBackingStore().Set("severityLevel", value) if err != nil { panic(err) @@ -386,7 +386,7 @@ type UnifiedRoleManagementAlertDefinitionable interface { GetScopeId()(*string) GetScopeType()(*string) GetSecurityImpact()(*string) - GetSeverityLevel()(*AlertSeverity) + GetSeverityLevel()(*UnifiedRoleManagementAlertDefinition_severityLevel) SetDescription(value *string)() SetDisplayName(value *string)() SetHowToPrevent(value *string)() @@ -396,5 +396,5 @@ type UnifiedRoleManagementAlertDefinitionable interface { SetScopeId(value *string)() SetScopeType(value *string)() SetSecurityImpact(value *string)() - SetSeverityLevel(value *AlertSeverity)() + SetSeverityLevel(value *UnifiedRoleManagementAlertDefinition_severityLevel)() } diff --git a/models/unified_role_management_alert_definition_severity_level.go b/models/unified_role_management_alert_definition_severity_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_account.go b/models/user_account.go index 8577826d863..960110792a5 100644 --- a/models/user_account.go +++ b/models/user_account.go @@ -114,12 +114,12 @@ func (m *UserAccount) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccountStatus) + val, err := n.GetEnumValue(ParseUserAccount_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*AccountStatus)) + m.SetStatus(val.(*UserAccount_status)) } return nil } @@ -181,13 +181,13 @@ func (m *UserAccount) GetSigninName()(*string) { return nil } // GetStatus gets the status property value. The status property -func (m *UserAccount) GetStatus()(*AccountStatus) { +func (m *UserAccount) GetStatus()(*UserAccount_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*AccountStatus) + return val.(*UserAccount_status) } return nil } @@ -298,7 +298,7 @@ func (m *UserAccount) SetSigninName(value *string)() { } } // SetStatus sets the status property value. The status property -func (m *UserAccount) SetStatus(value *AccountStatus)() { +func (m *UserAccount) SetStatus(value *UserAccount_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -316,7 +316,7 @@ type UserAccountable interface { GetRiskScore()(*string) GetService()(*string) GetSigninName()(*string) - GetStatus()(*AccountStatus) + GetStatus()(*UserAccount_status) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetLastSeenDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -324,5 +324,5 @@ type UserAccountable interface { SetRiskScore(value *string)() SetService(value *string)() SetSigninName(value *string)() - SetStatus(value *AccountStatus)() + SetStatus(value *UserAccount_status)() } diff --git a/models/user_account_security_type.go b/models/user_account_security_type.go deleted file mode 100644 index e8f920561f0..00000000000 --- a/models/user_account_security_type.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type UserAccountSecurityType int - -const ( - UNKNOWN_USERACCOUNTSECURITYTYPE UserAccountSecurityType = iota - STANDARD_USERACCOUNTSECURITYTYPE - POWER_USERACCOUNTSECURITYTYPE - ADMINISTRATOR_USERACCOUNTSECURITYTYPE - UNKNOWNFUTUREVALUE_USERACCOUNTSECURITYTYPE -) - -func (i UserAccountSecurityType) String() string { - return []string{"unknown", "standard", "power", "administrator", "unknownFutureValue"}[i] -} -func ParseUserAccountSecurityType(v string) (any, error) { - result := UNKNOWN_USERACCOUNTSECURITYTYPE - switch v { - case "unknown": - result = UNKNOWN_USERACCOUNTSECURITYTYPE - case "standard": - result = STANDARD_USERACCOUNTSECURITYTYPE - case "power": - result = POWER_USERACCOUNTSECURITYTYPE - case "administrator": - result = ADMINISTRATOR_USERACCOUNTSECURITYTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_USERACCOUNTSECURITYTYPE - default: - return 0, errors.New("Unknown UserAccountSecurityType value: " + v) - } - return &result, nil -} -func SerializeUserAccountSecurityType(values []UserAccountSecurityType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UserAccountSecurityType) isMultiValue() bool { - return false -} diff --git a/models/user_account_status.go b/models/user_account_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_activity.go b/models/user_activity.go index 3665590af94..06e6d889e94 100644 --- a/models/user_activity.go +++ b/models/user_activity.go @@ -239,12 +239,12 @@ func (m *UserActivity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseStatus) + val, err := n.GetEnumValue(ParseUserActivity_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*Status)) + m.SetStatus(val.(*UserActivity_status)) } return nil } @@ -293,13 +293,13 @@ func (m *UserActivity) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad9 return nil } // GetStatus gets the status property value. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored. -func (m *UserActivity) GetStatus()(*Status) { +func (m *UserActivity) GetStatus()(*UserActivity_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*Status) + return val.(*UserActivity_status) } return nil } @@ -502,7 +502,7 @@ func (m *UserActivity) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe } } // SetStatus sets the status property value. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored. -func (m *UserActivity) SetStatus(value *Status)() { +func (m *UserActivity) SetStatus(value *UserActivity_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -537,7 +537,7 @@ type UserActivityable interface { GetFallbackUrl()(*string) GetHistoryItems()([]ActivityHistoryItemable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*Status) + GetStatus()(*UserActivity_status) GetUserTimezone()(*string) GetVisualElements()(VisualInfoable) SetActivationUrl(value *string)() @@ -551,7 +551,7 @@ type UserActivityable interface { SetFallbackUrl(value *string)() SetHistoryItems(value []ActivityHistoryItemable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *Status)() + SetStatus(value *UserActivity_status)() SetUserTimezone(value *string)() SetVisualElements(value VisualInfoable)() } diff --git a/models/user_activity_status.go b/models/user_activity_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_default_authentication_method.go b/models/user_default_authentication_method.go deleted file mode 100644 index c79075affa2..00000000000 --- a/models/user_default_authentication_method.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type UserDefaultAuthenticationMethod int - -const ( - PUSH_USERDEFAULTAUTHENTICATIONMETHOD UserDefaultAuthenticationMethod = iota - OATH_USERDEFAULTAUTHENTICATIONMETHOD - VOICEMOBILE_USERDEFAULTAUTHENTICATIONMETHOD - VOICEALTERNATEMOBILE_USERDEFAULTAUTHENTICATIONMETHOD - VOICEOFFICE_USERDEFAULTAUTHENTICATIONMETHOD - SMS_USERDEFAULTAUTHENTICATIONMETHOD - NONE_USERDEFAULTAUTHENTICATIONMETHOD - UNKNOWNFUTUREVALUE_USERDEFAULTAUTHENTICATIONMETHOD -) - -func (i UserDefaultAuthenticationMethod) String() string { - return []string{"push", "oath", "voiceMobile", "voiceAlternateMobile", "voiceOffice", "sms", "none", "unknownFutureValue"}[i] -} -func ParseUserDefaultAuthenticationMethod(v string) (any, error) { - result := PUSH_USERDEFAULTAUTHENTICATIONMETHOD - switch v { - case "push": - result = PUSH_USERDEFAULTAUTHENTICATIONMETHOD - case "oath": - result = OATH_USERDEFAULTAUTHENTICATIONMETHOD - case "voiceMobile": - result = VOICEMOBILE_USERDEFAULTAUTHENTICATIONMETHOD - case "voiceAlternateMobile": - result = VOICEALTERNATEMOBILE_USERDEFAULTAUTHENTICATIONMETHOD - case "voiceOffice": - result = VOICEOFFICE_USERDEFAULTAUTHENTICATIONMETHOD - case "sms": - result = SMS_USERDEFAULTAUTHENTICATIONMETHOD - case "none": - result = NONE_USERDEFAULTAUTHENTICATIONMETHOD - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_USERDEFAULTAUTHENTICATIONMETHOD - default: - return 0, errors.New("Unknown UserDefaultAuthenticationMethod value: " + v) - } - return &result, nil -} -func SerializeUserDefaultAuthenticationMethod(values []UserDefaultAuthenticationMethod) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UserDefaultAuthenticationMethod) isMultiValue() bool { - return false -} diff --git a/models/user_default_authentication_method_type.go b/models/user_default_authentication_method_type.go deleted file mode 100644 index a7357a72277..00000000000 --- a/models/user_default_authentication_method_type.go +++ /dev/null @@ -1,52 +0,0 @@ -package models -import ( - "errors" -) -// -type UserDefaultAuthenticationMethodType int - -const ( - PUSH_USERDEFAULTAUTHENTICATIONMETHODTYPE UserDefaultAuthenticationMethodType = iota - OATH_USERDEFAULTAUTHENTICATIONMETHODTYPE - VOICEMOBILE_USERDEFAULTAUTHENTICATIONMETHODTYPE - VOICEALTERNATEMOBILE_USERDEFAULTAUTHENTICATIONMETHODTYPE - VOICEOFFICE_USERDEFAULTAUTHENTICATIONMETHODTYPE - SMS_USERDEFAULTAUTHENTICATIONMETHODTYPE - UNKNOWNFUTUREVALUE_USERDEFAULTAUTHENTICATIONMETHODTYPE -) - -func (i UserDefaultAuthenticationMethodType) String() string { - return []string{"push", "oath", "voiceMobile", "voiceAlternateMobile", "voiceOffice", "sms", "unknownFutureValue"}[i] -} -func ParseUserDefaultAuthenticationMethodType(v string) (any, error) { - result := PUSH_USERDEFAULTAUTHENTICATIONMETHODTYPE - switch v { - case "push": - result = PUSH_USERDEFAULTAUTHENTICATIONMETHODTYPE - case "oath": - result = OATH_USERDEFAULTAUTHENTICATIONMETHODTYPE - case "voiceMobile": - result = VOICEMOBILE_USERDEFAULTAUTHENTICATIONMETHODTYPE - case "voiceAlternateMobile": - result = VOICEALTERNATEMOBILE_USERDEFAULTAUTHENTICATIONMETHODTYPE - case "voiceOffice": - result = VOICEOFFICE_USERDEFAULTAUTHENTICATIONMETHODTYPE - case "sms": - result = SMS_USERDEFAULTAUTHENTICATIONMETHODTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_USERDEFAULTAUTHENTICATIONMETHODTYPE - default: - return 0, errors.New("Unknown UserDefaultAuthenticationMethodType value: " + v) - } - return &result, nil -} -func SerializeUserDefaultAuthenticationMethodType(values []UserDefaultAuthenticationMethodType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UserDefaultAuthenticationMethodType) isMultiValue() bool { - return false -} diff --git a/models/user_last_sign_in_recommendation_insight_setting.go b/models/user_last_sign_in_recommendation_insight_setting.go index e6694280a7c..472e5eca748 100644 --- a/models/user_last_sign_in_recommendation_insight_setting.go +++ b/models/user_last_sign_in_recommendation_insight_setting.go @@ -35,12 +35,12 @@ func (m *UserLastSignInRecommendationInsightSetting) GetFieldDeserializers()(map return nil } res["signInScope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserSignInRecommendationScope) + val, err := n.GetEnumValue(ParseUserLastSignInRecommendationInsightSetting_signInScope) if err != nil { return err } if val != nil { - m.SetSignInScope(val.(*UserSignInRecommendationScope)) + m.SetSignInScope(val.(*UserLastSignInRecommendationInsightSetting_signInScope)) } return nil } @@ -58,13 +58,13 @@ func (m *UserLastSignInRecommendationInsightSetting) GetRecommendationLookBackDu return nil } // GetSignInScope gets the signInScope property value. Indicates whether inactivity is calculated based on the user's inactivity in the tenant or in the application. The possible values are tenant, application, unknownFutureValue. application is only relevant when the access review is a review of an assignment to an application. -func (m *UserLastSignInRecommendationInsightSetting) GetSignInScope()(*UserSignInRecommendationScope) { +func (m *UserLastSignInRecommendationInsightSetting) GetSignInScope()(*UserLastSignInRecommendationInsightSetting_signInScope) { val, err := m.GetBackingStore().Get("signInScope") if err != nil { panic(err) } if val != nil { - return val.(*UserSignInRecommendationScope) + return val.(*UserLastSignInRecommendationInsightSetting_signInScope) } return nil } @@ -97,7 +97,7 @@ func (m *UserLastSignInRecommendationInsightSetting) SetRecommendationLookBackDu } } // SetSignInScope sets the signInScope property value. Indicates whether inactivity is calculated based on the user's inactivity in the tenant or in the application. The possible values are tenant, application, unknownFutureValue. application is only relevant when the access review is a review of an assignment to an application. -func (m *UserLastSignInRecommendationInsightSetting) SetSignInScope(value *UserSignInRecommendationScope)() { +func (m *UserLastSignInRecommendationInsightSetting) SetSignInScope(value *UserLastSignInRecommendationInsightSetting_signInScope)() { err := m.GetBackingStore().Set("signInScope", value) if err != nil { panic(err) @@ -108,7 +108,7 @@ type UserLastSignInRecommendationInsightSettingable interface { AccessReviewRecommendationInsightSettingable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetRecommendationLookBackDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) - GetSignInScope()(*UserSignInRecommendationScope) + GetSignInScope()(*UserLastSignInRecommendationInsightSetting_signInScope) SetRecommendationLookBackDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() - SetSignInScope(value *UserSignInRecommendationScope)() + SetSignInScope(value *UserLastSignInRecommendationInsightSetting_signInScope)() } diff --git a/models/user_last_sign_in_recommendation_insight_setting_sign_in_scope.go b/models/user_last_sign_in_recommendation_insight_setting_sign_in_scope.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_new_message_restriction.go b/models/user_new_message_restriction.go deleted file mode 100644 index 8eef1167758..00000000000 --- a/models/user_new_message_restriction.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type UserNewMessageRestriction int - -const ( - EVERYONE_USERNEWMESSAGERESTRICTION UserNewMessageRestriction = iota - EVERYONEEXCEPTGUESTS_USERNEWMESSAGERESTRICTION - MODERATORS_USERNEWMESSAGERESTRICTION - UNKNOWNFUTUREVALUE_USERNEWMESSAGERESTRICTION -) - -func (i UserNewMessageRestriction) String() string { - return []string{"everyone", "everyoneExceptGuests", "moderators", "unknownFutureValue"}[i] -} -func ParseUserNewMessageRestriction(v string) (any, error) { - result := EVERYONE_USERNEWMESSAGERESTRICTION - switch v { - case "everyone": - result = EVERYONE_USERNEWMESSAGERESTRICTION - case "everyoneExceptGuests": - result = EVERYONEEXCEPTGUESTS_USERNEWMESSAGERESTRICTION - case "moderators": - result = MODERATORS_USERNEWMESSAGERESTRICTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_USERNEWMESSAGERESTRICTION - default: - return 0, errors.New("Unknown UserNewMessageRestriction value: " + v) - } - return &result, nil -} -func SerializeUserNewMessageRestriction(values []UserNewMessageRestriction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UserNewMessageRestriction) isMultiValue() bool { - return false -} diff --git a/models/user_purpose.go b/models/user_purpose.go deleted file mode 100644 index 7b6f80bf117..00000000000 --- a/models/user_purpose.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// -type UserPurpose int - -const ( - UNKNOWN_USERPURPOSE UserPurpose = iota - USER_USERPURPOSE - LINKED_USERPURPOSE - SHARED_USERPURPOSE - ROOM_USERPURPOSE - EQUIPMENT_USERPURPOSE - OTHERS_USERPURPOSE - UNKNOWNFUTUREVALUE_USERPURPOSE -) - -func (i UserPurpose) String() string { - return []string{"unknown", "user", "linked", "shared", "room", "equipment", "others", "unknownFutureValue"}[i] -} -func ParseUserPurpose(v string) (any, error) { - result := UNKNOWN_USERPURPOSE - switch v { - case "unknown": - result = UNKNOWN_USERPURPOSE - case "user": - result = USER_USERPURPOSE - case "linked": - result = LINKED_USERPURPOSE - case "shared": - result = SHARED_USERPURPOSE - case "room": - result = ROOM_USERPURPOSE - case "equipment": - result = EQUIPMENT_USERPURPOSE - case "others": - result = OTHERS_USERPURPOSE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_USERPURPOSE - default: - return 0, errors.New("Unknown UserPurpose value: " + v) - } - return &result, nil -} -func SerializeUserPurpose(values []UserPurpose) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UserPurpose) isMultiValue() bool { - return false -} diff --git a/models/user_registration_details.go b/models/user_registration_details.go index 20724d668fa..c76ac719a83 100644 --- a/models/user_registration_details.go +++ b/models/user_registration_details.go @@ -21,13 +21,13 @@ func CreateUserRegistrationDetailsFromDiscriminatorValue(parseNode i878a80d2330e return NewUserRegistrationDetails(), nil } // GetDefaultMfaMethod gets the defaultMfaMethod property value. The method the user or admin selected as default for performing multifactor authentication for the user. The possible values are: none, mobilePhone, alternateMobilePhone, officePhone, microsoftAuthenticatorPush, softwareOneTimePasscode, unknownFutureValue. -func (m *UserRegistrationDetails) GetDefaultMfaMethod()(*DefaultMfaMethodType) { +func (m *UserRegistrationDetails) GetDefaultMfaMethod()(*UserRegistrationDetails_defaultMfaMethod) { val, err := m.GetBackingStore().Get("defaultMfaMethod") if err != nil { panic(err) } if val != nil { - return val.(*DefaultMfaMethodType) + return val.(*UserRegistrationDetails_defaultMfaMethod) } return nil } @@ -35,12 +35,12 @@ func (m *UserRegistrationDetails) GetDefaultMfaMethod()(*DefaultMfaMethodType) { func (m *UserRegistrationDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["defaultMfaMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefaultMfaMethodType) + val, err := n.GetEnumValue(ParseUserRegistrationDetails_defaultMfaMethod) if err != nil { return err } if val != nil { - m.SetDefaultMfaMethod(val.(*DefaultMfaMethodType)) + m.SetDefaultMfaMethod(val.(*UserRegistrationDetails_defaultMfaMethod)) } return nil } @@ -177,12 +177,12 @@ func (m *UserRegistrationDetails) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["userPreferredMethodForSecondaryAuthentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserDefaultAuthenticationMethod) + val, err := n.GetEnumValue(ParseUserRegistrationDetails_userPreferredMethodForSecondaryAuthentication) if err != nil { return err } if val != nil { - m.SetUserPreferredMethodForSecondaryAuthentication(val.(*UserDefaultAuthenticationMethod)) + m.SetUserPreferredMethodForSecondaryAuthentication(val.(*UserRegistrationDetails_userPreferredMethodForSecondaryAuthentication)) } return nil } @@ -197,12 +197,12 @@ func (m *UserRegistrationDetails) GetFieldDeserializers()(map[string]func(i878a8 return nil } res["userType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSignInUserType) + val, err := n.GetEnumValue(ParseUserRegistrationDetails_userType) if err != nil { return err } if val != nil { - m.SetUserType(val.(*SignInUserType)) + m.SetUserType(val.(*UserRegistrationDetails_userType)) } return nil } @@ -341,13 +341,13 @@ func (m *UserRegistrationDetails) GetUserDisplayName()(*string) { return nil } // GetUserPreferredMethodForSecondaryAuthentication gets the userPreferredMethodForSecondaryAuthentication property value. The method the user selected as the default second-factor for performing multifactor authentication. Possible values are: push, oath, voiceMobile, voiceAlternateMobile, voiceOffice, sms, none, unknownFutureValue. -func (m *UserRegistrationDetails) GetUserPreferredMethodForSecondaryAuthentication()(*UserDefaultAuthenticationMethod) { +func (m *UserRegistrationDetails) GetUserPreferredMethodForSecondaryAuthentication()(*UserRegistrationDetails_userPreferredMethodForSecondaryAuthentication) { val, err := m.GetBackingStore().Get("userPreferredMethodForSecondaryAuthentication") if err != nil { panic(err) } if val != nil { - return val.(*UserDefaultAuthenticationMethod) + return val.(*UserRegistrationDetails_userPreferredMethodForSecondaryAuthentication) } return nil } @@ -363,13 +363,13 @@ func (m *UserRegistrationDetails) GetUserPrincipalName()(*string) { return nil } // GetUserType gets the userType property value. Identifies whether the user is a member or guest in the tenant. The possible values are: member, guest, unknownFutureValue. -func (m *UserRegistrationDetails) GetUserType()(*SignInUserType) { +func (m *UserRegistrationDetails) GetUserType()(*UserRegistrationDetails_userType) { val, err := m.GetBackingStore().Get("userType") if err != nil { panic(err) } if val != nil { - return val.(*SignInUserType) + return val.(*UserRegistrationDetails_userType) } return nil } @@ -481,7 +481,7 @@ func (m *UserRegistrationDetails) Serialize(writer i878a80d2330e89d26896388a3f48 return nil } // SetDefaultMfaMethod sets the defaultMfaMethod property value. The method the user or admin selected as default for performing multifactor authentication for the user. The possible values are: none, mobilePhone, alternateMobilePhone, officePhone, microsoftAuthenticatorPush, softwareOneTimePasscode, unknownFutureValue. -func (m *UserRegistrationDetails) SetDefaultMfaMethod(value *DefaultMfaMethodType)() { +func (m *UserRegistrationDetails) SetDefaultMfaMethod(value *UserRegistrationDetails_defaultMfaMethod)() { err := m.GetBackingStore().Set("defaultMfaMethod", value) if err != nil { panic(err) @@ -572,7 +572,7 @@ func (m *UserRegistrationDetails) SetUserDisplayName(value *string)() { } } // SetUserPreferredMethodForSecondaryAuthentication sets the userPreferredMethodForSecondaryAuthentication property value. The method the user selected as the default second-factor for performing multifactor authentication. Possible values are: push, oath, voiceMobile, voiceAlternateMobile, voiceOffice, sms, none, unknownFutureValue. -func (m *UserRegistrationDetails) SetUserPreferredMethodForSecondaryAuthentication(value *UserDefaultAuthenticationMethod)() { +func (m *UserRegistrationDetails) SetUserPreferredMethodForSecondaryAuthentication(value *UserRegistrationDetails_userPreferredMethodForSecondaryAuthentication)() { err := m.GetBackingStore().Set("userPreferredMethodForSecondaryAuthentication", value) if err != nil { panic(err) @@ -586,7 +586,7 @@ func (m *UserRegistrationDetails) SetUserPrincipalName(value *string)() { } } // SetUserType sets the userType property value. Identifies whether the user is a member or guest in the tenant. The possible values are: member, guest, unknownFutureValue. -func (m *UserRegistrationDetails) SetUserType(value *SignInUserType)() { +func (m *UserRegistrationDetails) SetUserType(value *UserRegistrationDetails_userType)() { err := m.GetBackingStore().Set("userType", value) if err != nil { panic(err) @@ -596,7 +596,7 @@ func (m *UserRegistrationDetails) SetUserType(value *SignInUserType)() { type UserRegistrationDetailsable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDefaultMfaMethod()(*DefaultMfaMethodType) + GetDefaultMfaMethod()(*UserRegistrationDetails_defaultMfaMethod) GetIsAdmin()(*bool) GetIsMfaCapable()(*bool) GetIsMfaRegistered()(*bool) @@ -609,10 +609,10 @@ type UserRegistrationDetailsable interface { GetMethodsRegistered()([]string) GetSystemPreferredAuthenticationMethods()([]string) GetUserDisplayName()(*string) - GetUserPreferredMethodForSecondaryAuthentication()(*UserDefaultAuthenticationMethod) + GetUserPreferredMethodForSecondaryAuthentication()(*UserRegistrationDetails_userPreferredMethodForSecondaryAuthentication) GetUserPrincipalName()(*string) - GetUserType()(*SignInUserType) - SetDefaultMfaMethod(value *DefaultMfaMethodType)() + GetUserType()(*UserRegistrationDetails_userType) + SetDefaultMfaMethod(value *UserRegistrationDetails_defaultMfaMethod)() SetIsAdmin(value *bool)() SetIsMfaCapable(value *bool)() SetIsMfaRegistered(value *bool)() @@ -625,7 +625,7 @@ type UserRegistrationDetailsable interface { SetMethodsRegistered(value []string)() SetSystemPreferredAuthenticationMethods(value []string)() SetUserDisplayName(value *string)() - SetUserPreferredMethodForSecondaryAuthentication(value *UserDefaultAuthenticationMethod)() + SetUserPreferredMethodForSecondaryAuthentication(value *UserRegistrationDetails_userPreferredMethodForSecondaryAuthentication)() SetUserPrincipalName(value *string)() - SetUserType(value *SignInUserType)() + SetUserType(value *UserRegistrationDetails_userType)() } diff --git a/models/user_registration_details_default_mfa_method.go b/models/user_registration_details_default_mfa_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_registration_details_user_preferred_method_for_secondary_authentication.go b/models/user_registration_details_user_preferred_method_for_secondary_authentication.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_registration_details_user_type.go b/models/user_registration_details_user_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_registration_feature_summary.go b/models/user_registration_feature_summary.go index e1fce7855f1..64bb59900b8 100644 --- a/models/user_registration_feature_summary.go +++ b/models/user_registration_feature_summary.go @@ -78,22 +78,22 @@ func (m *UserRegistrationFeatureSummary) GetFieldDeserializers()(map[string]func return nil } res["userRoles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIncludedUserRoles) + val, err := n.GetEnumValue(ParseUserRegistrationFeatureSummary_userRoles) if err != nil { return err } if val != nil { - m.SetUserRoles(val.(*IncludedUserRoles)) + m.SetUserRoles(val.(*UserRegistrationFeatureSummary_userRoles)) } return nil } res["userTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIncludedUserTypes) + val, err := n.GetEnumValue(ParseUserRegistrationFeatureSummary_userTypes) if err != nil { return err } if val != nil { - m.SetUserTypes(val.(*IncludedUserTypes)) + m.SetUserTypes(val.(*UserRegistrationFeatureSummary_userTypes)) } return nil } @@ -133,24 +133,24 @@ func (m *UserRegistrationFeatureSummary) GetUserRegistrationFeatureCounts()([]Us return nil } // GetUserRoles gets the userRoles property value. The role type of the user. Possible values are: all, privilegedAdmin, admin, user, unknownFutureValue. -func (m *UserRegistrationFeatureSummary) GetUserRoles()(*IncludedUserRoles) { +func (m *UserRegistrationFeatureSummary) GetUserRoles()(*UserRegistrationFeatureSummary_userRoles) { val, err := m.GetBackingStore().Get("userRoles") if err != nil { panic(err) } if val != nil { - return val.(*IncludedUserRoles) + return val.(*UserRegistrationFeatureSummary_userRoles) } return nil } // GetUserTypes gets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue. -func (m *UserRegistrationFeatureSummary) GetUserTypes()(*IncludedUserTypes) { +func (m *UserRegistrationFeatureSummary) GetUserTypes()(*UserRegistrationFeatureSummary_userTypes) { val, err := m.GetBackingStore().Get("userTypes") if err != nil { panic(err) } if val != nil { - return val.(*IncludedUserTypes) + return val.(*UserRegistrationFeatureSummary_userTypes) } return nil } @@ -235,14 +235,14 @@ func (m *UserRegistrationFeatureSummary) SetUserRegistrationFeatureCounts(value } } // SetUserRoles sets the userRoles property value. The role type of the user. Possible values are: all, privilegedAdmin, admin, user, unknownFutureValue. -func (m *UserRegistrationFeatureSummary) SetUserRoles(value *IncludedUserRoles)() { +func (m *UserRegistrationFeatureSummary) SetUserRoles(value *UserRegistrationFeatureSummary_userRoles)() { err := m.GetBackingStore().Set("userRoles", value) if err != nil { panic(err) } } // SetUserTypes sets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue. -func (m *UserRegistrationFeatureSummary) SetUserTypes(value *IncludedUserTypes)() { +func (m *UserRegistrationFeatureSummary) SetUserTypes(value *UserRegistrationFeatureSummary_userTypes)() { err := m.GetBackingStore().Set("userTypes", value) if err != nil { panic(err) @@ -257,12 +257,12 @@ type UserRegistrationFeatureSummaryable interface { GetOdataType()(*string) GetTotalUserCount()(*int64) GetUserRegistrationFeatureCounts()([]UserRegistrationFeatureCountable) - GetUserRoles()(*IncludedUserRoles) - GetUserTypes()(*IncludedUserTypes) + GetUserRoles()(*UserRegistrationFeatureSummary_userRoles) + GetUserTypes()(*UserRegistrationFeatureSummary_userTypes) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetTotalUserCount(value *int64)() SetUserRegistrationFeatureCounts(value []UserRegistrationFeatureCountable)() - SetUserRoles(value *IncludedUserRoles)() - SetUserTypes(value *IncludedUserTypes)() + SetUserRoles(value *UserRegistrationFeatureSummary_userRoles)() + SetUserTypes(value *UserRegistrationFeatureSummary_userTypes)() } diff --git a/models/user_registration_feature_summary_user_roles.go b/models/user_registration_feature_summary_user_roles.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_registration_feature_summary_user_types.go b/models/user_registration_feature_summary_user_types.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_registration_method_summary.go b/models/user_registration_method_summary.go index a453f452dbb..c1e935905f5 100644 --- a/models/user_registration_method_summary.go +++ b/models/user_registration_method_summary.go @@ -78,22 +78,22 @@ func (m *UserRegistrationMethodSummary) GetFieldDeserializers()(map[string]func( return nil } res["userRoles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIncludedUserRoles) + val, err := n.GetEnumValue(ParseUserRegistrationMethodSummary_userRoles) if err != nil { return err } if val != nil { - m.SetUserRoles(val.(*IncludedUserRoles)) + m.SetUserRoles(val.(*UserRegistrationMethodSummary_userRoles)) } return nil } res["userTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseIncludedUserTypes) + val, err := n.GetEnumValue(ParseUserRegistrationMethodSummary_userTypes) if err != nil { return err } if val != nil { - m.SetUserTypes(val.(*IncludedUserTypes)) + m.SetUserTypes(val.(*UserRegistrationMethodSummary_userTypes)) } return nil } @@ -133,24 +133,24 @@ func (m *UserRegistrationMethodSummary) GetUserRegistrationMethodCounts()([]User return nil } // GetUserRoles gets the userRoles property value. The role type of the user. Possible values are: all, privilegedAdmin, admin, user, unknownFutureValue. -func (m *UserRegistrationMethodSummary) GetUserRoles()(*IncludedUserRoles) { +func (m *UserRegistrationMethodSummary) GetUserRoles()(*UserRegistrationMethodSummary_userRoles) { val, err := m.GetBackingStore().Get("userRoles") if err != nil { panic(err) } if val != nil { - return val.(*IncludedUserRoles) + return val.(*UserRegistrationMethodSummary_userRoles) } return nil } // GetUserTypes gets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue. -func (m *UserRegistrationMethodSummary) GetUserTypes()(*IncludedUserTypes) { +func (m *UserRegistrationMethodSummary) GetUserTypes()(*UserRegistrationMethodSummary_userTypes) { val, err := m.GetBackingStore().Get("userTypes") if err != nil { panic(err) } if val != nil { - return val.(*IncludedUserTypes) + return val.(*UserRegistrationMethodSummary_userTypes) } return nil } @@ -235,14 +235,14 @@ func (m *UserRegistrationMethodSummary) SetUserRegistrationMethodCounts(value [] } } // SetUserRoles sets the userRoles property value. The role type of the user. Possible values are: all, privilegedAdmin, admin, user, unknownFutureValue. -func (m *UserRegistrationMethodSummary) SetUserRoles(value *IncludedUserRoles)() { +func (m *UserRegistrationMethodSummary) SetUserRoles(value *UserRegistrationMethodSummary_userRoles)() { err := m.GetBackingStore().Set("userRoles", value) if err != nil { panic(err) } } // SetUserTypes sets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue. -func (m *UserRegistrationMethodSummary) SetUserTypes(value *IncludedUserTypes)() { +func (m *UserRegistrationMethodSummary) SetUserTypes(value *UserRegistrationMethodSummary_userTypes)() { err := m.GetBackingStore().Set("userTypes", value) if err != nil { panic(err) @@ -257,12 +257,12 @@ type UserRegistrationMethodSummaryable interface { GetOdataType()(*string) GetTotalUserCount()(*int64) GetUserRegistrationMethodCounts()([]UserRegistrationMethodCountable) - GetUserRoles()(*IncludedUserRoles) - GetUserTypes()(*IncludedUserTypes) + GetUserRoles()(*UserRegistrationMethodSummary_userRoles) + GetUserTypes()(*UserRegistrationMethodSummary_userTypes) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetTotalUserCount(value *int64)() SetUserRegistrationMethodCounts(value []UserRegistrationMethodCountable)() - SetUserRoles(value *IncludedUserRoles)() - SetUserTypes(value *IncludedUserTypes)() + SetUserRoles(value *UserRegistrationMethodSummary_userRoles)() + SetUserTypes(value *UserRegistrationMethodSummary_userTypes)() } diff --git a/models/user_registration_method_summary_user_roles.go b/models/user_registration_method_summary_user_roles.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_registration_method_summary_user_types.go b/models/user_registration_method_summary_user_types.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_security_state.go b/models/user_security_state.go index fd558f0ae2c..8c899bcd770 100644 --- a/models/user_security_state.go +++ b/models/user_security_state.go @@ -73,13 +73,13 @@ func (m *UserSecurityState) GetDomainName()(*string) { return nil } // GetEmailRole gets the emailRole property value. For email-related alerts - user account's email 'role'. Possible values are: unknown, sender, recipient. -func (m *UserSecurityState) GetEmailRole()(*EmailRole) { +func (m *UserSecurityState) GetEmailRole()(*UserSecurityState_emailRole) { val, err := m.GetBackingStore().Get("emailRole") if err != nil { panic(err) } if val != nil { - return val.(*EmailRole) + return val.(*UserSecurityState_emailRole) } return nil } @@ -117,12 +117,12 @@ func (m *UserSecurityState) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["emailRole"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEmailRole) + val, err := n.GetEnumValue(ParseUserSecurityState_emailRole) if err != nil { return err } if val != nil { - m.SetEmailRole(val.(*EmailRole)) + m.SetEmailRole(val.(*UserSecurityState_emailRole)) } return nil } @@ -177,12 +177,12 @@ func (m *UserSecurityState) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["logonType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseLogonType) + val, err := n.GetEnumValue(ParseUserSecurityState_logonType) if err != nil { return err } if val != nil { - m.SetLogonType(val.(*LogonType)) + m.SetLogonType(val.(*UserSecurityState_logonType)) } return nil } @@ -217,12 +217,12 @@ func (m *UserSecurityState) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["userAccountType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserAccountSecurityType) + val, err := n.GetEnumValue(ParseUserSecurityState_userAccountType) if err != nil { return err } if val != nil { - m.SetUserAccountType(val.(*UserAccountSecurityType)) + m.SetUserAccountType(val.(*UserSecurityState_userAccountType)) } return nil } @@ -294,13 +294,13 @@ func (m *UserSecurityState) GetLogonLocation()(*string) { return nil } // GetLogonType gets the logonType property value. Method of user sign in. Possible values are: unknown, interactive, remoteInteractive, network, batch, service. -func (m *UserSecurityState) GetLogonType()(*LogonType) { +func (m *UserSecurityState) GetLogonType()(*UserSecurityState_logonType) { val, err := m.GetBackingStore().Get("logonType") if err != nil { panic(err) } if val != nil { - return val.(*LogonType) + return val.(*UserSecurityState_logonType) } return nil } @@ -338,13 +338,13 @@ func (m *UserSecurityState) GetRiskScore()(*string) { return nil } // GetUserAccountType gets the userAccountType property value. User account type (group membership), per Windows definition. Possible values are: unknown, standard, power, administrator. -func (m *UserSecurityState) GetUserAccountType()(*UserAccountSecurityType) { +func (m *UserSecurityState) GetUserAccountType()(*UserSecurityState_userAccountType) { val, err := m.GetBackingStore().Get("userAccountType") if err != nil { panic(err) } if val != nil { - return val.(*UserAccountSecurityType) + return val.(*UserSecurityState_userAccountType) } return nil } @@ -495,7 +495,7 @@ func (m *UserSecurityState) SetDomainName(value *string)() { } } // SetEmailRole sets the emailRole property value. For email-related alerts - user account's email 'role'. Possible values are: unknown, sender, recipient. -func (m *UserSecurityState) SetEmailRole(value *EmailRole)() { +func (m *UserSecurityState) SetEmailRole(value *UserSecurityState_emailRole)() { err := m.GetBackingStore().Set("emailRole", value) if err != nil { panic(err) @@ -537,7 +537,7 @@ func (m *UserSecurityState) SetLogonLocation(value *string)() { } } // SetLogonType sets the logonType property value. Method of user sign in. Possible values are: unknown, interactive, remoteInteractive, network, batch, service. -func (m *UserSecurityState) SetLogonType(value *LogonType)() { +func (m *UserSecurityState) SetLogonType(value *UserSecurityState_logonType)() { err := m.GetBackingStore().Set("logonType", value) if err != nil { panic(err) @@ -565,7 +565,7 @@ func (m *UserSecurityState) SetRiskScore(value *string)() { } } // SetUserAccountType sets the userAccountType property value. User account type (group membership), per Windows definition. Possible values are: unknown, standard, power, administrator. -func (m *UserSecurityState) SetUserAccountType(value *UserAccountSecurityType)() { +func (m *UserSecurityState) SetUserAccountType(value *UserSecurityState_userAccountType)() { err := m.GetBackingStore().Set("userAccountType", value) if err != nil { panic(err) @@ -587,32 +587,32 @@ type UserSecurityStateable interface { GetAccountName()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDomainName()(*string) - GetEmailRole()(*EmailRole) + GetEmailRole()(*UserSecurityState_emailRole) GetIsVpn()(*bool) GetLogonDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLogonId()(*string) GetLogonIp()(*string) GetLogonLocation()(*string) - GetLogonType()(*LogonType) + GetLogonType()(*UserSecurityState_logonType) GetOdataType()(*string) GetOnPremisesSecurityIdentifier()(*string) GetRiskScore()(*string) - GetUserAccountType()(*UserAccountSecurityType) + GetUserAccountType()(*UserSecurityState_userAccountType) GetUserPrincipalName()(*string) SetAadUserId(value *string)() SetAccountName(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDomainName(value *string)() - SetEmailRole(value *EmailRole)() + SetEmailRole(value *UserSecurityState_emailRole)() SetIsVpn(value *bool)() SetLogonDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLogonId(value *string)() SetLogonIp(value *string)() SetLogonLocation(value *string)() - SetLogonType(value *LogonType)() + SetLogonType(value *UserSecurityState_logonType)() SetOdataType(value *string)() SetOnPremisesSecurityIdentifier(value *string)() SetRiskScore(value *string)() - SetUserAccountType(value *UserAccountSecurityType)() + SetUserAccountType(value *UserSecurityState_userAccountType)() SetUserPrincipalName(value *string)() } diff --git a/models/user_security_state_email_role.go b/models/user_security_state_email_role.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_security_state_logon_type.go b/models/user_security_state_logon_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_security_state_user_account_type.go b/models/user_security_state_user_account_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_sign_in_recommendation_scope.go b/models/user_sign_in_recommendation_scope.go deleted file mode 100644 index a864ecd3fb7..00000000000 --- a/models/user_sign_in_recommendation_scope.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type UserSignInRecommendationScope int - -const ( - TENANT_USERSIGNINRECOMMENDATIONSCOPE UserSignInRecommendationScope = iota - APPLICATION_USERSIGNINRECOMMENDATIONSCOPE - UNKNOWNFUTUREVALUE_USERSIGNINRECOMMENDATIONSCOPE -) - -func (i UserSignInRecommendationScope) String() string { - return []string{"tenant", "application", "unknownFutureValue"}[i] -} -func ParseUserSignInRecommendationScope(v string) (any, error) { - result := TENANT_USERSIGNINRECOMMENDATIONSCOPE - switch v { - case "tenant": - result = TENANT_USERSIGNINRECOMMENDATIONSCOPE - case "application": - result = APPLICATION_USERSIGNINRECOMMENDATIONSCOPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_USERSIGNINRECOMMENDATIONSCOPE - default: - return 0, errors.New("Unknown UserSignInRecommendationScope value: " + v) - } - return &result, nil -} -func SerializeUserSignInRecommendationScope(values []UserSignInRecommendationScope) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UserSignInRecommendationScope) isMultiValue() bool { - return false -} diff --git a/models/user_teamwork.go b/models/user_teamwork.go index b3c5b985e42..88625ed257d 100644 --- a/models/user_teamwork.go +++ b/models/user_teamwork.go @@ -65,6 +65,26 @@ func (m *UserTeamwork) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return nil } + res["locale"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLocale(val) + } + return nil + } + res["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegion(val) + } + return nil + } return res } // GetInstalledApps gets the installedApps property value. The apps installed in the personal scope of this user. @@ -78,6 +98,28 @@ func (m *UserTeamwork) GetInstalledApps()([]UserScopeTeamsAppInstallationable) { } return nil } +// GetLocale gets the locale property value. Represents the chosen locale of a user in Microsoft Teams. +func (m *UserTeamwork) GetLocale()(*string) { + val, err := m.GetBackingStore().Get("locale") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRegion gets the region property value. Represents the region of the user in Microsoft Teams. +func (m *UserTeamwork) GetRegion()(*string) { + val, err := m.GetBackingStore().Get("region") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *UserTeamwork) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -108,6 +150,18 @@ func (m *UserTeamwork) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("locale", m.GetLocale()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("region", m.GetRegion()) + if err != nil { + return err + } + } return nil } // SetAssociatedTeams sets the associatedTeams property value. The list of associatedTeamInfo objects that a user is associated with. @@ -124,12 +178,30 @@ func (m *UserTeamwork) SetInstalledApps(value []UserScopeTeamsAppInstallationabl panic(err) } } +// SetLocale sets the locale property value. Represents the chosen locale of a user in Microsoft Teams. +func (m *UserTeamwork) SetLocale(value *string)() { + err := m.GetBackingStore().Set("locale", value) + if err != nil { + panic(err) + } +} +// SetRegion sets the region property value. Represents the region of the user in Microsoft Teams. +func (m *UserTeamwork) SetRegion(value *string)() { + err := m.GetBackingStore().Set("region", value) + if err != nil { + panic(err) + } +} // UserTeamworkable type UserTeamworkable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAssociatedTeams()([]AssociatedTeamInfoable) GetInstalledApps()([]UserScopeTeamsAppInstallationable) + GetLocale()(*string) + GetRegion()(*string) SetAssociatedTeams(value []AssociatedTeamInfoable)() SetInstalledApps(value []UserScopeTeamsAppInstallationable)() + SetLocale(value *string)() + SetRegion(value *string)() } diff --git a/models/user_training_event_info.go b/models/user_training_event_info.go index 8a3c4f108c0..3427fbcacec 100644 --- a/models/user_training_event_info.go +++ b/models/user_training_event_info.go @@ -63,12 +63,12 @@ func (m *UserTrainingEventInfo) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["latestTrainingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTrainingStatus) + val, err := n.GetEnumValue(ParseUserTrainingEventInfo_latestTrainingStatus) if err != nil { return err } if val != nil { - m.SetLatestTrainingStatus(val.(*TrainingStatus)) + m.SetLatestTrainingStatus(val.(*UserTrainingEventInfo_latestTrainingStatus)) } return nil } @@ -115,13 +115,13 @@ func (m *UserTrainingEventInfo) GetFieldDeserializers()(map[string]func(i878a80d return res } // GetLatestTrainingStatus gets the latestTrainingStatus property value. Latest status of the training assigned to the user. Possible values are: unknown, assigned, inProgress, completed, overdue, unknownFutureValue. -func (m *UserTrainingEventInfo) GetLatestTrainingStatus()(*TrainingStatus) { +func (m *UserTrainingEventInfo) GetLatestTrainingStatus()(*UserTrainingEventInfo_latestTrainingStatus) { val, err := m.GetBackingStore().Get("latestTrainingStatus") if err != nil { panic(err) } if val != nil { - return val.(*TrainingStatus) + return val.(*UserTrainingEventInfo_latestTrainingStatus) } return nil } @@ -235,7 +235,7 @@ func (m *UserTrainingEventInfo) SetDisplayName(value *string)() { } } // SetLatestTrainingStatus sets the latestTrainingStatus property value. Latest status of the training assigned to the user. Possible values are: unknown, assigned, inProgress, completed, overdue, unknownFutureValue. -func (m *UserTrainingEventInfo) SetLatestTrainingStatus(value *TrainingStatus)() { +func (m *UserTrainingEventInfo) SetLatestTrainingStatus(value *UserTrainingEventInfo_latestTrainingStatus)() { err := m.GetBackingStore().Set("latestTrainingStatus", value) if err != nil { panic(err) @@ -276,14 +276,14 @@ type UserTrainingEventInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDisplayName()(*string) - GetLatestTrainingStatus()(*TrainingStatus) + GetLatestTrainingStatus()(*UserTrainingEventInfo_latestTrainingStatus) GetOdataType()(*string) GetTrainingAssignedProperties()(UserTrainingContentEventInfoable) GetTrainingCompletedProperties()(UserTrainingContentEventInfoable) GetTrainingUpdatedProperties()(UserTrainingContentEventInfoable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() - SetLatestTrainingStatus(value *TrainingStatus)() + SetLatestTrainingStatus(value *UserTrainingEventInfo_latestTrainingStatus)() SetOdataType(value *string)() SetTrainingAssignedProperties(value UserTrainingContentEventInfoable)() SetTrainingCompletedProperties(value UserTrainingContentEventInfoable)() diff --git a/models/user_training_event_info_latest_training_status.go b/models/user_training_event_info_latest_training_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_training_status_info.go b/models/user_training_status_info.go index 1a8b8c5c88c..e6eaf813626 100644 --- a/models/user_training_status_info.go +++ b/models/user_training_status_info.go @@ -116,12 +116,12 @@ func (m *UserTrainingStatusInfo) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["trainingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseTrainingStatus) + val, err := n.GetEnumValue(ParseUserTrainingStatusInfo_trainingStatus) if err != nil { return err } if val != nil { - m.SetTrainingStatus(val.(*TrainingStatus)) + m.SetTrainingStatus(val.(*UserTrainingStatusInfo_trainingStatus)) } return nil } @@ -139,13 +139,13 @@ func (m *UserTrainingStatusInfo) GetOdataType()(*string) { return nil } // GetTrainingStatus gets the trainingStatus property value. The status of the training assigned to the user. Possible values are: unknown, assigned, inProgress, completed, overdue, unknownFutureValue. -func (m *UserTrainingStatusInfo) GetTrainingStatus()(*TrainingStatus) { +func (m *UserTrainingStatusInfo) GetTrainingStatus()(*UserTrainingStatusInfo_trainingStatus) { val, err := m.GetBackingStore().Get("trainingStatus") if err != nil { panic(err) } if val != nil { - return val.(*TrainingStatus) + return val.(*UserTrainingStatusInfo_trainingStatus) } return nil } @@ -230,7 +230,7 @@ func (m *UserTrainingStatusInfo) SetOdataType(value *string)() { } } // SetTrainingStatus sets the trainingStatus property value. The status of the training assigned to the user. Possible values are: unknown, assigned, inProgress, completed, overdue, unknownFutureValue. -func (m *UserTrainingStatusInfo) SetTrainingStatus(value *TrainingStatus)() { +func (m *UserTrainingStatusInfo) SetTrainingStatus(value *UserTrainingStatusInfo_trainingStatus)() { err := m.GetBackingStore().Set("trainingStatus", value) if err != nil { panic(err) @@ -246,11 +246,11 @@ type UserTrainingStatusInfoable interface { GetCompletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) GetOdataType()(*string) - GetTrainingStatus()(*TrainingStatus) + GetTrainingStatus()(*UserTrainingStatusInfo_trainingStatus) SetAssignedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCompletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() SetOdataType(value *string)() - SetTrainingStatus(value *TrainingStatus)() + SetTrainingStatus(value *UserTrainingStatusInfo_trainingStatus)() } diff --git a/models/user_training_status_info_training_status.go b/models/user_training_status_info_training_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/user_type.go b/models/user_type.go deleted file mode 100644 index 1ab7e89c00b..00000000000 --- a/models/user_type.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type UserType int - -const ( - MEMBER_USERTYPE UserType = iota - GUEST_USERTYPE - UNKNOWNFUTUREVALUE_USERTYPE -) - -func (i UserType) String() string { - return []string{"member", "guest", "unknownFutureValue"}[i] -} -func ParseUserType(v string) (any, error) { - result := MEMBER_USERTYPE - switch v { - case "member": - result = MEMBER_USERTYPE - case "guest": - result = GUEST_USERTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_USERTYPE - default: - return 0, errors.New("Unknown UserType value: " + v) - } - return &result, nil -} -func SerializeUserType(values []UserType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UserType) isMultiValue() bool { - return false -} diff --git a/models/username_source.go b/models/username_source.go deleted file mode 100644 index bc4361dbb07..00000000000 --- a/models/username_source.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Username source. -type UsernameSource int - -const ( - // User principal name. - USERPRINCIPALNAME_USERNAMESOURCE UsernameSource = iota - // Primary SMTP address. - PRIMARYSMTPADDRESS_USERNAMESOURCE - // The user sam account name. - SAMACCOUNTNAME_USERNAMESOURCE -) - -func (i UsernameSource) String() string { - return []string{"userPrincipalName", "primarySmtpAddress", "samAccountName"}[i] -} -func ParseUsernameSource(v string) (any, error) { - result := USERPRINCIPALNAME_USERNAMESOURCE - switch v { - case "userPrincipalName": - result = USERPRINCIPALNAME_USERNAMESOURCE - case "primarySmtpAddress": - result = PRIMARYSMTPADDRESS_USERNAMESOURCE - case "samAccountName": - result = SAMACCOUNTNAME_USERNAMESOURCE - default: - return 0, errors.New("Unknown UsernameSource value: " + v) - } - return &result, nil -} -func SerializeUsernameSource(values []UsernameSource) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i UsernameSource) isMultiValue() bool { - return false -} diff --git a/models/vertical_section.go b/models/vertical_section.go index a0a3f65f1dd..f3a189126f6 100644 --- a/models/vertical_section.go +++ b/models/vertical_section.go @@ -20,13 +20,13 @@ func CreateVerticalSectionFromDiscriminatorValue(parseNode i878a80d2330e89d26896 return NewVerticalSection(), nil } // GetEmphasis gets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. -func (m *VerticalSection) GetEmphasis()(*SectionEmphasisType) { +func (m *VerticalSection) GetEmphasis()(*VerticalSection_emphasis) { val, err := m.GetBackingStore().Get("emphasis") if err != nil { panic(err) } if val != nil { - return val.(*SectionEmphasisType) + return val.(*VerticalSection_emphasis) } return nil } @@ -34,12 +34,12 @@ func (m *VerticalSection) GetEmphasis()(*SectionEmphasisType) { func (m *VerticalSection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["emphasis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSectionEmphasisType) + val, err := n.GetEnumValue(ParseVerticalSection_emphasis) if err != nil { return err } if val != nil { - m.SetEmphasis(val.(*SectionEmphasisType)) + m.SetEmphasis(val.(*VerticalSection_emphasis)) } return nil } @@ -100,7 +100,7 @@ func (m *VerticalSection) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return nil } // SetEmphasis sets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. -func (m *VerticalSection) SetEmphasis(value *SectionEmphasisType)() { +func (m *VerticalSection) SetEmphasis(value *VerticalSection_emphasis)() { err := m.GetBackingStore().Set("emphasis", value) if err != nil { panic(err) @@ -117,8 +117,8 @@ func (m *VerticalSection) SetWebparts(value []WebPartable)() { type VerticalSectionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetEmphasis()(*SectionEmphasisType) + GetEmphasis()(*VerticalSection_emphasis) GetWebparts()([]WebPartable) - SetEmphasis(value *SectionEmphasisType)() + SetEmphasis(value *VerticalSection_emphasis)() SetWebparts(value []WebPartable)() } diff --git a/models/vertical_section_emphasis.go b/models/vertical_section_emphasis.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/virtual_appointment_sms_type.go b/models/virtual_appointment_sms_type.go deleted file mode 100644 index 38d4a2001b1..00000000000 --- a/models/virtual_appointment_sms_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type VirtualAppointmentSmsType int - -const ( - CONFIRMATION_VIRTUALAPPOINTMENTSMSTYPE VirtualAppointmentSmsType = iota - RESCHEDULE_VIRTUALAPPOINTMENTSMSTYPE - CANCELLATION_VIRTUALAPPOINTMENTSMSTYPE - UNKNOWNFUTUREVALUE_VIRTUALAPPOINTMENTSMSTYPE -) - -func (i VirtualAppointmentSmsType) String() string { - return []string{"confirmation", "reschedule", "cancellation", "unknownFutureValue"}[i] -} -func ParseVirtualAppointmentSmsType(v string) (any, error) { - result := CONFIRMATION_VIRTUALAPPOINTMENTSMSTYPE - switch v { - case "confirmation": - result = CONFIRMATION_VIRTUALAPPOINTMENTSMSTYPE - case "reschedule": - result = RESCHEDULE_VIRTUALAPPOINTMENTSMSTYPE - case "cancellation": - result = CANCELLATION_VIRTUALAPPOINTMENTSMSTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_VIRTUALAPPOINTMENTSMSTYPE - default: - return 0, errors.New("Unknown VirtualAppointmentSmsType value: " + v) - } - return &result, nil -} -func SerializeVirtualAppointmentSmsType(values []VirtualAppointmentSmsType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VirtualAppointmentSmsType) isMultiValue() bool { - return false -} diff --git a/models/virtual_event.go b/models/virtual_event.go index 04fb28134fe..fdadf9b20a6 100644 --- a/models/virtual_event.go +++ b/models/virtual_event.go @@ -39,7 +39,7 @@ func CreateVirtualEventFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 } return NewVirtualEvent(), nil } -// GetCreatedBy gets the createdBy property value. Identity information of who created the virtual event. Inherited from virtualEvent. +// GetCreatedBy gets the createdBy property value. Identity information for the creator of the virtual event. Inherited from virtualEvent. func (m *VirtualEvent) GetCreatedBy()(CommunicationsIdentitySetable) { val, err := m.GetBackingStore().Get("createdBy") if err != nil { @@ -61,7 +61,7 @@ func (m *VirtualEvent) GetDescription()(ItemBodyable) { } return nil } -// GetDisplayName gets the displayName property value. Display name of the virtual event +// GetDisplayName gets the displayName property value. Display name of the virtual event. func (m *VirtualEvent) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -169,18 +169,18 @@ func (m *VirtualEvent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVirtualEventStatus) + val, err := n.GetEnumValue(ParseVirtualEvent_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*VirtualEventStatus)) + m.SetStatus(val.(*VirtualEvent_status)) } return nil } return res } -// GetPresenters gets the presenters property value. Presenters' information of the virtual event. +// GetPresenters gets the presenters property value. The virtual event presenters. func (m *VirtualEvent) GetPresenters()([]VirtualEventPresenterable) { val, err := m.GetBackingStore().Get("presenters") if err != nil { @@ -191,7 +191,7 @@ func (m *VirtualEvent) GetPresenters()([]VirtualEventPresenterable) { } return nil } -// GetSessions gets the sessions property value. Sessions of the virtual event. +// GetSessions gets the sessions property value. Sessions for the virtual event. func (m *VirtualEvent) GetSessions()([]VirtualEventSessionable) { val, err := m.GetBackingStore().Get("sessions") if err != nil { @@ -214,13 +214,13 @@ func (m *VirtualEvent) GetStartDateTime()(DateTimeTimeZoneable) { return nil } // GetStatus gets the status property value. Status of the virtual event. The possible values are: draft, published, canceled, unknownFutureValue. -func (m *VirtualEvent) GetStatus()(*VirtualEventStatus) { +func (m *VirtualEvent) GetStatus()(*VirtualEvent_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*VirtualEventStatus) + return val.(*VirtualEvent_status) } return nil } @@ -293,7 +293,7 @@ func (m *VirtualEvent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } -// SetCreatedBy sets the createdBy property value. Identity information of who created the virtual event. Inherited from virtualEvent. +// SetCreatedBy sets the createdBy property value. Identity information for the creator of the virtual event. Inherited from virtualEvent. func (m *VirtualEvent) SetCreatedBy(value CommunicationsIdentitySetable)() { err := m.GetBackingStore().Set("createdBy", value) if err != nil { @@ -307,7 +307,7 @@ func (m *VirtualEvent) SetDescription(value ItemBodyable)() { panic(err) } } -// SetDisplayName sets the displayName property value. Display name of the virtual event +// SetDisplayName sets the displayName property value. Display name of the virtual event. func (m *VirtualEvent) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { @@ -321,14 +321,14 @@ func (m *VirtualEvent) SetEndDateTime(value DateTimeTimeZoneable)() { panic(err) } } -// SetPresenters sets the presenters property value. Presenters' information of the virtual event. +// SetPresenters sets the presenters property value. The virtual event presenters. func (m *VirtualEvent) SetPresenters(value []VirtualEventPresenterable)() { err := m.GetBackingStore().Set("presenters", value) if err != nil { panic(err) } } -// SetSessions sets the sessions property value. Sessions of the virtual event. +// SetSessions sets the sessions property value. Sessions for the virtual event. func (m *VirtualEvent) SetSessions(value []VirtualEventSessionable)() { err := m.GetBackingStore().Set("sessions", value) if err != nil { @@ -343,7 +343,7 @@ func (m *VirtualEvent) SetStartDateTime(value DateTimeTimeZoneable)() { } } // SetStatus sets the status property value. Status of the virtual event. The possible values are: draft, published, canceled, unknownFutureValue. -func (m *VirtualEvent) SetStatus(value *VirtualEventStatus)() { +func (m *VirtualEvent) SetStatus(value *VirtualEvent_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -360,7 +360,7 @@ type VirtualEventable interface { GetPresenters()([]VirtualEventPresenterable) GetSessions()([]VirtualEventSessionable) GetStartDateTime()(DateTimeTimeZoneable) - GetStatus()(*VirtualEventStatus) + GetStatus()(*VirtualEvent_status) SetCreatedBy(value CommunicationsIdentitySetable)() SetDescription(value ItemBodyable)() SetDisplayName(value *string)() @@ -368,5 +368,5 @@ type VirtualEventable interface { SetPresenters(value []VirtualEventPresenterable)() SetSessions(value []VirtualEventSessionable)() SetStartDateTime(value DateTimeTimeZoneable)() - SetStatus(value *VirtualEventStatus)() + SetStatus(value *VirtualEvent_status)() } diff --git a/models/virtual_event_attendee_registration_status.go b/models/virtual_event_attendee_registration_status.go deleted file mode 100644 index ae6375a7781..00000000000 --- a/models/virtual_event_attendee_registration_status.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type VirtualEventAttendeeRegistrationStatus int - -const ( - REGISTERED_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS VirtualEventAttendeeRegistrationStatus = iota - CANCELED_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - WAITLISTED_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - PENDINGAPPROVAL_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - REJECTEDBYORGANIZER_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - UNKNOWNFUTUREVALUE_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS -) - -func (i VirtualEventAttendeeRegistrationStatus) String() string { - return []string{"registered", "canceled", "waitlisted", "pendingApproval", "rejectedByOrganizer", "unknownFutureValue"}[i] -} -func ParseVirtualEventAttendeeRegistrationStatus(v string) (any, error) { - result := REGISTERED_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - switch v { - case "registered": - result = REGISTERED_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - case "canceled": - result = CANCELED_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - case "waitlisted": - result = WAITLISTED_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - case "pendingApproval": - result = PENDINGAPPROVAL_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - case "rejectedByOrganizer": - result = REJECTEDBYORGANIZER_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS - default: - return 0, errors.New("Unknown VirtualEventAttendeeRegistrationStatus value: " + v) - } - return &result, nil -} -func SerializeVirtualEventAttendeeRegistrationStatus(values []VirtualEventAttendeeRegistrationStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VirtualEventAttendeeRegistrationStatus) isMultiValue() bool { - return false -} diff --git a/models/virtual_event_registration.go b/models/virtual_event_registration.go index c94c4a68268..82aef7e33b6 100644 --- a/models/virtual_event_registration.go +++ b/models/virtual_event_registration.go @@ -128,12 +128,12 @@ func (m *VirtualEventRegistration) GetFieldDeserializers()(map[string]func(i878a return nil } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVirtualEventAttendeeRegistrationStatus) + val, err := n.GetEnumValue(ParseVirtualEventRegistration_status) if err != nil { return err } if val != nil { - m.SetStatus(val.(*VirtualEventAttendeeRegistrationStatus)) + m.SetStatus(val.(*VirtualEventRegistration_status)) } return nil } @@ -205,13 +205,13 @@ func (m *VirtualEventRegistration) GetSessions()([]VirtualEventSessionable) { return nil } // GetStatus gets the status property value. Registration status of the registrant. Read-only. -func (m *VirtualEventRegistration) GetStatus()(*VirtualEventAttendeeRegistrationStatus) { +func (m *VirtualEventRegistration) GetStatus()(*VirtualEventRegistration_status) { val, err := m.GetBackingStore().Get("status") if err != nil { panic(err) } if val != nil { - return val.(*VirtualEventAttendeeRegistrationStatus) + return val.(*VirtualEventRegistration_status) } return nil } @@ -351,7 +351,7 @@ func (m *VirtualEventRegistration) SetSessions(value []VirtualEventSessionable)( } } // SetStatus sets the status property value. Registration status of the registrant. Read-only. -func (m *VirtualEventRegistration) SetStatus(value *VirtualEventAttendeeRegistrationStatus)() { +func (m *VirtualEventRegistration) SetStatus(value *VirtualEventRegistration_status)() { err := m.GetBackingStore().Set("status", value) if err != nil { panic(err) @@ -375,7 +375,7 @@ type VirtualEventRegistrationable interface { GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRegistrationQuestionAnswers()([]VirtualEventRegistrationQuestionAnswerable) GetSessions()([]VirtualEventSessionable) - GetStatus()(*VirtualEventAttendeeRegistrationStatus) + GetStatus()(*VirtualEventRegistration_status) GetUserId()(*string) SetCancelationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetEmail(value *string)() @@ -384,6 +384,6 @@ type VirtualEventRegistrationable interface { SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRegistrationQuestionAnswers(value []VirtualEventRegistrationQuestionAnswerable)() SetSessions(value []VirtualEventSessionable)() - SetStatus(value *VirtualEventAttendeeRegistrationStatus)() + SetStatus(value *VirtualEventRegistration_status)() SetUserId(value *string)() } diff --git a/models/virtual_event_registratio_custom_question.go b/models/virtual_event_registration_custom_question.go similarity index 58% rename from models/virtual_event_registratio_custom_question.go rename to models/virtual_event_registration_custom_question.go index 1261361d45a..77e6da008d1 100644 --- a/models/virtual_event_registratio_custom_question.go +++ b/models/virtual_event_registration_custom_question.go @@ -4,25 +4,25 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// VirtualEventRegistratioCustomQuestion -type VirtualEventRegistratioCustomQuestion struct { +// VirtualEventRegistrationCustomQuestion +type VirtualEventRegistrationCustomQuestion struct { VirtualEventRegistrationQuestionBase } -// NewVirtualEventRegistratioCustomQuestion instantiates a new virtualEventRegistratioCustomQuestion and sets the default values. -func NewVirtualEventRegistratioCustomQuestion()(*VirtualEventRegistratioCustomQuestion) { - m := &VirtualEventRegistratioCustomQuestion{ +// NewVirtualEventRegistrationCustomQuestion instantiates a new virtualEventRegistrationCustomQuestion and sets the default values. +func NewVirtualEventRegistrationCustomQuestion()(*VirtualEventRegistrationCustomQuestion) { + m := &VirtualEventRegistrationCustomQuestion{ VirtualEventRegistrationQuestionBase: *NewVirtualEventRegistrationQuestionBase(), } - odataTypeValue := "#microsoft.graph.virtualEventRegistratioCustomQuestion" + odataTypeValue := "#microsoft.graph.virtualEventRegistrationCustomQuestion" m.SetOdataType(&odataTypeValue) return m } -// CreateVirtualEventRegistratioCustomQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateVirtualEventRegistratioCustomQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewVirtualEventRegistratioCustomQuestion(), nil +// CreateVirtualEventRegistrationCustomQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateVirtualEventRegistrationCustomQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventRegistrationCustomQuestion(), nil } // GetAnswerChoices gets the answerChoices property value. The answerChoices property -func (m *VirtualEventRegistratioCustomQuestion) GetAnswerChoices()([]string) { +func (m *VirtualEventRegistrationCustomQuestion) GetAnswerChoices()([]string) { val, err := m.GetBackingStore().Get("answerChoices") if err != nil { panic(err) @@ -33,18 +33,18 @@ func (m *VirtualEventRegistratioCustomQuestion) GetAnswerChoices()([]string) { return nil } // GetAnswerInputType gets the answerInputType property value. The answerInputType property -func (m *VirtualEventRegistratioCustomQuestion) GetAnswerInputType()(*VirtualEventRegistrationQuestionAnswerInputType) { +func (m *VirtualEventRegistrationCustomQuestion) GetAnswerInputType()(*VirtualEventRegistrationCustomQuestion_answerInputType) { val, err := m.GetBackingStore().Get("answerInputType") if err != nil { panic(err) } if val != nil { - return val.(*VirtualEventRegistrationQuestionAnswerInputType) + return val.(*VirtualEventRegistrationCustomQuestion_answerInputType) } return nil } // GetFieldDeserializers the deserialization information for the current model -func (m *VirtualEventRegistratioCustomQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *VirtualEventRegistrationCustomQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.VirtualEventRegistrationQuestionBase.GetFieldDeserializers() res["answerChoices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") @@ -63,19 +63,19 @@ func (m *VirtualEventRegistratioCustomQuestion) GetFieldDeserializers()(map[stri return nil } res["answerInputType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVirtualEventRegistrationQuestionAnswerInputType) + val, err := n.GetEnumValue(ParseVirtualEventRegistrationCustomQuestion_answerInputType) if err != nil { return err } if val != nil { - m.SetAnswerInputType(val.(*VirtualEventRegistrationQuestionAnswerInputType)) + m.SetAnswerInputType(val.(*VirtualEventRegistrationCustomQuestion_answerInputType)) } return nil } return res } // Serialize serializes information the current object -func (m *VirtualEventRegistratioCustomQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *VirtualEventRegistrationCustomQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.VirtualEventRegistrationQuestionBase.Serialize(writer) if err != nil { return err @@ -96,25 +96,25 @@ func (m *VirtualEventRegistratioCustomQuestion) Serialize(writer i878a80d2330e89 return nil } // SetAnswerChoices sets the answerChoices property value. The answerChoices property -func (m *VirtualEventRegistratioCustomQuestion) SetAnswerChoices(value []string)() { +func (m *VirtualEventRegistrationCustomQuestion) SetAnswerChoices(value []string)() { err := m.GetBackingStore().Set("answerChoices", value) if err != nil { panic(err) } } // SetAnswerInputType sets the answerInputType property value. The answerInputType property -func (m *VirtualEventRegistratioCustomQuestion) SetAnswerInputType(value *VirtualEventRegistrationQuestionAnswerInputType)() { +func (m *VirtualEventRegistrationCustomQuestion) SetAnswerInputType(value *VirtualEventRegistrationCustomQuestion_answerInputType)() { err := m.GetBackingStore().Set("answerInputType", value) if err != nil { panic(err) } } -// VirtualEventRegistratioCustomQuestionable -type VirtualEventRegistratioCustomQuestionable interface { +// VirtualEventRegistrationCustomQuestionable +type VirtualEventRegistrationCustomQuestionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VirtualEventRegistrationQuestionBaseable GetAnswerChoices()([]string) - GetAnswerInputType()(*VirtualEventRegistrationQuestionAnswerInputType) + GetAnswerInputType()(*VirtualEventRegistrationCustomQuestion_answerInputType) SetAnswerChoices(value []string)() - SetAnswerInputType(value *VirtualEventRegistrationQuestionAnswerInputType)() + SetAnswerInputType(value *VirtualEventRegistrationCustomQuestion_answerInputType)() } diff --git a/models/virtual_event_registration_custom_question_answer_input_type.go b/models/virtual_event_registration_custom_question_answer_input_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/virtual_event_registration_predefined_question.go b/models/virtual_event_registration_predefined_question.go index 9942594a6ae..59e56f274a1 100644 --- a/models/virtual_event_registration_predefined_question.go +++ b/models/virtual_event_registration_predefined_question.go @@ -25,25 +25,25 @@ func CreateVirtualEventRegistrationPredefinedQuestionFromDiscriminatorValue(pars func (m *VirtualEventRegistrationPredefinedQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.VirtualEventRegistrationQuestionBase.GetFieldDeserializers() res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseVirtualEventRegistrationPredefinedQuestionLabel) + val, err := n.GetEnumValue(ParseVirtualEventRegistrationPredefinedQuestion_label) if err != nil { return err } if val != nil { - m.SetLabel(val.(*VirtualEventRegistrationPredefinedQuestionLabel)) + m.SetLabel(val.(*VirtualEventRegistrationPredefinedQuestion_label)) } return nil } return res } // GetLabel gets the label property value. The label property -func (m *VirtualEventRegistrationPredefinedQuestion) GetLabel()(*VirtualEventRegistrationPredefinedQuestionLabel) { +func (m *VirtualEventRegistrationPredefinedQuestion) GetLabel()(*VirtualEventRegistrationPredefinedQuestion_label) { val, err := m.GetBackingStore().Get("label") if err != nil { panic(err) } if val != nil { - return val.(*VirtualEventRegistrationPredefinedQuestionLabel) + return val.(*VirtualEventRegistrationPredefinedQuestion_label) } return nil } @@ -63,7 +63,7 @@ func (m *VirtualEventRegistrationPredefinedQuestion) Serialize(writer i878a80d23 return nil } // SetLabel sets the label property value. The label property -func (m *VirtualEventRegistrationPredefinedQuestion) SetLabel(value *VirtualEventRegistrationPredefinedQuestionLabel)() { +func (m *VirtualEventRegistrationPredefinedQuestion) SetLabel(value *VirtualEventRegistrationPredefinedQuestion_label)() { err := m.GetBackingStore().Set("label", value) if err != nil { panic(err) @@ -73,6 +73,6 @@ func (m *VirtualEventRegistrationPredefinedQuestion) SetLabel(value *VirtualEven type VirtualEventRegistrationPredefinedQuestionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VirtualEventRegistrationQuestionBaseable - GetLabel()(*VirtualEventRegistrationPredefinedQuestionLabel) - SetLabel(value *VirtualEventRegistrationPredefinedQuestionLabel)() + GetLabel()(*VirtualEventRegistrationPredefinedQuestion_label) + SetLabel(value *VirtualEventRegistrationPredefinedQuestion_label)() } diff --git a/models/virtual_event_registration_predefined_question_label.go b/models/virtual_event_registration_predefined_question_label.go index b736bcd6fb9..e69de29bb2d 100644 --- a/models/virtual_event_registration_predefined_question_label.go +++ b/models/virtual_event_registration_predefined_question_label.go @@ -1,58 +0,0 @@ -package models -import ( - "errors" -) -// -type VirtualEventRegistrationPredefinedQuestionLabel int - -const ( - STREET_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL VirtualEventRegistrationPredefinedQuestionLabel = iota - CITY_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - STATE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - POSTALCODE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - COUNTRYORREGION_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - INDUSTRY_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - JOBTITLE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - ORGANIZATION_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - UNKNOWNFUTUREVALUE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL -) - -func (i VirtualEventRegistrationPredefinedQuestionLabel) String() string { - return []string{"street", "city", "state", "postalCode", "countryOrRegion", "industry", "jobTitle", "organization", "unknownFutureValue"}[i] -} -func ParseVirtualEventRegistrationPredefinedQuestionLabel(v string) (any, error) { - result := STREET_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - switch v { - case "street": - result = STREET_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - case "city": - result = CITY_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - case "state": - result = STATE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - case "postalCode": - result = POSTALCODE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - case "countryOrRegion": - result = COUNTRYORREGION_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - case "industry": - result = INDUSTRY_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - case "jobTitle": - result = JOBTITLE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - case "organization": - result = ORGANIZATION_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL - default: - return 0, errors.New("Unknown VirtualEventRegistrationPredefinedQuestionLabel value: " + v) - } - return &result, nil -} -func SerializeVirtualEventRegistrationPredefinedQuestionLabel(values []VirtualEventRegistrationPredefinedQuestionLabel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VirtualEventRegistrationPredefinedQuestionLabel) isMultiValue() bool { - return false -} diff --git a/models/virtual_event_registration_question_answer_input_type.go b/models/virtual_event_registration_question_answer_input_type.go deleted file mode 100644 index f24852189fe..00000000000 --- a/models/virtual_event_registration_question_answer_input_type.go +++ /dev/null @@ -1,49 +0,0 @@ -package models -import ( - "errors" -) -// -type VirtualEventRegistrationQuestionAnswerInputType int - -const ( - TEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE VirtualEventRegistrationQuestionAnswerInputType = iota - MULTILINETEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - SINGLECHOICE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - MULTICHOICE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - BOOLEAN_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - UNKNOWNFUTUREVALUE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE -) - -func (i VirtualEventRegistrationQuestionAnswerInputType) String() string { - return []string{"text", "multilineText", "singleChoice", "multiChoice", "boolean", "unknownFutureValue"}[i] -} -func ParseVirtualEventRegistrationQuestionAnswerInputType(v string) (any, error) { - result := TEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - switch v { - case "text": - result = TEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - case "multilineText": - result = MULTILINETEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - case "singleChoice": - result = SINGLECHOICE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - case "multiChoice": - result = MULTICHOICE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - case "boolean": - result = BOOLEAN_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE - default: - return 0, errors.New("Unknown VirtualEventRegistrationQuestionAnswerInputType value: " + v) - } - return &result, nil -} -func SerializeVirtualEventRegistrationQuestionAnswerInputType(values []VirtualEventRegistrationQuestionAnswerInputType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VirtualEventRegistrationQuestionAnswerInputType) isMultiValue() bool { - return false -} diff --git a/models/virtual_event_registration_question_base.go b/models/virtual_event_registration_question_base.go index 1815743ae61..762ad9faa4e 100644 --- a/models/virtual_event_registration_question_base.go +++ b/models/virtual_event_registration_question_base.go @@ -29,8 +29,8 @@ func CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue(parseNode } if mappingValue != nil { switch *mappingValue { - case "#microsoft.graph.virtualEventRegistratioCustomQuestion": - return NewVirtualEventRegistratioCustomQuestion(), nil + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": + return NewVirtualEventRegistrationCustomQuestion(), nil case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": return NewVirtualEventRegistrationPredefinedQuestion(), nil } diff --git a/models/virtual_event_registration_status.go b/models/virtual_event_registration_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/virtual_event_status.go b/models/virtual_event_status.go index b93d2a50341..e69de29bb2d 100644 --- a/models/virtual_event_status.go +++ b/models/virtual_event_status.go @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type VirtualEventStatus int - -const ( - DRAFT_VIRTUALEVENTSTATUS VirtualEventStatus = iota - PUBLISHED_VIRTUALEVENTSTATUS - CANCELED_VIRTUALEVENTSTATUS - UNKNOWNFUTUREVALUE_VIRTUALEVENTSTATUS -) - -func (i VirtualEventStatus) String() string { - return []string{"draft", "published", "canceled", "unknownFutureValue"}[i] -} -func ParseVirtualEventStatus(v string) (any, error) { - result := DRAFT_VIRTUALEVENTSTATUS - switch v { - case "draft": - result = DRAFT_VIRTUALEVENTSTATUS - case "published": - result = PUBLISHED_VIRTUALEVENTSTATUS - case "canceled": - result = CANCELED_VIRTUALEVENTSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_VIRTUALEVENTSTATUS - default: - return 0, errors.New("Unknown VirtualEventStatus value: " + v) - } - return &result, nil -} -func SerializeVirtualEventStatus(values []VirtualEventStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VirtualEventStatus) isMultiValue() bool { - return false -} diff --git a/models/virtual_event_townhall.go b/models/virtual_event_townhall.go index fd6dc66b1b5..4ddcde1f391 100644 --- a/models/virtual_event_townhall.go +++ b/models/virtual_event_townhall.go @@ -20,13 +20,13 @@ func CreateVirtualEventTownhallFromDiscriminatorValue(parseNode i878a80d2330e89d return NewVirtualEventTownhall(), nil } // GetAudience gets the audience property value. The audience property -func (m *VirtualEventTownhall) GetAudience()(*MeetingAudience) { +func (m *VirtualEventTownhall) GetAudience()(*VirtualEventTownhall_audience) { val, err := m.GetBackingStore().Get("audience") if err != nil { panic(err) } if val != nil { - return val.(*MeetingAudience) + return val.(*VirtualEventTownhall_audience) } return nil } @@ -45,12 +45,12 @@ func (m *VirtualEventTownhall) GetCoOrganizers()([]CommunicationsUserIdentityabl func (m *VirtualEventTownhall) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.VirtualEvent.GetFieldDeserializers() res["audience"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMeetingAudience) + val, err := n.GetEnumValue(ParseVirtualEventTownhall_audience) if err != nil { return err } if val != nil { - m.SetAudience(val.(*MeetingAudience)) + m.SetAudience(val.(*VirtualEventTownhall_audience)) } return nil } @@ -166,7 +166,7 @@ func (m *VirtualEventTownhall) Serialize(writer i878a80d2330e89d26896388a3f487ee return nil } // SetAudience sets the audience property value. The audience property -func (m *VirtualEventTownhall) SetAudience(value *MeetingAudience)() { +func (m *VirtualEventTownhall) SetAudience(value *VirtualEventTownhall_audience)() { err := m.GetBackingStore().Set("audience", value) if err != nil { panic(err) @@ -197,11 +197,11 @@ func (m *VirtualEventTownhall) SetIsInviteOnly(value *bool)() { type VirtualEventTownhallable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VirtualEventable - GetAudience()(*MeetingAudience) + GetAudience()(*VirtualEventTownhall_audience) GetCoOrganizers()([]CommunicationsUserIdentityable) GetInvitedAttendees()([]CommunicationsUserIdentityable) GetIsInviteOnly()(*bool) - SetAudience(value *MeetingAudience)() + SetAudience(value *VirtualEventTownhall_audience)() SetCoOrganizers(value []CommunicationsUserIdentityable)() SetInvitedAttendees(value []CommunicationsUserIdentityable)() SetIsInviteOnly(value *bool)() diff --git a/models/virtual_event_townhall_audience.go b/models/virtual_event_townhall_audience.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/virtual_event_webinar.go b/models/virtual_event_webinar.go index 2efb88ea280..c8108d85301 100644 --- a/models/virtual_event_webinar.go +++ b/models/virtual_event_webinar.go @@ -20,13 +20,13 @@ func CreateVirtualEventWebinarFromDiscriminatorValue(parseNode i878a80d2330e89d2 return NewVirtualEventWebinar(), nil } // GetAudience gets the audience property value. To whom the webinar is visible. -func (m *VirtualEventWebinar) GetAudience()(*MeetingAudience) { +func (m *VirtualEventWebinar) GetAudience()(*VirtualEventWebinar_audience) { val, err := m.GetBackingStore().Get("audience") if err != nil { panic(err) } if val != nil { - return val.(*MeetingAudience) + return val.(*VirtualEventWebinar_audience) } return nil } @@ -45,12 +45,12 @@ func (m *VirtualEventWebinar) GetCoOrganizers()([]CommunicationsUserIdentityable func (m *VirtualEventWebinar) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.VirtualEvent.GetFieldDeserializers() res["audience"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMeetingAudience) + val, err := n.GetEnumValue(ParseVirtualEventWebinar_audience) if err != nil { return err } if val != nil { - m.SetAudience(val.(*MeetingAudience)) + m.SetAudience(val.(*VirtualEventWebinar_audience)) } return nil } @@ -166,7 +166,7 @@ func (m *VirtualEventWebinar) Serialize(writer i878a80d2330e89d26896388a3f487eef return nil } // SetAudience sets the audience property value. To whom the webinar is visible. -func (m *VirtualEventWebinar) SetAudience(value *MeetingAudience)() { +func (m *VirtualEventWebinar) SetAudience(value *VirtualEventWebinar_audience)() { err := m.GetBackingStore().Set("audience", value) if err != nil { panic(err) @@ -197,11 +197,11 @@ func (m *VirtualEventWebinar) SetRegistrations(value []VirtualEventRegistrationa type VirtualEventWebinarable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VirtualEventable - GetAudience()(*MeetingAudience) + GetAudience()(*VirtualEventWebinar_audience) GetCoOrganizers()([]CommunicationsUserIdentityable) GetRegistrationConfiguration()(VirtualEventWebinarRegistrationConfigurationable) GetRegistrations()([]VirtualEventRegistrationable) - SetAudience(value *MeetingAudience)() + SetAudience(value *VirtualEventWebinar_audience)() SetCoOrganizers(value []CommunicationsUserIdentityable)() SetRegistrationConfiguration(value VirtualEventWebinarRegistrationConfigurationable)() SetRegistrations(value []VirtualEventRegistrationable)() diff --git a/models/virtual_event_webinar_audience.go b/models/virtual_event_webinar_audience.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/volume_type.go b/models/volume_type.go deleted file mode 100644 index 4fbe39a0ea2..00000000000 --- a/models/volume_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type VolumeType int - -const ( - OPERATINGSYSTEMVOLUME_VOLUMETYPE VolumeType = iota - FIXEDDATAVOLUME_VOLUMETYPE - REMOVABLEDATAVOLUME_VOLUMETYPE - UNKNOWNFUTUREVALUE_VOLUMETYPE -) - -func (i VolumeType) String() string { - return []string{"operatingSystemVolume", "fixedDataVolume", "removableDataVolume", "unknownFutureValue"}[i] -} -func ParseVolumeType(v string) (any, error) { - result := OPERATINGSYSTEMVOLUME_VOLUMETYPE - switch v { - case "operatingSystemVolume": - result = OPERATINGSYSTEMVOLUME_VOLUMETYPE - case "fixedDataVolume": - result = FIXEDDATAVOLUME_VOLUMETYPE - case "removableDataVolume": - result = REMOVABLEDATAVOLUME_VOLUMETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_VOLUMETYPE - default: - return 0, errors.New("Unknown VolumeType value: " + v) - } - return &result, nil -} -func SerializeVolumeType(values []VolumeType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VolumeType) isMultiValue() bool { - return false -} diff --git a/models/vpn_dead_peer_detection_rate.go b/models/vpn_dead_peer_detection_rate.go deleted file mode 100644 index ded41249cb8..00000000000 --- a/models/vpn_dead_peer_detection_rate.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Determines how often to check if a peer connection is still alive -type VpnDeadPeerDetectionRate int - -const ( - // Medium - MEDIUM_VPNDEADPEERDETECTIONRATE VpnDeadPeerDetectionRate = iota - // None - NONE_VPNDEADPEERDETECTIONRATE - // Low - LOW_VPNDEADPEERDETECTIONRATE - // High - HIGH_VPNDEADPEERDETECTIONRATE -) - -func (i VpnDeadPeerDetectionRate) String() string { - return []string{"medium", "none", "low", "high"}[i] -} -func ParseVpnDeadPeerDetectionRate(v string) (any, error) { - result := MEDIUM_VPNDEADPEERDETECTIONRATE - switch v { - case "medium": - result = MEDIUM_VPNDEADPEERDETECTIONRATE - case "none": - result = NONE_VPNDEADPEERDETECTIONRATE - case "low": - result = LOW_VPNDEADPEERDETECTIONRATE - case "high": - result = HIGH_VPNDEADPEERDETECTIONRATE - default: - return 0, errors.New("Unknown VpnDeadPeerDetectionRate value: " + v) - } - return &result, nil -} -func SerializeVpnDeadPeerDetectionRate(values []VpnDeadPeerDetectionRate) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VpnDeadPeerDetectionRate) isMultiValue() bool { - return false -} diff --git a/models/vpn_encryption_algorithm_type.go b/models/vpn_encryption_algorithm_type.go deleted file mode 100644 index 9e2694c352f..00000000000 --- a/models/vpn_encryption_algorithm_type.go +++ /dev/null @@ -1,67 +0,0 @@ -package models -import ( - "errors" -) -// The type of VPN security association encryption algorithm -type VpnEncryptionAlgorithmType int - -const ( - // AES-256 - AES256_VPNENCRYPTIONALGORITHMTYPE VpnEncryptionAlgorithmType = iota - // DES - DES_VPNENCRYPTIONALGORITHMTYPE - // 3DES - TRIPLEDES_VPNENCRYPTIONALGORITHMTYPE - // AES-128 - AES128_VPNENCRYPTIONALGORITHMTYPE - // AES-128-GCM - AES128GCM_VPNENCRYPTIONALGORITHMTYPE - // AES-256-GCM - AES256GCM_VPNENCRYPTIONALGORITHMTYPE - // AES-192 - AES192_VPNENCRYPTIONALGORITHMTYPE - // AES-192-GCM - AES192GCM_VPNENCRYPTIONALGORITHMTYPE - // ChaCha20Poly1305 - CHACHA20POLY1305_VPNENCRYPTIONALGORITHMTYPE -) - -func (i VpnEncryptionAlgorithmType) String() string { - return []string{"aes256", "des", "tripleDes", "aes128", "aes128Gcm", "aes256Gcm", "aes192", "aes192Gcm", "chaCha20Poly1305"}[i] -} -func ParseVpnEncryptionAlgorithmType(v string) (any, error) { - result := AES256_VPNENCRYPTIONALGORITHMTYPE - switch v { - case "aes256": - result = AES256_VPNENCRYPTIONALGORITHMTYPE - case "des": - result = DES_VPNENCRYPTIONALGORITHMTYPE - case "tripleDes": - result = TRIPLEDES_VPNENCRYPTIONALGORITHMTYPE - case "aes128": - result = AES128_VPNENCRYPTIONALGORITHMTYPE - case "aes128Gcm": - result = AES128GCM_VPNENCRYPTIONALGORITHMTYPE - case "aes256Gcm": - result = AES256GCM_VPNENCRYPTIONALGORITHMTYPE - case "aes192": - result = AES192_VPNENCRYPTIONALGORITHMTYPE - case "aes192Gcm": - result = AES192GCM_VPNENCRYPTIONALGORITHMTYPE - case "chaCha20Poly1305": - result = CHACHA20POLY1305_VPNENCRYPTIONALGORITHMTYPE - default: - return 0, errors.New("Unknown VpnEncryptionAlgorithmType value: " + v) - } - return &result, nil -} -func SerializeVpnEncryptionAlgorithmType(values []VpnEncryptionAlgorithmType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VpnEncryptionAlgorithmType) isMultiValue() bool { - return false -} diff --git a/models/vpn_integrity_algorithm_type.go b/models/vpn_integrity_algorithm_type.go deleted file mode 100644 index 42fc7731477..00000000000 --- a/models/vpn_integrity_algorithm_type.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// The type of VPN security association integrity algorithm -type VpnIntegrityAlgorithmType int - -const ( - // SHA2-256 - SHA2_256_VPNINTEGRITYALGORITHMTYPE VpnIntegrityAlgorithmType = iota - // SHA1-96 - SHA1_96_VPNINTEGRITYALGORITHMTYPE - // SHA1-160 - SHA1_160_VPNINTEGRITYALGORITHMTYPE - // SHA2-384 - SHA2_384_VPNINTEGRITYALGORITHMTYPE - // SHA2-512 - SHA2_512_VPNINTEGRITYALGORITHMTYPE - // MD5 - MD5_VPNINTEGRITYALGORITHMTYPE -) - -func (i VpnIntegrityAlgorithmType) String() string { - return []string{"sha2_256", "sha1_96", "sha1_160", "sha2_384", "sha2_512", "md5"}[i] -} -func ParseVpnIntegrityAlgorithmType(v string) (any, error) { - result := SHA2_256_VPNINTEGRITYALGORITHMTYPE - switch v { - case "sha2_256": - result = SHA2_256_VPNINTEGRITYALGORITHMTYPE - case "sha1_96": - result = SHA1_96_VPNINTEGRITYALGORITHMTYPE - case "sha1_160": - result = SHA1_160_VPNINTEGRITYALGORITHMTYPE - case "sha2_384": - result = SHA2_384_VPNINTEGRITYALGORITHMTYPE - case "sha2_512": - result = SHA2_512_VPNINTEGRITYALGORITHMTYPE - case "md5": - result = MD5_VPNINTEGRITYALGORITHMTYPE - default: - return 0, errors.New("Unknown VpnIntegrityAlgorithmType value: " + v) - } - return &result, nil -} -func SerializeVpnIntegrityAlgorithmType(values []VpnIntegrityAlgorithmType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VpnIntegrityAlgorithmType) isMultiValue() bool { - return false -} diff --git a/models/vpn_provider_type.go b/models/vpn_provider_type.go deleted file mode 100644 index d1996915d93..00000000000 --- a/models/vpn_provider_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Provider type for per-app VPN. -type VpnProviderType int - -const ( - // Tunnel traffic is not explicitly configured. - NOTCONFIGURED_VPNPROVIDERTYPE VpnProviderType = iota - // Tunnel traffic at the application layer. - APPPROXY_VPNPROVIDERTYPE - // Tunnel traffic at the IP layer. - PACKETTUNNEL_VPNPROVIDERTYPE -) - -func (i VpnProviderType) String() string { - return []string{"notConfigured", "appProxy", "packetTunnel"}[i] -} -func ParseVpnProviderType(v string) (any, error) { - result := NOTCONFIGURED_VPNPROVIDERTYPE - switch v { - case "notConfigured": - result = NOTCONFIGURED_VPNPROVIDERTYPE - case "appProxy": - result = APPPROXY_VPNPROVIDERTYPE - case "packetTunnel": - result = PACKETTUNNEL_VPNPROVIDERTYPE - default: - return 0, errors.New("Unknown VpnProviderType value: " + v) - } - return &result, nil -} -func SerializeVpnProviderType(values []VpnProviderType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VpnProviderType) isMultiValue() bool { - return false -} diff --git a/models/vpn_server_certificate_type.go b/models/vpn_server_certificate_type.go deleted file mode 100644 index a3bd2f6222c..00000000000 --- a/models/vpn_server_certificate_type.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// The type of certificate the VPN server will present to the VPN client for authentication -type VpnServerCertificateType int - -const ( - // RSA - RSA_VPNSERVERCERTIFICATETYPE VpnServerCertificateType = iota - // ECDSA256 - ECDSA256_VPNSERVERCERTIFICATETYPE - // ECDSA384 - ECDSA384_VPNSERVERCERTIFICATETYPE - // ECDSA521 - ECDSA521_VPNSERVERCERTIFICATETYPE -) - -func (i VpnServerCertificateType) String() string { - return []string{"rsa", "ecdsa256", "ecdsa384", "ecdsa521"}[i] -} -func ParseVpnServerCertificateType(v string) (any, error) { - result := RSA_VPNSERVERCERTIFICATETYPE - switch v { - case "rsa": - result = RSA_VPNSERVERCERTIFICATETYPE - case "ecdsa256": - result = ECDSA256_VPNSERVERCERTIFICATETYPE - case "ecdsa384": - result = ECDSA384_VPNSERVERCERTIFICATETYPE - case "ecdsa521": - result = ECDSA521_VPNSERVERCERTIFICATETYPE - default: - return 0, errors.New("Unknown VpnServerCertificateType value: " + v) - } - return &result, nil -} -func SerializeVpnServerCertificateType(values []VpnServerCertificateType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VpnServerCertificateType) isMultiValue() bool { - return false -} diff --git a/models/vpn_service_exception_action.go b/models/vpn_service_exception_action.go deleted file mode 100644 index 3264aeaadf6..00000000000 --- a/models/vpn_service_exception_action.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// The VPN action to take for a specific service. -type VpnServiceExceptionAction int - -const ( - // Make all traffic from that service go through the VPN - FORCETRAFFICVIAVPN_VPNSERVICEEXCEPTIONACTION VpnServiceExceptionAction = iota - // Allow the service outside of the VPN - ALLOWTRAFFICOUTSIDE_VPNSERVICEEXCEPTIONACTION - // Drop all traffic from the service - DROPTRAFFIC_VPNSERVICEEXCEPTIONACTION -) - -func (i VpnServiceExceptionAction) String() string { - return []string{"forceTrafficViaVPN", "allowTrafficOutside", "dropTraffic"}[i] -} -func ParseVpnServiceExceptionAction(v string) (any, error) { - result := FORCETRAFFICVIAVPN_VPNSERVICEEXCEPTIONACTION - switch v { - case "forceTrafficViaVPN": - result = FORCETRAFFICVIAVPN_VPNSERVICEEXCEPTIONACTION - case "allowTrafficOutside": - result = ALLOWTRAFFICOUTSIDE_VPNSERVICEEXCEPTIONACTION - case "dropTraffic": - result = DROPTRAFFIC_VPNSERVICEEXCEPTIONACTION - default: - return 0, errors.New("Unknown VpnServiceExceptionAction value: " + v) - } - return &result, nil -} -func SerializeVpnServiceExceptionAction(values []VpnServiceExceptionAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i VpnServiceExceptionAction) isMultiValue() bool { - return false -} diff --git a/models/weak_algorithms.go b/models/weak_algorithms.go deleted file mode 100644 index 852efcabb86..00000000000 --- a/models/weak_algorithms.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type WeakAlgorithms int - -const ( - RSASHA1_WEAKALGORITHMS WeakAlgorithms = iota - UNKNOWNFUTUREVALUE_WEAKALGORITHMS -) - -func (i WeakAlgorithms) String() string { - var values []string - for p := WeakAlgorithms(1); p <= UNKNOWNFUTUREVALUE_WEAKALGORITHMS; p <<= 1 { - if i&p == p { - values = append(values, []string{"rsaSha1", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseWeakAlgorithms(v string) (any, error) { - var result WeakAlgorithms - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "rsaSha1": - result |= RSASHA1_WEAKALGORITHMS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_WEAKALGORITHMS - default: - return 0, errors.New("Unknown WeakAlgorithms value: " + v) - } - } - return &result, nil -} -func SerializeWeakAlgorithms(values []WeakAlgorithms) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WeakAlgorithms) isMultiValue() bool { - return true -} diff --git a/models/website.go b/models/website.go index f339a999d67..7a024feb70f 100644 --- a/models/website.go +++ b/models/website.go @@ -94,12 +94,12 @@ func (m *Website) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 return nil } res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWebsiteType) + val, err := n.GetEnumValue(ParseWebsite_type) if err != nil { return err } if val != nil { - m.SetTypeEscaped(val.(*WebsiteType)) + m.SetTypeEscaped(val.(*Website_type)) } return nil } @@ -117,13 +117,13 @@ func (m *Website) GetOdataType()(*string) { return nil } // GetTypeEscaped gets the type property value. Possible values are: other, home, work, blog, profile. -func (m *Website) GetTypeEscaped()(*WebsiteType) { +func (m *Website) GetTypeEscaped()(*Website_type) { val, err := m.GetBackingStore().Get("typeEscaped") if err != nil { panic(err) } if val != nil { - return val.(*WebsiteType) + return val.(*Website_type) } return nil } @@ -195,7 +195,7 @@ func (m *Website) SetOdataType(value *string)() { } } // SetTypeEscaped sets the type property value. Possible values are: other, home, work, blog, profile. -func (m *Website) SetTypeEscaped(value *WebsiteType)() { +func (m *Website) SetTypeEscaped(value *Website_type)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) @@ -210,10 +210,10 @@ type Websiteable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDisplayName()(*string) GetOdataType()(*string) - GetTypeEscaped()(*WebsiteType) + GetTypeEscaped()(*Website_type) SetAddress(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDisplayName(value *string)() SetOdataType(value *string)() - SetTypeEscaped(value *WebsiteType)() + SetTypeEscaped(value *Website_type)() } diff --git a/models/website_type.go b/models/website_type.go index 116aedc3e72..e69de29bb2d 100644 --- a/models/website_type.go +++ b/models/website_type.go @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type WebsiteType int - -const ( - OTHER_WEBSITETYPE WebsiteType = iota - HOME_WEBSITETYPE - WORK_WEBSITETYPE - BLOG_WEBSITETYPE - PROFILE_WEBSITETYPE -) - -func (i WebsiteType) String() string { - return []string{"other", "home", "work", "blog", "profile"}[i] -} -func ParseWebsiteType(v string) (any, error) { - result := OTHER_WEBSITETYPE - switch v { - case "other": - result = OTHER_WEBSITETYPE - case "home": - result = HOME_WEBSITETYPE - case "work": - result = WORK_WEBSITETYPE - case "blog": - result = BLOG_WEBSITETYPE - case "profile": - result = PROFILE_WEBSITETYPE - default: - return 0, errors.New("Unknown WebsiteType value: " + v) - } - return &result, nil -} -func SerializeWebsiteType(values []WebsiteType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WebsiteType) isMultiValue() bool { - return false -} diff --git a/models/week_index.go b/models/week_index.go deleted file mode 100644 index bd577484b52..00000000000 --- a/models/week_index.go +++ /dev/null @@ -1,46 +0,0 @@ -package models -import ( - "errors" -) -// -type WeekIndex int - -const ( - FIRST_WEEKINDEX WeekIndex = iota - SECOND_WEEKINDEX - THIRD_WEEKINDEX - FOURTH_WEEKINDEX - LAST_WEEKINDEX -) - -func (i WeekIndex) String() string { - return []string{"first", "second", "third", "fourth", "last"}[i] -} -func ParseWeekIndex(v string) (any, error) { - result := FIRST_WEEKINDEX - switch v { - case "first": - result = FIRST_WEEKINDEX - case "second": - result = SECOND_WEEKINDEX - case "third": - result = THIRD_WEEKINDEX - case "fourth": - result = FOURTH_WEEKINDEX - case "last": - result = LAST_WEEKINDEX - default: - return 0, errors.New("Unknown WeekIndex value: " + v) - } - return &result, nil -} -func SerializeWeekIndex(values []WeekIndex) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WeekIndex) isMultiValue() bool { - return false -} diff --git a/models/wi_fi_authentication_method.go b/models/wi_fi_authentication_method.go deleted file mode 100644 index cdef69fdc54..00000000000 --- a/models/wi_fi_authentication_method.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Wi-Fi authentication method. -type WiFiAuthenticationMethod int - -const ( - // Use an identity certificate for authentication. - CERTIFICATE_WIFIAUTHENTICATIONMETHOD WiFiAuthenticationMethod = iota - // Use username and password for authentication. - USERNAMEANDPASSWORD_WIFIAUTHENTICATIONMETHOD - // Use Derived Credential for authentication. - DERIVEDCREDENTIAL_WIFIAUTHENTICATIONMETHOD -) - -func (i WiFiAuthenticationMethod) String() string { - return []string{"certificate", "usernameAndPassword", "derivedCredential"}[i] -} -func ParseWiFiAuthenticationMethod(v string) (any, error) { - result := CERTIFICATE_WIFIAUTHENTICATIONMETHOD - switch v { - case "certificate": - result = CERTIFICATE_WIFIAUTHENTICATIONMETHOD - case "usernameAndPassword": - result = USERNAMEANDPASSWORD_WIFIAUTHENTICATIONMETHOD - case "derivedCredential": - result = DERIVEDCREDENTIAL_WIFIAUTHENTICATIONMETHOD - default: - return 0, errors.New("Unknown WiFiAuthenticationMethod value: " + v) - } - return &result, nil -} -func SerializeWiFiAuthenticationMethod(values []WiFiAuthenticationMethod) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WiFiAuthenticationMethod) isMultiValue() bool { - return false -} diff --git a/models/wifi_authentication_type.go b/models/wifi_authentication_type.go deleted file mode 100644 index 8e1390d7f72..00000000000 --- a/models/wifi_authentication_type.go +++ /dev/null @@ -1,51 +0,0 @@ -package models -import ( - "errors" -) -// Wi-Fi Authentication Type Settings. -type WifiAuthenticationType int - -const ( - // None - NONE_WIFIAUTHENTICATIONTYPE WifiAuthenticationType = iota - // User Authentication - USER_WIFIAUTHENTICATIONTYPE - // Machine Authentication - MACHINE_WIFIAUTHENTICATIONTYPE - // Machine or User Authentication - MACHINEORUSER_WIFIAUTHENTICATIONTYPE - // Guest Authentication - GUEST_WIFIAUTHENTICATIONTYPE -) - -func (i WifiAuthenticationType) String() string { - return []string{"none", "user", "machine", "machineOrUser", "guest"}[i] -} -func ParseWifiAuthenticationType(v string) (any, error) { - result := NONE_WIFIAUTHENTICATIONTYPE - switch v { - case "none": - result = NONE_WIFIAUTHENTICATIONTYPE - case "user": - result = USER_WIFIAUTHENTICATIONTYPE - case "machine": - result = MACHINE_WIFIAUTHENTICATIONTYPE - case "machineOrUser": - result = MACHINEORUSER_WIFIAUTHENTICATIONTYPE - case "guest": - result = GUEST_WIFIAUTHENTICATIONTYPE - default: - return 0, errors.New("Unknown WifiAuthenticationType value: " + v) - } - return &result, nil -} -func SerializeWifiAuthenticationType(values []WifiAuthenticationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WifiAuthenticationType) isMultiValue() bool { - return false -} diff --git a/models/win32_lob_app_power_shell_script_rule.go b/models/win32_lob_app_power_shell_script_rule.go index 394bf617a19..05daa506030 100644 --- a/models/win32_lob_app_power_shell_script_rule.go +++ b/models/win32_lob_app_power_shell_script_rule.go @@ -118,12 +118,12 @@ func (m *Win32LobAppPowerShellScriptRule) GetFieldDeserializers()(map[string]fun return nil } res["runAsAccount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseRunAsAccountType) + val, err := n.GetEnumValue(ParseWin32LobAppPowerShellScriptRule_runAsAccount) if err != nil { return err } if val != nil { - m.SetRunAsAccount(val.(*RunAsAccountType)) + m.SetRunAsAccount(val.(*Win32LobAppPowerShellScriptRule_runAsAccount)) } return nil } @@ -173,13 +173,13 @@ func (m *Win32LobAppPowerShellScriptRule) GetRunAs32Bit()(*bool) { return nil } // GetRunAsAccount gets the runAsAccount property value. The execution context of the script. Do not specify this value if the rule is used for detection. Script detection rules will run in the same context as the associated app install context. Possible values are: system, user. -func (m *Win32LobAppPowerShellScriptRule) GetRunAsAccount()(*RunAsAccountType) { +func (m *Win32LobAppPowerShellScriptRule) GetRunAsAccount()(*Win32LobAppPowerShellScriptRule_runAsAccount) { val, err := m.GetBackingStore().Get("runAsAccount") if err != nil { panic(err) } if val != nil { - return val.(*RunAsAccountType) + return val.(*Win32LobAppPowerShellScriptRule_runAsAccount) } return nil } @@ -296,7 +296,7 @@ func (m *Win32LobAppPowerShellScriptRule) SetRunAs32Bit(value *bool)() { } } // SetRunAsAccount sets the runAsAccount property value. The execution context of the script. Do not specify this value if the rule is used for detection. Script detection rules will run in the same context as the associated app install context. Possible values are: system, user. -func (m *Win32LobAppPowerShellScriptRule) SetRunAsAccount(value *RunAsAccountType)() { +func (m *Win32LobAppPowerShellScriptRule) SetRunAsAccount(value *Win32LobAppPowerShellScriptRule_runAsAccount)() { err := m.GetBackingStore().Set("runAsAccount", value) if err != nil { panic(err) @@ -319,7 +319,7 @@ type Win32LobAppPowerShellScriptRuleable interface { GetOperationType()(*Win32LobAppPowerShellScriptRuleOperationType) GetOperator()(*Win32LobAppRuleOperator) GetRunAs32Bit()(*bool) - GetRunAsAccount()(*RunAsAccountType) + GetRunAsAccount()(*Win32LobAppPowerShellScriptRule_runAsAccount) GetScriptContent()(*string) SetComparisonValue(value *string)() SetDisplayName(value *string)() @@ -327,6 +327,6 @@ type Win32LobAppPowerShellScriptRuleable interface { SetOperationType(value *Win32LobAppPowerShellScriptRuleOperationType)() SetOperator(value *Win32LobAppRuleOperator)() SetRunAs32Bit(value *bool)() - SetRunAsAccount(value *RunAsAccountType)() + SetRunAsAccount(value *Win32LobAppPowerShellScriptRule_runAsAccount)() SetScriptContent(value *string)() } diff --git a/models/win32_lob_app_power_shell_script_rule_run_as_account.go b/models/win32_lob_app_power_shell_script_rule_run_as_account.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_endpoint_protection_configuration.go b/models/windows10_endpoint_protection_configuration.go index bdfc36d836a..045cf52ba47 100644 --- a/models/windows10_endpoint_protection_configuration.go +++ b/models/windows10_endpoint_protection_configuration.go @@ -484,13 +484,13 @@ func (m *Windows10EndpointProtectionConfiguration) GetDefenderCheckForSignatures return nil } // GetDefenderCloudBlockLevel gets the defenderCloudBlockLevel property value. Added in Windows 10, version 1709. This policy setting determines how aggressive Windows Defender Antivirus will be in blocking and scanning suspicious files. Value type is integer. This feature requires the 'Join Microsoft MAPS' setting enabled in order to function. Possible values are: notConfigured, high, highPlus, zeroTolerance. -func (m *Windows10EndpointProtectionConfiguration) GetDefenderCloudBlockLevel()(*DefenderCloudBlockLevelType) { +func (m *Windows10EndpointProtectionConfiguration) GetDefenderCloudBlockLevel()(*Windows10EndpointProtectionConfiguration_defenderCloudBlockLevel) { val, err := m.GetBackingStore().Get("defenderCloudBlockLevel") if err != nil { panic(err) } if val != nil { - return val.(*DefenderCloudBlockLevelType) + return val.(*Windows10EndpointProtectionConfiguration_defenderCloudBlockLevel) } return nil } @@ -891,13 +891,13 @@ func (m *Windows10EndpointProtectionConfiguration) GetDefenderOfficeMacroCodeAll return nil } // GetDefenderPotentiallyUnwantedAppAction gets the defenderPotentiallyUnwantedAppAction property value. Added in Windows 10, version 1607. Specifies the level of detection for potentially unwanted applications (PUAs). Windows Defender alerts you when potentially unwanted software is being downloaded or attempts to install itself on your computer. Possible values are: userDefined, enable, auditMode, warn, notConfigured. -func (m *Windows10EndpointProtectionConfiguration) GetDefenderPotentiallyUnwantedAppAction()(*DefenderProtectionType) { +func (m *Windows10EndpointProtectionConfiguration) GetDefenderPotentiallyUnwantedAppAction()(*Windows10EndpointProtectionConfiguration_defenderPotentiallyUnwantedAppAction) { val, err := m.GetBackingStore().Get("defenderPotentiallyUnwantedAppAction") if err != nil { panic(err) } if val != nil { - return val.(*DefenderProtectionType) + return val.(*Windows10EndpointProtectionConfiguration_defenderPotentiallyUnwantedAppAction) } return nil } @@ -946,13 +946,13 @@ func (m *Windows10EndpointProtectionConfiguration) GetDefenderProcessesToExclude return nil } // GetDefenderScanDirection gets the defenderScanDirection property value. Controls which sets of files should be monitored. Possible values are: monitorAllFiles, monitorIncomingFilesOnly, monitorOutgoingFilesOnly. -func (m *Windows10EndpointProtectionConfiguration) GetDefenderScanDirection()(*DefenderRealtimeScanDirection) { +func (m *Windows10EndpointProtectionConfiguration) GetDefenderScanDirection()(*Windows10EndpointProtectionConfiguration_defenderScanDirection) { val, err := m.GetBackingStore().Get("defenderScanDirection") if err != nil { panic(err) } if val != nil { - return val.(*DefenderRealtimeScanDirection) + return val.(*Windows10EndpointProtectionConfiguration_defenderScanDirection) } return nil } @@ -968,13 +968,13 @@ func (m *Windows10EndpointProtectionConfiguration) GetDefenderScanMaxCpuPercenta return nil } // GetDefenderScanType gets the defenderScanType property value. Selects whether to perform a quick scan or full scan. Possible values are: userDefined, disabled, quick, full. -func (m *Windows10EndpointProtectionConfiguration) GetDefenderScanType()(*DefenderScanType) { +func (m *Windows10EndpointProtectionConfiguration) GetDefenderScanType()(*Windows10EndpointProtectionConfiguration_defenderScanType) { val, err := m.GetBackingStore().Get("defenderScanType") if err != nil { panic(err) } if val != nil { - return val.(*DefenderScanType) + return val.(*Windows10EndpointProtectionConfiguration_defenderScanType) } return nil } @@ -990,13 +990,13 @@ func (m *Windows10EndpointProtectionConfiguration) GetDefenderScheduledQuickScan return nil } // GetDefenderScheduledScanDay gets the defenderScheduledScanDay property value. Selects the day that the Windows Defender scan should run. Possible values are: userDefined, everyday, sunday, monday, tuesday, wednesday, thursday, friday, saturday, noScheduledScan. -func (m *Windows10EndpointProtectionConfiguration) GetDefenderScheduledScanDay()(*WeeklySchedule) { +func (m *Windows10EndpointProtectionConfiguration) GetDefenderScheduledScanDay()(*Windows10EndpointProtectionConfiguration_defenderScheduledScanDay) { val, err := m.GetBackingStore().Get("defenderScheduledScanDay") if err != nil { panic(err) } if val != nil { - return val.(*WeeklySchedule) + return val.(*Windows10EndpointProtectionConfiguration_defenderScheduledScanDay) } return nil } @@ -1287,13 +1287,13 @@ func (m *Windows10EndpointProtectionConfiguration) GetDefenderSignatureUpdateInt return nil } // GetDefenderSubmitSamplesConsentType gets the defenderSubmitSamplesConsentType property value. Checks for the user consent level in Windows Defender to send data. Possible values are: sendSafeSamplesAutomatically, alwaysPrompt, neverSend, sendAllSamplesAutomatically. -func (m *Windows10EndpointProtectionConfiguration) GetDefenderSubmitSamplesConsentType()(*DefenderSubmitSamplesConsentType) { +func (m *Windows10EndpointProtectionConfiguration) GetDefenderSubmitSamplesConsentType()(*Windows10EndpointProtectionConfiguration_defenderSubmitSamplesConsentType) { val, err := m.GetBackingStore().Get("defenderSubmitSamplesConsentType") if err != nil { panic(err) } if val != nil { - return val.(*DefenderSubmitSamplesConsentType) + return val.(*Windows10EndpointProtectionConfiguration_defenderSubmitSamplesConsentType) } return nil } @@ -1849,12 +1849,12 @@ func (m *Windows10EndpointProtectionConfiguration) GetFieldDeserializers()(map[s return nil } res["defenderCloudBlockLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefenderCloudBlockLevelType) + val, err := n.GetEnumValue(ParseWindows10EndpointProtectionConfiguration_defenderCloudBlockLevel) if err != nil { return err } if val != nil { - m.SetDefenderCloudBlockLevel(val.(*DefenderCloudBlockLevelType)) + m.SetDefenderCloudBlockLevel(val.(*Windows10EndpointProtectionConfiguration_defenderCloudBlockLevel)) } return nil } @@ -2237,12 +2237,12 @@ func (m *Windows10EndpointProtectionConfiguration) GetFieldDeserializers()(map[s return nil } res["defenderPotentiallyUnwantedAppAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefenderProtectionType) + val, err := n.GetEnumValue(ParseWindows10EndpointProtectionConfiguration_defenderPotentiallyUnwantedAppAction) if err != nil { return err } if val != nil { - m.SetDefenderPotentiallyUnwantedAppAction(val.(*DefenderProtectionType)) + m.SetDefenderPotentiallyUnwantedAppAction(val.(*Windows10EndpointProtectionConfiguration_defenderPotentiallyUnwantedAppAction)) } return nil } @@ -2293,12 +2293,12 @@ func (m *Windows10EndpointProtectionConfiguration) GetFieldDeserializers()(map[s return nil } res["defenderScanDirection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefenderRealtimeScanDirection) + val, err := n.GetEnumValue(ParseWindows10EndpointProtectionConfiguration_defenderScanDirection) if err != nil { return err } if val != nil { - m.SetDefenderScanDirection(val.(*DefenderRealtimeScanDirection)) + m.SetDefenderScanDirection(val.(*Windows10EndpointProtectionConfiguration_defenderScanDirection)) } return nil } @@ -2313,12 +2313,12 @@ func (m *Windows10EndpointProtectionConfiguration) GetFieldDeserializers()(map[s return nil } res["defenderScanType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefenderScanType) + val, err := n.GetEnumValue(ParseWindows10EndpointProtectionConfiguration_defenderScanType) if err != nil { return err } if val != nil { - m.SetDefenderScanType(val.(*DefenderScanType)) + m.SetDefenderScanType(val.(*Windows10EndpointProtectionConfiguration_defenderScanType)) } return nil } @@ -2333,12 +2333,12 @@ func (m *Windows10EndpointProtectionConfiguration) GetFieldDeserializers()(map[s return nil } res["defenderScheduledScanDay"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWeeklySchedule) + val, err := n.GetEnumValue(ParseWindows10EndpointProtectionConfiguration_defenderScheduledScanDay) if err != nil { return err } if val != nil { - m.SetDefenderScheduledScanDay(val.(*WeeklySchedule)) + m.SetDefenderScheduledScanDay(val.(*Windows10EndpointProtectionConfiguration_defenderScheduledScanDay)) } return nil } @@ -2603,12 +2603,12 @@ func (m *Windows10EndpointProtectionConfiguration) GetFieldDeserializers()(map[s return nil } res["defenderSubmitSamplesConsentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefenderSubmitSamplesConsentType) + val, err := n.GetEnumValue(ParseWindows10EndpointProtectionConfiguration_defenderSubmitSamplesConsentType) if err != nil { return err } if val != nil { - m.SetDefenderSubmitSamplesConsentType(val.(*DefenderSubmitSamplesConsentType)) + m.SetDefenderSubmitSamplesConsentType(val.(*Windows10EndpointProtectionConfiguration_defenderSubmitSamplesConsentType)) } return nil } @@ -6546,7 +6546,7 @@ func (m *Windows10EndpointProtectionConfiguration) SetDefenderCheckForSignatures } } // SetDefenderCloudBlockLevel sets the defenderCloudBlockLevel property value. Added in Windows 10, version 1709. This policy setting determines how aggressive Windows Defender Antivirus will be in blocking and scanning suspicious files. Value type is integer. This feature requires the 'Join Microsoft MAPS' setting enabled in order to function. Possible values are: notConfigured, high, highPlus, zeroTolerance. -func (m *Windows10EndpointProtectionConfiguration) SetDefenderCloudBlockLevel(value *DefenderCloudBlockLevelType)() { +func (m *Windows10EndpointProtectionConfiguration) SetDefenderCloudBlockLevel(value *Windows10EndpointProtectionConfiguration_defenderCloudBlockLevel)() { err := m.GetBackingStore().Set("defenderCloudBlockLevel", value) if err != nil { panic(err) @@ -6805,7 +6805,7 @@ func (m *Windows10EndpointProtectionConfiguration) SetDefenderOfficeMacroCodeAll } } // SetDefenderPotentiallyUnwantedAppAction sets the defenderPotentiallyUnwantedAppAction property value. Added in Windows 10, version 1607. Specifies the level of detection for potentially unwanted applications (PUAs). Windows Defender alerts you when potentially unwanted software is being downloaded or attempts to install itself on your computer. Possible values are: userDefined, enable, auditMode, warn, notConfigured. -func (m *Windows10EndpointProtectionConfiguration) SetDefenderPotentiallyUnwantedAppAction(value *DefenderProtectionType)() { +func (m *Windows10EndpointProtectionConfiguration) SetDefenderPotentiallyUnwantedAppAction(value *Windows10EndpointProtectionConfiguration_defenderPotentiallyUnwantedAppAction)() { err := m.GetBackingStore().Set("defenderPotentiallyUnwantedAppAction", value) if err != nil { panic(err) @@ -6840,7 +6840,7 @@ func (m *Windows10EndpointProtectionConfiguration) SetDefenderProcessesToExclude } } // SetDefenderScanDirection sets the defenderScanDirection property value. Controls which sets of files should be monitored. Possible values are: monitorAllFiles, monitorIncomingFilesOnly, monitorOutgoingFilesOnly. -func (m *Windows10EndpointProtectionConfiguration) SetDefenderScanDirection(value *DefenderRealtimeScanDirection)() { +func (m *Windows10EndpointProtectionConfiguration) SetDefenderScanDirection(value *Windows10EndpointProtectionConfiguration_defenderScanDirection)() { err := m.GetBackingStore().Set("defenderScanDirection", value) if err != nil { panic(err) @@ -6854,7 +6854,7 @@ func (m *Windows10EndpointProtectionConfiguration) SetDefenderScanMaxCpuPercenta } } // SetDefenderScanType sets the defenderScanType property value. Selects whether to perform a quick scan or full scan. Possible values are: userDefined, disabled, quick, full. -func (m *Windows10EndpointProtectionConfiguration) SetDefenderScanType(value *DefenderScanType)() { +func (m *Windows10EndpointProtectionConfiguration) SetDefenderScanType(value *Windows10EndpointProtectionConfiguration_defenderScanType)() { err := m.GetBackingStore().Set("defenderScanType", value) if err != nil { panic(err) @@ -6868,7 +6868,7 @@ func (m *Windows10EndpointProtectionConfiguration) SetDefenderScheduledQuickScan } } // SetDefenderScheduledScanDay sets the defenderScheduledScanDay property value. Selects the day that the Windows Defender scan should run. Possible values are: userDefined, everyday, sunday, monday, tuesday, wednesday, thursday, friday, saturday, noScheduledScan. -func (m *Windows10EndpointProtectionConfiguration) SetDefenderScheduledScanDay(value *WeeklySchedule)() { +func (m *Windows10EndpointProtectionConfiguration) SetDefenderScheduledScanDay(value *Windows10EndpointProtectionConfiguration_defenderScheduledScanDay)() { err := m.GetBackingStore().Set("defenderScheduledScanDay", value) if err != nil { panic(err) @@ -7057,7 +7057,7 @@ func (m *Windows10EndpointProtectionConfiguration) SetDefenderSignatureUpdateInt } } // SetDefenderSubmitSamplesConsentType sets the defenderSubmitSamplesConsentType property value. Checks for the user consent level in Windows Defender to send data. Possible values are: sendSafeSamplesAutomatically, alwaysPrompt, neverSend, sendAllSamplesAutomatically. -func (m *Windows10EndpointProtectionConfiguration) SetDefenderSubmitSamplesConsentType(value *DefenderSubmitSamplesConsentType)() { +func (m *Windows10EndpointProtectionConfiguration) SetDefenderSubmitSamplesConsentType(value *Windows10EndpointProtectionConfiguration_defenderSubmitSamplesConsentType)() { err := m.GetBackingStore().Set("defenderSubmitSamplesConsentType", value) if err != nil { panic(err) @@ -7879,7 +7879,7 @@ type Windows10EndpointProtectionConfigurationable interface { GetDefenderBlockEndUserAccess()(*bool) GetDefenderBlockPersistenceThroughWmiType()(*DefenderAttackSurfaceType) GetDefenderCheckForSignaturesBeforeRunningScan()(*bool) - GetDefenderCloudBlockLevel()(*DefenderCloudBlockLevelType) + GetDefenderCloudBlockLevel()(*Windows10EndpointProtectionConfiguration_defenderCloudBlockLevel) GetDefenderCloudExtendedTimeoutInSeconds()(*int32) GetDefenderDaysBeforeDeletingQuarantinedMalware()(*int32) GetDefenderDetectedMalwareActions()(DefenderDetectedMalwareActionsable) @@ -7916,16 +7916,16 @@ type Windows10EndpointProtectionConfigurationable interface { GetDefenderOfficeCommunicationAppsLaunchChildProcess()(*DefenderProtectionType) GetDefenderOfficeMacroCodeAllowWin32Imports()(*DefenderProtectionType) GetDefenderOfficeMacroCodeAllowWin32ImportsType()(*DefenderAttackSurfaceType) - GetDefenderPotentiallyUnwantedAppAction()(*DefenderProtectionType) + GetDefenderPotentiallyUnwantedAppAction()(*Windows10EndpointProtectionConfiguration_defenderPotentiallyUnwantedAppAction) GetDefenderPreventCredentialStealingType()(*DefenderProtectionType) GetDefenderProcessCreation()(*DefenderProtectionType) GetDefenderProcessCreationType()(*DefenderAttackSurfaceType) GetDefenderProcessesToExclude()([]string) - GetDefenderScanDirection()(*DefenderRealtimeScanDirection) + GetDefenderScanDirection()(*Windows10EndpointProtectionConfiguration_defenderScanDirection) GetDefenderScanMaxCpuPercentage()(*int32) - GetDefenderScanType()(*DefenderScanType) + GetDefenderScanType()(*Windows10EndpointProtectionConfiguration_defenderScanType) GetDefenderScheduledQuickScanTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) - GetDefenderScheduledScanDay()(*WeeklySchedule) + GetDefenderScheduledScanDay()(*Windows10EndpointProtectionConfiguration_defenderScheduledScanDay) GetDefenderScheduledScanTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) GetDefenderScriptDownloadedPayloadExecution()(*DefenderProtectionType) GetDefenderScriptDownloadedPayloadExecutionType()(*DefenderAttackSurfaceType) @@ -7952,7 +7952,7 @@ type Windows10EndpointProtectionConfigurationable interface { GetDefenderSecurityCenterNotificationsFromApp()(*DefenderSecurityCenterNotificationsFromAppType) GetDefenderSecurityCenterOrganizationDisplayName()(*string) GetDefenderSignatureUpdateIntervalInHours()(*int32) - GetDefenderSubmitSamplesConsentType()(*DefenderSubmitSamplesConsentType) + GetDefenderSubmitSamplesConsentType()(*Windows10EndpointProtectionConfiguration_defenderSubmitSamplesConsentType) GetDefenderUntrustedExecutable()(*DefenderProtectionType) GetDefenderUntrustedExecutableType()(*DefenderAttackSurfaceType) GetDefenderUntrustedUSBProcess()(*DefenderProtectionType) @@ -8105,7 +8105,7 @@ type Windows10EndpointProtectionConfigurationable interface { SetDefenderBlockEndUserAccess(value *bool)() SetDefenderBlockPersistenceThroughWmiType(value *DefenderAttackSurfaceType)() SetDefenderCheckForSignaturesBeforeRunningScan(value *bool)() - SetDefenderCloudBlockLevel(value *DefenderCloudBlockLevelType)() + SetDefenderCloudBlockLevel(value *Windows10EndpointProtectionConfiguration_defenderCloudBlockLevel)() SetDefenderCloudExtendedTimeoutInSeconds(value *int32)() SetDefenderDaysBeforeDeletingQuarantinedMalware(value *int32)() SetDefenderDetectedMalwareActions(value DefenderDetectedMalwareActionsable)() @@ -8142,16 +8142,16 @@ type Windows10EndpointProtectionConfigurationable interface { SetDefenderOfficeCommunicationAppsLaunchChildProcess(value *DefenderProtectionType)() SetDefenderOfficeMacroCodeAllowWin32Imports(value *DefenderProtectionType)() SetDefenderOfficeMacroCodeAllowWin32ImportsType(value *DefenderAttackSurfaceType)() - SetDefenderPotentiallyUnwantedAppAction(value *DefenderProtectionType)() + SetDefenderPotentiallyUnwantedAppAction(value *Windows10EndpointProtectionConfiguration_defenderPotentiallyUnwantedAppAction)() SetDefenderPreventCredentialStealingType(value *DefenderProtectionType)() SetDefenderProcessCreation(value *DefenderProtectionType)() SetDefenderProcessCreationType(value *DefenderAttackSurfaceType)() SetDefenderProcessesToExclude(value []string)() - SetDefenderScanDirection(value *DefenderRealtimeScanDirection)() + SetDefenderScanDirection(value *Windows10EndpointProtectionConfiguration_defenderScanDirection)() SetDefenderScanMaxCpuPercentage(value *int32)() - SetDefenderScanType(value *DefenderScanType)() + SetDefenderScanType(value *Windows10EndpointProtectionConfiguration_defenderScanType)() SetDefenderScheduledQuickScanTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() - SetDefenderScheduledScanDay(value *WeeklySchedule)() + SetDefenderScheduledScanDay(value *Windows10EndpointProtectionConfiguration_defenderScheduledScanDay)() SetDefenderScheduledScanTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() SetDefenderScriptDownloadedPayloadExecution(value *DefenderProtectionType)() SetDefenderScriptDownloadedPayloadExecutionType(value *DefenderAttackSurfaceType)() @@ -8178,7 +8178,7 @@ type Windows10EndpointProtectionConfigurationable interface { SetDefenderSecurityCenterNotificationsFromApp(value *DefenderSecurityCenterNotificationsFromAppType)() SetDefenderSecurityCenterOrganizationDisplayName(value *string)() SetDefenderSignatureUpdateIntervalInHours(value *int32)() - SetDefenderSubmitSamplesConsentType(value *DefenderSubmitSamplesConsentType)() + SetDefenderSubmitSamplesConsentType(value *Windows10EndpointProtectionConfiguration_defenderSubmitSamplesConsentType)() SetDefenderUntrustedExecutable(value *DefenderProtectionType)() SetDefenderUntrustedExecutableType(value *DefenderAttackSurfaceType)() SetDefenderUntrustedUSBProcess(value *DefenderProtectionType)() diff --git a/models/windows10_endpoint_protection_configuration_defender_cloud_block_level.go b/models/windows10_endpoint_protection_configuration_defender_cloud_block_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_endpoint_protection_configuration_defender_potentially_unwanted_app_action.go b/models/windows10_endpoint_protection_configuration_defender_potentially_unwanted_app_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_endpoint_protection_configuration_defender_scan_direction.go b/models/windows10_endpoint_protection_configuration_defender_scan_direction.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_endpoint_protection_configuration_defender_scan_type.go b/models/windows10_endpoint_protection_configuration_defender_scan_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_endpoint_protection_configuration_defender_scheduled_scan_day.go b/models/windows10_endpoint_protection_configuration_defender_scheduled_scan_day.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_endpoint_protection_configuration_defender_submit_samples_consent_type.go b/models/windows10_endpoint_protection_configuration_defender_submit_samples_consent_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_general_configuration.go b/models/windows10_general_configuration.go index 5cfe843da64..0be731a5b11 100644 --- a/models/windows10_general_configuration.go +++ b/models/windows10_general_configuration.go @@ -473,13 +473,13 @@ func (m *Windows10GeneralConfiguration) GetDefenderMonitorFileActivity()(*Defend return nil } // GetDefenderPotentiallyUnwantedAppAction gets the defenderPotentiallyUnwantedAppAction property value. Gets or sets Defender’s action to take on Potentially Unwanted Application (PUA), which includes software with behaviors of ad-injection, software bundling, persistent solicitation for payment or subscription, etc. Defender alerts user when PUA is being downloaded or attempts to install itself. Added in Windows 10 for desktop. Possible values are: deviceDefault, block, audit. -func (m *Windows10GeneralConfiguration) GetDefenderPotentiallyUnwantedAppAction()(*DefenderPotentiallyUnwantedAppAction) { +func (m *Windows10GeneralConfiguration) GetDefenderPotentiallyUnwantedAppAction()(*Windows10GeneralConfiguration_defenderPotentiallyUnwantedAppAction) { val, err := m.GetBackingStore().Get("defenderPotentiallyUnwantedAppAction") if err != nil { panic(err) } if val != nil { - return val.(*DefenderPotentiallyUnwantedAppAction) + return val.(*Windows10GeneralConfiguration_defenderPotentiallyUnwantedAppAction) } return nil } @@ -704,13 +704,13 @@ func (m *Windows10GeneralConfiguration) GetDefenderSignatureUpdateIntervalInHour return nil } // GetDefenderSubmitSamplesConsentType gets the defenderSubmitSamplesConsentType property value. Checks for the user consent level in Windows Defender to send data. Possible values are: sendSafeSamplesAutomatically, alwaysPrompt, neverSend, sendAllSamplesAutomatically. -func (m *Windows10GeneralConfiguration) GetDefenderSubmitSamplesConsentType()(*DefenderSubmitSamplesConsentType) { +func (m *Windows10GeneralConfiguration) GetDefenderSubmitSamplesConsentType()(*Windows10GeneralConfiguration_defenderSubmitSamplesConsentType) { val, err := m.GetBackingStore().Get("defenderSubmitSamplesConsentType") if err != nil { panic(err) } if val != nil { - return val.(*DefenderSubmitSamplesConsentType) + return val.(*Windows10GeneralConfiguration_defenderSubmitSamplesConsentType) } return nil } @@ -1889,12 +1889,12 @@ func (m *Windows10GeneralConfiguration) GetFieldDeserializers()(map[string]func( return nil } res["defenderPotentiallyUnwantedAppAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefenderPotentiallyUnwantedAppAction) + val, err := n.GetEnumValue(ParseWindows10GeneralConfiguration_defenderPotentiallyUnwantedAppAction) if err != nil { return err } if val != nil { - m.SetDefenderPotentiallyUnwantedAppAction(val.(*DefenderPotentiallyUnwantedAppAction)) + m.SetDefenderPotentiallyUnwantedAppAction(val.(*Windows10GeneralConfiguration_defenderPotentiallyUnwantedAppAction)) } return nil } @@ -2105,12 +2105,12 @@ func (m *Windows10GeneralConfiguration) GetFieldDeserializers()(map[string]func( return nil } res["defenderSubmitSamplesConsentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseDefenderSubmitSamplesConsentType) + val, err := n.GetEnumValue(ParseWindows10GeneralConfiguration_defenderSubmitSamplesConsentType) if err != nil { return err } if val != nil { - m.SetDefenderSubmitSamplesConsentType(val.(*DefenderSubmitSamplesConsentType)) + m.SetDefenderSubmitSamplesConsentType(val.(*Windows10GeneralConfiguration_defenderSubmitSamplesConsentType)) } return nil } @@ -8086,7 +8086,7 @@ func (m *Windows10GeneralConfiguration) SetDefenderMonitorFileActivity(value *De } } // SetDefenderPotentiallyUnwantedAppAction sets the defenderPotentiallyUnwantedAppAction property value. Gets or sets Defender’s action to take on Potentially Unwanted Application (PUA), which includes software with behaviors of ad-injection, software bundling, persistent solicitation for payment or subscription, etc. Defender alerts user when PUA is being downloaded or attempts to install itself. Added in Windows 10 for desktop. Possible values are: deviceDefault, block, audit. -func (m *Windows10GeneralConfiguration) SetDefenderPotentiallyUnwantedAppAction(value *DefenderPotentiallyUnwantedAppAction)() { +func (m *Windows10GeneralConfiguration) SetDefenderPotentiallyUnwantedAppAction(value *Windows10GeneralConfiguration_defenderPotentiallyUnwantedAppAction)() { err := m.GetBackingStore().Set("defenderPotentiallyUnwantedAppAction", value) if err != nil { panic(err) @@ -8233,7 +8233,7 @@ func (m *Windows10GeneralConfiguration) SetDefenderSignatureUpdateIntervalInHour } } // SetDefenderSubmitSamplesConsentType sets the defenderSubmitSamplesConsentType property value. Checks for the user consent level in Windows Defender to send data. Possible values are: sendSafeSamplesAutomatically, alwaysPrompt, neverSend, sendAllSamplesAutomatically. -func (m *Windows10GeneralConfiguration) SetDefenderSubmitSamplesConsentType(value *DefenderSubmitSamplesConsentType)() { +func (m *Windows10GeneralConfiguration) SetDefenderSubmitSamplesConsentType(value *Windows10GeneralConfiguration_defenderSubmitSamplesConsentType)() { err := m.GetBackingStore().Set("defenderSubmitSamplesConsentType", value) if err != nil { panic(err) @@ -9824,7 +9824,7 @@ type Windows10GeneralConfigurationable interface { GetDefenderFileExtensionsToExclude()([]string) GetDefenderFilesAndFoldersToExclude()([]string) GetDefenderMonitorFileActivity()(*DefenderMonitorFileActivity) - GetDefenderPotentiallyUnwantedAppAction()(*DefenderPotentiallyUnwantedAppAction) + GetDefenderPotentiallyUnwantedAppAction()(*Windows10GeneralConfiguration_defenderPotentiallyUnwantedAppAction) GetDefenderPotentiallyUnwantedAppActionSetting()(*DefenderProtectionType) GetDefenderProcessesToExclude()([]string) GetDefenderPromptForSampleSubmission()(*DefenderPromptForSampleSubmission) @@ -9845,7 +9845,7 @@ type Windows10GeneralConfigurationable interface { GetDefenderScheduledScanTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) GetDefenderScheduleScanEnableLowCpuPriority()(*bool) GetDefenderSignatureUpdateIntervalInHours()(*int32) - GetDefenderSubmitSamplesConsentType()(*DefenderSubmitSamplesConsentType) + GetDefenderSubmitSamplesConsentType()(*Windows10GeneralConfiguration_defenderSubmitSamplesConsentType) GetDefenderSystemScanSchedule()(*WeeklySchedule) GetDeveloperUnlockSetting()(*StateManagementSetting) GetDeviceManagementBlockFactoryResetOnMobile()(*bool) @@ -10107,7 +10107,7 @@ type Windows10GeneralConfigurationable interface { SetDefenderFileExtensionsToExclude(value []string)() SetDefenderFilesAndFoldersToExclude(value []string)() SetDefenderMonitorFileActivity(value *DefenderMonitorFileActivity)() - SetDefenderPotentiallyUnwantedAppAction(value *DefenderPotentiallyUnwantedAppAction)() + SetDefenderPotentiallyUnwantedAppAction(value *Windows10GeneralConfiguration_defenderPotentiallyUnwantedAppAction)() SetDefenderPotentiallyUnwantedAppActionSetting(value *DefenderProtectionType)() SetDefenderProcessesToExclude(value []string)() SetDefenderPromptForSampleSubmission(value *DefenderPromptForSampleSubmission)() @@ -10128,7 +10128,7 @@ type Windows10GeneralConfigurationable interface { SetDefenderScheduledScanTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() SetDefenderScheduleScanEnableLowCpuPriority(value *bool)() SetDefenderSignatureUpdateIntervalInHours(value *int32)() - SetDefenderSubmitSamplesConsentType(value *DefenderSubmitSamplesConsentType)() + SetDefenderSubmitSamplesConsentType(value *Windows10GeneralConfiguration_defenderSubmitSamplesConsentType)() SetDefenderSystemScanSchedule(value *WeeklySchedule)() SetDeveloperUnlockSetting(value *StateManagementSetting)() SetDeviceManagementBlockFactoryResetOnMobile(value *bool)() diff --git a/models/windows10_general_configuration_defender_potentially_unwanted_app_action.go b/models/windows10_general_configuration_defender_potentially_unwanted_app_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_general_configuration_defender_submit_samples_consent_type.go b/models/windows10_general_configuration_defender_submit_samples_consent_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_pkcs_certificate_profile.go b/models/windows10_pkcs_certificate_profile.go index bc429cbbe1f..678d1d76901 100644 --- a/models/windows10_pkcs_certificate_profile.go +++ b/models/windows10_pkcs_certificate_profile.go @@ -22,13 +22,13 @@ func CreateWindows10PkcsCertificateProfileFromDiscriminatorValue(parseNode i878a return NewWindows10PkcsCertificateProfile(), nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *Windows10PkcsCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *Windows10PkcsCertificateProfile) GetCertificateStore()(*Windows10PkcsCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*Windows10PkcsCertificateProfile_certificateStore) } return nil } @@ -91,12 +91,12 @@ func (m *Windows10PkcsCertificateProfile) GetExtendedKeyUsages()([]ExtendedKeyUs func (m *Windows10PkcsCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Windows10CertificateProfileBase.GetFieldDeserializers() res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseWindows10PkcsCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*Windows10PkcsCertificateProfile_certificateStore)) } return nil } @@ -315,7 +315,7 @@ func (m *Windows10PkcsCertificateProfile) Serialize(writer i878a80d2330e89d26896 return nil } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *Windows10PkcsCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *Windows10PkcsCertificateProfile) SetCertificateStore(value *Windows10PkcsCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -381,7 +381,7 @@ func (m *Windows10PkcsCertificateProfile) SetSubjectNameFormatString(value *stri type Windows10PkcsCertificateProfileable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable Windows10CertificateProfileBaseable - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*Windows10PkcsCertificateProfile_certificateStore) GetCertificateTemplateName()(*string) GetCertificationAuthority()(*string) GetCertificationAuthorityName()(*string) @@ -390,7 +390,7 @@ type Windows10PkcsCertificateProfileable interface { GetManagedDeviceCertificateStates()([]ManagedDeviceCertificateStateable) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *Windows10PkcsCertificateProfile_certificateStore)() SetCertificateTemplateName(value *string)() SetCertificationAuthority(value *string)() SetCertificationAuthorityName(value *string)() diff --git a/models/windows10_pkcs_certificate_profile_certificate_store.go b/models/windows10_pkcs_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_vpn_configuration.go b/models/windows10_vpn_configuration.go index ed35b3ab9c3..2c7803c0015 100644 --- a/models/windows10_vpn_configuration.go +++ b/models/windows10_vpn_configuration.go @@ -346,12 +346,12 @@ func (m *Windows10VpnConfiguration) GetFieldDeserializers()(map[string]func(i878 return nil } res["profileTarget"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindows10VpnProfileTarget) + val, err := n.GetEnumValue(ParseWindows10VpnConfiguration_profileTarget) if err != nil { return err } if val != nil { - m.SetProfileTarget(val.(*Windows10VpnProfileTarget)) + m.SetProfileTarget(val.(*Windows10VpnConfiguration_profileTarget)) } return nil } @@ -489,13 +489,13 @@ func (m *Windows10VpnConfiguration) GetOnlyAssociatedAppsCanUseConnection()(*boo return nil } // GetProfileTarget gets the profileTarget property value. Profile target type. Possible values are: user, device, autoPilotDevice. -func (m *Windows10VpnConfiguration) GetProfileTarget()(*Windows10VpnProfileTarget) { +func (m *Windows10VpnConfiguration) GetProfileTarget()(*Windows10VpnConfiguration_profileTarget) { val, err := m.GetBackingStore().Get("profileTarget") if err != nil { panic(err) } if val != nil { - return val.(*Windows10VpnProfileTarget) + return val.(*Windows10VpnConfiguration_profileTarget) } return nil } @@ -885,7 +885,7 @@ func (m *Windows10VpnConfiguration) SetOnlyAssociatedAppsCanUseConnection(value } } // SetProfileTarget sets the profileTarget property value. Profile target type. Possible values are: user, device, autoPilotDevice. -func (m *Windows10VpnConfiguration) SetProfileTarget(value *Windows10VpnProfileTarget)() { +func (m *Windows10VpnConfiguration) SetProfileTarget(value *Windows10VpnConfiguration_profileTarget)() { err := m.GetBackingStore().Set("profileTarget", value) if err != nil { panic(err) @@ -967,7 +967,7 @@ type Windows10VpnConfigurationable interface { GetIdentityCertificate()(WindowsCertificateProfileBaseable) GetMicrosoftTunnelSiteId()(*string) GetOnlyAssociatedAppsCanUseConnection()(*bool) - GetProfileTarget()(*Windows10VpnProfileTarget) + GetProfileTarget()(*Windows10VpnConfiguration_profileTarget) GetProxyServer()(Windows10VpnProxyServerable) GetRememberUserCredentials()(*bool) GetRoutes()([]VpnRouteable) @@ -992,7 +992,7 @@ type Windows10VpnConfigurationable interface { SetIdentityCertificate(value WindowsCertificateProfileBaseable)() SetMicrosoftTunnelSiteId(value *string)() SetOnlyAssociatedAppsCanUseConnection(value *bool)() - SetProfileTarget(value *Windows10VpnProfileTarget)() + SetProfileTarget(value *Windows10VpnConfiguration_profileTarget)() SetProxyServer(value Windows10VpnProxyServerable)() SetRememberUserCredentials(value *bool)() SetRoutes(value []VpnRouteable)() diff --git a/models/windows10_vpn_configuration_profile_target.go b/models/windows10_vpn_configuration_profile_target.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows10_vpn_profile_target.go b/models/windows10_vpn_profile_target.go deleted file mode 100644 index bd8e2bb2755..00000000000 --- a/models/windows10_vpn_profile_target.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// Windows 10 VPN profile target types. -type Windows10VpnProfileTarget int - -const ( - // User targeted VPN profile. - USER_WINDOWS10VPNPROFILETARGET Windows10VpnProfileTarget = iota - // Device targeted VPN profile. - DEVICE_WINDOWS10VPNPROFILETARGET - // AutoPilot Device targeted VPN profile. - AUTOPILOTDEVICE_WINDOWS10VPNPROFILETARGET -) - -func (i Windows10VpnProfileTarget) String() string { - return []string{"user", "device", "autoPilotDevice"}[i] -} -func ParseWindows10VpnProfileTarget(v string) (any, error) { - result := USER_WINDOWS10VPNPROFILETARGET - switch v { - case "user": - result = USER_WINDOWS10VPNPROFILETARGET - case "device": - result = DEVICE_WINDOWS10VPNPROFILETARGET - case "autoPilotDevice": - result = AUTOPILOTDEVICE_WINDOWS10VPNPROFILETARGET - default: - return 0, errors.New("Unknown Windows10VpnProfileTarget value: " + v) - } - return &result, nil -} -func SerializeWindows10VpnProfileTarget(values []Windows10VpnProfileTarget) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i Windows10VpnProfileTarget) isMultiValue() bool { - return false -} diff --git a/models/windows81_s_c_e_p_certificate_profile.go b/models/windows81_s_c_e_p_certificate_profile.go index 35ffb390031..ffd007702f8 100644 --- a/models/windows81_s_c_e_p_certificate_profile.go +++ b/models/windows81_s_c_e_p_certificate_profile.go @@ -22,13 +22,13 @@ func CreateWindows81SCEPCertificateProfileFromDiscriminatorValue(parseNode i878a return NewWindows81SCEPCertificateProfile(), nil } // GetCertificateStore gets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *Windows81SCEPCertificateProfile) GetCertificateStore()(*CertificateStore) { +func (m *Windows81SCEPCertificateProfile) GetCertificateStore()(*Windows81SCEPCertificateProfile_certificateStore) { val, err := m.GetBackingStore().Get("certificateStore") if err != nil { panic(err) } if val != nil { - return val.(*CertificateStore) + return val.(*Windows81SCEPCertificateProfile_certificateStore) } return nil } @@ -36,12 +36,12 @@ func (m *Windows81SCEPCertificateProfile) GetCertificateStore()(*CertificateStor func (m *Windows81SCEPCertificateProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Windows81CertificateProfileBase.GetFieldDeserializers() res["certificateStore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCertificateStore) + val, err := n.GetEnumValue(ParseWindows81SCEPCertificateProfile_certificateStore) if err != nil { return err } if val != nil { - m.SetCertificateStore(val.(*CertificateStore)) + m.SetCertificateStore(val.(*Windows81SCEPCertificateProfile_certificateStore)) } return nil } @@ -300,7 +300,7 @@ func (m *Windows81SCEPCertificateProfile) Serialize(writer i878a80d2330e89d26896 return nil } // SetCertificateStore sets the certificateStore property value. Target store certificate. Possible values are: user, machine. -func (m *Windows81SCEPCertificateProfile) SetCertificateStore(value *CertificateStore)() { +func (m *Windows81SCEPCertificateProfile) SetCertificateStore(value *Windows81SCEPCertificateProfile_certificateStore)() { err := m.GetBackingStore().Set("certificateStore", value) if err != nil { panic(err) @@ -366,7 +366,7 @@ func (m *Windows81SCEPCertificateProfile) SetSubjectNameFormatString(value *stri type Windows81SCEPCertificateProfileable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable Windows81CertificateProfileBaseable - GetCertificateStore()(*CertificateStore) + GetCertificateStore()(*Windows81SCEPCertificateProfile_certificateStore) GetHashAlgorithm()(*HashAlgorithms) GetKeySize()(*KeySize) GetKeyUsage()(*KeyUsages) @@ -375,7 +375,7 @@ type Windows81SCEPCertificateProfileable interface { GetScepServerUrls()([]string) GetSubjectAlternativeNameFormatString()(*string) GetSubjectNameFormatString()(*string) - SetCertificateStore(value *CertificateStore)() + SetCertificateStore(value *Windows81SCEPCertificateProfile_certificateStore)() SetHashAlgorithm(value *HashAlgorithms)() SetKeySize(value *KeySize)() SetKeyUsage(value *KeyUsages)() diff --git a/models/windows81_s_c_e_p_certificate_profile_certificate_store.go b/models/windows81_s_c_e_p_certificate_profile_certificate_store.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_certificate_profile_base.go b/models/windows_certificate_profile_base.go index 4382f51ad78..e829ba22175 100644 --- a/models/windows_certificate_profile_base.go +++ b/models/windows_certificate_profile_base.go @@ -115,12 +115,12 @@ func (m *WindowsCertificateProfileBase) GetFieldDeserializers()(map[string]func( return nil } res["subjectAlternativeNameType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSubjectAlternativeNameType) + val, err := n.GetEnumValue(ParseWindowsCertificateProfileBase_subjectAlternativeNameType) if err != nil { return err } if val != nil { - m.SetSubjectAlternativeNameType(val.(*SubjectAlternativeNameType)) + m.SetSubjectAlternativeNameType(val.(*WindowsCertificateProfileBase_subjectAlternativeNameType)) } return nil } @@ -159,13 +159,13 @@ func (m *WindowsCertificateProfileBase) GetRenewalThresholdPercentage()(*int32) return nil } // GetSubjectAlternativeNameType gets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *WindowsCertificateProfileBase) GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) { +func (m *WindowsCertificateProfileBase) GetSubjectAlternativeNameType()(*WindowsCertificateProfileBase_subjectAlternativeNameType) { val, err := m.GetBackingStore().Get("subjectAlternativeNameType") if err != nil { panic(err) } if val != nil { - return val.(*SubjectAlternativeNameType) + return val.(*WindowsCertificateProfileBase_subjectAlternativeNameType) } return nil } @@ -257,7 +257,7 @@ func (m *WindowsCertificateProfileBase) SetRenewalThresholdPercentage(value *int } } // SetSubjectAlternativeNameType sets the subjectAlternativeNameType property value. Certificate Subject Alternative Name Type. Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService, universalResourceIdentifier. -func (m *WindowsCertificateProfileBase) SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() { +func (m *WindowsCertificateProfileBase) SetSubjectAlternativeNameType(value *WindowsCertificateProfileBase_subjectAlternativeNameType)() { err := m.GetBackingStore().Set("subjectAlternativeNameType", value) if err != nil { panic(err) @@ -278,12 +278,12 @@ type WindowsCertificateProfileBaseable interface { GetCertificateValidityPeriodValue()(*int32) GetKeyStorageProvider()(*KeyStorageProviderOption) GetRenewalThresholdPercentage()(*int32) - GetSubjectAlternativeNameType()(*SubjectAlternativeNameType) + GetSubjectAlternativeNameType()(*WindowsCertificateProfileBase_subjectAlternativeNameType) GetSubjectNameFormat()(*SubjectNameFormat) SetCertificateValidityPeriodScale(value *CertificateValidityPeriodScale)() SetCertificateValidityPeriodValue(value *int32)() SetKeyStorageProvider(value *KeyStorageProviderOption)() SetRenewalThresholdPercentage(value *int32)() - SetSubjectAlternativeNameType(value *SubjectAlternativeNameType)() + SetSubjectAlternativeNameType(value *WindowsCertificateProfileBase_subjectAlternativeNameType)() SetSubjectNameFormat(value *SubjectNameFormat)() } diff --git a/models/windows_certificate_profile_base_subject_alternative_name_type.go b/models/windows_certificate_profile_base_subject_alternative_name_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_defender_product_status.go b/models/windows_defender_product_status.go deleted file mode 100644 index 15255d0ce29..00000000000 --- a/models/windows_defender_product_status.go +++ /dev/null @@ -1,145 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// Product Status of Windows Defender -type WindowsDefenderProductStatus int - -const ( - // No status - NOSTATUS_WINDOWSDEFENDERPRODUCTSTATUS WindowsDefenderProductStatus = iota - // Service not running - SERVICENOTRUNNING_WINDOWSDEFENDERPRODUCTSTATUS - // Service started without any malware protection engine - SERVICESTARTEDWITHOUTMALWAREPROTECTION_WINDOWSDEFENDERPRODUCTSTATUS - // Pending full scan due to threat action - PENDINGFULLSCANDUETOTHREATACTION_WINDOWSDEFENDERPRODUCTSTATUS - // Pending reboot due to threat action - PENDINGREBOOTDUETOTHREATACTION_WINDOWSDEFENDERPRODUCTSTATUS - // Pending manual steps due to threat action - PENDINGMANUALSTEPSDUETOTHREATACTION_WINDOWSDEFENDERPRODUCTSTATUS - // AV signatures out of date - AVSIGNATURESOUTOFDATE_WINDOWSDEFENDERPRODUCTSTATUS - // AS signatures out of date - ASSIGNATURESOUTOFDATE_WINDOWSDEFENDERPRODUCTSTATUS - // No quick scan has happened for a specified period - NOQUICKSCANHAPPENEDFORSPECIFIEDPERIOD_WINDOWSDEFENDERPRODUCTSTATUS - // No full scan has happened for a specified period - NOFULLSCANHAPPENEDFORSPECIFIEDPERIOD_WINDOWSDEFENDERPRODUCTSTATUS - // System initiated scan in progress - SYSTEMINITIATEDSCANINPROGRESS_WINDOWSDEFENDERPRODUCTSTATUS - // System initiated clean in progress - SYSTEMINITIATEDCLEANINPROGRESS_WINDOWSDEFENDERPRODUCTSTATUS - // There are samples pending submission - SAMPLESPENDINGSUBMISSION_WINDOWSDEFENDERPRODUCTSTATUS - // Product running in evaluation mode - PRODUCTRUNNINGINEVALUATIONMODE_WINDOWSDEFENDERPRODUCTSTATUS - // Product running in non-genuine Windows mode - PRODUCTRUNNINGINNONGENUINEMODE_WINDOWSDEFENDERPRODUCTSTATUS - // Product expired - PRODUCTEXPIRED_WINDOWSDEFENDERPRODUCTSTATUS - // Off-line scan required - OFFLINESCANREQUIRED_WINDOWSDEFENDERPRODUCTSTATUS - // Service is shutting down as part of system shutdown - SERVICESHUTDOWNASPARTOFSYSTEMSHUTDOWN_WINDOWSDEFENDERPRODUCTSTATUS - // Threat remediation failed critically - THREATREMEDIATIONFAILEDCRITICALLY_WINDOWSDEFENDERPRODUCTSTATUS - // Threat remediation failed non-critically - THREATREMEDIATIONFAILEDNONCRITICALLY_WINDOWSDEFENDERPRODUCTSTATUS - // No status flags set (well initialized state) - NOSTATUSFLAGSSET_WINDOWSDEFENDERPRODUCTSTATUS - // Platform is out of date - PLATFORMOUTOFDATE_WINDOWSDEFENDERPRODUCTSTATUS - // Platform update is in progress - PLATFORMUPDATEINPROGRESS_WINDOWSDEFENDERPRODUCTSTATUS - // Platform is about to be outdated - PLATFORMABOUTTOBEOUTDATED_WINDOWSDEFENDERPRODUCTSTATUS - // Signature or platform end of life is past or is impending - SIGNATUREORPLATFORMENDOFLIFEISPASTORISIMPENDING_WINDOWSDEFENDERPRODUCTSTATUS - // Windows SMode signatures still in use on non-Win10S install - WINDOWSSMODESIGNATURESINUSEONNONWIN10SINSTALL_WINDOWSDEFENDERPRODUCTSTATUS -) - -func (i WindowsDefenderProductStatus) String() string { - var values []string - for p := WindowsDefenderProductStatus(1); p <= WINDOWSSMODESIGNATURESINUSEONNONWIN10SINSTALL_WINDOWSDEFENDERPRODUCTSTATUS; p <<= 1 { - if i&p == p { - values = append(values, []string{"noStatus", "serviceNotRunning", "serviceStartedWithoutMalwareProtection", "pendingFullScanDueToThreatAction", "pendingRebootDueToThreatAction", "pendingManualStepsDueToThreatAction", "avSignaturesOutOfDate", "asSignaturesOutOfDate", "noQuickScanHappenedForSpecifiedPeriod", "noFullScanHappenedForSpecifiedPeriod", "systemInitiatedScanInProgress", "systemInitiatedCleanInProgress", "samplesPendingSubmission", "productRunningInEvaluationMode", "productRunningInNonGenuineMode", "productExpired", "offlineScanRequired", "serviceShutdownAsPartOfSystemShutdown", "threatRemediationFailedCritically", "threatRemediationFailedNonCritically", "noStatusFlagsSet", "platformOutOfDate", "platformUpdateInProgress", "platformAboutToBeOutdated", "signatureOrPlatformEndOfLifeIsPastOrIsImpending", "windowsSModeSignaturesInUseOnNonWin10SInstall"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseWindowsDefenderProductStatus(v string) (any, error) { - var result WindowsDefenderProductStatus - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "noStatus": - result |= NOSTATUS_WINDOWSDEFENDERPRODUCTSTATUS - case "serviceNotRunning": - result |= SERVICENOTRUNNING_WINDOWSDEFENDERPRODUCTSTATUS - case "serviceStartedWithoutMalwareProtection": - result |= SERVICESTARTEDWITHOUTMALWAREPROTECTION_WINDOWSDEFENDERPRODUCTSTATUS - case "pendingFullScanDueToThreatAction": - result |= PENDINGFULLSCANDUETOTHREATACTION_WINDOWSDEFENDERPRODUCTSTATUS - case "pendingRebootDueToThreatAction": - result |= PENDINGREBOOTDUETOTHREATACTION_WINDOWSDEFENDERPRODUCTSTATUS - case "pendingManualStepsDueToThreatAction": - result |= PENDINGMANUALSTEPSDUETOTHREATACTION_WINDOWSDEFENDERPRODUCTSTATUS - case "avSignaturesOutOfDate": - result |= AVSIGNATURESOUTOFDATE_WINDOWSDEFENDERPRODUCTSTATUS - case "asSignaturesOutOfDate": - result |= ASSIGNATURESOUTOFDATE_WINDOWSDEFENDERPRODUCTSTATUS - case "noQuickScanHappenedForSpecifiedPeriod": - result |= NOQUICKSCANHAPPENEDFORSPECIFIEDPERIOD_WINDOWSDEFENDERPRODUCTSTATUS - case "noFullScanHappenedForSpecifiedPeriod": - result |= NOFULLSCANHAPPENEDFORSPECIFIEDPERIOD_WINDOWSDEFENDERPRODUCTSTATUS - case "systemInitiatedScanInProgress": - result |= SYSTEMINITIATEDSCANINPROGRESS_WINDOWSDEFENDERPRODUCTSTATUS - case "systemInitiatedCleanInProgress": - result |= SYSTEMINITIATEDCLEANINPROGRESS_WINDOWSDEFENDERPRODUCTSTATUS - case "samplesPendingSubmission": - result |= SAMPLESPENDINGSUBMISSION_WINDOWSDEFENDERPRODUCTSTATUS - case "productRunningInEvaluationMode": - result |= PRODUCTRUNNINGINEVALUATIONMODE_WINDOWSDEFENDERPRODUCTSTATUS - case "productRunningInNonGenuineMode": - result |= PRODUCTRUNNINGINNONGENUINEMODE_WINDOWSDEFENDERPRODUCTSTATUS - case "productExpired": - result |= PRODUCTEXPIRED_WINDOWSDEFENDERPRODUCTSTATUS - case "offlineScanRequired": - result |= OFFLINESCANREQUIRED_WINDOWSDEFENDERPRODUCTSTATUS - case "serviceShutdownAsPartOfSystemShutdown": - result |= SERVICESHUTDOWNASPARTOFSYSTEMSHUTDOWN_WINDOWSDEFENDERPRODUCTSTATUS - case "threatRemediationFailedCritically": - result |= THREATREMEDIATIONFAILEDCRITICALLY_WINDOWSDEFENDERPRODUCTSTATUS - case "threatRemediationFailedNonCritically": - result |= THREATREMEDIATIONFAILEDNONCRITICALLY_WINDOWSDEFENDERPRODUCTSTATUS - case "noStatusFlagsSet": - result |= NOSTATUSFLAGSSET_WINDOWSDEFENDERPRODUCTSTATUS - case "platformOutOfDate": - result |= PLATFORMOUTOFDATE_WINDOWSDEFENDERPRODUCTSTATUS - case "platformUpdateInProgress": - result |= PLATFORMUPDATEINPROGRESS_WINDOWSDEFENDERPRODUCTSTATUS - case "platformAboutToBeOutdated": - result |= PLATFORMABOUTTOBEOUTDATED_WINDOWSDEFENDERPRODUCTSTATUS - case "signatureOrPlatformEndOfLifeIsPastOrIsImpending": - result |= SIGNATUREORPLATFORMENDOFLIFEISPASTORISIMPENDING_WINDOWSDEFENDERPRODUCTSTATUS - case "windowsSModeSignaturesInUseOnNonWin10SInstall": - result |= WINDOWSSMODESIGNATURESINUSEONNONWIN10SINSTALL_WINDOWSDEFENDERPRODUCTSTATUS - default: - return 0, errors.New("Unknown WindowsDefenderProductStatus value: " + v) - } - } - return &result, nil -} -func SerializeWindowsDefenderProductStatus(values []WindowsDefenderProductStatus) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WindowsDefenderProductStatus) isMultiValue() bool { - return true -} diff --git a/models/windows_device_health_state.go b/models/windows_device_health_state.go deleted file mode 100644 index f51e55d962f..00000000000 --- a/models/windows_device_health_state.go +++ /dev/null @@ -1,65 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// Computer endpoint protection state -type WindowsDeviceHealthState int - -const ( - // Computer is clean and no action is required - CLEAN_WINDOWSDEVICEHEALTHSTATE WindowsDeviceHealthState = iota - // Computer is in pending full scan state - FULLSCANPENDING_WINDOWSDEVICEHEALTHSTATE - // Computer is in pending reboot state - REBOOTPENDING_WINDOWSDEVICEHEALTHSTATE - // Computer is in pending manual steps state - MANUALSTEPSPENDING_WINDOWSDEVICEHEALTHSTATE - // Computer is in pending offline scan state - OFFLINESCANPENDING_WINDOWSDEVICEHEALTHSTATE - // Computer is in critical failure state - CRITICAL_WINDOWSDEVICEHEALTHSTATE -) - -func (i WindowsDeviceHealthState) String() string { - var values []string - for p := WindowsDeviceHealthState(1); p <= CRITICAL_WINDOWSDEVICEHEALTHSTATE; p <<= 1 { - if i&p == p { - values = append(values, []string{"clean", "fullScanPending", "rebootPending", "manualStepsPending", "offlineScanPending", "critical"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseWindowsDeviceHealthState(v string) (any, error) { - var result WindowsDeviceHealthState - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "clean": - result |= CLEAN_WINDOWSDEVICEHEALTHSTATE - case "fullScanPending": - result |= FULLSCANPENDING_WINDOWSDEVICEHEALTHSTATE - case "rebootPending": - result |= REBOOTPENDING_WINDOWSDEVICEHEALTHSTATE - case "manualStepsPending": - result |= MANUALSTEPSPENDING_WINDOWSDEVICEHEALTHSTATE - case "offlineScanPending": - result |= OFFLINESCANPENDING_WINDOWSDEVICEHEALTHSTATE - case "critical": - result |= CRITICAL_WINDOWSDEVICEHEALTHSTATE - default: - return 0, errors.New("Unknown WindowsDeviceHealthState value: " + v) - } - } - return &result, nil -} -func SerializeWindowsDeviceHealthState(values []WindowsDeviceHealthState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WindowsDeviceHealthState) isMultiValue() bool { - return true -} diff --git a/models/windows_device_malware_state.go b/models/windows_device_malware_state.go index b8dfd65afee..81a5994f21e 100644 --- a/models/windows_device_malware_state.go +++ b/models/windows_device_malware_state.go @@ -32,13 +32,13 @@ func (m *WindowsDeviceMalwareState) GetAdditionalInformationUrl()(*string) { return nil } // GetCategory gets the category property value. Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. -func (m *WindowsDeviceMalwareState) GetCategory()(*WindowsMalwareCategory) { +func (m *WindowsDeviceMalwareState) GetCategory()(*WindowsDeviceMalwareState_category) { val, err := m.GetBackingStore().Get("category") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareCategory) + return val.(*WindowsDeviceMalwareState_category) } return nil } @@ -65,13 +65,13 @@ func (m *WindowsDeviceMalwareState) GetDisplayName()(*string) { return nil } // GetExecutionState gets the executionState property value. Execution status of the malware like blocked/executing etc. Possible values are: unknown, blocked, allowed, running, notRunning. -func (m *WindowsDeviceMalwareState) GetExecutionState()(*WindowsMalwareExecutionState) { +func (m *WindowsDeviceMalwareState) GetExecutionState()(*WindowsDeviceMalwareState_executionState) { val, err := m.GetBackingStore().Get("executionState") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareExecutionState) + return val.(*WindowsDeviceMalwareState_executionState) } return nil } @@ -89,12 +89,12 @@ func (m *WindowsDeviceMalwareState) GetFieldDeserializers()(map[string]func(i878 return nil } res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareCategory) + val, err := n.GetEnumValue(ParseWindowsDeviceMalwareState_category) if err != nil { return err } if val != nil { - m.SetCategory(val.(*WindowsMalwareCategory)) + m.SetCategory(val.(*WindowsDeviceMalwareState_category)) } return nil } @@ -119,12 +119,12 @@ func (m *WindowsDeviceMalwareState) GetFieldDeserializers()(map[string]func(i878 return nil } res["executionState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareExecutionState) + val, err := n.GetEnumValue(ParseWindowsDeviceMalwareState_executionState) if err != nil { return err } if val != nil { - m.SetExecutionState(val.(*WindowsMalwareExecutionState)) + m.SetExecutionState(val.(*WindowsDeviceMalwareState_executionState)) } return nil } @@ -149,32 +149,32 @@ func (m *WindowsDeviceMalwareState) GetFieldDeserializers()(map[string]func(i878 return nil } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareSeverity) + val, err := n.GetEnumValue(ParseWindowsDeviceMalwareState_severity) if err != nil { return err } if val != nil { - m.SetSeverity(val.(*WindowsMalwareSeverity)) + m.SetSeverity(val.(*WindowsDeviceMalwareState_severity)) } return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareState) + val, err := n.GetEnumValue(ParseWindowsDeviceMalwareState_state) if err != nil { return err } if val != nil { - m.SetState(val.(*WindowsMalwareState)) + m.SetState(val.(*WindowsDeviceMalwareState_state)) } return nil } res["threatState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareThreatState) + val, err := n.GetEnumValue(ParseWindowsDeviceMalwareState_threatState) if err != nil { return err } if val != nil { - m.SetThreatState(val.(*WindowsMalwareThreatState)) + m.SetThreatState(val.(*WindowsDeviceMalwareState_threatState)) } return nil } @@ -203,35 +203,35 @@ func (m *WindowsDeviceMalwareState) GetLastStateChangeDateTime()(*i336074805fc85 return nil } // GetSeverity gets the severity property value. Severity of the malware. Possible values are: unknown, low, moderate, high, severe. -func (m *WindowsDeviceMalwareState) GetSeverity()(*WindowsMalwareSeverity) { +func (m *WindowsDeviceMalwareState) GetSeverity()(*WindowsDeviceMalwareState_severity) { val, err := m.GetBackingStore().Get("severity") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareSeverity) + return val.(*WindowsDeviceMalwareState_severity) } return nil } // GetState gets the state property value. Current status of the malware like cleaned/quarantined/allowed etc. Possible values are: unknown, detected, cleaned, quarantined, removed, allowed, blocked, cleanFailed, quarantineFailed, removeFailed, allowFailed, abandoned, blockFailed. -func (m *WindowsDeviceMalwareState) GetState()(*WindowsMalwareState) { +func (m *WindowsDeviceMalwareState) GetState()(*WindowsDeviceMalwareState_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareState) + return val.(*WindowsDeviceMalwareState_state) } return nil } // GetThreatState gets the threatState property value. Current status of the malware like cleaned/quarantined/allowed etc. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. -func (m *WindowsDeviceMalwareState) GetThreatState()(*WindowsMalwareThreatState) { +func (m *WindowsDeviceMalwareState) GetThreatState()(*WindowsDeviceMalwareState_threatState) { val, err := m.GetBackingStore().Get("threatState") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareThreatState) + return val.(*WindowsDeviceMalwareState_threatState) } return nil } @@ -316,7 +316,7 @@ func (m *WindowsDeviceMalwareState) SetAdditionalInformationUrl(value *string)() } } // SetCategory sets the category property value. Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. -func (m *WindowsDeviceMalwareState) SetCategory(value *WindowsMalwareCategory)() { +func (m *WindowsDeviceMalwareState) SetCategory(value *WindowsDeviceMalwareState_category)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) @@ -337,7 +337,7 @@ func (m *WindowsDeviceMalwareState) SetDisplayName(value *string)() { } } // SetExecutionState sets the executionState property value. Execution status of the malware like blocked/executing etc. Possible values are: unknown, blocked, allowed, running, notRunning. -func (m *WindowsDeviceMalwareState) SetExecutionState(value *WindowsMalwareExecutionState)() { +func (m *WindowsDeviceMalwareState) SetExecutionState(value *WindowsDeviceMalwareState_executionState)() { err := m.GetBackingStore().Set("executionState", value) if err != nil { panic(err) @@ -358,21 +358,21 @@ func (m *WindowsDeviceMalwareState) SetLastStateChangeDateTime(value *i336074805 } } // SetSeverity sets the severity property value. Severity of the malware. Possible values are: unknown, low, moderate, high, severe. -func (m *WindowsDeviceMalwareState) SetSeverity(value *WindowsMalwareSeverity)() { +func (m *WindowsDeviceMalwareState) SetSeverity(value *WindowsDeviceMalwareState_severity)() { err := m.GetBackingStore().Set("severity", value) if err != nil { panic(err) } } // SetState sets the state property value. Current status of the malware like cleaned/quarantined/allowed etc. Possible values are: unknown, detected, cleaned, quarantined, removed, allowed, blocked, cleanFailed, quarantineFailed, removeFailed, allowFailed, abandoned, blockFailed. -func (m *WindowsDeviceMalwareState) SetState(value *WindowsMalwareState)() { +func (m *WindowsDeviceMalwareState) SetState(value *WindowsDeviceMalwareState_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) } } // SetThreatState sets the threatState property value. Current status of the malware like cleaned/quarantined/allowed etc. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. -func (m *WindowsDeviceMalwareState) SetThreatState(value *WindowsMalwareThreatState)() { +func (m *WindowsDeviceMalwareState) SetThreatState(value *WindowsDeviceMalwareState_threatState)() { err := m.GetBackingStore().Set("threatState", value) if err != nil { panic(err) @@ -383,23 +383,23 @@ type WindowsDeviceMalwareStateable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAdditionalInformationUrl()(*string) - GetCategory()(*WindowsMalwareCategory) + GetCategory()(*WindowsDeviceMalwareState_category) GetDetectionCount()(*int32) GetDisplayName()(*string) - GetExecutionState()(*WindowsMalwareExecutionState) + GetExecutionState()(*WindowsDeviceMalwareState_executionState) GetInitialDetectionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastStateChangeDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetSeverity()(*WindowsMalwareSeverity) - GetState()(*WindowsMalwareState) - GetThreatState()(*WindowsMalwareThreatState) + GetSeverity()(*WindowsDeviceMalwareState_severity) + GetState()(*WindowsDeviceMalwareState_state) + GetThreatState()(*WindowsDeviceMalwareState_threatState) SetAdditionalInformationUrl(value *string)() - SetCategory(value *WindowsMalwareCategory)() + SetCategory(value *WindowsDeviceMalwareState_category)() SetDetectionCount(value *int32)() SetDisplayName(value *string)() - SetExecutionState(value *WindowsMalwareExecutionState)() + SetExecutionState(value *WindowsDeviceMalwareState_executionState)() SetInitialDetectionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastStateChangeDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetSeverity(value *WindowsMalwareSeverity)() - SetState(value *WindowsMalwareState)() - SetThreatState(value *WindowsMalwareThreatState)() + SetSeverity(value *WindowsDeviceMalwareState_severity)() + SetState(value *WindowsDeviceMalwareState_state)() + SetThreatState(value *WindowsDeviceMalwareState_threatState)() } diff --git a/models/windows_device_malware_state_category.go b/models/windows_device_malware_state_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_device_malware_state_execution_state.go b/models/windows_device_malware_state_execution_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_device_malware_state_severity.go b/models/windows_device_malware_state_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_device_malware_state_state.go b/models/windows_device_malware_state_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_device_malware_state_threat_state.go b/models/windows_device_malware_state_threat_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_hello_for_business_authentication_method.go b/models/windows_hello_for_business_authentication_method.go index 63b3e81931a..b37c2bdcfb6 100644 --- a/models/windows_hello_for_business_authentication_method.go +++ b/models/windows_hello_for_business_authentication_method.go @@ -89,25 +89,25 @@ func (m *WindowsHelloForBusinessAuthenticationMethod) GetFieldDeserializers()(ma return nil } res["keyStrength"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAuthenticationMethodKeyStrength) + val, err := n.GetEnumValue(ParseWindowsHelloForBusinessAuthenticationMethod_keyStrength) if err != nil { return err } if val != nil { - m.SetKeyStrength(val.(*AuthenticationMethodKeyStrength)) + m.SetKeyStrength(val.(*WindowsHelloForBusinessAuthenticationMethod_keyStrength)) } return nil } return res } // GetKeyStrength gets the keyStrength property value. Key strength of this Windows Hello for Business key. Possible values are: normal, weak, unknown. -func (m *WindowsHelloForBusinessAuthenticationMethod) GetKeyStrength()(*AuthenticationMethodKeyStrength) { +func (m *WindowsHelloForBusinessAuthenticationMethod) GetKeyStrength()(*WindowsHelloForBusinessAuthenticationMethod_keyStrength) { val, err := m.GetBackingStore().Get("keyStrength") if err != nil { panic(err) } if val != nil { - return val.(*AuthenticationMethodKeyStrength) + return val.(*WindowsHelloForBusinessAuthenticationMethod_keyStrength) } return nil } @@ -166,7 +166,7 @@ func (m *WindowsHelloForBusinessAuthenticationMethod) SetDisplayName(value *stri } } // SetKeyStrength sets the keyStrength property value. Key strength of this Windows Hello for Business key. Possible values are: normal, weak, unknown. -func (m *WindowsHelloForBusinessAuthenticationMethod) SetKeyStrength(value *AuthenticationMethodKeyStrength)() { +func (m *WindowsHelloForBusinessAuthenticationMethod) SetKeyStrength(value *WindowsHelloForBusinessAuthenticationMethod_keyStrength)() { err := m.GetBackingStore().Set("keyStrength", value) if err != nil { panic(err) @@ -179,9 +179,9 @@ type WindowsHelloForBusinessAuthenticationMethodable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDevice()(Deviceable) GetDisplayName()(*string) - GetKeyStrength()(*AuthenticationMethodKeyStrength) + GetKeyStrength()(*WindowsHelloForBusinessAuthenticationMethod_keyStrength) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDevice(value Deviceable)() SetDisplayName(value *string)() - SetKeyStrength(value *AuthenticationMethodKeyStrength)() + SetKeyStrength(value *WindowsHelloForBusinessAuthenticationMethod_keyStrength)() } diff --git a/models/windows_hello_for_business_authentication_method_key_strength.go b/models/windows_hello_for_business_authentication_method_key_strength.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_malware_information.go b/models/windows_malware_information.go index 694a4e92b4a..189eff9c7c1 100644 --- a/models/windows_malware_information.go +++ b/models/windows_malware_information.go @@ -32,13 +32,13 @@ func (m *WindowsMalwareInformation) GetAdditionalInformationUrl()(*string) { return nil } // GetCategory gets the category property value. Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. default value is invalid. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. -func (m *WindowsMalwareInformation) GetCategory()(*WindowsMalwareCategory) { +func (m *WindowsMalwareInformation) GetCategory()(*WindowsMalwareInformation_category) { val, err := m.GetBackingStore().Get("category") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareCategory) + return val.(*WindowsMalwareInformation_category) } return nil } @@ -78,12 +78,12 @@ func (m *WindowsMalwareInformation) GetFieldDeserializers()(map[string]func(i878 return nil } res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareCategory) + val, err := n.GetEnumValue(ParseWindowsMalwareInformation_category) if err != nil { return err } if val != nil { - m.SetCategory(val.(*WindowsMalwareCategory)) + m.SetCategory(val.(*WindowsMalwareInformation_category)) } return nil } @@ -124,12 +124,12 @@ func (m *WindowsMalwareInformation) GetFieldDeserializers()(map[string]func(i878 return nil } res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsMalwareSeverity) + val, err := n.GetEnumValue(ParseWindowsMalwareInformation_severity) if err != nil { return err } if val != nil { - m.SetSeverity(val.(*WindowsMalwareSeverity)) + m.SetSeverity(val.(*WindowsMalwareInformation_severity)) } return nil } @@ -147,13 +147,13 @@ func (m *WindowsMalwareInformation) GetLastDetectionDateTime()(*i336074805fc8539 return nil } // GetSeverity gets the severity property value. Severity of the malware. Possible values are: unknown, low, moderate, high, severe. default is unknown. Possible values are: unknown, low, moderate, high, severe. -func (m *WindowsMalwareInformation) GetSeverity()(*WindowsMalwareSeverity) { +func (m *WindowsMalwareInformation) GetSeverity()(*WindowsMalwareInformation_severity) { val, err := m.GetBackingStore().Get("severity") if err != nil { panic(err) } if val != nil { - return val.(*WindowsMalwareSeverity) + return val.(*WindowsMalwareInformation_severity) } return nil } @@ -217,7 +217,7 @@ func (m *WindowsMalwareInformation) SetAdditionalInformationUrl(value *string)() } } // SetCategory sets the category property value. Category of the malware. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. default value is invalid. Possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule. -func (m *WindowsMalwareInformation) SetCategory(value *WindowsMalwareCategory)() { +func (m *WindowsMalwareInformation) SetCategory(value *WindowsMalwareInformation_category)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) @@ -245,7 +245,7 @@ func (m *WindowsMalwareInformation) SetLastDetectionDateTime(value *i336074805fc } } // SetSeverity sets the severity property value. Severity of the malware. Possible values are: unknown, low, moderate, high, severe. default is unknown. Possible values are: unknown, low, moderate, high, severe. -func (m *WindowsMalwareInformation) SetSeverity(value *WindowsMalwareSeverity)() { +func (m *WindowsMalwareInformation) SetSeverity(value *WindowsMalwareInformation_severity)() { err := m.GetBackingStore().Set("severity", value) if err != nil { panic(err) @@ -256,15 +256,15 @@ type WindowsMalwareInformationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAdditionalInformationUrl()(*string) - GetCategory()(*WindowsMalwareCategory) + GetCategory()(*WindowsMalwareInformation_category) GetDeviceMalwareStates()([]MalwareStateForWindowsDeviceable) GetDisplayName()(*string) GetLastDetectionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetSeverity()(*WindowsMalwareSeverity) + GetSeverity()(*WindowsMalwareInformation_severity) SetAdditionalInformationUrl(value *string)() - SetCategory(value *WindowsMalwareCategory)() + SetCategory(value *WindowsMalwareInformation_category)() SetDeviceMalwareStates(value []MalwareStateForWindowsDeviceable)() SetDisplayName(value *string)() SetLastDetectionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetSeverity(value *WindowsMalwareSeverity)() + SetSeverity(value *WindowsMalwareInformation_severity)() } diff --git a/models/windows_malware_information_category.go b/models/windows_malware_information_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_malware_information_severity.go b/models/windows_malware_information_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_malware_state.go b/models/windows_malware_state.go deleted file mode 100644 index 728bdf07579..00000000000 --- a/models/windows_malware_state.go +++ /dev/null @@ -1,83 +0,0 @@ -package models -import ( - "errors" -) -// Malware current status -type WindowsMalwareState int - -const ( - // Unknown - UNKNOWN_WINDOWSMALWARESTATE WindowsMalwareState = iota - // Detected - DETECTED_WINDOWSMALWARESTATE - // Cleaned - CLEANED_WINDOWSMALWARESTATE - // Quarantined - QUARANTINED_WINDOWSMALWARESTATE - // Removed - REMOVED_WINDOWSMALWARESTATE - // Allowed - ALLOWED_WINDOWSMALWARESTATE - // Blocked - BLOCKED_WINDOWSMALWARESTATE - // Clean failed - CLEANFAILED_WINDOWSMALWARESTATE - // Quarantine failed - QUARANTINEFAILED_WINDOWSMALWARESTATE - // Remove failed - REMOVEFAILED_WINDOWSMALWARESTATE - // Allow failed - ALLOWFAILED_WINDOWSMALWARESTATE - // Abandoned - ABANDONED_WINDOWSMALWARESTATE - // Block failed - BLOCKFAILED_WINDOWSMALWARESTATE -) - -func (i WindowsMalwareState) String() string { - return []string{"unknown", "detected", "cleaned", "quarantined", "removed", "allowed", "blocked", "cleanFailed", "quarantineFailed", "removeFailed", "allowFailed", "abandoned", "blockFailed"}[i] -} -func ParseWindowsMalwareState(v string) (any, error) { - result := UNKNOWN_WINDOWSMALWARESTATE - switch v { - case "unknown": - result = UNKNOWN_WINDOWSMALWARESTATE - case "detected": - result = DETECTED_WINDOWSMALWARESTATE - case "cleaned": - result = CLEANED_WINDOWSMALWARESTATE - case "quarantined": - result = QUARANTINED_WINDOWSMALWARESTATE - case "removed": - result = REMOVED_WINDOWSMALWARESTATE - case "allowed": - result = ALLOWED_WINDOWSMALWARESTATE - case "blocked": - result = BLOCKED_WINDOWSMALWARESTATE - case "cleanFailed": - result = CLEANFAILED_WINDOWSMALWARESTATE - case "quarantineFailed": - result = QUARANTINEFAILED_WINDOWSMALWARESTATE - case "removeFailed": - result = REMOVEFAILED_WINDOWSMALWARESTATE - case "allowFailed": - result = ALLOWFAILED_WINDOWSMALWARESTATE - case "abandoned": - result = ABANDONED_WINDOWSMALWARESTATE - case "blockFailed": - result = BLOCKFAILED_WINDOWSMALWARESTATE - default: - return 0, errors.New("Unknown WindowsMalwareState value: " + v) - } - return &result, nil -} -func SerializeWindowsMalwareState(values []WindowsMalwareState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WindowsMalwareState) isMultiValue() bool { - return false -} diff --git a/models/windows_managed_app_protection.go b/models/windows_managed_app_protection.go index bb689941cea..bfaebe9fc98 100644 --- a/models/windows_managed_app_protection.go +++ b/models/windows_managed_app_protection.go @@ -55,13 +55,13 @@ func (m *WindowsManagedAppProtection) GetAllowedOutboundDataTransferDestinations return nil } // GetAppActionIfUnableToAuthenticateUser gets the appActionIfUnableToAuthenticateUser property value. If set, it will specify what action to take in the case where the user is unable to checkin because their authentication token is invalid. This happens when the user is deleted or disabled in AAD. Some possible values are block or wipe. If this property is not set, no action will be taken. Possible values are: block, wipe, warn. -func (m *WindowsManagedAppProtection) GetAppActionIfUnableToAuthenticateUser()(*ManagedAppRemediationAction) { +func (m *WindowsManagedAppProtection) GetAppActionIfUnableToAuthenticateUser()(*WindowsManagedAppProtection_appActionIfUnableToAuthenticateUser) { val, err := m.GetBackingStore().Get("appActionIfUnableToAuthenticateUser") if err != nil { panic(err) } if val != nil { - return val.(*ManagedAppRemediationAction) + return val.(*WindowsManagedAppProtection_appActionIfUnableToAuthenticateUser) } return nil } @@ -132,12 +132,12 @@ func (m *WindowsManagedAppProtection) GetFieldDeserializers()(map[string]func(i8 return nil } res["appActionIfUnableToAuthenticateUser"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseManagedAppRemediationAction) + val, err := n.GetEnumValue(ParseWindowsManagedAppProtection_appActionIfUnableToAuthenticateUser) if err != nil { return err } if val != nil { - m.SetAppActionIfUnableToAuthenticateUser(val.(*ManagedAppRemediationAction)) + m.SetAppActionIfUnableToAuthenticateUser(val.(*WindowsManagedAppProtection_appActionIfUnableToAuthenticateUser)) } return nil } @@ -734,7 +734,7 @@ func (m *WindowsManagedAppProtection) SetAllowedOutboundDataTransferDestinations } } // SetAppActionIfUnableToAuthenticateUser sets the appActionIfUnableToAuthenticateUser property value. If set, it will specify what action to take in the case where the user is unable to checkin because their authentication token is invalid. This happens when the user is deleted or disabled in AAD. Some possible values are block or wipe. If this property is not set, no action will be taken. Possible values are: block, wipe, warn. -func (m *WindowsManagedAppProtection) SetAppActionIfUnableToAuthenticateUser(value *ManagedAppRemediationAction)() { +func (m *WindowsManagedAppProtection) SetAppActionIfUnableToAuthenticateUser(value *WindowsManagedAppProtection_appActionIfUnableToAuthenticateUser)() { err := m.GetBackingStore().Set("appActionIfUnableToAuthenticateUser", value) if err != nil { panic(err) @@ -887,7 +887,7 @@ type WindowsManagedAppProtectionable interface { GetAllowedInboundDataTransferSources()(*WindowsManagedAppDataTransferLevel) GetAllowedOutboundClipboardSharingLevel()(*WindowsManagedAppClipboardSharingLevel) GetAllowedOutboundDataTransferDestinations()(*WindowsManagedAppDataTransferLevel) - GetAppActionIfUnableToAuthenticateUser()(*ManagedAppRemediationAction) + GetAppActionIfUnableToAuthenticateUser()(*WindowsManagedAppProtection_appActionIfUnableToAuthenticateUser) GetApps()([]ManagedMobileAppable) GetAssignments()([]TargetedManagedAppPolicyAssignmentable) GetDeployedAppCount()(*int32) @@ -911,7 +911,7 @@ type WindowsManagedAppProtectionable interface { SetAllowedInboundDataTransferSources(value *WindowsManagedAppDataTransferLevel)() SetAllowedOutboundClipboardSharingLevel(value *WindowsManagedAppClipboardSharingLevel)() SetAllowedOutboundDataTransferDestinations(value *WindowsManagedAppDataTransferLevel)() - SetAppActionIfUnableToAuthenticateUser(value *ManagedAppRemediationAction)() + SetAppActionIfUnableToAuthenticateUser(value *WindowsManagedAppProtection_appActionIfUnableToAuthenticateUser)() SetApps(value []ManagedMobileAppable)() SetAssignments(value []TargetedManagedAppPolicyAssignmentable)() SetDeployedAppCount(value *int32)() diff --git a/models/windows_managed_app_protection_app_action_if_unable_to_authenticate_user.go b/models/windows_managed_app_protection_app_action_if_unable_to_authenticate_user.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_phone_e_a_s_email_profile_configuration.go b/models/windows_phone_e_a_s_email_profile_configuration.go index ad666d204f9..6e641e41017 100644 --- a/models/windows_phone_e_a_s_email_profile_configuration.go +++ b/models/windows_phone_e_a_s_email_profile_configuration.go @@ -55,13 +55,13 @@ func (m *WindowsPhoneEASEmailProfileConfiguration) GetDurationOfEmailToSync()(*E return nil } // GetEmailAddressSource gets the emailAddressSource property value. Email attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: userPrincipalName, primarySmtpAddress. -func (m *WindowsPhoneEASEmailProfileConfiguration) GetEmailAddressSource()(*UserEmailSource) { +func (m *WindowsPhoneEASEmailProfileConfiguration) GetEmailAddressSource()(*WindowsPhoneEASEmailProfileConfiguration_emailAddressSource) { val, err := m.GetBackingStore().Get("emailAddressSource") if err != nil { panic(err) } if val != nil { - return val.(*UserEmailSource) + return val.(*WindowsPhoneEASEmailProfileConfiguration_emailAddressSource) } return nil } @@ -110,12 +110,12 @@ func (m *WindowsPhoneEASEmailProfileConfiguration) GetFieldDeserializers()(map[s return nil } res["emailAddressSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseUserEmailSource) + val, err := n.GetEnumValue(ParseWindowsPhoneEASEmailProfileConfiguration_emailAddressSource) if err != nil { return err } if val != nil { - m.SetEmailAddressSource(val.(*UserEmailSource)) + m.SetEmailAddressSource(val.(*WindowsPhoneEASEmailProfileConfiguration_emailAddressSource)) } return nil } @@ -323,7 +323,7 @@ func (m *WindowsPhoneEASEmailProfileConfiguration) SetDurationOfEmailToSync(valu } } // SetEmailAddressSource sets the emailAddressSource property value. Email attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: userPrincipalName, primarySmtpAddress. -func (m *WindowsPhoneEASEmailProfileConfiguration) SetEmailAddressSource(value *UserEmailSource)() { +func (m *WindowsPhoneEASEmailProfileConfiguration) SetEmailAddressSource(value *WindowsPhoneEASEmailProfileConfiguration_emailAddressSource)() { err := m.GetBackingStore().Set("emailAddressSource", value) if err != nil { panic(err) @@ -378,7 +378,7 @@ type WindowsPhoneEASEmailProfileConfigurationable interface { GetAccountName()(*string) GetApplyOnlyToWindowsPhone81()(*bool) GetDurationOfEmailToSync()(*EmailSyncDuration) - GetEmailAddressSource()(*UserEmailSource) + GetEmailAddressSource()(*WindowsPhoneEASEmailProfileConfiguration_emailAddressSource) GetEmailSyncSchedule()(*EmailSyncSchedule) GetHostName()(*string) GetRequireSsl()(*bool) @@ -388,7 +388,7 @@ type WindowsPhoneEASEmailProfileConfigurationable interface { SetAccountName(value *string)() SetApplyOnlyToWindowsPhone81(value *bool)() SetDurationOfEmailToSync(value *EmailSyncDuration)() - SetEmailAddressSource(value *UserEmailSource)() + SetEmailAddressSource(value *WindowsPhoneEASEmailProfileConfiguration_emailAddressSource)() SetEmailSyncSchedule(value *EmailSyncSchedule)() SetHostName(value *string)() SetRequireSsl(value *bool)() diff --git a/models/windows_phone_e_a_s_email_profile_configuration_email_address_source.go b/models/windows_phone_e_a_s_email_profile_configuration_email_address_source.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_protection_state.go b/models/windows_protection_state.go index 3ca035f88d7..34233a51d8b 100644 --- a/models/windows_protection_state.go +++ b/models/windows_protection_state.go @@ -43,13 +43,13 @@ func (m *WindowsProtectionState) GetDetectedMalwareState()([]WindowsDeviceMalwar return nil } // GetDeviceState gets the deviceState property value. Indicates device's health state. Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical. Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical. -func (m *WindowsProtectionState) GetDeviceState()(*WindowsDeviceHealthState) { +func (m *WindowsProtectionState) GetDeviceState()(*WindowsProtectionState_deviceState) { val, err := m.GetBackingStore().Get("deviceState") if err != nil { panic(err) } if val != nil { - return val.(*WindowsDeviceHealthState) + return val.(*WindowsProtectionState_deviceState) } return nil } @@ -94,12 +94,12 @@ func (m *WindowsProtectionState) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["deviceState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsDeviceHealthState) + val, err := n.GetEnumValue(ParseWindowsProtectionState_deviceState) if err != nil { return err } if val != nil { - m.SetDeviceState(val.(*WindowsDeviceHealthState)) + m.SetDeviceState(val.(*WindowsProtectionState_deviceState)) } return nil } @@ -214,12 +214,12 @@ func (m *WindowsProtectionState) GetFieldDeserializers()(map[string]func(i878a80 return nil } res["productStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsDefenderProductStatus) + val, err := n.GetEnumValue(ParseWindowsProtectionState_productStatus) if err != nil { return err } if val != nil { - m.SetProductStatus(val.(*WindowsDefenderProductStatus)) + m.SetProductStatus(val.(*WindowsProtectionState_productStatus)) } return nil } @@ -396,13 +396,13 @@ func (m *WindowsProtectionState) GetNetworkInspectionSystemEnabled()(*bool) { return nil } // GetProductStatus gets the productStatus property value. Product Status of Windows Defender Antivirus. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall. -func (m *WindowsProtectionState) GetProductStatus()(*WindowsDefenderProductStatus) { +func (m *WindowsProtectionState) GetProductStatus()(*WindowsProtectionState_productStatus) { val, err := m.GetBackingStore().Get("productStatus") if err != nil { panic(err) } if val != nil { - return val.(*WindowsDefenderProductStatus) + return val.(*WindowsProtectionState_productStatus) } return nil } @@ -629,7 +629,7 @@ func (m *WindowsProtectionState) SetDetectedMalwareState(value []WindowsDeviceMa } } // SetDeviceState sets the deviceState property value. Indicates device's health state. Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical. Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical. -func (m *WindowsProtectionState) SetDeviceState(value *WindowsDeviceHealthState)() { +func (m *WindowsProtectionState) SetDeviceState(value *WindowsProtectionState_deviceState)() { err := m.GetBackingStore().Set("deviceState", value) if err != nil { panic(err) @@ -713,7 +713,7 @@ func (m *WindowsProtectionState) SetNetworkInspectionSystemEnabled(value *bool)( } } // SetProductStatus sets the productStatus property value. Product Status of Windows Defender Antivirus. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall. -func (m *WindowsProtectionState) SetProductStatus(value *WindowsDefenderProductStatus)() { +func (m *WindowsProtectionState) SetProductStatus(value *WindowsProtectionState_productStatus)() { err := m.GetBackingStore().Set("productStatus", value) if err != nil { panic(err) @@ -767,7 +767,7 @@ type WindowsProtectionStateable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAntiMalwareVersion()(*string) GetDetectedMalwareState()([]WindowsDeviceMalwareStateable) - GetDeviceState()(*WindowsDeviceHealthState) + GetDeviceState()(*WindowsProtectionState_deviceState) GetEngineVersion()(*string) GetFullScanOverdue()(*bool) GetFullScanRequired()(*bool) @@ -779,7 +779,7 @@ type WindowsProtectionStateable interface { GetLastReportedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMalwareProtectionEnabled()(*bool) GetNetworkInspectionSystemEnabled()(*bool) - GetProductStatus()(*WindowsDefenderProductStatus) + GetProductStatus()(*WindowsProtectionState_productStatus) GetQuickScanOverdue()(*bool) GetRealTimeProtectionEnabled()(*bool) GetRebootRequired()(*bool) @@ -788,7 +788,7 @@ type WindowsProtectionStateable interface { GetTamperProtectionEnabled()(*bool) SetAntiMalwareVersion(value *string)() SetDetectedMalwareState(value []WindowsDeviceMalwareStateable)() - SetDeviceState(value *WindowsDeviceHealthState)() + SetDeviceState(value *WindowsProtectionState_deviceState)() SetEngineVersion(value *string)() SetFullScanOverdue(value *bool)() SetFullScanRequired(value *bool)() @@ -800,7 +800,7 @@ type WindowsProtectionStateable interface { SetLastReportedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMalwareProtectionEnabled(value *bool)() SetNetworkInspectionSystemEnabled(value *bool)() - SetProductStatus(value *WindowsDefenderProductStatus)() + SetProductStatus(value *WindowsProtectionState_productStatus)() SetQuickScanOverdue(value *bool)() SetRealTimeProtectionEnabled(value *bool)() SetRebootRequired(value *bool)() diff --git a/models/windows_protection_state_device_state.go b/models/windows_protection_state_device_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_protection_state_product_status.go b/models/windows_protection_state_product_status.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_universal_app_x_app_assignment_settings.go b/models/windows_universal_app_x_app_assignment_settings.go index bab07cd3f51..0aef3130204 100644 --- a/models/windows_universal_app_x_app_assignment_settings.go +++ b/models/windows_universal_app_x_app_assignment_settings.go @@ -36,7 +36,7 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) GetFieldDeserializers()(map[ } return res } -// GetUseDeviceContext gets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. +// GetUseDeviceContext gets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. func (m *WindowsUniversalAppXAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") if err != nil { @@ -61,7 +61,7 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) Serialize(writer i878a80d233 } return nil } -// SetUseDeviceContext sets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. +// SetUseDeviceContext sets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. func (m *WindowsUniversalAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) if err != nil { diff --git a/models/windows_update_for_business_configuration.go b/models/windows_update_for_business_configuration.go index 6a8796f4a8e..092ae9279c2 100644 --- a/models/windows_update_for_business_configuration.go +++ b/models/windows_update_for_business_configuration.go @@ -565,12 +565,12 @@ func (m *WindowsUpdateForBusinessConfiguration) GetFieldDeserializers()(map[stri return nil } res["updateWeeks"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWindowsUpdateForBusinessUpdateWeeks) + val, err := n.GetEnumValue(ParseWindowsUpdateForBusinessConfiguration_updateWeeks) if err != nil { return err } if val != nil { - m.SetUpdateWeeks(val.(*WindowsUpdateForBusinessUpdateWeeks)) + m.SetUpdateWeeks(val.(*WindowsUpdateForBusinessConfiguration_updateWeeks)) } return nil } @@ -751,13 +751,13 @@ func (m *WindowsUpdateForBusinessConfiguration) GetUpdateNotificationLevel()(*Wi return nil } // GetUpdateWeeks gets the updateWeeks property value. Schedule the update installation on the weeks of the month. Possible values are: UserDefined, FirstWeek, SecondWeek, ThirdWeek, FourthWeek, EveryWeek. Returned by default. Query parameters are not supported. Possible values are: userDefined, firstWeek, secondWeek, thirdWeek, fourthWeek, everyWeek, unknownFutureValue. -func (m *WindowsUpdateForBusinessConfiguration) GetUpdateWeeks()(*WindowsUpdateForBusinessUpdateWeeks) { +func (m *WindowsUpdateForBusinessConfiguration) GetUpdateWeeks()(*WindowsUpdateForBusinessConfiguration_updateWeeks) { val, err := m.GetBackingStore().Get("updateWeeks") if err != nil { panic(err) } if val != nil { - return val.(*WindowsUpdateForBusinessUpdateWeeks) + return val.(*WindowsUpdateForBusinessConfiguration_updateWeeks) } return nil } @@ -1236,7 +1236,7 @@ func (m *WindowsUpdateForBusinessConfiguration) SetUpdateNotificationLevel(value } } // SetUpdateWeeks sets the updateWeeks property value. Schedule the update installation on the weeks of the month. Possible values are: UserDefined, FirstWeek, SecondWeek, ThirdWeek, FourthWeek, EveryWeek. Returned by default. Query parameters are not supported. Possible values are: userDefined, firstWeek, secondWeek, thirdWeek, fourthWeek, everyWeek, unknownFutureValue. -func (m *WindowsUpdateForBusinessConfiguration) SetUpdateWeeks(value *WindowsUpdateForBusinessUpdateWeeks)() { +func (m *WindowsUpdateForBusinessConfiguration) SetUpdateWeeks(value *WindowsUpdateForBusinessConfiguration_updateWeeks)() { err := m.GetBackingStore().Set("updateWeeks", value) if err != nil { panic(err) @@ -1293,7 +1293,7 @@ type WindowsUpdateForBusinessConfigurationable interface { GetScheduleRestartWarningInHours()(*int32) GetSkipChecksBeforeRestart()(*bool) GetUpdateNotificationLevel()(*WindowsUpdateNotificationDisplayOption) - GetUpdateWeeks()(*WindowsUpdateForBusinessUpdateWeeks) + GetUpdateWeeks()(*WindowsUpdateForBusinessConfiguration_updateWeeks) GetUserPauseAccess()(*Enablement) GetUserWindowsUpdateScanAccess()(*Enablement) SetAllowWindows11Upgrade(value *bool)() @@ -1329,7 +1329,7 @@ type WindowsUpdateForBusinessConfigurationable interface { SetScheduleRestartWarningInHours(value *int32)() SetSkipChecksBeforeRestart(value *bool)() SetUpdateNotificationLevel(value *WindowsUpdateNotificationDisplayOption)() - SetUpdateWeeks(value *WindowsUpdateForBusinessUpdateWeeks)() + SetUpdateWeeks(value *WindowsUpdateForBusinessConfiguration_updateWeeks)() SetUserPauseAccess(value *Enablement)() SetUserWindowsUpdateScanAccess(value *Enablement)() } diff --git a/models/windows_update_for_business_configuration_update_weeks.go b/models/windows_update_for_business_configuration_update_weeks.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_update_for_business_update_weeks.go b/models/windows_update_for_business_update_weeks.go deleted file mode 100644 index ecb9f68937d..00000000000 --- a/models/windows_update_for_business_update_weeks.go +++ /dev/null @@ -1,69 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// Scheduled the update installation on the weeks of the month -type WindowsUpdateForBusinessUpdateWeeks int - -const ( - // Allow the user to set. - USERDEFINED_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS WindowsUpdateForBusinessUpdateWeeks = iota - // Scheduled the update installation on the first week of the month - FIRSTWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - // Scheduled the update installation on the second week of the month - SECONDWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - // Scheduled the update installation on the third week of the month - THIRDWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - // Scheduled the update installation on the fourth week of the month - FOURTHWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - // Scheduled the update installation on every week of the month - EVERYWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - // Evolvable enum member - UNKNOWNFUTUREVALUE_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS -) - -func (i WindowsUpdateForBusinessUpdateWeeks) String() string { - var values []string - for p := WindowsUpdateForBusinessUpdateWeeks(1); p <= UNKNOWNFUTUREVALUE_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS; p <<= 1 { - if i&p == p { - values = append(values, []string{"userDefined", "firstWeek", "secondWeek", "thirdWeek", "fourthWeek", "everyWeek", "unknownFutureValue"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseWindowsUpdateForBusinessUpdateWeeks(v string) (any, error) { - var result WindowsUpdateForBusinessUpdateWeeks - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "userDefined": - result |= USERDEFINED_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - case "firstWeek": - result |= FIRSTWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - case "secondWeek": - result |= SECONDWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - case "thirdWeek": - result |= THIRDWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - case "fourthWeek": - result |= FOURTHWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - case "everyWeek": - result |= EVERYWEEK_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS - default: - return 0, errors.New("Unknown WindowsUpdateForBusinessUpdateWeeks value: " + v) - } - } - return &result, nil -} -func SerializeWindowsUpdateForBusinessUpdateWeeks(values []WindowsUpdateForBusinessUpdateWeeks) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WindowsUpdateForBusinessUpdateWeeks) isMultiValue() bool { - return true -} diff --git a/models/windows_wifi_configuration.go b/models/windows_wifi_configuration.go index ed48468dae2..0ef2096810b 100644 --- a/models/windows_wifi_configuration.go +++ b/models/windows_wifi_configuration.go @@ -116,12 +116,12 @@ func (m *WindowsWifiConfiguration) GetFieldDeserializers()(map[string]func(i878a return nil } res["meteredConnectionLimit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMeteredConnectionLimitType) + val, err := n.GetEnumValue(ParseWindowsWifiConfiguration_meteredConnectionLimit) if err != nil { return err } if val != nil { - m.SetMeteredConnectionLimit(val.(*MeteredConnectionLimitType)) + m.SetMeteredConnectionLimit(val.(*WindowsWifiConfiguration_meteredConnectionLimit)) } return nil } @@ -176,12 +176,12 @@ func (m *WindowsWifiConfiguration) GetFieldDeserializers()(map[string]func(i878a return nil } res["proxySetting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiProxySetting) + val, err := n.GetEnumValue(ParseWindowsWifiConfiguration_proxySetting) if err != nil { return err } if val != nil { - m.SetProxySetting(val.(*WiFiProxySetting)) + m.SetProxySetting(val.(*WindowsWifiConfiguration_proxySetting)) } return nil } @@ -196,12 +196,12 @@ func (m *WindowsWifiConfiguration) GetFieldDeserializers()(map[string]func(i878a return nil } res["wifiSecurityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiSecurityType) + val, err := n.GetEnumValue(ParseWindowsWifiConfiguration_wifiSecurityType) if err != nil { return err } if val != nil { - m.SetWifiSecurityType(val.(*WiFiSecurityType)) + m.SetWifiSecurityType(val.(*WindowsWifiConfiguration_wifiSecurityType)) } return nil } @@ -219,13 +219,13 @@ func (m *WindowsWifiConfiguration) GetForceFIPSCompliance()(*bool) { return nil } // GetMeteredConnectionLimit gets the meteredConnectionLimit property value. Specify the metered connection limit type for the wifi connection. Possible values are: unrestricted, fixed, variable. -func (m *WindowsWifiConfiguration) GetMeteredConnectionLimit()(*MeteredConnectionLimitType) { +func (m *WindowsWifiConfiguration) GetMeteredConnectionLimit()(*WindowsWifiConfiguration_meteredConnectionLimit) { val, err := m.GetBackingStore().Get("meteredConnectionLimit") if err != nil { panic(err) } if val != nil { - return val.(*MeteredConnectionLimitType) + return val.(*WindowsWifiConfiguration_meteredConnectionLimit) } return nil } @@ -285,13 +285,13 @@ func (m *WindowsWifiConfiguration) GetProxyManualPort()(*int32) { return nil } // GetProxySetting gets the proxySetting property value. Specify the proxy setting for Wi-Fi configuration. Possible values are: none, manual, automatic. -func (m *WindowsWifiConfiguration) GetProxySetting()(*WiFiProxySetting) { +func (m *WindowsWifiConfiguration) GetProxySetting()(*WindowsWifiConfiguration_proxySetting) { val, err := m.GetBackingStore().Get("proxySetting") if err != nil { panic(err) } if val != nil { - return val.(*WiFiProxySetting) + return val.(*WindowsWifiConfiguration_proxySetting) } return nil } @@ -307,13 +307,13 @@ func (m *WindowsWifiConfiguration) GetSsid()(*string) { return nil } // GetWifiSecurityType gets the wifiSecurityType property value. Specify the Wifi Security Type. Possible values are: open, wpaPersonal, wpaEnterprise, wep, wpa2Personal, wpa2Enterprise. -func (m *WindowsWifiConfiguration) GetWifiSecurityType()(*WiFiSecurityType) { +func (m *WindowsWifiConfiguration) GetWifiSecurityType()(*WindowsWifiConfiguration_wifiSecurityType) { val, err := m.GetBackingStore().Get("wifiSecurityType") if err != nil { panic(err) } if val != nil { - return val.(*WiFiSecurityType) + return val.(*WindowsWifiConfiguration_wifiSecurityType) } return nil } @@ -435,7 +435,7 @@ func (m *WindowsWifiConfiguration) SetForceFIPSCompliance(value *bool)() { } } // SetMeteredConnectionLimit sets the meteredConnectionLimit property value. Specify the metered connection limit type for the wifi connection. Possible values are: unrestricted, fixed, variable. -func (m *WindowsWifiConfiguration) SetMeteredConnectionLimit(value *MeteredConnectionLimitType)() { +func (m *WindowsWifiConfiguration) SetMeteredConnectionLimit(value *WindowsWifiConfiguration_meteredConnectionLimit)() { err := m.GetBackingStore().Set("meteredConnectionLimit", value) if err != nil { panic(err) @@ -477,7 +477,7 @@ func (m *WindowsWifiConfiguration) SetProxyManualPort(value *int32)() { } } // SetProxySetting sets the proxySetting property value. Specify the proxy setting for Wi-Fi configuration. Possible values are: none, manual, automatic. -func (m *WindowsWifiConfiguration) SetProxySetting(value *WiFiProxySetting)() { +func (m *WindowsWifiConfiguration) SetProxySetting(value *WindowsWifiConfiguration_proxySetting)() { err := m.GetBackingStore().Set("proxySetting", value) if err != nil { panic(err) @@ -491,7 +491,7 @@ func (m *WindowsWifiConfiguration) SetSsid(value *string)() { } } // SetWifiSecurityType sets the wifiSecurityType property value. Specify the Wifi Security Type. Possible values are: open, wpaPersonal, wpaEnterprise, wep, wpa2Personal, wpa2Enterprise. -func (m *WindowsWifiConfiguration) SetWifiSecurityType(value *WiFiSecurityType)() { +func (m *WindowsWifiConfiguration) SetWifiSecurityType(value *WindowsWifiConfiguration_wifiSecurityType)() { err := m.GetBackingStore().Set("wifiSecurityType", value) if err != nil { panic(err) @@ -505,26 +505,26 @@ type WindowsWifiConfigurationable interface { GetConnectToPreferredNetwork()(*bool) GetConnectWhenNetworkNameIsHidden()(*bool) GetForceFIPSCompliance()(*bool) - GetMeteredConnectionLimit()(*MeteredConnectionLimitType) + GetMeteredConnectionLimit()(*WindowsWifiConfiguration_meteredConnectionLimit) GetNetworkName()(*string) GetPreSharedKey()(*string) GetProxyAutomaticConfigurationUrl()(*string) GetProxyManualAddress()(*string) GetProxyManualPort()(*int32) - GetProxySetting()(*WiFiProxySetting) + GetProxySetting()(*WindowsWifiConfiguration_proxySetting) GetSsid()(*string) - GetWifiSecurityType()(*WiFiSecurityType) + GetWifiSecurityType()(*WindowsWifiConfiguration_wifiSecurityType) SetConnectAutomatically(value *bool)() SetConnectToPreferredNetwork(value *bool)() SetConnectWhenNetworkNameIsHidden(value *bool)() SetForceFIPSCompliance(value *bool)() - SetMeteredConnectionLimit(value *MeteredConnectionLimitType)() + SetMeteredConnectionLimit(value *WindowsWifiConfiguration_meteredConnectionLimit)() SetNetworkName(value *string)() SetPreSharedKey(value *string)() SetProxyAutomaticConfigurationUrl(value *string)() SetProxyManualAddress(value *string)() SetProxyManualPort(value *int32)() - SetProxySetting(value *WiFiProxySetting)() + SetProxySetting(value *WindowsWifiConfiguration_proxySetting)() SetSsid(value *string)() - SetWifiSecurityType(value *WiFiSecurityType)() + SetWifiSecurityType(value *WindowsWifiConfiguration_wifiSecurityType)() } diff --git a/models/windows_wifi_configuration_metered_connection_limit.go b/models/windows_wifi_configuration_metered_connection_limit.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wifi_configuration_proxy_setting.go b/models/windows_wifi_configuration_proxy_setting.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wifi_configuration_wifi_security_type.go b/models/windows_wifi_configuration_wifi_security_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wifi_enterprise_e_a_p_configuration.go b/models/windows_wifi_enterprise_e_a_p_configuration.go index e2a14bcffaa..d5ececaf403 100644 --- a/models/windows_wifi_enterprise_e_a_p_configuration.go +++ b/models/windows_wifi_enterprise_e_a_p_configuration.go @@ -22,13 +22,13 @@ func CreateWindowsWifiEnterpriseEAPConfigurationFromDiscriminatorValue(parseNode return NewWindowsWifiEnterpriseEAPConfiguration(), nil } // GetAuthenticationMethod gets the authenticationMethod property value. Specify the authentication method. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *WindowsWifiEnterpriseEAPConfiguration) GetAuthenticationMethod()(*WiFiAuthenticationMethod) { +func (m *WindowsWifiEnterpriseEAPConfiguration) GetAuthenticationMethod()(*WindowsWifiEnterpriseEAPConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiFiAuthenticationMethod) + return val.(*WindowsWifiEnterpriseEAPConfiguration_authenticationMethod) } return nil } @@ -55,13 +55,13 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) GetAuthenticationRetryDelayPerio return nil } // GetAuthenticationType gets the authenticationType property value. Specify whether to authenticate the user, the device, either, or to use guest authentication (none). If you’re using certificate authentication, make sure the certificate type matches the authentication type. Possible values are: none, user, machine, machineOrUser, guest. -func (m *WindowsWifiEnterpriseEAPConfiguration) GetAuthenticationType()(*WifiAuthenticationType) { +func (m *WindowsWifiEnterpriseEAPConfiguration) GetAuthenticationType()(*WindowsWifiEnterpriseEAPConfiguration_authenticationType) { val, err := m.GetBackingStore().Get("authenticationType") if err != nil { panic(err) } if val != nil { - return val.(*WifiAuthenticationType) + return val.(*WindowsWifiEnterpriseEAPConfiguration_authenticationType) } return nil } @@ -135,12 +135,12 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) GetEnablePreAuthentication()(*bo func (m *WindowsWifiEnterpriseEAPConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.WindowsWifiConfiguration.GetFieldDeserializers() res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiFiAuthenticationMethod) + val, err := n.GetEnumValue(ParseWindowsWifiEnterpriseEAPConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiFiAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*WindowsWifiEnterpriseEAPConfiguration_authenticationMethod)) } return nil } @@ -165,12 +165,12 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) GetFieldDeserializers()(map[stri return nil } res["authenticationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWifiAuthenticationType) + val, err := n.GetEnumValue(ParseWindowsWifiEnterpriseEAPConfiguration_authenticationType) if err != nil { return err } if val != nil { - m.SetAuthenticationType(val.(*WifiAuthenticationType)) + m.SetAuthenticationType(val.(*WindowsWifiEnterpriseEAPConfiguration_authenticationType)) } return nil } @@ -245,12 +245,12 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) GetFieldDeserializers()(map[stri return nil } res["innerAuthenticationProtocolForEAPTTLS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseWindowsWifiEnterpriseEAPConfiguration_innerAuthenticationProtocolForEAPTTLS) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEAPTTLS(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEAPTTLS(val.(*WindowsWifiEnterpriseEAPConfiguration_innerAuthenticationProtocolForEAPTTLS)) } return nil } @@ -315,12 +315,12 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) GetFieldDeserializers()(map[stri return nil } res["networkSingleSignOn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNetworkSingleSignOnType) + val, err := n.GetEnumValue(ParseWindowsWifiEnterpriseEAPConfiguration_networkSingleSignOn) if err != nil { return err } if val != nil { - m.SetNetworkSingleSignOn(val.(*NetworkSingleSignOnType)) + m.SetNetworkSingleSignOn(val.(*WindowsWifiEnterpriseEAPConfiguration_networkSingleSignOn)) } return nil } @@ -430,13 +430,13 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) GetIdentityCertificateForClientA return nil } // GetInnerAuthenticationProtocolForEAPTTLS gets the innerAuthenticationProtocolForEAPTTLS property value. Specify inner authentication protocol for EAP TTLS. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *WindowsWifiEnterpriseEAPConfiguration) GetInnerAuthenticationProtocolForEAPTTLS()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *WindowsWifiEnterpriseEAPConfiguration) GetInnerAuthenticationProtocolForEAPTTLS()(*WindowsWifiEnterpriseEAPConfiguration_innerAuthenticationProtocolForEAPTTLS) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEAPTTLS") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*WindowsWifiEnterpriseEAPConfiguration_innerAuthenticationProtocolForEAPTTLS) } return nil } @@ -507,13 +507,13 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) GetMaximumPreAuthenticationAttem return nil } // GetNetworkSingleSignOn gets the networkSingleSignOn property value. Specify the network single sign on type. Possible values are: disabled, prelogon, postlogon. -func (m *WindowsWifiEnterpriseEAPConfiguration) GetNetworkSingleSignOn()(*NetworkSingleSignOnType) { +func (m *WindowsWifiEnterpriseEAPConfiguration) GetNetworkSingleSignOn()(*WindowsWifiEnterpriseEAPConfiguration_networkSingleSignOn) { val, err := m.GetBackingStore().Get("networkSingleSignOn") if err != nil { panic(err) } if val != nil { - return val.(*NetworkSingleSignOnType) + return val.(*WindowsWifiEnterpriseEAPConfiguration_networkSingleSignOn) } return nil } @@ -787,7 +787,7 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) Serialize(writer i878a80d2330e89 return nil } // SetAuthenticationMethod sets the authenticationMethod property value. Specify the authentication method. Possible values are: certificate, usernameAndPassword, derivedCredential. -func (m *WindowsWifiEnterpriseEAPConfiguration) SetAuthenticationMethod(value *WiFiAuthenticationMethod)() { +func (m *WindowsWifiEnterpriseEAPConfiguration) SetAuthenticationMethod(value *WindowsWifiEnterpriseEAPConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -808,7 +808,7 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) SetAuthenticationRetryDelayPerio } } // SetAuthenticationType sets the authenticationType property value. Specify whether to authenticate the user, the device, either, or to use guest authentication (none). If you’re using certificate authentication, make sure the certificate type matches the authentication type. Possible values are: none, user, machine, machineOrUser, guest. -func (m *WindowsWifiEnterpriseEAPConfiguration) SetAuthenticationType(value *WifiAuthenticationType)() { +func (m *WindowsWifiEnterpriseEAPConfiguration) SetAuthenticationType(value *WindowsWifiEnterpriseEAPConfiguration_authenticationType)() { err := m.GetBackingStore().Set("authenticationType", value) if err != nil { panic(err) @@ -864,7 +864,7 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) SetIdentityCertificateForClientA } } // SetInnerAuthenticationProtocolForEAPTTLS sets the innerAuthenticationProtocolForEAPTTLS property value. Specify inner authentication protocol for EAP TTLS. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *WindowsWifiEnterpriseEAPConfiguration) SetInnerAuthenticationProtocolForEAPTTLS(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *WindowsWifiEnterpriseEAPConfiguration) SetInnerAuthenticationProtocolForEAPTTLS(value *WindowsWifiEnterpriseEAPConfiguration_innerAuthenticationProtocolForEAPTTLS)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEAPTTLS", value) if err != nil { panic(err) @@ -913,7 +913,7 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) SetMaximumPreAuthenticationAttem } } // SetNetworkSingleSignOn sets the networkSingleSignOn property value. Specify the network single sign on type. Possible values are: disabled, prelogon, postlogon. -func (m *WindowsWifiEnterpriseEAPConfiguration) SetNetworkSingleSignOn(value *NetworkSingleSignOnType)() { +func (m *WindowsWifiEnterpriseEAPConfiguration) SetNetworkSingleSignOn(value *WindowsWifiEnterpriseEAPConfiguration_networkSingleSignOn)() { err := m.GetBackingStore().Set("networkSingleSignOn", value) if err != nil { panic(err) @@ -979,10 +979,10 @@ func (m *WindowsWifiEnterpriseEAPConfiguration) SetUserBasedVirtualLan(value *bo type WindowsWifiEnterpriseEAPConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable WindowsWifiConfigurationable - GetAuthenticationMethod()(*WiFiAuthenticationMethod) + GetAuthenticationMethod()(*WindowsWifiEnterpriseEAPConfiguration_authenticationMethod) GetAuthenticationPeriodInSeconds()(*int32) GetAuthenticationRetryDelayPeriodInSeconds()(*int32) - GetAuthenticationType()(*WifiAuthenticationType) + GetAuthenticationType()(*WindowsWifiEnterpriseEAPConfiguration_authenticationType) GetCacheCredentials()(*bool) GetDisableUserPromptForServerValidation()(*bool) GetEapolStartPeriodInSeconds()(*int32) @@ -990,14 +990,14 @@ type WindowsWifiEnterpriseEAPConfigurationable interface { GetEnablePairwiseMasterKeyCaching()(*bool) GetEnablePreAuthentication()(*bool) GetIdentityCertificateForClientAuthentication()(WindowsCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEAPTTLS()(*NonEapAuthenticationMethodForEapTtlsType) + GetInnerAuthenticationProtocolForEAPTTLS()(*WindowsWifiEnterpriseEAPConfiguration_innerAuthenticationProtocolForEAPTTLS) GetMaximumAuthenticationFailures()(*int32) GetMaximumAuthenticationTimeoutInSeconds()(*int32) GetMaximumEAPOLStartMessages()(*int32) GetMaximumNumberOfPairwiseMasterKeysInCache()(*int32) GetMaximumPairwiseMasterKeyCacheTimeInMinutes()(*int32) GetMaximumPreAuthenticationAttempts()(*int32) - GetNetworkSingleSignOn()(*NetworkSingleSignOnType) + GetNetworkSingleSignOn()(*WindowsWifiEnterpriseEAPConfiguration_networkSingleSignOn) GetOuterIdentityPrivacyTemporaryValue()(*string) GetPerformServerValidation()(*bool) GetPromptForAdditionalAuthenticationCredentials()(*bool) @@ -1006,10 +1006,10 @@ type WindowsWifiEnterpriseEAPConfigurationable interface { GetRootCertificatesForServerValidation()([]Windows81TrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) GetUserBasedVirtualLan()(*bool) - SetAuthenticationMethod(value *WiFiAuthenticationMethod)() + SetAuthenticationMethod(value *WindowsWifiEnterpriseEAPConfiguration_authenticationMethod)() SetAuthenticationPeriodInSeconds(value *int32)() SetAuthenticationRetryDelayPeriodInSeconds(value *int32)() - SetAuthenticationType(value *WifiAuthenticationType)() + SetAuthenticationType(value *WindowsWifiEnterpriseEAPConfiguration_authenticationType)() SetCacheCredentials(value *bool)() SetDisableUserPromptForServerValidation(value *bool)() SetEapolStartPeriodInSeconds(value *int32)() @@ -1017,14 +1017,14 @@ type WindowsWifiEnterpriseEAPConfigurationable interface { SetEnablePairwiseMasterKeyCaching(value *bool)() SetEnablePreAuthentication(value *bool)() SetIdentityCertificateForClientAuthentication(value WindowsCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEAPTTLS(value *NonEapAuthenticationMethodForEapTtlsType)() + SetInnerAuthenticationProtocolForEAPTTLS(value *WindowsWifiEnterpriseEAPConfiguration_innerAuthenticationProtocolForEAPTTLS)() SetMaximumAuthenticationFailures(value *int32)() SetMaximumAuthenticationTimeoutInSeconds(value *int32)() SetMaximumEAPOLStartMessages(value *int32)() SetMaximumNumberOfPairwiseMasterKeysInCache(value *int32)() SetMaximumPairwiseMasterKeyCacheTimeInMinutes(value *int32)() SetMaximumPreAuthenticationAttempts(value *int32)() - SetNetworkSingleSignOn(value *NetworkSingleSignOnType)() + SetNetworkSingleSignOn(value *WindowsWifiEnterpriseEAPConfiguration_networkSingleSignOn)() SetOuterIdentityPrivacyTemporaryValue(value *string)() SetPerformServerValidation(value *bool)() SetPromptForAdditionalAuthenticationCredentials(value *bool)() diff --git a/models/windows_wifi_enterprise_e_a_p_configuration_authentication_method.go b/models/windows_wifi_enterprise_e_a_p_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wifi_enterprise_e_a_p_configuration_authentication_type.go b/models/windows_wifi_enterprise_e_a_p_configuration_authentication_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wifi_enterprise_e_a_p_configuration_inner_authentication_protocol_for_e_a_p_t_t_l_s.go b/models/windows_wifi_enterprise_e_a_p_configuration_inner_authentication_protocol_for_e_a_p_t_t_l_s.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wifi_enterprise_e_a_p_configuration_network_single_sign_on.go b/models/windows_wifi_enterprise_e_a_p_configuration_network_single_sign_on.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wired_network_configuration.go b/models/windows_wired_network_configuration.go index 3bd113f83a5..f4bf0cb60b5 100644 --- a/models/windows_wired_network_configuration.go +++ b/models/windows_wired_network_configuration.go @@ -33,13 +33,13 @@ func (m *WindowsWiredNetworkConfiguration) GetAuthenticationBlockPeriodInMinutes return nil } // GetAuthenticationMethod gets the authenticationMethod property value. Specify the authentication method. Possible values are: certificate, usernameAndPassword, derivedCredential. Possible values are: certificate, usernameAndPassword, derivedCredential, unknownFutureValue. -func (m *WindowsWiredNetworkConfiguration) GetAuthenticationMethod()(*WiredNetworkAuthenticationMethod) { +func (m *WindowsWiredNetworkConfiguration) GetAuthenticationMethod()(*WindowsWiredNetworkConfiguration_authenticationMethod) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiredNetworkAuthenticationMethod) + return val.(*WindowsWiredNetworkConfiguration_authenticationMethod) } return nil } @@ -66,13 +66,13 @@ func (m *WindowsWiredNetworkConfiguration) GetAuthenticationRetryDelayPeriodInSe return nil } // GetAuthenticationType gets the authenticationType property value. Specify whether to authenticate the user, the device, either, or to use guest authentication (none). If you're using certificate authentication, make sure the certificate type matches the authentication type. Possible values are: none, user, machine, machineOrUser, guest. Possible values are: none, user, machine, machineOrUser, guest, unknownFutureValue. -func (m *WindowsWiredNetworkConfiguration) GetAuthenticationType()(*WiredNetworkAuthenticationType) { +func (m *WindowsWiredNetworkConfiguration) GetAuthenticationType()(*WindowsWiredNetworkConfiguration_authenticationType) { val, err := m.GetBackingStore().Get("authenticationType") if err != nil { panic(err) } if val != nil { - return val.(*WiredNetworkAuthenticationType) + return val.(*WindowsWiredNetworkConfiguration_authenticationType) } return nil } @@ -145,12 +145,12 @@ func (m *WindowsWiredNetworkConfiguration) GetFieldDeserializers()(map[string]fu return nil } res["authenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiredNetworkAuthenticationMethod) + val, err := n.GetEnumValue(ParseWindowsWiredNetworkConfiguration_authenticationMethod) if err != nil { return err } if val != nil { - m.SetAuthenticationMethod(val.(*WiredNetworkAuthenticationMethod)) + m.SetAuthenticationMethod(val.(*WindowsWiredNetworkConfiguration_authenticationMethod)) } return nil } @@ -175,12 +175,12 @@ func (m *WindowsWiredNetworkConfiguration) GetFieldDeserializers()(map[string]fu return nil } res["authenticationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiredNetworkAuthenticationType) + val, err := n.GetEnumValue(ParseWindowsWiredNetworkConfiguration_authenticationType) if err != nil { return err } if val != nil { - m.SetAuthenticationType(val.(*WiredNetworkAuthenticationType)) + m.SetAuthenticationType(val.(*WindowsWiredNetworkConfiguration_authenticationType)) } return nil } @@ -255,12 +255,12 @@ func (m *WindowsWiredNetworkConfiguration) GetFieldDeserializers()(map[string]fu return nil } res["innerAuthenticationProtocolForEAPTTLS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseNonEapAuthenticationMethodForEapTtlsType) + val, err := n.GetEnumValue(ParseWindowsWiredNetworkConfiguration_innerAuthenticationProtocolForEAPTTLS) if err != nil { return err } if val != nil { - m.SetInnerAuthenticationProtocolForEAPTTLS(val.(*NonEapAuthenticationMethodForEapTtlsType)) + m.SetInnerAuthenticationProtocolForEAPTTLS(val.(*WindowsWiredNetworkConfiguration_innerAuthenticationProtocolForEAPTTLS)) } return nil } @@ -341,12 +341,12 @@ func (m *WindowsWiredNetworkConfiguration) GetFieldDeserializers()(map[string]fu return nil } res["secondaryAuthenticationMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWiredNetworkAuthenticationMethod) + val, err := n.GetEnumValue(ParseWindowsWiredNetworkConfiguration_secondaryAuthenticationMethod) if err != nil { return err } if val != nil { - m.SetSecondaryAuthenticationMethod(val.(*WiredNetworkAuthenticationMethod)) + m.SetSecondaryAuthenticationMethod(val.(*WindowsWiredNetworkConfiguration_secondaryAuthenticationMethod)) } return nil } @@ -411,13 +411,13 @@ func (m *WindowsWiredNetworkConfiguration) GetIdentityCertificateForClientAuthen return nil } // GetInnerAuthenticationProtocolForEAPTTLS gets the innerAuthenticationProtocolForEAPTTLS property value. Specify inner authentication protocol for EAP TTLS. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *WindowsWiredNetworkConfiguration) GetInnerAuthenticationProtocolForEAPTTLS()(*NonEapAuthenticationMethodForEapTtlsType) { +func (m *WindowsWiredNetworkConfiguration) GetInnerAuthenticationProtocolForEAPTTLS()(*WindowsWiredNetworkConfiguration_innerAuthenticationProtocolForEAPTTLS) { val, err := m.GetBackingStore().Get("innerAuthenticationProtocolForEAPTTLS") if err != nil { panic(err) } if val != nil { - return val.(*NonEapAuthenticationMethodForEapTtlsType) + return val.(*WindowsWiredNetworkConfiguration_innerAuthenticationProtocolForEAPTTLS) } return nil } @@ -499,13 +499,13 @@ func (m *WindowsWiredNetworkConfiguration) GetRootCertificatesForServerValidatio return nil } // GetSecondaryAuthenticationMethod gets the secondaryAuthenticationMethod property value. Specify the secondary authentication method. Possible values are: certificate, usernameAndPassword, derivedCredential. Possible values are: certificate, usernameAndPassword, derivedCredential, unknownFutureValue. -func (m *WindowsWiredNetworkConfiguration) GetSecondaryAuthenticationMethod()(*WiredNetworkAuthenticationMethod) { +func (m *WindowsWiredNetworkConfiguration) GetSecondaryAuthenticationMethod()(*WindowsWiredNetworkConfiguration_secondaryAuthenticationMethod) { val, err := m.GetBackingStore().Get("secondaryAuthenticationMethod") if err != nil { panic(err) } if val != nil { - return val.(*WiredNetworkAuthenticationMethod) + return val.(*WindowsWiredNetworkConfiguration_secondaryAuthenticationMethod) } return nil } @@ -713,7 +713,7 @@ func (m *WindowsWiredNetworkConfiguration) SetAuthenticationBlockPeriodInMinutes } } // SetAuthenticationMethod sets the authenticationMethod property value. Specify the authentication method. Possible values are: certificate, usernameAndPassword, derivedCredential. Possible values are: certificate, usernameAndPassword, derivedCredential, unknownFutureValue. -func (m *WindowsWiredNetworkConfiguration) SetAuthenticationMethod(value *WiredNetworkAuthenticationMethod)() { +func (m *WindowsWiredNetworkConfiguration) SetAuthenticationMethod(value *WindowsWiredNetworkConfiguration_authenticationMethod)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { panic(err) @@ -734,7 +734,7 @@ func (m *WindowsWiredNetworkConfiguration) SetAuthenticationRetryDelayPeriodInSe } } // SetAuthenticationType sets the authenticationType property value. Specify whether to authenticate the user, the device, either, or to use guest authentication (none). If you're using certificate authentication, make sure the certificate type matches the authentication type. Possible values are: none, user, machine, machineOrUser, guest. Possible values are: none, user, machine, machineOrUser, guest, unknownFutureValue. -func (m *WindowsWiredNetworkConfiguration) SetAuthenticationType(value *WiredNetworkAuthenticationType)() { +func (m *WindowsWiredNetworkConfiguration) SetAuthenticationType(value *WindowsWiredNetworkConfiguration_authenticationType)() { err := m.GetBackingStore().Set("authenticationType", value) if err != nil { panic(err) @@ -790,7 +790,7 @@ func (m *WindowsWiredNetworkConfiguration) SetIdentityCertificateForClientAuthen } } // SetInnerAuthenticationProtocolForEAPTTLS sets the innerAuthenticationProtocolForEAPTTLS property value. Specify inner authentication protocol for EAP TTLS. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. -func (m *WindowsWiredNetworkConfiguration) SetInnerAuthenticationProtocolForEAPTTLS(value *NonEapAuthenticationMethodForEapTtlsType)() { +func (m *WindowsWiredNetworkConfiguration) SetInnerAuthenticationProtocolForEAPTTLS(value *WindowsWiredNetworkConfiguration_innerAuthenticationProtocolForEAPTTLS)() { err := m.GetBackingStore().Set("innerAuthenticationProtocolForEAPTTLS", value) if err != nil { panic(err) @@ -846,7 +846,7 @@ func (m *WindowsWiredNetworkConfiguration) SetRootCertificatesForServerValidatio } } // SetSecondaryAuthenticationMethod sets the secondaryAuthenticationMethod property value. Specify the secondary authentication method. Possible values are: certificate, usernameAndPassword, derivedCredential. Possible values are: certificate, usernameAndPassword, derivedCredential, unknownFutureValue. -func (m *WindowsWiredNetworkConfiguration) SetSecondaryAuthenticationMethod(value *WiredNetworkAuthenticationMethod)() { +func (m *WindowsWiredNetworkConfiguration) SetSecondaryAuthenticationMethod(value *WindowsWiredNetworkConfiguration_secondaryAuthenticationMethod)() { err := m.GetBackingStore().Set("secondaryAuthenticationMethod", value) if err != nil { panic(err) @@ -878,10 +878,10 @@ type WindowsWiredNetworkConfigurationable interface { DeviceConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAuthenticationBlockPeriodInMinutes()(*int32) - GetAuthenticationMethod()(*WiredNetworkAuthenticationMethod) + GetAuthenticationMethod()(*WindowsWiredNetworkConfiguration_authenticationMethod) GetAuthenticationPeriodInSeconds()(*int32) GetAuthenticationRetryDelayPeriodInSeconds()(*int32) - GetAuthenticationType()(*WiredNetworkAuthenticationType) + GetAuthenticationType()(*WindowsWiredNetworkConfiguration_authenticationType) GetCacheCredentials()(*bool) GetDisableUserPromptForServerValidation()(*bool) GetEapolStartPeriodInSeconds()(*int32) @@ -889,7 +889,7 @@ type WindowsWiredNetworkConfigurationable interface { GetEnforce8021X()(*bool) GetForceFIPSCompliance()(*bool) GetIdentityCertificateForClientAuthentication()(WindowsCertificateProfileBaseable) - GetInnerAuthenticationProtocolForEAPTTLS()(*NonEapAuthenticationMethodForEapTtlsType) + GetInnerAuthenticationProtocolForEAPTTLS()(*WindowsWiredNetworkConfiguration_innerAuthenticationProtocolForEAPTTLS) GetMaximumAuthenticationFailures()(*int32) GetMaximumEAPOLStartMessages()(*int32) GetOuterIdentityPrivacyTemporaryValue()(*string) @@ -897,15 +897,15 @@ type WindowsWiredNetworkConfigurationable interface { GetRequireCryptographicBinding()(*bool) GetRootCertificateForClientValidation()(Windows81TrustedRootCertificateable) GetRootCertificatesForServerValidation()([]Windows81TrustedRootCertificateable) - GetSecondaryAuthenticationMethod()(*WiredNetworkAuthenticationMethod) + GetSecondaryAuthenticationMethod()(*WindowsWiredNetworkConfiguration_secondaryAuthenticationMethod) GetSecondaryIdentityCertificateForClientAuthentication()(WindowsCertificateProfileBaseable) GetSecondaryRootCertificateForClientValidation()(Windows81TrustedRootCertificateable) GetTrustedServerCertificateNames()([]string) SetAuthenticationBlockPeriodInMinutes(value *int32)() - SetAuthenticationMethod(value *WiredNetworkAuthenticationMethod)() + SetAuthenticationMethod(value *WindowsWiredNetworkConfiguration_authenticationMethod)() SetAuthenticationPeriodInSeconds(value *int32)() SetAuthenticationRetryDelayPeriodInSeconds(value *int32)() - SetAuthenticationType(value *WiredNetworkAuthenticationType)() + SetAuthenticationType(value *WindowsWiredNetworkConfiguration_authenticationType)() SetCacheCredentials(value *bool)() SetDisableUserPromptForServerValidation(value *bool)() SetEapolStartPeriodInSeconds(value *int32)() @@ -913,7 +913,7 @@ type WindowsWiredNetworkConfigurationable interface { SetEnforce8021X(value *bool)() SetForceFIPSCompliance(value *bool)() SetIdentityCertificateForClientAuthentication(value WindowsCertificateProfileBaseable)() - SetInnerAuthenticationProtocolForEAPTTLS(value *NonEapAuthenticationMethodForEapTtlsType)() + SetInnerAuthenticationProtocolForEAPTTLS(value *WindowsWiredNetworkConfiguration_innerAuthenticationProtocolForEAPTTLS)() SetMaximumAuthenticationFailures(value *int32)() SetMaximumEAPOLStartMessages(value *int32)() SetOuterIdentityPrivacyTemporaryValue(value *string)() @@ -921,7 +921,7 @@ type WindowsWiredNetworkConfigurationable interface { SetRequireCryptographicBinding(value *bool)() SetRootCertificateForClientValidation(value Windows81TrustedRootCertificateable)() SetRootCertificatesForServerValidation(value []Windows81TrustedRootCertificateable)() - SetSecondaryAuthenticationMethod(value *WiredNetworkAuthenticationMethod)() + SetSecondaryAuthenticationMethod(value *WindowsWiredNetworkConfiguration_secondaryAuthenticationMethod)() SetSecondaryIdentityCertificateForClientAuthentication(value WindowsCertificateProfileBaseable)() SetSecondaryRootCertificateForClientValidation(value Windows81TrustedRootCertificateable)() SetTrustedServerCertificateNames(value []string)() diff --git a/models/windows_wired_network_configuration_authentication_method.go b/models/windows_wired_network_configuration_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wired_network_configuration_authentication_type.go b/models/windows_wired_network_configuration_authentication_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wired_network_configuration_inner_authentication_protocol_for_e_a_p_t_t_l_s.go b/models/windows_wired_network_configuration_inner_authentication_protocol_for_e_a_p_t_t_l_s.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windows_wired_network_configuration_secondary_authentication_method.go b/models/windows_wired_network_configuration_secondary_authentication_method.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windowsupdates/cve_severity_level.go b/models/windowsupdates/cve_severity_level.go deleted file mode 100644 index f0d98f3ec41..00000000000 --- a/models/windowsupdates/cve_severity_level.go +++ /dev/null @@ -1,43 +0,0 @@ -package windowsupdates -import ( - "errors" -) -// -type CveSeverityLevel int - -const ( - CRITICAL_CVESEVERITYLEVEL CveSeverityLevel = iota - IMPORTANT_CVESEVERITYLEVEL - MODERATE_CVESEVERITYLEVEL - UNKNOWNFUTUREVALUE_CVESEVERITYLEVEL -) - -func (i CveSeverityLevel) String() string { - return []string{"critical", "important", "moderate", "unknownFutureValue"}[i] -} -func ParseCveSeverityLevel(v string) (any, error) { - result := CRITICAL_CVESEVERITYLEVEL - switch v { - case "critical": - result = CRITICAL_CVESEVERITYLEVEL - case "important": - result = IMPORTANT_CVESEVERITYLEVEL - case "moderate": - result = MODERATE_CVESEVERITYLEVEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_CVESEVERITYLEVEL - default: - return 0, errors.New("Unknown CveSeverityLevel value: " + v) - } - return &result, nil -} -func SerializeCveSeverityLevel(values []CveSeverityLevel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i CveSeverityLevel) isMultiValue() bool { - return false -} diff --git a/models/windowsupdates/monitoring_action.go b/models/windowsupdates/monitoring_action.go deleted file mode 100644 index 296096b8c32..00000000000 --- a/models/windowsupdates/monitoring_action.go +++ /dev/null @@ -1,43 +0,0 @@ -package windowsupdates -import ( - "errors" -) -// -type MonitoringAction int - -const ( - ALERTERROR_MONITORINGACTION MonitoringAction = iota - OFFERFALLBACK_MONITORINGACTION - PAUSEDEPLOYMENT_MONITORINGACTION - UNKNOWNFUTUREVALUE_MONITORINGACTION -) - -func (i MonitoringAction) String() string { - return []string{"alertError", "offerFallback", "pauseDeployment", "unknownFutureValue"}[i] -} -func ParseMonitoringAction(v string) (any, error) { - result := ALERTERROR_MONITORINGACTION - switch v { - case "alertError": - result = ALERTERROR_MONITORINGACTION - case "offerFallback": - result = OFFERFALLBACK_MONITORINGACTION - case "pauseDeployment": - result = PAUSEDEPLOYMENT_MONITORINGACTION - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MONITORINGACTION - default: - return 0, errors.New("Unknown MonitoringAction value: " + v) - } - return &result, nil -} -func SerializeMonitoringAction(values []MonitoringAction) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MonitoringAction) isMultiValue() bool { - return false -} diff --git a/models/windowsupdates/monitoring_rule.go b/models/windowsupdates/monitoring_rule.go index 7287be97ff7..ed630d7c7d8 100644 --- a/models/windowsupdates/monitoring_rule.go +++ b/models/windowsupdates/monitoring_rule.go @@ -23,13 +23,13 @@ func CreateMonitoringRuleFromDiscriminatorValue(parseNode i878a80d2330e89d268963 return NewMonitoringRule(), nil } // GetAction gets the action property value. The action triggered when the threshold for the given signal is reached. Possible values are: alertError, pauseDeployment, offerFallback, unknownFutureValue. The offerFallback member is only supported on feature update deployments of Windows 11 and must be paired with the ineligible signal. The fallback version offered is the version 22H2 of Windows 10. -func (m *MonitoringRule) GetAction()(*MonitoringAction) { +func (m *MonitoringRule) GetAction()(*MonitoringRule_action) { val, err := m.GetBackingStore().Get("action") if err != nil { panic(err) } if val != nil { - return val.(*MonitoringAction) + return val.(*MonitoringRule_action) } return nil } @@ -53,12 +53,12 @@ func (m *MonitoringRule) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185 func (m *MonitoringRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMonitoringAction) + val, err := n.GetEnumValue(ParseMonitoringRule_action) if err != nil { return err } if val != nil { - m.SetAction(val.(*MonitoringAction)) + m.SetAction(val.(*MonitoringRule_action)) } return nil } @@ -73,12 +73,12 @@ func (m *MonitoringRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89 return nil } res["signal"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseMonitoringSignal) + val, err := n.GetEnumValue(ParseMonitoringRule_signal) if err != nil { return err } if val != nil { - m.SetSignal(val.(*MonitoringSignal)) + m.SetSignal(val.(*MonitoringRule_signal)) } return nil } @@ -106,13 +106,13 @@ func (m *MonitoringRule) GetOdataType()(*string) { return nil } // GetSignal gets the signal property value. The signal to monitor. Possible values are: rollback, ineligible, unknownFutureValue. The ineligible member is only supported on feature update deployments of Windows 11 and must be paired with the offerFallback action. -func (m *MonitoringRule) GetSignal()(*MonitoringSignal) { +func (m *MonitoringRule) GetSignal()(*MonitoringRule_signal) { val, err := m.GetBackingStore().Get("signal") if err != nil { panic(err) } if val != nil { - return val.(*MonitoringSignal) + return val.(*MonitoringRule_signal) } return nil } @@ -164,7 +164,7 @@ func (m *MonitoringRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return nil } // SetAction sets the action property value. The action triggered when the threshold for the given signal is reached. Possible values are: alertError, pauseDeployment, offerFallback, unknownFutureValue. The offerFallback member is only supported on feature update deployments of Windows 11 and must be paired with the ineligible signal. The fallback version offered is the version 22H2 of Windows 10. -func (m *MonitoringRule) SetAction(value *MonitoringAction)() { +func (m *MonitoringRule) SetAction(value *MonitoringRule_action)() { err := m.GetBackingStore().Set("action", value) if err != nil { panic(err) @@ -189,7 +189,7 @@ func (m *MonitoringRule) SetOdataType(value *string)() { } } // SetSignal sets the signal property value. The signal to monitor. Possible values are: rollback, ineligible, unknownFutureValue. The ineligible member is only supported on feature update deployments of Windows 11 and must be paired with the offerFallback action. -func (m *MonitoringRule) SetSignal(value *MonitoringSignal)() { +func (m *MonitoringRule) SetSignal(value *MonitoringRule_signal)() { err := m.GetBackingStore().Set("signal", value) if err != nil { panic(err) @@ -207,14 +207,14 @@ type MonitoringRuleable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAction()(*MonitoringAction) + GetAction()(*MonitoringRule_action) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetSignal()(*MonitoringSignal) + GetSignal()(*MonitoringRule_signal) GetThreshold()(*int32) - SetAction(value *MonitoringAction)() + SetAction(value *MonitoringRule_action)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetSignal(value *MonitoringSignal)() + SetSignal(value *MonitoringRule_signal)() SetThreshold(value *int32)() } diff --git a/models/windowsupdates/monitoring_rule_action.go b/models/windowsupdates/monitoring_rule_action.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windowsupdates/monitoring_rule_signal.go b/models/windowsupdates/monitoring_rule_signal.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windowsupdates/monitoring_signal.go b/models/windowsupdates/monitoring_signal.go deleted file mode 100644 index 3477fafb7aa..00000000000 --- a/models/windowsupdates/monitoring_signal.go +++ /dev/null @@ -1,40 +0,0 @@ -package windowsupdates -import ( - "errors" -) -// -type MonitoringSignal int - -const ( - ROLLBACK_MONITORINGSIGNAL MonitoringSignal = iota - INELIGIBLE_MONITORINGSIGNAL - UNKNOWNFUTUREVALUE_MONITORINGSIGNAL -) - -func (i MonitoringSignal) String() string { - return []string{"rollback", "ineligible", "unknownFutureValue"}[i] -} -func ParseMonitoringSignal(v string) (any, error) { - result := ROLLBACK_MONITORINGSIGNAL - switch v { - case "rollback": - result = ROLLBACK_MONITORINGSIGNAL - case "ineligible": - result = INELIGIBLE_MONITORINGSIGNAL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_MONITORINGSIGNAL - default: - return 0, errors.New("Unknown MonitoringSignal value: " + v) - } - return &result, nil -} -func SerializeMonitoringSignal(values []MonitoringSignal) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i MonitoringSignal) isMultiValue() bool { - return false -} diff --git a/models/windowsupdates/quality_update_cadence.go b/models/windowsupdates/quality_update_cadence.go deleted file mode 100644 index 5a0398852ee..00000000000 --- a/models/windowsupdates/quality_update_cadence.go +++ /dev/null @@ -1,40 +0,0 @@ -package windowsupdates -import ( - "errors" -) -// -type QualityUpdateCadence int - -const ( - MONTHLY_QUALITYUPDATECADENCE QualityUpdateCadence = iota - OUTOFBAND_QUALITYUPDATECADENCE - UNKNOWNFUTUREVALUE_QUALITYUPDATECADENCE -) - -func (i QualityUpdateCadence) String() string { - return []string{"monthly", "outOfBand", "unknownFutureValue"}[i] -} -func ParseQualityUpdateCadence(v string) (any, error) { - result := MONTHLY_QUALITYUPDATECADENCE - switch v { - case "monthly": - result = MONTHLY_QUALITYUPDATECADENCE - case "outOfBand": - result = OUTOFBAND_QUALITYUPDATECADENCE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_QUALITYUPDATECADENCE - default: - return 0, errors.New("Unknown QualityUpdateCadence value: " + v) - } - return &result, nil -} -func SerializeQualityUpdateCadence(values []QualityUpdateCadence) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i QualityUpdateCadence) isMultiValue() bool { - return false -} diff --git a/models/windowsupdates/quality_update_catalog_entry.go b/models/windowsupdates/quality_update_catalog_entry.go index 02995798006..0353e226697 100644 --- a/models/windowsupdates/quality_update_catalog_entry.go +++ b/models/windowsupdates/quality_update_catalog_entry.go @@ -93,12 +93,12 @@ func (m *QualityUpdateCatalogEntry) GetFieldDeserializers()(map[string]func(i878 return nil } res["qualityUpdateCadence"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseQualityUpdateCadence) + val, err := n.GetEnumValue(ParseQualityUpdateCatalogEntry_qualityUpdateCadence) if err != nil { return err } if val != nil { - m.SetQualityUpdateCadence(val.(*QualityUpdateCadence)) + m.SetQualityUpdateCadence(val.(*QualityUpdateCatalogEntry_qualityUpdateCadence)) } return nil } @@ -147,13 +147,13 @@ func (m *QualityUpdateCatalogEntry) GetProductRevisions()([]ProductRevisionable) return nil } // GetQualityUpdateCadence gets the qualityUpdateCadence property value. The publishing cadence of the quality update. Possible values are: monthly, outOfBand, unknownFutureValue. Read-only. -func (m *QualityUpdateCatalogEntry) GetQualityUpdateCadence()(*QualityUpdateCadence) { +func (m *QualityUpdateCatalogEntry) GetQualityUpdateCadence()(*QualityUpdateCatalogEntry_qualityUpdateCadence) { val, err := m.GetBackingStore().Get("qualityUpdateCadence") if err != nil { panic(err) } if val != nil { - return val.(*QualityUpdateCadence) + return val.(*QualityUpdateCatalogEntry_qualityUpdateCadence) } return nil } @@ -266,7 +266,7 @@ func (m *QualityUpdateCatalogEntry) SetProductRevisions(value []ProductRevisiona } } // SetQualityUpdateCadence sets the qualityUpdateCadence property value. The publishing cadence of the quality update. Possible values are: monthly, outOfBand, unknownFutureValue. Read-only. -func (m *QualityUpdateCatalogEntry) SetQualityUpdateCadence(value *QualityUpdateCadence)() { +func (m *QualityUpdateCatalogEntry) SetQualityUpdateCadence(value *QualityUpdateCatalogEntry_qualityUpdateCadence)() { err := m.GetBackingStore().Set("qualityUpdateCadence", value) if err != nil { panic(err) @@ -294,14 +294,14 @@ type QualityUpdateCatalogEntryable interface { GetCveSeverityInformation()(QualityUpdateCveSeverityInformationable) GetIsExpeditable()(*bool) GetProductRevisions()([]ProductRevisionable) - GetQualityUpdateCadence()(*QualityUpdateCadence) + GetQualityUpdateCadence()(*QualityUpdateCatalogEntry_qualityUpdateCadence) GetQualityUpdateClassification()(*QualityUpdateClassification) GetShortName()(*string) SetCatalogName(value *string)() SetCveSeverityInformation(value QualityUpdateCveSeverityInformationable)() SetIsExpeditable(value *bool)() SetProductRevisions(value []ProductRevisionable)() - SetQualityUpdateCadence(value *QualityUpdateCadence)() + SetQualityUpdateCadence(value *QualityUpdateCatalogEntry_qualityUpdateCadence)() SetQualityUpdateClassification(value *QualityUpdateClassification)() SetShortName(value *string)() } diff --git a/models/windowsupdates/quality_update_catalog_entry_quality_update_cadence.go b/models/windowsupdates/quality_update_catalog_entry_quality_update_cadence.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windowsupdates/quality_update_cve_severity_information.go b/models/windowsupdates/quality_update_cve_severity_information.go index 3a6bdf52f4a..9a681b9117d 100644 --- a/models/windowsupdates/quality_update_cve_severity_information.go +++ b/models/windowsupdates/quality_update_cve_severity_information.go @@ -79,12 +79,12 @@ func (m *QualityUpdateCveSeverityInformation) GetFieldDeserializers()(map[string return nil } res["maxSeverity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseCveSeverityLevel) + val, err := n.GetEnumValue(ParseQualityUpdateCveSeverityInformation_maxSeverity) if err != nil { return err } if val != nil { - m.SetMaxSeverity(val.(*CveSeverityLevel)) + m.SetMaxSeverity(val.(*QualityUpdateCveSeverityInformation_maxSeverity)) } return nil } @@ -112,13 +112,13 @@ func (m *QualityUpdateCveSeverityInformation) GetMaxBaseScore()(*float64) { return nil } // GetMaxSeverity gets the maxSeverity property value. The maxSeverity property -func (m *QualityUpdateCveSeverityInformation) GetMaxSeverity()(*CveSeverityLevel) { +func (m *QualityUpdateCveSeverityInformation) GetMaxSeverity()(*QualityUpdateCveSeverityInformation_maxSeverity) { val, err := m.GetBackingStore().Get("maxSeverity") if err != nil { panic(err) } if val != nil { - return val.(*CveSeverityLevel) + return val.(*QualityUpdateCveSeverityInformation_maxSeverity) } return nil } @@ -200,7 +200,7 @@ func (m *QualityUpdateCveSeverityInformation) SetMaxBaseScore(value *float64)() } } // SetMaxSeverity sets the maxSeverity property value. The maxSeverity property -func (m *QualityUpdateCveSeverityInformation) SetMaxSeverity(value *CveSeverityLevel)() { +func (m *QualityUpdateCveSeverityInformation) SetMaxSeverity(value *QualityUpdateCveSeverityInformation_maxSeverity)() { err := m.GetBackingStore().Set("maxSeverity", value) if err != nil { panic(err) @@ -221,11 +221,11 @@ type QualityUpdateCveSeverityInformationable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExploitedCves()([]CveInformationable) GetMaxBaseScore()(*float64) - GetMaxSeverity()(*CveSeverityLevel) + GetMaxSeverity()(*QualityUpdateCveSeverityInformation_maxSeverity) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExploitedCves(value []CveInformationable)() SetMaxBaseScore(value *float64)() - SetMaxSeverity(value *CveSeverityLevel)() + SetMaxSeverity(value *QualityUpdateCveSeverityInformation_maxSeverity)() SetOdataType(value *string)() } diff --git a/models/windowsupdates/quality_update_cve_severity_information_max_severity.go b/models/windowsupdates/quality_update_cve_severity_information_max_severity.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/windowsupdates/resource_connection.go b/models/windowsupdates/resource_connection.go index 66af1433a08..0efd155cc9b 100644 --- a/models/windowsupdates/resource_connection.go +++ b/models/windowsupdates/resource_connection.go @@ -42,25 +42,25 @@ func CreateResourceConnectionFromDiscriminatorValue(parseNode i878a80d2330e89d26 func (m *ResourceConnection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseResourceConnectionState) + val, err := n.GetEnumValue(ParseResourceConnection_state) if err != nil { return err } if val != nil { - m.SetState(val.(*ResourceConnectionState)) + m.SetState(val.(*ResourceConnection_state)) } return nil } return res } // GetState gets the state property value. The state of the connection. The possible values are: connected, notAuthorized, notFound, unknownFutureValue. -func (m *ResourceConnection) GetState()(*ResourceConnectionState) { +func (m *ResourceConnection) GetState()(*ResourceConnection_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*ResourceConnectionState) + return val.(*ResourceConnection_state) } return nil } @@ -80,7 +80,7 @@ func (m *ResourceConnection) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return nil } // SetState sets the state property value. The state of the connection. The possible values are: connected, notAuthorized, notFound, unknownFutureValue. -func (m *ResourceConnection) SetState(value *ResourceConnectionState)() { +func (m *ResourceConnection) SetState(value *ResourceConnection_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -90,6 +90,6 @@ func (m *ResourceConnection) SetState(value *ResourceConnectionState)() { type ResourceConnectionable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetState()(*ResourceConnectionState) - SetState(value *ResourceConnectionState)() + GetState()(*ResourceConnection_state) + SetState(value *ResourceConnection_state)() } diff --git a/models/windowsupdates/resource_connection_state.go b/models/windowsupdates/resource_connection_state.go index ad8f3441036..e69de29bb2d 100644 --- a/models/windowsupdates/resource_connection_state.go +++ b/models/windowsupdates/resource_connection_state.go @@ -1,43 +0,0 @@ -package windowsupdates -import ( - "errors" -) -// -type ResourceConnectionState int - -const ( - CONNECTED_RESOURCECONNECTIONSTATE ResourceConnectionState = iota - NOTAUTHORIZED_RESOURCECONNECTIONSTATE - NOTFOUND_RESOURCECONNECTIONSTATE - UNKNOWNFUTUREVALUE_RESOURCECONNECTIONSTATE -) - -func (i ResourceConnectionState) String() string { - return []string{"connected", "notAuthorized", "notFound", "unknownFutureValue"}[i] -} -func ParseResourceConnectionState(v string) (any, error) { - result := CONNECTED_RESOURCECONNECTIONSTATE - switch v { - case "connected": - result = CONNECTED_RESOURCECONNECTIONSTATE - case "notAuthorized": - result = NOTAUTHORIZED_RESOURCECONNECTIONSTATE - case "notFound": - result = NOTFOUND_RESOURCECONNECTIONSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_RESOURCECONNECTIONSTATE - default: - return 0, errors.New("Unknown ResourceConnectionState value: " + v) - } - return &result, nil -} -func SerializeResourceConnectionState(values []ResourceConnectionState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i ResourceConnectionState) isMultiValue() bool { - return false -} diff --git a/models/windowsupdates/safeguard_category.go b/models/windowsupdates/safeguard_category.go deleted file mode 100644 index 3d184040cc5..00000000000 --- a/models/windowsupdates/safeguard_category.go +++ /dev/null @@ -1,37 +0,0 @@ -package windowsupdates -import ( - "errors" -) -// -type SafeguardCategory int - -const ( - LIKELYISSUES_SAFEGUARDCATEGORY SafeguardCategory = iota - UNKNOWNFUTUREVALUE_SAFEGUARDCATEGORY -) - -func (i SafeguardCategory) String() string { - return []string{"likelyIssues", "unknownFutureValue"}[i] -} -func ParseSafeguardCategory(v string) (any, error) { - result := LIKELYISSUES_SAFEGUARDCATEGORY - switch v { - case "likelyIssues": - result = LIKELYISSUES_SAFEGUARDCATEGORY - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SAFEGUARDCATEGORY - default: - return 0, errors.New("Unknown SafeguardCategory value: " + v) - } - return &result, nil -} -func SerializeSafeguardCategory(values []SafeguardCategory) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i SafeguardCategory) isMultiValue() bool { - return false -} diff --git a/models/windowsupdates/safeguard_profile.go b/models/windowsupdates/safeguard_profile.go index 89c6a6311e7..a8636d1b97f 100644 --- a/models/windowsupdates/safeguard_profile.go +++ b/models/windowsupdates/safeguard_profile.go @@ -39,13 +39,13 @@ func (m *SafeguardProfile) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d411 return m.backingStore } // GetCategory gets the category property value. Specifies the category of safeguards. The possible values are: likelyIssues, unknownFutureValue. -func (m *SafeguardProfile) GetCategory()(*SafeguardCategory) { +func (m *SafeguardProfile) GetCategory()(*SafeguardProfile_category) { val, err := m.GetBackingStore().Get("category") if err != nil { panic(err) } if val != nil { - return val.(*SafeguardCategory) + return val.(*SafeguardProfile_category) } return nil } @@ -53,12 +53,12 @@ func (m *SafeguardProfile) GetCategory()(*SafeguardCategory) { func (m *SafeguardProfile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["category"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseSafeguardCategory) + val, err := n.GetEnumValue(ParseSafeguardProfile_category) if err != nil { return err } if val != nil { - m.SetCategory(val.(*SafeguardCategory)) + m.SetCategory(val.(*SafeguardProfile_category)) } return nil } @@ -120,7 +120,7 @@ func (m *SafeguardProfile) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078 m.backingStore = value } // SetCategory sets the category property value. Specifies the category of safeguards. The possible values are: likelyIssues, unknownFutureValue. -func (m *SafeguardProfile) SetCategory(value *SafeguardCategory)() { +func (m *SafeguardProfile) SetCategory(value *SafeguardProfile_category)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) @@ -139,9 +139,9 @@ type SafeguardProfileable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCategory()(*SafeguardCategory) + GetCategory()(*SafeguardProfile_category) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCategory(value *SafeguardCategory)() + SetCategory(value *SafeguardProfile_category)() SetOdataType(value *string)() } diff --git a/models/windowsupdates/safeguard_profile_category.go b/models/windowsupdates/safeguard_profile_category.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/wired_network_authentication_method.go b/models/wired_network_authentication_method.go deleted file mode 100644 index 175d266ae3f..00000000000 --- a/models/wired_network_authentication_method.go +++ /dev/null @@ -1,47 +0,0 @@ -package models -import ( - "errors" -) -// Wired Network authentication method. -type WiredNetworkAuthenticationMethod int - -const ( - // Use an identity certificate for authentication. - CERTIFICATE_WIREDNETWORKAUTHENTICATIONMETHOD WiredNetworkAuthenticationMethod = iota - // Use username and password for authentication. - USERNAMEANDPASSWORD_WIREDNETWORKAUTHENTICATIONMETHOD - // Use Derived Credential for authentication. - DERIVEDCREDENTIAL_WIREDNETWORKAUTHENTICATIONMETHOD - // Sentinel member for cases where the client cannot handle the new enum values. - UNKNOWNFUTUREVALUE_WIREDNETWORKAUTHENTICATIONMETHOD -) - -func (i WiredNetworkAuthenticationMethod) String() string { - return []string{"certificate", "usernameAndPassword", "derivedCredential", "unknownFutureValue"}[i] -} -func ParseWiredNetworkAuthenticationMethod(v string) (any, error) { - result := CERTIFICATE_WIREDNETWORKAUTHENTICATIONMETHOD - switch v { - case "certificate": - result = CERTIFICATE_WIREDNETWORKAUTHENTICATIONMETHOD - case "usernameAndPassword": - result = USERNAMEANDPASSWORD_WIREDNETWORKAUTHENTICATIONMETHOD - case "derivedCredential": - result = DERIVEDCREDENTIAL_WIREDNETWORKAUTHENTICATIONMETHOD - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_WIREDNETWORKAUTHENTICATIONMETHOD - default: - return 0, errors.New("Unknown WiredNetworkAuthenticationMethod value: " + v) - } - return &result, nil -} -func SerializeWiredNetworkAuthenticationMethod(values []WiredNetworkAuthenticationMethod) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WiredNetworkAuthenticationMethod) isMultiValue() bool { - return false -} diff --git a/models/wired_network_authentication_type.go b/models/wired_network_authentication_type.go deleted file mode 100644 index 2ced68e9cc9..00000000000 --- a/models/wired_network_authentication_type.go +++ /dev/null @@ -1,55 +0,0 @@ -package models -import ( - "errors" -) -// Wired Network Authentication Type Settings. -type WiredNetworkAuthenticationType int - -const ( - // None - NONE_WIREDNETWORKAUTHENTICATIONTYPE WiredNetworkAuthenticationType = iota - // User Authentication - USER_WIREDNETWORKAUTHENTICATIONTYPE - // Machine Authentication - MACHINE_WIREDNETWORKAUTHENTICATIONTYPE - // Machine or User Authentication - MACHINEORUSER_WIREDNETWORKAUTHENTICATIONTYPE - // Guest Authentication - GUEST_WIREDNETWORKAUTHENTICATIONTYPE - // Sentinel member for cases where the client cannot handle the new enum values. - UNKNOWNFUTUREVALUE_WIREDNETWORKAUTHENTICATIONTYPE -) - -func (i WiredNetworkAuthenticationType) String() string { - return []string{"none", "user", "machine", "machineOrUser", "guest", "unknownFutureValue"}[i] -} -func ParseWiredNetworkAuthenticationType(v string) (any, error) { - result := NONE_WIREDNETWORKAUTHENTICATIONTYPE - switch v { - case "none": - result = NONE_WIREDNETWORKAUTHENTICATIONTYPE - case "user": - result = USER_WIREDNETWORKAUTHENTICATIONTYPE - case "machine": - result = MACHINE_WIREDNETWORKAUTHENTICATIONTYPE - case "machineOrUser": - result = MACHINEORUSER_WIREDNETWORKAUTHENTICATIONTYPE - case "guest": - result = GUEST_WIREDNETWORKAUTHENTICATIONTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_WIREDNETWORKAUTHENTICATIONTYPE - default: - return 0, errors.New("Unknown WiredNetworkAuthenticationType value: " + v) - } - return &result, nil -} -func SerializeWiredNetworkAuthenticationType(values []WiredNetworkAuthenticationType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WiredNetworkAuthenticationType) isMultiValue() bool { - return false -} diff --git a/models/workforce_integration.go b/models/workforce_integration.go index 4c398b60cbe..2a89c2f35eb 100644 --- a/models/workforce_integration.go +++ b/models/workforce_integration.go @@ -44,13 +44,13 @@ func (m *WorkforceIntegration) GetDisplayName()(*string) { return nil } // GetEligibilityFilteringEnabledEntities gets the eligibilityFilteringEnabledEntities property value. The eligibilityFilteringEnabledEntities property -func (m *WorkforceIntegration) GetEligibilityFilteringEnabledEntities()(*EligibilityFilteringEnabledEntities) { +func (m *WorkforceIntegration) GetEligibilityFilteringEnabledEntities()(*WorkforceIntegration_eligibilityFilteringEnabledEntities) { val, err := m.GetBackingStore().Get("eligibilityFilteringEnabledEntities") if err != nil { panic(err) } if val != nil { - return val.(*EligibilityFilteringEnabledEntities) + return val.(*WorkforceIntegration_eligibilityFilteringEnabledEntities) } return nil } @@ -89,12 +89,12 @@ func (m *WorkforceIntegration) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["eligibilityFilteringEnabledEntities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseEligibilityFilteringEnabledEntities) + val, err := n.GetEnumValue(ParseWorkforceIntegration_eligibilityFilteringEnabledEntities) if err != nil { return err } if val != nil { - m.SetEligibilityFilteringEnabledEntities(val.(*EligibilityFilteringEnabledEntities)) + m.SetEligibilityFilteringEnabledEntities(val.(*WorkforceIntegration_eligibilityFilteringEnabledEntities)) } return nil } @@ -119,22 +119,22 @@ func (m *WorkforceIntegration) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["supportedEntities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWorkforceIntegrationSupportedEntities) + val, err := n.GetEnumValue(ParseWorkforceIntegration_supportedEntities) if err != nil { return err } if val != nil { - m.SetSupportedEntities(val.(*WorkforceIntegrationSupportedEntities)) + m.SetSupportedEntities(val.(*WorkforceIntegration_supportedEntities)) } return nil } res["supports"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWorkforceIntegrationSupportedEntities) + val, err := n.GetEnumValue(ParseWorkforceIntegration_supports) if err != nil { return err } if val != nil { - m.SetSupports(val.(*WorkforceIntegrationSupportedEntities)) + m.SetSupports(val.(*WorkforceIntegration_supports)) } return nil } @@ -162,24 +162,24 @@ func (m *WorkforceIntegration) GetIsActive()(*bool) { return nil } // GetSupportedEntities gets the supportedEntities property value. This property has replaced supports in v1.0. We recommend that you use this property instead of supports. The supports property is still supported in beta for the time being. The possible values are: none, shift, swapRequest, openshift, openShiftRequest, userShiftPreferences, offerShiftRequest, unknownFutureValue, timeCard, timeOffReason, timeOff, timeOffRequest. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: timeCard, timeOffReason, timeOff, timeOffRequest. If selecting more than one value, all values must start with the first letter in uppercase. -func (m *WorkforceIntegration) GetSupportedEntities()(*WorkforceIntegrationSupportedEntities) { +func (m *WorkforceIntegration) GetSupportedEntities()(*WorkforceIntegration_supportedEntities) { val, err := m.GetBackingStore().Get("supportedEntities") if err != nil { panic(err) } if val != nil { - return val.(*WorkforceIntegrationSupportedEntities) + return val.(*WorkforceIntegration_supportedEntities) } return nil } // GetSupports gets the supports property value. The Shifts entities supported for synchronous change notifications. Shifts make a callback to the url provided on client changes on those entities added here. By default, no entities are supported for change notifications. The possible values are: none, shift, swapRequest, openshift, openShiftRequest, userShiftPreferences, offerShiftRequest, unknownFutureValue, timeCard, timeOffReason, timeOff, timeOffRequest. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: timeCard, timeOffReason, timeOff, timeOffRequest. If selecting more than one value, all values must start with the first letter in uppercase. -func (m *WorkforceIntegration) GetSupports()(*WorkforceIntegrationSupportedEntities) { +func (m *WorkforceIntegration) GetSupports()(*WorkforceIntegration_supports) { val, err := m.GetBackingStore().Get("supports") if err != nil { panic(err) } if val != nil { - return val.(*WorkforceIntegrationSupportedEntities) + return val.(*WorkforceIntegration_supports) } return nil } @@ -268,7 +268,7 @@ func (m *WorkforceIntegration) SetDisplayName(value *string)() { } } // SetEligibilityFilteringEnabledEntities sets the eligibilityFilteringEnabledEntities property value. The eligibilityFilteringEnabledEntities property -func (m *WorkforceIntegration) SetEligibilityFilteringEnabledEntities(value *EligibilityFilteringEnabledEntities)() { +func (m *WorkforceIntegration) SetEligibilityFilteringEnabledEntities(value *WorkforceIntegration_eligibilityFilteringEnabledEntities)() { err := m.GetBackingStore().Set("eligibilityFilteringEnabledEntities", value) if err != nil { panic(err) @@ -289,14 +289,14 @@ func (m *WorkforceIntegration) SetIsActive(value *bool)() { } } // SetSupportedEntities sets the supportedEntities property value. This property has replaced supports in v1.0. We recommend that you use this property instead of supports. The supports property is still supported in beta for the time being. The possible values are: none, shift, swapRequest, openshift, openShiftRequest, userShiftPreferences, offerShiftRequest, unknownFutureValue, timeCard, timeOffReason, timeOff, timeOffRequest. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: timeCard, timeOffReason, timeOff, timeOffRequest. If selecting more than one value, all values must start with the first letter in uppercase. -func (m *WorkforceIntegration) SetSupportedEntities(value *WorkforceIntegrationSupportedEntities)() { +func (m *WorkforceIntegration) SetSupportedEntities(value *WorkforceIntegration_supportedEntities)() { err := m.GetBackingStore().Set("supportedEntities", value) if err != nil { panic(err) } } // SetSupports sets the supports property value. The Shifts entities supported for synchronous change notifications. Shifts make a callback to the url provided on client changes on those entities added here. By default, no entities are supported for change notifications. The possible values are: none, shift, swapRequest, openshift, openShiftRequest, userShiftPreferences, offerShiftRequest, unknownFutureValue, timeCard, timeOffReason, timeOff, timeOffRequest. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: timeCard, timeOffReason, timeOff, timeOffRequest. If selecting more than one value, all values must start with the first letter in uppercase. -func (m *WorkforceIntegration) SetSupports(value *WorkforceIntegrationSupportedEntities)() { +func (m *WorkforceIntegration) SetSupports(value *WorkforceIntegration_supports)() { err := m.GetBackingStore().Set("supports", value) if err != nil { panic(err) @@ -315,18 +315,18 @@ type WorkforceIntegrationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetApiVersion()(*int32) GetDisplayName()(*string) - GetEligibilityFilteringEnabledEntities()(*EligibilityFilteringEnabledEntities) + GetEligibilityFilteringEnabledEntities()(*WorkforceIntegration_eligibilityFilteringEnabledEntities) GetEncryption()(WorkforceIntegrationEncryptionable) GetIsActive()(*bool) - GetSupportedEntities()(*WorkforceIntegrationSupportedEntities) - GetSupports()(*WorkforceIntegrationSupportedEntities) + GetSupportedEntities()(*WorkforceIntegration_supportedEntities) + GetSupports()(*WorkforceIntegration_supports) GetUrl()(*string) SetApiVersion(value *int32)() SetDisplayName(value *string)() - SetEligibilityFilteringEnabledEntities(value *EligibilityFilteringEnabledEntities)() + SetEligibilityFilteringEnabledEntities(value *WorkforceIntegration_eligibilityFilteringEnabledEntities)() SetEncryption(value WorkforceIntegrationEncryptionable)() SetIsActive(value *bool)() - SetSupportedEntities(value *WorkforceIntegrationSupportedEntities)() - SetSupports(value *WorkforceIntegrationSupportedEntities)() + SetSupportedEntities(value *WorkforceIntegration_supportedEntities)() + SetSupports(value *WorkforceIntegration_supports)() SetUrl(value *string)() } diff --git a/models/workforce_integration_eligibility_filtering_enabled_entities.go b/models/workforce_integration_eligibility_filtering_enabled_entities.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/workforce_integration_encryption.go b/models/workforce_integration_encryption.go index c3037da85fc..8008f4adef6 100644 --- a/models/workforce_integration_encryption.go +++ b/models/workforce_integration_encryption.go @@ -52,12 +52,12 @@ func (m *WorkforceIntegrationEncryption) GetFieldDeserializers()(map[string]func return nil } res["protocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseWorkforceIntegrationEncryptionProtocol) + val, err := n.GetEnumValue(ParseWorkforceIntegrationEncryption_protocol) if err != nil { return err } if val != nil { - m.SetProtocol(val.(*WorkforceIntegrationEncryptionProtocol)) + m.SetProtocol(val.(*WorkforceIntegrationEncryption_protocol)) } return nil } @@ -85,13 +85,13 @@ func (m *WorkforceIntegrationEncryption) GetOdataType()(*string) { return nil } // GetProtocol gets the protocol property value. Possible values are: sharedSecret, unknownFutureValue. -func (m *WorkforceIntegrationEncryption) GetProtocol()(*WorkforceIntegrationEncryptionProtocol) { +func (m *WorkforceIntegrationEncryption) GetProtocol()(*WorkforceIntegrationEncryption_protocol) { val, err := m.GetBackingStore().Get("protocol") if err != nil { panic(err) } if val != nil { - return val.(*WorkforceIntegrationEncryptionProtocol) + return val.(*WorkforceIntegrationEncryption_protocol) } return nil } @@ -154,7 +154,7 @@ func (m *WorkforceIntegrationEncryption) SetOdataType(value *string)() { } } // SetProtocol sets the protocol property value. Possible values are: sharedSecret, unknownFutureValue. -func (m *WorkforceIntegrationEncryption) SetProtocol(value *WorkforceIntegrationEncryptionProtocol)() { +func (m *WorkforceIntegrationEncryption) SetProtocol(value *WorkforceIntegrationEncryption_protocol)() { err := m.GetBackingStore().Set("protocol", value) if err != nil { panic(err) @@ -174,10 +174,10 @@ type WorkforceIntegrationEncryptionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetProtocol()(*WorkforceIntegrationEncryptionProtocol) + GetProtocol()(*WorkforceIntegrationEncryption_protocol) GetSecret()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetProtocol(value *WorkforceIntegrationEncryptionProtocol)() + SetProtocol(value *WorkforceIntegrationEncryption_protocol)() SetSecret(value *string)() } diff --git a/models/workforce_integration_encryption_protocol.go b/models/workforce_integration_encryption_protocol.go index 199ab5a64be..e69de29bb2d 100644 --- a/models/workforce_integration_encryption_protocol.go +++ b/models/workforce_integration_encryption_protocol.go @@ -1,37 +0,0 @@ -package models -import ( - "errors" -) -// -type WorkforceIntegrationEncryptionProtocol int - -const ( - SHAREDSECRET_WORKFORCEINTEGRATIONENCRYPTIONPROTOCOL WorkforceIntegrationEncryptionProtocol = iota - UNKNOWNFUTUREVALUE_WORKFORCEINTEGRATIONENCRYPTIONPROTOCOL -) - -func (i WorkforceIntegrationEncryptionProtocol) String() string { - return []string{"sharedSecret", "unknownFutureValue"}[i] -} -func ParseWorkforceIntegrationEncryptionProtocol(v string) (any, error) { - result := SHAREDSECRET_WORKFORCEINTEGRATIONENCRYPTIONPROTOCOL - switch v { - case "sharedSecret": - result = SHAREDSECRET_WORKFORCEINTEGRATIONENCRYPTIONPROTOCOL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_WORKFORCEINTEGRATIONENCRYPTIONPROTOCOL - default: - return 0, errors.New("Unknown WorkforceIntegrationEncryptionProtocol value: " + v) - } - return &result, nil -} -func SerializeWorkforceIntegrationEncryptionProtocol(values []WorkforceIntegrationEncryptionProtocol) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WorkforceIntegrationEncryptionProtocol) isMultiValue() bool { - return false -} diff --git a/models/workforce_integration_supported_entities.go b/models/workforce_integration_supported_entities.go index 04ca05d848f..e69de29bb2d 100644 --- a/models/workforce_integration_supported_entities.go +++ b/models/workforce_integration_supported_entities.go @@ -1,77 +0,0 @@ -package models -import ( - "errors" - "strings" -) -// -type WorkforceIntegrationSupportedEntities int - -const ( - NONE_WORKFORCEINTEGRATIONSUPPORTEDENTITIES WorkforceIntegrationSupportedEntities = iota - SHIFT_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - SWAPREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - USERSHIFTPREFERENCES_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - OPENSHIFT_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - OPENSHIFTREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - OFFERSHIFTREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - UNKNOWNFUTUREVALUE_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - TIMECARD_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - TIMEOFFREASON_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - TIMEOFF_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - TIMEOFFREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES -) - -func (i WorkforceIntegrationSupportedEntities) String() string { - var values []string - for p := WorkforceIntegrationSupportedEntities(1); p <= TIMEOFFREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES; p <<= 1 { - if i&p == p { - values = append(values, []string{"none", "shift", "swapRequest", "userShiftPreferences", "openShift", "openShiftRequest", "offerShiftRequest", "unknownFutureValue", "timeCard", "timeOffReason", "timeOff", "timeOffRequest"}[p]) - } - } - return strings.Join(values, ",") -} -func ParseWorkforceIntegrationSupportedEntities(v string) (any, error) { - var result WorkforceIntegrationSupportedEntities - values := strings.Split(v, ",") - for _, str := range values { - switch str { - case "none": - result |= NONE_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "shift": - result |= SHIFT_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "swapRequest": - result |= SWAPREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "userShiftPreferences": - result |= USERSHIFTPREFERENCES_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "openShift": - result |= OPENSHIFT_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "openShiftRequest": - result |= OPENSHIFTREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "offerShiftRequest": - result |= OFFERSHIFTREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "unknownFutureValue": - result |= UNKNOWNFUTUREVALUE_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "timeCard": - result |= TIMECARD_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "timeOffReason": - result |= TIMEOFFREASON_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "timeOff": - result |= TIMEOFF_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - case "timeOffRequest": - result |= TIMEOFFREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES - default: - return 0, errors.New("Unknown WorkforceIntegrationSupportedEntities value: " + v) - } - } - return &result, nil -} -func SerializeWorkforceIntegrationSupportedEntities(values []WorkforceIntegrationSupportedEntities) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i WorkforceIntegrationSupportedEntities) isMultiValue() bool { - return true -} diff --git a/models/workforce_integration_supports.go b/models/workforce_integration_supports.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/working_hours.go b/models/working_hours.go index 093bc94b506..81eb86e6502 100644 --- a/models/working_hours.go +++ b/models/working_hours.go @@ -39,13 +39,13 @@ func (m *WorkingHours) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d4118542 return m.backingStore } // GetDaysOfWeek gets the daysOfWeek property value. The days of the week on which the user works. -func (m *WorkingHours) GetDaysOfWeek()([]DayOfWeek) { +func (m *WorkingHours) GetDaysOfWeek()([]WorkingHours_daysOfWeek) { val, err := m.GetBackingStore().Get("daysOfWeek") if err != nil { panic(err) } if val != nil { - return val.([]DayOfWeek) + return val.([]WorkingHours_daysOfWeek) } return nil } @@ -64,15 +64,15 @@ func (m *WorkingHours) GetEndTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c0 func (m *WorkingHours) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) res["daysOfWeek"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ParseDayOfWeek) + val, err := n.GetCollectionOfEnumValues(ParseWorkingHours_daysOfWeek) if err != nil { return err } if val != nil { - res := make([]DayOfWeek, len(val)) + res := make([]WorkingHours_daysOfWeek, len(val)) for i, v := range val { if v != nil { - res[i] = *(v.(*DayOfWeek)) + res[i] = *(v.(*WorkingHours_daysOfWeek)) } } m.SetDaysOfWeek(res) @@ -157,7 +157,7 @@ func (m *WorkingHours) GetTimeZone()(TimeZoneBaseable) { // Serialize serializes information the current object func (m *WorkingHours) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetDaysOfWeek() != nil { - err := writer.WriteCollectionOfStringValues("daysOfWeek", SerializeDayOfWeek(m.GetDaysOfWeek())) + err := writer.WriteCollectionOfStringValues("daysOfWeek", SerializeWorkingHours_daysOfWeek(m.GetDaysOfWeek())) if err != nil { return err } @@ -206,7 +206,7 @@ func (m *WorkingHours) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d411 m.backingStore = value } // SetDaysOfWeek sets the daysOfWeek property value. The days of the week on which the user works. -func (m *WorkingHours) SetDaysOfWeek(value []DayOfWeek)() { +func (m *WorkingHours) SetDaysOfWeek(value []WorkingHours_daysOfWeek)() { err := m.GetBackingStore().Set("daysOfWeek", value) if err != nil { panic(err) @@ -246,13 +246,13 @@ type WorkingHoursable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDaysOfWeek()([]DayOfWeek) + GetDaysOfWeek()([]WorkingHours_daysOfWeek) GetEndTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) GetOdataType()(*string) GetStartTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) GetTimeZone()(TimeZoneBaseable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDaysOfWeek(value []DayOfWeek)() + SetDaysOfWeek(value []WorkingHours_daysOfWeek)() SetEndTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() SetOdataType(value *string)() SetStartTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() diff --git a/models/working_hours_days_of_week.go b/models/working_hours_days_of_week.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/x509_certificate_affinity_level.go b/models/x509_certificate_affinity_level.go deleted file mode 100644 index ee586058b18..00000000000 --- a/models/x509_certificate_affinity_level.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type X509CertificateAffinityLevel int - -const ( - LOW_X509CERTIFICATEAFFINITYLEVEL X509CertificateAffinityLevel = iota - HIGH_X509CERTIFICATEAFFINITYLEVEL - UNKNOWNFUTUREVALUE_X509CERTIFICATEAFFINITYLEVEL -) - -func (i X509CertificateAffinityLevel) String() string { - return []string{"low", "high", "unknownFutureValue"}[i] -} -func ParseX509CertificateAffinityLevel(v string) (any, error) { - result := LOW_X509CERTIFICATEAFFINITYLEVEL - switch v { - case "low": - result = LOW_X509CERTIFICATEAFFINITYLEVEL - case "high": - result = HIGH_X509CERTIFICATEAFFINITYLEVEL - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_X509CERTIFICATEAFFINITYLEVEL - default: - return 0, errors.New("Unknown X509CertificateAffinityLevel value: " + v) - } - return &result, nil -} -func SerializeX509CertificateAffinityLevel(values []X509CertificateAffinityLevel) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i X509CertificateAffinityLevel) isMultiValue() bool { - return false -} diff --git a/models/x509_certificate_authentication_mode.go b/models/x509_certificate_authentication_mode.go deleted file mode 100644 index 5c8d38c95b5..00000000000 --- a/models/x509_certificate_authentication_mode.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type X509CertificateAuthenticationMode int - -const ( - X509CERTIFICATESINGLEFACTOR_X509CERTIFICATEAUTHENTICATIONMODE X509CertificateAuthenticationMode = iota - X509CERTIFICATEMULTIFACTOR_X509CERTIFICATEAUTHENTICATIONMODE - UNKNOWNFUTUREVALUE_X509CERTIFICATEAUTHENTICATIONMODE -) - -func (i X509CertificateAuthenticationMode) String() string { - return []string{"x509CertificateSingleFactor", "x509CertificateMultiFactor", "unknownFutureValue"}[i] -} -func ParseX509CertificateAuthenticationMode(v string) (any, error) { - result := X509CERTIFICATESINGLEFACTOR_X509CERTIFICATEAUTHENTICATIONMODE - switch v { - case "x509CertificateSingleFactor": - result = X509CERTIFICATESINGLEFACTOR_X509CERTIFICATEAUTHENTICATIONMODE - case "x509CertificateMultiFactor": - result = X509CERTIFICATEMULTIFACTOR_X509CERTIFICATEAUTHENTICATIONMODE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_X509CERTIFICATEAUTHENTICATIONMODE - default: - return 0, errors.New("Unknown X509CertificateAuthenticationMode value: " + v) - } - return &result, nil -} -func SerializeX509CertificateAuthenticationMode(values []X509CertificateAuthenticationMode) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i X509CertificateAuthenticationMode) isMultiValue() bool { - return false -} diff --git a/models/x509_certificate_authentication_mode_configuration.go b/models/x509_certificate_authentication_mode_configuration.go index b08e2cb9e77..2ef77ec33ef 100644 --- a/models/x509_certificate_authentication_mode_configuration.go +++ b/models/x509_certificate_authentication_mode_configuration.go @@ -68,22 +68,22 @@ func (m *X509CertificateAuthenticationModeConfiguration) GetFieldDeserializers() return nil } res["x509CertificateAuthenticationDefaultMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseX509CertificateAuthenticationMode) + val, err := n.GetEnumValue(ParseX509CertificateAuthenticationModeConfiguration_x509CertificateAuthenticationDefaultMode) if err != nil { return err } if val != nil { - m.SetX509CertificateAuthenticationDefaultMode(val.(*X509CertificateAuthenticationMode)) + m.SetX509CertificateAuthenticationDefaultMode(val.(*X509CertificateAuthenticationModeConfiguration_x509CertificateAuthenticationDefaultMode)) } return nil } res["x509CertificateDefaultRequiredAffinityLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseX509CertificateAffinityLevel) + val, err := n.GetEnumValue(ParseX509CertificateAuthenticationModeConfiguration_x509CertificateDefaultRequiredAffinityLevel) if err != nil { return err } if val != nil { - m.SetX509CertificateDefaultRequiredAffinityLevel(val.(*X509CertificateAffinityLevel)) + m.SetX509CertificateDefaultRequiredAffinityLevel(val.(*X509CertificateAuthenticationModeConfiguration_x509CertificateDefaultRequiredAffinityLevel)) } return nil } @@ -112,24 +112,24 @@ func (m *X509CertificateAuthenticationModeConfiguration) GetRules()([]X509Certif return nil } // GetX509CertificateAuthenticationDefaultMode gets the x509CertificateAuthenticationDefaultMode property value. The type of strong authentication mode. The possible values are: x509CertificateSingleFactor, x509CertificateMultiFactor, unknownFutureValue. -func (m *X509CertificateAuthenticationModeConfiguration) GetX509CertificateAuthenticationDefaultMode()(*X509CertificateAuthenticationMode) { +func (m *X509CertificateAuthenticationModeConfiguration) GetX509CertificateAuthenticationDefaultMode()(*X509CertificateAuthenticationModeConfiguration_x509CertificateAuthenticationDefaultMode) { val, err := m.GetBackingStore().Get("x509CertificateAuthenticationDefaultMode") if err != nil { panic(err) } if val != nil { - return val.(*X509CertificateAuthenticationMode) + return val.(*X509CertificateAuthenticationModeConfiguration_x509CertificateAuthenticationDefaultMode) } return nil } // GetX509CertificateDefaultRequiredAffinityLevel gets the x509CertificateDefaultRequiredAffinityLevel property value. Determines the default value for the tenant affinity binding level. The possible values are: low, high, unknownFutureValue. -func (m *X509CertificateAuthenticationModeConfiguration) GetX509CertificateDefaultRequiredAffinityLevel()(*X509CertificateAffinityLevel) { +func (m *X509CertificateAuthenticationModeConfiguration) GetX509CertificateDefaultRequiredAffinityLevel()(*X509CertificateAuthenticationModeConfiguration_x509CertificateDefaultRequiredAffinityLevel) { val, err := m.GetBackingStore().Get("x509CertificateDefaultRequiredAffinityLevel") if err != nil { panic(err) } if val != nil { - return val.(*X509CertificateAffinityLevel) + return val.(*X509CertificateAuthenticationModeConfiguration_x509CertificateDefaultRequiredAffinityLevel) } return nil } @@ -201,14 +201,14 @@ func (m *X509CertificateAuthenticationModeConfiguration) SetRules(value []X509Ce } } // SetX509CertificateAuthenticationDefaultMode sets the x509CertificateAuthenticationDefaultMode property value. The type of strong authentication mode. The possible values are: x509CertificateSingleFactor, x509CertificateMultiFactor, unknownFutureValue. -func (m *X509CertificateAuthenticationModeConfiguration) SetX509CertificateAuthenticationDefaultMode(value *X509CertificateAuthenticationMode)() { +func (m *X509CertificateAuthenticationModeConfiguration) SetX509CertificateAuthenticationDefaultMode(value *X509CertificateAuthenticationModeConfiguration_x509CertificateAuthenticationDefaultMode)() { err := m.GetBackingStore().Set("x509CertificateAuthenticationDefaultMode", value) if err != nil { panic(err) } } // SetX509CertificateDefaultRequiredAffinityLevel sets the x509CertificateDefaultRequiredAffinityLevel property value. Determines the default value for the tenant affinity binding level. The possible values are: low, high, unknownFutureValue. -func (m *X509CertificateAuthenticationModeConfiguration) SetX509CertificateDefaultRequiredAffinityLevel(value *X509CertificateAffinityLevel)() { +func (m *X509CertificateAuthenticationModeConfiguration) SetX509CertificateDefaultRequiredAffinityLevel(value *X509CertificateAuthenticationModeConfiguration_x509CertificateDefaultRequiredAffinityLevel)() { err := m.GetBackingStore().Set("x509CertificateDefaultRequiredAffinityLevel", value) if err != nil { panic(err) @@ -222,11 +222,11 @@ type X509CertificateAuthenticationModeConfigurationable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetRules()([]X509CertificateRuleable) - GetX509CertificateAuthenticationDefaultMode()(*X509CertificateAuthenticationMode) - GetX509CertificateDefaultRequiredAffinityLevel()(*X509CertificateAffinityLevel) + GetX509CertificateAuthenticationDefaultMode()(*X509CertificateAuthenticationModeConfiguration_x509CertificateAuthenticationDefaultMode) + GetX509CertificateDefaultRequiredAffinityLevel()(*X509CertificateAuthenticationModeConfiguration_x509CertificateDefaultRequiredAffinityLevel) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetRules(value []X509CertificateRuleable)() - SetX509CertificateAuthenticationDefaultMode(value *X509CertificateAuthenticationMode)() - SetX509CertificateDefaultRequiredAffinityLevel(value *X509CertificateAffinityLevel)() + SetX509CertificateAuthenticationDefaultMode(value *X509CertificateAuthenticationModeConfiguration_x509CertificateAuthenticationDefaultMode)() + SetX509CertificateDefaultRequiredAffinityLevel(value *X509CertificateAuthenticationModeConfiguration_x509CertificateDefaultRequiredAffinityLevel)() } diff --git a/models/x509_certificate_authentication_mode_configuration_x509_certificate_authentication_default_mode.go b/models/x509_certificate_authentication_mode_configuration_x509_certificate_authentication_default_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/x509_certificate_authentication_mode_configuration_x509_certificate_default_required_affinity_level.go b/models/x509_certificate_authentication_mode_configuration_x509_certificate_default_required_affinity_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/x509_certificate_issuer_hints_configuration.go b/models/x509_certificate_issuer_hints_configuration.go index 07c33e280bb..47f74f24bfa 100644 --- a/models/x509_certificate_issuer_hints_configuration.go +++ b/models/x509_certificate_issuer_hints_configuration.go @@ -52,12 +52,12 @@ func (m *X509CertificateIssuerHintsConfiguration) GetFieldDeserializers()(map[st return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseX509CertificateIssuerHintsState) + val, err := n.GetEnumValue(ParseX509CertificateIssuerHintsConfiguration_state) if err != nil { return err } if val != nil { - m.SetState(val.(*X509CertificateIssuerHintsState)) + m.SetState(val.(*X509CertificateIssuerHintsConfiguration_state)) } return nil } @@ -75,13 +75,13 @@ func (m *X509CertificateIssuerHintsConfiguration) GetOdataType()(*string) { return nil } // GetState gets the state property value. The possible values are: disabled, enabled, unknownFutureValue. -func (m *X509CertificateIssuerHintsConfiguration) GetState()(*X509CertificateIssuerHintsState) { +func (m *X509CertificateIssuerHintsConfiguration) GetState()(*X509CertificateIssuerHintsConfiguration_state) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { - return val.(*X509CertificateIssuerHintsState) + return val.(*X509CertificateIssuerHintsConfiguration_state) } return nil } @@ -127,7 +127,7 @@ func (m *X509CertificateIssuerHintsConfiguration) SetOdataType(value *string)() } } // SetState sets the state property value. The possible values are: disabled, enabled, unknownFutureValue. -func (m *X509CertificateIssuerHintsConfiguration) SetState(value *X509CertificateIssuerHintsState)() { +func (m *X509CertificateIssuerHintsConfiguration) SetState(value *X509CertificateIssuerHintsConfiguration_state)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) @@ -140,8 +140,8 @@ type X509CertificateIssuerHintsConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) - GetState()(*X509CertificateIssuerHintsState) + GetState()(*X509CertificateIssuerHintsConfiguration_state) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() - SetState(value *X509CertificateIssuerHintsState)() + SetState(value *X509CertificateIssuerHintsConfiguration_state)() } diff --git a/models/x509_certificate_issuer_hints_configuration_state.go b/models/x509_certificate_issuer_hints_configuration_state.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/x509_certificate_issuer_hints_state.go b/models/x509_certificate_issuer_hints_state.go deleted file mode 100644 index a697734c584..00000000000 --- a/models/x509_certificate_issuer_hints_state.go +++ /dev/null @@ -1,40 +0,0 @@ -package models -import ( - "errors" -) -// -type X509CertificateIssuerHintsState int - -const ( - DISABLED_X509CERTIFICATEISSUERHINTSSTATE X509CertificateIssuerHintsState = iota - ENABLED_X509CERTIFICATEISSUERHINTSSTATE - UNKNOWNFUTUREVALUE_X509CERTIFICATEISSUERHINTSSTATE -) - -func (i X509CertificateIssuerHintsState) String() string { - return []string{"disabled", "enabled", "unknownFutureValue"}[i] -} -func ParseX509CertificateIssuerHintsState(v string) (any, error) { - result := DISABLED_X509CERTIFICATEISSUERHINTSSTATE - switch v { - case "disabled": - result = DISABLED_X509CERTIFICATEISSUERHINTSSTATE - case "enabled": - result = ENABLED_X509CERTIFICATEISSUERHINTSSTATE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_X509CERTIFICATEISSUERHINTSSTATE - default: - return 0, errors.New("Unknown X509CertificateIssuerHintsState value: " + v) - } - return &result, nil -} -func SerializeX509CertificateIssuerHintsState(values []X509CertificateIssuerHintsState) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i X509CertificateIssuerHintsState) isMultiValue() bool { - return false -} diff --git a/models/x509_certificate_rule.go b/models/x509_certificate_rule.go index 018981f2f02..bdba8756ab2 100644 --- a/models/x509_certificate_rule.go +++ b/models/x509_certificate_rule.go @@ -82,32 +82,32 @@ func (m *X509CertificateRule) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["x509CertificateAuthenticationMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseX509CertificateAuthenticationMode) + val, err := n.GetEnumValue(ParseX509CertificateRule_x509CertificateAuthenticationMode) if err != nil { return err } if val != nil { - m.SetX509CertificateAuthenticationMode(val.(*X509CertificateAuthenticationMode)) + m.SetX509CertificateAuthenticationMode(val.(*X509CertificateRule_x509CertificateAuthenticationMode)) } return nil } res["x509CertificateRequiredAffinityLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseX509CertificateAffinityLevel) + val, err := n.GetEnumValue(ParseX509CertificateRule_x509CertificateRequiredAffinityLevel) if err != nil { return err } if val != nil { - m.SetX509CertificateRequiredAffinityLevel(val.(*X509CertificateAffinityLevel)) + m.SetX509CertificateRequiredAffinityLevel(val.(*X509CertificateRule_x509CertificateRequiredAffinityLevel)) } return nil } res["x509CertificateRuleType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseX509CertificateRuleType) + val, err := n.GetEnumValue(ParseX509CertificateRule_x509CertificateRuleType) if err != nil { return err } if val != nil { - m.SetX509CertificateRuleType(val.(*X509CertificateRuleType)) + m.SetX509CertificateRuleType(val.(*X509CertificateRule_x509CertificateRuleType)) } return nil } @@ -158,35 +158,35 @@ func (m *X509CertificateRule) GetPolicyOidIdentifier()(*string) { return nil } // GetX509CertificateAuthenticationMode gets the x509CertificateAuthenticationMode property value. The type of strong authentication mode. The possible values are: x509CertificateSingleFactor, x509CertificateMultiFactor, unknownFutureValue. Required. -func (m *X509CertificateRule) GetX509CertificateAuthenticationMode()(*X509CertificateAuthenticationMode) { +func (m *X509CertificateRule) GetX509CertificateAuthenticationMode()(*X509CertificateRule_x509CertificateAuthenticationMode) { val, err := m.GetBackingStore().Get("x509CertificateAuthenticationMode") if err != nil { panic(err) } if val != nil { - return val.(*X509CertificateAuthenticationMode) + return val.(*X509CertificateRule_x509CertificateAuthenticationMode) } return nil } // GetX509CertificateRequiredAffinityLevel gets the x509CertificateRequiredAffinityLevel property value. The possible values are: low, high, unknownFutureValue. -func (m *X509CertificateRule) GetX509CertificateRequiredAffinityLevel()(*X509CertificateAffinityLevel) { +func (m *X509CertificateRule) GetX509CertificateRequiredAffinityLevel()(*X509CertificateRule_x509CertificateRequiredAffinityLevel) { val, err := m.GetBackingStore().Get("x509CertificateRequiredAffinityLevel") if err != nil { panic(err) } if val != nil { - return val.(*X509CertificateAffinityLevel) + return val.(*X509CertificateRule_x509CertificateRequiredAffinityLevel) } return nil } // GetX509CertificateRuleType gets the x509CertificateRuleType property value. The type of the X.509 certificate mode configuration rule. The possible values are: issuerSubject, policyOID, unknownFutureValue, issuerSubjectAndPolicyOID. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: issuerSubjectAndPolicyOID. Required. -func (m *X509CertificateRule) GetX509CertificateRuleType()(*X509CertificateRuleType) { +func (m *X509CertificateRule) GetX509CertificateRuleType()(*X509CertificateRule_x509CertificateRuleType) { val, err := m.GetBackingStore().Get("x509CertificateRuleType") if err != nil { panic(err) } if val != nil { - return val.(*X509CertificateRuleType) + return val.(*X509CertificateRule_x509CertificateRuleType) } return nil } @@ -285,21 +285,21 @@ func (m *X509CertificateRule) SetPolicyOidIdentifier(value *string)() { } } // SetX509CertificateAuthenticationMode sets the x509CertificateAuthenticationMode property value. The type of strong authentication mode. The possible values are: x509CertificateSingleFactor, x509CertificateMultiFactor, unknownFutureValue. Required. -func (m *X509CertificateRule) SetX509CertificateAuthenticationMode(value *X509CertificateAuthenticationMode)() { +func (m *X509CertificateRule) SetX509CertificateAuthenticationMode(value *X509CertificateRule_x509CertificateAuthenticationMode)() { err := m.GetBackingStore().Set("x509CertificateAuthenticationMode", value) if err != nil { panic(err) } } // SetX509CertificateRequiredAffinityLevel sets the x509CertificateRequiredAffinityLevel property value. The possible values are: low, high, unknownFutureValue. -func (m *X509CertificateRule) SetX509CertificateRequiredAffinityLevel(value *X509CertificateAffinityLevel)() { +func (m *X509CertificateRule) SetX509CertificateRequiredAffinityLevel(value *X509CertificateRule_x509CertificateRequiredAffinityLevel)() { err := m.GetBackingStore().Set("x509CertificateRequiredAffinityLevel", value) if err != nil { panic(err) } } // SetX509CertificateRuleType sets the x509CertificateRuleType property value. The type of the X.509 certificate mode configuration rule. The possible values are: issuerSubject, policyOID, unknownFutureValue, issuerSubjectAndPolicyOID. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: issuerSubjectAndPolicyOID. Required. -func (m *X509CertificateRule) SetX509CertificateRuleType(value *X509CertificateRuleType)() { +func (m *X509CertificateRule) SetX509CertificateRuleType(value *X509CertificateRule_x509CertificateRuleType)() { err := m.GetBackingStore().Set("x509CertificateRuleType", value) if err != nil { panic(err) @@ -315,15 +315,15 @@ type X509CertificateRuleable interface { GetIssuerSubjectIdentifier()(*string) GetOdataType()(*string) GetPolicyOidIdentifier()(*string) - GetX509CertificateAuthenticationMode()(*X509CertificateAuthenticationMode) - GetX509CertificateRequiredAffinityLevel()(*X509CertificateAffinityLevel) - GetX509CertificateRuleType()(*X509CertificateRuleType) + GetX509CertificateAuthenticationMode()(*X509CertificateRule_x509CertificateAuthenticationMode) + GetX509CertificateRequiredAffinityLevel()(*X509CertificateRule_x509CertificateRequiredAffinityLevel) + GetX509CertificateRuleType()(*X509CertificateRule_x509CertificateRuleType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetIdentifier(value *string)() SetIssuerSubjectIdentifier(value *string)() SetOdataType(value *string)() SetPolicyOidIdentifier(value *string)() - SetX509CertificateAuthenticationMode(value *X509CertificateAuthenticationMode)() - SetX509CertificateRequiredAffinityLevel(value *X509CertificateAffinityLevel)() - SetX509CertificateRuleType(value *X509CertificateRuleType)() + SetX509CertificateAuthenticationMode(value *X509CertificateRule_x509CertificateAuthenticationMode)() + SetX509CertificateRequiredAffinityLevel(value *X509CertificateRule_x509CertificateRequiredAffinityLevel)() + SetX509CertificateRuleType(value *X509CertificateRule_x509CertificateRuleType)() } diff --git a/models/x509_certificate_rule_type.go b/models/x509_certificate_rule_type.go deleted file mode 100644 index 5edc67e0cb4..00000000000 --- a/models/x509_certificate_rule_type.go +++ /dev/null @@ -1,43 +0,0 @@ -package models -import ( - "errors" -) -// -type X509CertificateRuleType int - -const ( - ISSUERSUBJECT_X509CERTIFICATERULETYPE X509CertificateRuleType = iota - POLICYOID_X509CERTIFICATERULETYPE - UNKNOWNFUTUREVALUE_X509CERTIFICATERULETYPE - ISSUERSUBJECTANDPOLICYOID_X509CERTIFICATERULETYPE -) - -func (i X509CertificateRuleType) String() string { - return []string{"issuerSubject", "policyOID", "unknownFutureValue", "issuerSubjectAndPolicyOID"}[i] -} -func ParseX509CertificateRuleType(v string) (any, error) { - result := ISSUERSUBJECT_X509CERTIFICATERULETYPE - switch v { - case "issuerSubject": - result = ISSUERSUBJECT_X509CERTIFICATERULETYPE - case "policyOID": - result = POLICYOID_X509CERTIFICATERULETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_X509CERTIFICATERULETYPE - case "issuerSubjectAndPolicyOID": - result = ISSUERSUBJECTANDPOLICYOID_X509CERTIFICATERULETYPE - default: - return 0, errors.New("Unknown X509CertificateRuleType value: " + v) - } - return &result, nil -} -func SerializeX509CertificateRuleType(values []X509CertificateRuleType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i X509CertificateRuleType) isMultiValue() bool { - return false -} diff --git a/models/x509_certificate_rule_x509_certificate_authentication_mode.go b/models/x509_certificate_rule_x509_certificate_authentication_mode.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/x509_certificate_rule_x509_certificate_required_affinity_level.go b/models/x509_certificate_rule_x509_certificate_required_affinity_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/x509_certificate_rule_x509_certificate_rule_type.go b/models/x509_certificate_rule_x509_certificate_rule_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/models/x509_certificate_user_binding.go b/models/x509_certificate_user_binding.go index 71e13a79a05..ca5bd03b7b6 100644 --- a/models/x509_certificate_user_binding.go +++ b/models/x509_certificate_user_binding.go @@ -62,12 +62,12 @@ func (m *X509CertificateUserBinding) GetFieldDeserializers()(map[string]func(i87 return nil } res["trustAffinityLevel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseX509CertificateAffinityLevel) + val, err := n.GetEnumValue(ParseX509CertificateUserBinding_trustAffinityLevel) if err != nil { return err } if val != nil { - m.SetTrustAffinityLevel(val.(*X509CertificateAffinityLevel)) + m.SetTrustAffinityLevel(val.(*X509CertificateUserBinding_trustAffinityLevel)) } return nil } @@ -116,13 +116,13 @@ func (m *X509CertificateUserBinding) GetPriority()(*int32) { return nil } // GetTrustAffinityLevel gets the trustAffinityLevel property value. The affinity level of the username binding rule. The possible values are: low, high, unknownFutureValue. -func (m *X509CertificateUserBinding) GetTrustAffinityLevel()(*X509CertificateAffinityLevel) { +func (m *X509CertificateUserBinding) GetTrustAffinityLevel()(*X509CertificateUserBinding_trustAffinityLevel) { val, err := m.GetBackingStore().Get("trustAffinityLevel") if err != nil { panic(err) } if val != nil { - return val.(*X509CertificateAffinityLevel) + return val.(*X509CertificateUserBinding_trustAffinityLevel) } return nil } @@ -215,7 +215,7 @@ func (m *X509CertificateUserBinding) SetPriority(value *int32)() { } } // SetTrustAffinityLevel sets the trustAffinityLevel property value. The affinity level of the username binding rule. The possible values are: low, high, unknownFutureValue. -func (m *X509CertificateUserBinding) SetTrustAffinityLevel(value *X509CertificateAffinityLevel)() { +func (m *X509CertificateUserBinding) SetTrustAffinityLevel(value *X509CertificateUserBinding_trustAffinityLevel)() { err := m.GetBackingStore().Set("trustAffinityLevel", value) if err != nil { panic(err) @@ -243,13 +243,13 @@ type X509CertificateUserBindingable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetPriority()(*int32) - GetTrustAffinityLevel()(*X509CertificateAffinityLevel) + GetTrustAffinityLevel()(*X509CertificateUserBinding_trustAffinityLevel) GetUserProperty()(*string) GetX509CertificateField()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetPriority(value *int32)() - SetTrustAffinityLevel(value *X509CertificateAffinityLevel)() + SetTrustAffinityLevel(value *X509CertificateUserBinding_trustAffinityLevel)() SetUserProperty(value *string)() SetX509CertificateField(value *string)() } diff --git a/models/x509_certificate_user_binding_trust_affinity_level.go b/models/x509_certificate_user_binding_trust_affinity_level.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/onpremisespublishingprofiles/item_connector_groups_request_builder.go b/onpremisespublishingprofiles/item_connector_groups_request_builder.go index e0159ba44e4..e0c16180650 100644 --- a/onpremisespublishingprofiles/item_connector_groups_request_builder.go +++ b/onpremisespublishingprofiles/item_connector_groups_request_builder.go @@ -96,10 +96,10 @@ func (m *ItemConnectorGroupsRequestBuilder) Get(ctx context.Context, requestConf } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupCollectionResponseable), nil } -// Post create a new connectorGroup. +// Post create a connectorGroup object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/connectorgroup-post-connectorgroups?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/connectorgroup-post?view=graph-rest-1.0 func (m *ItemConnectorGroupsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupable, requestConfiguration *ItemConnectorGroupsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -131,7 +131,7 @@ func (m *ItemConnectorGroupsRequestBuilder) ToGetRequestInformation(ctx context. requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new connectorGroup. +// ToPostRequestInformation create a connectorGroup object. func (m *ItemConnectorGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupable, requestConfiguration *ItemConnectorGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/planner/plans_item_archive_post_request_body.go b/planner/plans_item_archive_post_request_body.go new file mode 100644 index 00000000000..2720f45e704 --- /dev/null +++ b/planner/plans_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package planner + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PlansItemArchivePostRequestBody +type PlansItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlansItemArchivePostRequestBody instantiates a new PlansItemArchivePostRequestBody and sets the default values. +func NewPlansItemArchivePostRequestBody()(*PlansItemArchivePostRequestBody) { + m := &PlansItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlansItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlansItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlansItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlansItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *PlansItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlansItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *PlansItemArchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *PlansItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlansItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlansItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *PlansItemArchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// PlansItemArchivePostRequestBodyable +type PlansItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/planner/plans_item_archive_request_builder.go b/planner/plans_item_archive_request_builder.go new file mode 100644 index 00000000000..047231105fe --- /dev/null +++ b/planner/plans_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package planner + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// PlansItemArchiveRequestBuilder provides operations to call the archive method. +type PlansItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PlansItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPlansItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewPlansItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemArchiveRequestBuilder) { + m := &PlansItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/archive", pathParameters), + } + return m +} +// NewPlansItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewPlansItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPlansItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *PlansItemArchiveRequestBuilder) Post(ctx context.Context, body PlansItemArchivePostRequestBodyable, requestConfiguration *PlansItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *PlansItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body PlansItemArchivePostRequestBodyable, requestConfiguration *PlansItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *PlansItemArchiveRequestBuilder) WithUrl(rawUrl string)(*PlansItemArchiveRequestBuilder) { + return NewPlansItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/planner/plans_item_unarchive_post_request_body.go b/planner/plans_item_unarchive_post_request_body.go new file mode 100644 index 00000000000..ee253c6d06b --- /dev/null +++ b/planner/plans_item_unarchive_post_request_body.go @@ -0,0 +1,110 @@ +package planner + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// PlansItemUnarchivePostRequestBody +type PlansItemUnarchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlansItemUnarchivePostRequestBody instantiates a new PlansItemUnarchivePostRequestBody and sets the default values. +func NewPlansItemUnarchivePostRequestBody()(*PlansItemUnarchivePostRequestBody) { + m := &PlansItemUnarchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlansItemUnarchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePlansItemUnarchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlansItemUnarchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlansItemUnarchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *PlansItemUnarchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PlansItemUnarchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *PlansItemUnarchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *PlansItemUnarchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlansItemUnarchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlansItemUnarchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *PlansItemUnarchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// PlansItemUnarchivePostRequestBodyable +type PlansItemUnarchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/planner/plans_item_unarchive_request_builder.go b/planner/plans_item_unarchive_request_builder.go new file mode 100644 index 00000000000..d9dc983a9ff --- /dev/null +++ b/planner/plans_item_unarchive_request_builder.go @@ -0,0 +1,66 @@ +package planner + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// PlansItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type PlansItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PlansItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPlansItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewPlansItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemUnarchiveRequestBuilder) { + m := &PlansItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/unarchive", pathParameters), + } + return m +} +// NewPlansItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewPlansItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPlansItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *PlansItemUnarchiveRequestBuilder) Post(ctx context.Context, body PlansItemUnarchivePostRequestBodyable, requestConfiguration *PlansItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *PlansItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body PlansItemUnarchivePostRequestBodyable, requestConfiguration *PlansItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *PlansItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*PlansItemUnarchiveRequestBuilder) { + return NewPlansItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/planner/plans_planner_plan_item_request_builder.go b/planner/plans_planner_plan_item_request_builder.go index 6c2c755226e..80462bde3e3 100644 --- a/planner/plans_planner_plan_item_request_builder.go +++ b/planner/plans_planner_plan_item_request_builder.go @@ -41,6 +41,10 @@ type PlansPlannerPlanItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *PlansPlannerPlanItemRequestBuilder) Archive()(*PlansItemArchiveRequestBuilder) { + return NewPlansItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Buckets provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. func (m *PlansPlannerPlanItemRequestBuilder) Buckets()(*PlansItemBucketsRequestBuilder) { return NewPlansItemBucketsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -170,6 +174,10 @@ func (m *PlansPlannerPlanItemRequestBuilder) ToPatchRequestInformation(ctx conte } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *PlansPlannerPlanItemRequestBuilder) Unarchive()(*PlansItemUnarchiveRequestBuilder) { + return NewPlansItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *PlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*PlansPlannerPlanItemRequestBuilder) { return NewPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/policies/authentication_strength_policies_item_update_allowed_combinations_post_request_body.go b/policies/authentication_strength_policies_item_update_allowed_combinations_post_request_body.go index bfcb706b7df..42c75ddfba5 100644 --- a/policies/authentication_strength_policies_item_update_allowed_combinations_post_request_body.go +++ b/policies/authentication_strength_policies_item_update_allowed_combinations_post_request_body.go @@ -2,7 +2,6 @@ package policies import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -35,17 +34,6 @@ func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestB } return val.(map[string]any) } -// GetAllowedCombinations gets the allowedCombinations property value. The allowedCombinations property -func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetAllowedCombinations()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) { - val, err := m.GetBackingStore().Get("allowedCombinations") - if err != nil { - panic(err) - } - if val != nil { - return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) - } - return nil -} // GetBackingStore gets the BackingStore property value. Stores model information. func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -53,32 +41,10 @@ func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestB // GetFieldDeserializers the deserialization information for the current model func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["allowedCombinations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfEnumValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseAuthenticationMethodModes) - if err != nil { - return err - } - if val != nil { - res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)) - } - } - m.SetAllowedCombinations(res) - } - return nil - } return res } // Serialize serializes information the current object func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAllowedCombinations() != nil { - err := writer.WriteCollectionOfStringValues("allowedCombinations", ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SerializeAuthenticationMethodModes(m.GetAllowedCombinations())) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -94,13 +60,6 @@ func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestB panic(err) } } -// SetAllowedCombinations sets the allowedCombinations property value. The allowedCombinations property -func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) SetAllowedCombinations(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)() { - err := m.GetBackingStore().Set("allowedCombinations", value) - if err != nil { - panic(err) - } -} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -110,8 +69,6 @@ type AuthenticationStrengthPoliciesItemUpdateAllowedCombinationsPostRequestBodya i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAllowedCombinations()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - SetAllowedCombinations(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodModes)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() } diff --git a/policies/authenticationstrengthpolicies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go b/policies/authenticationstrengthpolicies/item/updateallowedcombinations/update_allowed_combinations_post_request_body_allowed_combinations.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/riskdetections/risk_detections_request_builder.go b/riskdetections/risk_detections_request_builder.go index 5b41cb43a65..6394147f5c8 100644 --- a/riskdetections/risk_detections_request_builder.go +++ b/riskdetections/risk_detections_request_builder.go @@ -11,7 +11,7 @@ import ( type RiskDetectionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RiskDetectionsRequestBuilderGetQueryParameters retrieve the properties of a collection of riskDetection objects. +// RiskDetectionsRequestBuilderGetQueryParameters retrieve the properties of a riskDetection object. type RiskDetectionsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -66,10 +66,10 @@ func NewRiskDetectionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7dae urlParams["request-raw-url"] = rawUrl return NewRiskDetectionsRequestBuilderInternal(urlParams, requestAdapter) } -// Get retrieve the properties of a collection of riskDetection objects. +// Get retrieve the properties of a riskDetection object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 func (m *RiskDetectionsRequestBuilder) Get(ctx context.Context, requestConfiguration *RiskDetectionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -107,7 +107,7 @@ func (m *RiskDetectionsRequestBuilder) Post(ctx context.Context, body ie233ee762 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionable), nil } -// ToGetRequestInformation retrieve the properties of a collection of riskDetection objects. +// ToGetRequestInformation retrieve the properties of a riskDetection object. func (m *RiskDetectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityaddtoreviewset/add_to_review_set_post_request_body_additional_data_options.go b/security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityaddtoreviewset/add_to_review_set_post_request_body_additional_data_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityexport/export_post_request_body_export_options.go b/security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityexport/export_post_request_body_export_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityexport/export_post_request_body_export_structure.go b/security/cases/ediscoverycases/item/reviewsets/item/microsoftgraphsecurityexport/export_post_request_body_export_structure.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/reviewsets/item/queries/item/microsoftgraphsecurityexport/export_post_request_body_export_options.go b/security/cases/ediscoverycases/item/reviewsets/item/queries/item/microsoftgraphsecurityexport/export_post_request_body_export_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/reviewsets/item/queries/item/microsoftgraphsecurityexport/export_post_request_body_export_structure.go b/security/cases/ediscoverycases/item/reviewsets/item/queries/item/microsoftgraphsecurityexport/export_post_request_body_export_structure.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_additional_options.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_additional_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_export_criteria.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_export_criteria.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_export_location.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportreport/export_report_post_request_body_export_location.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_additional_options.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_additional_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_criteria.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_criteria.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_format.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_format.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_location.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecurityexportresult/export_result_post_request_body_export_location.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecuritypurgedata/purge_data_post_request_body_purge_areas.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecuritypurgedata/purge_data_post_request_body_purge_areas.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecuritypurgedata/purge_data_post_request_body_purge_type.go b/security/cases/ediscoverycases/item/searches/item/microsoftgraphsecuritypurgedata/purge_data_post_request_body_purge_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/security/cases_ediscovery_cases_item_review_sets_item_microsoft_graph_security_add_to_review_set_add_to_review_set_post_request_body.go b/security/cases_ediscovery_cases_item_review_sets_item_microsoft_graph_security_add_to_review_set_add_to_review_set_post_request_body.go index feca002d056..6fb74a8e62b 100644 --- a/security/cases_ediscovery_cases_item_review_sets_item_microsoft_graph_security_add_to_review_set_add_to_review_set_post_request_body.go +++ b/security/cases_ediscovery_cases_item_review_sets_item_microsoft_graph_security_add_to_review_set_add_to_review_set_post_request_body.go @@ -35,17 +35,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReview } return val.(map[string]any) } -// GetAdditionalDataOptions gets the additionalDataOptions property value. The additionalDataOptions property -func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReviewSetAddToReviewSetPostRequestBody) GetAdditionalDataOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalDataOptions) { - val, err := m.GetBackingStore().Get("additionalDataOptions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalDataOptions) - } - return nil -} // GetBackingStore gets the BackingStore property value. Stores model information. func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReviewSetAddToReviewSetPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -53,16 +42,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReview // GetFieldDeserializers the deserialization information for the current model func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReviewSetAddToReviewSetPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["additionalDataOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseAdditionalDataOptions) - if err != nil { - return err - } - if val != nil { - m.SetAdditionalDataOptions(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalDataOptions)) - } - return nil - } res["search"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateEdiscoverySearchFromDiscriminatorValue) if err != nil { @@ -88,13 +67,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReview } // Serialize serializes information the current object func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReviewSetAddToReviewSetPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAdditionalDataOptions() != nil { - cast := (*m.GetAdditionalDataOptions()).String() - err := writer.WriteStringValue("additionalDataOptions", &cast) - if err != nil { - return err - } - } { err := writer.WriteObjectValue("search", m.GetSearch()) if err != nil { @@ -116,13 +88,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReview panic(err) } } -// SetAdditionalDataOptions sets the additionalDataOptions property value. The additionalDataOptions property -func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReviewSetAddToReviewSetPostRequestBody) SetAdditionalDataOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalDataOptions)() { - err := m.GetBackingStore().Set("additionalDataOptions", value) - if err != nil { - panic(err) - } -} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReviewSetAddToReviewSetPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -139,10 +104,8 @@ type CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityAddToReviewSetA i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdditionalDataOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalDataOptions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetSearch()(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.EdiscoverySearchable) - SetAdditionalDataOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalDataOptions)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetSearch(value i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.EdiscoverySearchable)() } diff --git a/security/cases_ediscovery_cases_item_review_sets_item_microsoft_graph_security_export_export_post_request_body.go b/security/cases_ediscovery_cases_item_review_sets_item_microsoft_graph_security_export_export_post_request_body.go index ca079b0fbb4..b2e61d22f37 100644 --- a/security/cases_ediscovery_cases_item_review_sets_item_microsoft_graph_security_export_export_post_request_body.go +++ b/security/cases_ediscovery_cases_item_review_sets_item_microsoft_graph_security_export_export_post_request_body.go @@ -3,7 +3,6 @@ package security import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" - i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" ) // CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExportPostRequestBody @@ -72,28 +71,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExpor } return nil } -// GetExportOptions gets the exportOptions property value. The exportOptions property -func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExportPostRequestBody) GetExportOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions) { - val, err := m.GetBackingStore().Get("exportOptions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions) - } - return nil -} -// GetExportStructure gets the exportStructure property value. The exportStructure property -func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExportPostRequestBody) GetExportStructure()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure) { - val, err := m.GetBackingStore().Get("exportStructure") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure) - } - return nil -} // GetFieldDeserializers the deserialization information for the current model func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExportPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) @@ -127,26 +104,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExpor } return nil } - res["exportOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportOptions) - if err != nil { - return err - } - if val != nil { - m.SetExportOptions(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions)) - } - return nil - } - res["exportStructure"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportFileStructure) - if err != nil { - return err - } - if val != nil { - m.SetExportStructure(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure)) - } - return nil - } res["outputName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -190,20 +147,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExpor return err } } - if m.GetExportOptions() != nil { - cast := (*m.GetExportOptions()).String() - err := writer.WriteStringValue("exportOptions", &cast) - if err != nil { - return err - } - } - if m.GetExportStructure() != nil { - cast := (*m.GetExportStructure()).String() - err := writer.WriteStringValue("exportStructure", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("outputName", m.GetOutputName()) if err != nil { @@ -250,20 +193,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExpor panic(err) } } -// SetExportOptions sets the exportOptions property value. The exportOptions property -func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExportPostRequestBody) SetExportOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions)() { - err := m.GetBackingStore().Set("exportOptions", value) - if err != nil { - panic(err) - } -} -// SetExportStructure sets the exportStructure property value. The exportStructure property -func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExportPostRequestBody) SetExportStructure(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure)() { - err := m.GetBackingStore().Set("exportStructure", value) - if err != nil { - panic(err) - } -} // SetOutputName sets the outputName property value. The outputName property func (m *CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExportPostRequestBody) SetOutputName(value *string)() { err := m.GetBackingStore().Set("outputName", value) @@ -280,14 +209,10 @@ type CasesEdiscoveryCasesItemReviewSetsItemMicrosoftGraphSecurityExportExportPos GetAzureBlobToken()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDescription()(*string) - GetExportOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions) - GetExportStructure()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure) GetOutputName()(*string) SetAzureBlobContainer(value *string)() SetAzureBlobToken(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDescription(value *string)() - SetExportOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions)() - SetExportStructure(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure)() SetOutputName(value *string)() } diff --git a/security/cases_ediscovery_cases_item_review_sets_item_queries_item_microsoft_graph_security_export_export_post_request_body.go b/security/cases_ediscovery_cases_item_review_sets_item_queries_item_microsoft_graph_security_export_export_post_request_body.go index 29f4ace8a3c..eec58cdd3ea 100644 --- a/security/cases_ediscovery_cases_item_review_sets_item_queries_item_microsoft_graph_security_export_export_post_request_body.go +++ b/security/cases_ediscovery_cases_item_review_sets_item_queries_item_microsoft_graph_security_export_export_post_request_body.go @@ -3,7 +3,6 @@ package security import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" - i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" ) // CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurityExportExportPostRequestBody @@ -72,28 +71,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurity } return nil } -// GetExportOptions gets the exportOptions property value. The exportOptions property -func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurityExportExportPostRequestBody) GetExportOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions) { - val, err := m.GetBackingStore().Get("exportOptions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions) - } - return nil -} -// GetExportStructure gets the exportStructure property value. The exportStructure property -func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurityExportExportPostRequestBody) GetExportStructure()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure) { - val, err := m.GetBackingStore().Get("exportStructure") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure) - } - return nil -} // GetFieldDeserializers the deserialization information for the current model func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurityExportExportPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) @@ -127,26 +104,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurity } return nil } - res["exportOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportOptions) - if err != nil { - return err - } - if val != nil { - m.SetExportOptions(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions)) - } - return nil - } - res["exportStructure"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportFileStructure) - if err != nil { - return err - } - if val != nil { - m.SetExportStructure(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure)) - } - return nil - } res["outputName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -190,20 +147,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurity return err } } - if m.GetExportOptions() != nil { - cast := (*m.GetExportOptions()).String() - err := writer.WriteStringValue("exportOptions", &cast) - if err != nil { - return err - } - } - if m.GetExportStructure() != nil { - cast := (*m.GetExportStructure()).String() - err := writer.WriteStringValue("exportStructure", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("outputName", m.GetOutputName()) if err != nil { @@ -250,20 +193,6 @@ func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurity panic(err) } } -// SetExportOptions sets the exportOptions property value. The exportOptions property -func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurityExportExportPostRequestBody) SetExportOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions)() { - err := m.GetBackingStore().Set("exportOptions", value) - if err != nil { - panic(err) - } -} -// SetExportStructure sets the exportStructure property value. The exportStructure property -func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurityExportExportPostRequestBody) SetExportStructure(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure)() { - err := m.GetBackingStore().Set("exportStructure", value) - if err != nil { - panic(err) - } -} // SetOutputName sets the outputName property value. The outputName property func (m *CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurityExportExportPostRequestBody) SetOutputName(value *string)() { err := m.GetBackingStore().Set("outputName", value) @@ -280,14 +209,10 @@ type CasesEdiscoveryCasesItemReviewSetsItemQueriesItemMicrosoftGraphSecurityExpo GetAzureBlobToken()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDescription()(*string) - GetExportOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions) - GetExportStructure()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure) GetOutputName()(*string) SetAzureBlobContainer(value *string)() SetAzureBlobToken(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDescription(value *string)() - SetExportOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportOptions)() - SetExportStructure(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFileStructure)() SetOutputName(value *string)() } diff --git a/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_export_report_export_report_post_request_body.go b/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_export_report_export_report_post_request_body.go index 6a54a586743..1c34c2ab38e 100644 --- a/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_export_report_export_report_post_request_body.go +++ b/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_export_report_export_report_post_request_body.go @@ -3,7 +3,6 @@ package security import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" - i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" ) // CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody @@ -35,17 +34,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportE } return val.(map[string]any) } -// GetAdditionalOptions gets the additionalOptions property value. The additionalOptions property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) GetAdditionalOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions) { - val, err := m.GetBackingStore().Get("additionalOptions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions) - } - return nil -} // GetBackingStore gets the BackingStore property value. Stores model information. func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -72,41 +60,9 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportE } return nil } -// GetExportCriteria gets the exportCriteria property value. The exportCriteria property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) GetExportCriteria()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria) { - val, err := m.GetBackingStore().Get("exportCriteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria) - } - return nil -} -// GetExportLocation gets the exportLocation property value. The exportLocation property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) GetExportLocation()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation) { - val, err := m.GetBackingStore().Get("exportLocation") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation) - } - return nil -} // GetFieldDeserializers the deserialization information for the current model func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["additionalOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseAdditionalOptions) - if err != nil { - return err - } - if val != nil { - m.SetAdditionalOptions(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions)) - } - return nil - } res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -127,37 +83,10 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportE } return nil } - res["exportCriteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportCriteria) - if err != nil { - return err - } - if val != nil { - m.SetExportCriteria(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria)) - } - return nil - } - res["exportLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportLocation) - if err != nil { - return err - } - if val != nil { - m.SetExportLocation(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation)) - } - return nil - } return res } // Serialize serializes information the current object func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAdditionalOptions() != nil { - cast := (*m.GetAdditionalOptions()).String() - err := writer.WriteStringValue("additionalOptions", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("description", m.GetDescription()) if err != nil { @@ -170,20 +99,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportE return err } } - if m.GetExportCriteria() != nil { - cast := (*m.GetExportCriteria()).String() - err := writer.WriteStringValue("exportCriteria", &cast) - if err != nil { - return err - } - } - if m.GetExportLocation() != nil { - cast := (*m.GetExportLocation()).String() - err := writer.WriteStringValue("exportLocation", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -199,13 +114,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportE panic(err) } } -// SetAdditionalOptions sets the additionalOptions property value. The additionalOptions property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) SetAdditionalOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions)() { - err := m.GetBackingStore().Set("additionalOptions", value) - if err != nil { - panic(err) - } -} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -224,35 +132,15 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportE panic(err) } } -// SetExportCriteria sets the exportCriteria property value. The exportCriteria property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) SetExportCriteria(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria)() { - err := m.GetBackingStore().Set("exportCriteria", value) - if err != nil { - panic(err) - } -} -// SetExportLocation sets the exportLocation property value. The exportLocation property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBody) SetExportLocation(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation)() { - err := m.GetBackingStore().Set("exportLocation", value) - if err != nil { - panic(err) - } -} // CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBodyable type CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportReportExportReportPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdditionalOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDescription()(*string) GetDisplayName()(*string) - GetExportCriteria()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria) - GetExportLocation()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation) - SetAdditionalOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDescription(value *string)() SetDisplayName(value *string)() - SetExportCriteria(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria)() - SetExportLocation(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation)() } diff --git a/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_export_result_export_result_post_request_body.go b/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_export_result_export_result_post_request_body.go index f4cdcaf2918..1896abebe9a 100644 --- a/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_export_result_export_result_post_request_body.go +++ b/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_export_result_export_result_post_request_body.go @@ -3,7 +3,6 @@ package security import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" - i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" ) // CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody @@ -35,17 +34,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultE } return val.(map[string]any) } -// GetAdditionalOptions gets the additionalOptions property value. The additionalOptions property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) GetAdditionalOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions) { - val, err := m.GetBackingStore().Get("additionalOptions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions) - } - return nil -} // GetBackingStore gets the BackingStore property value. Stores model information. func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore @@ -72,39 +60,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultE } return nil } -// GetExportCriteria gets the exportCriteria property value. The exportCriteria property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) GetExportCriteria()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria) { - val, err := m.GetBackingStore().Get("exportCriteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria) - } - return nil -} -// GetExportFormat gets the exportFormat property value. The exportFormat property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) GetExportFormat()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFormat) { - val, err := m.GetBackingStore().Get("exportFormat") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFormat) - } - return nil -} -// GetExportLocation gets the exportLocation property value. The exportLocation property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) GetExportLocation()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation) { - val, err := m.GetBackingStore().Get("exportLocation") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation) - } - return nil -} // GetExportSingleItems gets the exportSingleItems property value. The exportSingleItems property func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) GetExportSingleItems()(*bool) { val, err := m.GetBackingStore().Get("exportSingleItems") @@ -119,16 +74,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultE // GetFieldDeserializers the deserialization information for the current model func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["additionalOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseAdditionalOptions) - if err != nil { - return err - } - if val != nil { - m.SetAdditionalOptions(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions)) - } - return nil - } res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -149,36 +94,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultE } return nil } - res["exportCriteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportCriteria) - if err != nil { - return err - } - if val != nil { - m.SetExportCriteria(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria)) - } - return nil - } - res["exportFormat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportFormat) - if err != nil { - return err - } - if val != nil { - m.SetExportFormat(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFormat)) - } - return nil - } - res["exportLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParseExportLocation) - if err != nil { - return err - } - if val != nil { - m.SetExportLocation(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation)) - } - return nil - } res["exportSingleItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -193,13 +108,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultE } // Serialize serializes information the current object func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAdditionalOptions() != nil { - cast := (*m.GetAdditionalOptions()).String() - err := writer.WriteStringValue("additionalOptions", &cast) - if err != nil { - return err - } - } { err := writer.WriteStringValue("description", m.GetDescription()) if err != nil { @@ -212,27 +120,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultE return err } } - if m.GetExportCriteria() != nil { - cast := (*m.GetExportCriteria()).String() - err := writer.WriteStringValue("exportCriteria", &cast) - if err != nil { - return err - } - } - if m.GetExportFormat() != nil { - cast := (*m.GetExportFormat()).String() - err := writer.WriteStringValue("exportFormat", &cast) - if err != nil { - return err - } - } - if m.GetExportLocation() != nil { - cast := (*m.GetExportLocation()).String() - err := writer.WriteStringValue("exportLocation", &cast) - if err != nil { - return err - } - } { err := writer.WriteBoolValue("exportSingleItems", m.GetExportSingleItems()) if err != nil { @@ -254,13 +141,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultE panic(err) } } -// SetAdditionalOptions sets the additionalOptions property value. The additionalOptions property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) SetAdditionalOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions)() { - err := m.GetBackingStore().Set("additionalOptions", value) - if err != nil { - panic(err) - } -} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -279,27 +159,6 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultE panic(err) } } -// SetExportCriteria sets the exportCriteria property value. The exportCriteria property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) SetExportCriteria(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria)() { - err := m.GetBackingStore().Set("exportCriteria", value) - if err != nil { - panic(err) - } -} -// SetExportFormat sets the exportFormat property value. The exportFormat property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) SetExportFormat(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFormat)() { - err := m.GetBackingStore().Set("exportFormat", value) - if err != nil { - panic(err) - } -} -// SetExportLocation sets the exportLocation property value. The exportLocation property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) SetExportLocation(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation)() { - err := m.GetBackingStore().Set("exportLocation", value) - if err != nil { - panic(err) - } -} // SetExportSingleItems sets the exportSingleItems property value. The exportSingleItems property func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBody) SetExportSingleItems(value *bool)() { err := m.GetBackingStore().Set("exportSingleItems", value) @@ -312,20 +171,12 @@ type CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExpor i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAdditionalOptions()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDescription()(*string) GetDisplayName()(*string) - GetExportCriteria()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria) - GetExportFormat()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFormat) - GetExportLocation()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation) GetExportSingleItems()(*bool) - SetAdditionalOptions(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.AdditionalOptions)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDescription(value *string)() SetDisplayName(value *string)() - SetExportCriteria(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportCriteria)() - SetExportFormat(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportFormat)() - SetExportLocation(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ExportLocation)() SetExportSingleItems(value *bool)() } diff --git a/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_purge_data_purge_data_post_request_body.go b/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_purge_data_purge_data_post_request_body.go index ecdf0542994..5b870ffe6b2 100644 --- a/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_purge_data_purge_data_post_request_body.go +++ b/security/cases_ediscovery_cases_item_searches_item_microsoft_graph_security_purge_data_purge_data_post_request_body.go @@ -3,7 +3,6 @@ package security import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" - i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" ) // CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBody @@ -42,66 +41,10 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurg // GetFieldDeserializers the deserialization information for the current model func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["purgeAreas"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParsePurgeAreas) - if err != nil { - return err - } - if val != nil { - m.SetPurgeAreas(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeAreas)) - } - return nil - } - res["purgeType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ParsePurgeType) - if err != nil { - return err - } - if val != nil { - m.SetPurgeType(val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeType)) - } - return nil - } return res } -// GetPurgeAreas gets the purgeAreas property value. The purgeAreas property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBody) GetPurgeAreas()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeAreas) { - val, err := m.GetBackingStore().Get("purgeAreas") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeAreas) - } - return nil -} -// GetPurgeType gets the purgeType property value. The purgeType property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBody) GetPurgeType()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeType) { - val, err := m.GetBackingStore().Get("purgeType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeType) - } - return nil -} // Serialize serializes information the current object func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetPurgeAreas() != nil { - cast := (*m.GetPurgeAreas()).String() - err := writer.WriteStringValue("purgeAreas", &cast) - if err != nil { - return err - } - } - if m.GetPurgeType() != nil { - cast := (*m.GetPurgeType()).String() - err := writer.WriteStringValue("purgeType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -121,29 +64,11 @@ func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurg func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetPurgeAreas sets the purgeAreas property value. The purgeAreas property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBody) SetPurgeAreas(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeAreas)() { - err := m.GetBackingStore().Set("purgeAreas", value) - if err != nil { - panic(err) - } -} -// SetPurgeType sets the purgeType property value. The purgeType property -func (m *CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBody) SetPurgeType(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeType)() { - err := m.GetBackingStore().Set("purgeType", value) - if err != nil { - panic(err) - } -} // CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBodyable type CasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityPurgeDataPurgeDataPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPurgeAreas()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeAreas) - GetPurgeType()(*i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPurgeAreas(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeAreas)() - SetPurgeType(value *i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.PurgeType)() } diff --git a/serviceprincipals/item_license_details_get_teams_licensing_details_request_builder.go b/serviceprincipals/item_license_details_get_teams_licensing_details_request_builder.go new file mode 100644 index 00000000000..06fd528d057 --- /dev/null +++ b/serviceprincipals/item_license_details_get_teams_licensing_details_request_builder.go @@ -0,0 +1,66 @@ +package serviceprincipals + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder provides operations to call the getTeamsLicensingDetails method. +type ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal instantiates a new GetTeamsLicensingDetailsRequestBuilder and sets the default values. +func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + m := &ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/licenseDetails/getTeamsLicensingDetails()", pathParameters), + } + return m +} +// NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder instantiates a new GetTeamsLicensingDetailsRequestBuilder and sets the default values. +func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getTeamsLicensingDetails +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamsLicensingDetailsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable), nil +} +// ToGetRequestInformation invoke function getTeamsLicensingDetails +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/serviceprincipals/item_license_details_request_builder.go b/serviceprincipals/item_license_details_request_builder.go index 9e82f40f96f..12aaaa77b55 100644 --- a/serviceprincipals/item_license_details_request_builder.go +++ b/serviceprincipals/item_license_details_request_builder.go @@ -93,6 +93,10 @@ func (m *ItemLicenseDetailsRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsCollectionResponseable), nil } +// GetTeamsLicensingDetails provides operations to call the getTeamsLicensingDetails method. +func (m *ItemLicenseDetailsRequestBuilder) GetTeamsLicensingDetails()(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to licenseDetails for servicePrincipals func (m *ItemLicenseDetailsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, requestConfiguration *ItemLicenseDetailsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); diff --git a/shares/item_list_items_item_create_link_post_request_body.go b/shares/item_list_items_item_create_link_post_request_body.go index 7420931aadc..5a200934ac4 100644 --- a/shares/item_list_items_item_create_link_post_request_body.go +++ b/shares/item_list_items_item_create_link_post_request_body.go @@ -64,6 +64,16 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map } return nil } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -132,6 +142,17 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map } return res } +// GetMessage gets the message property value. The message property +func (m *ItemListItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password property func (m *ItemListItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -206,6 +227,12 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) Serialize(writer i878a80d23 return err } } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -274,6 +301,13 @@ func (m *ItemListItemsItemCreateLinkPostRequestBody) SetExpirationDateTime(value panic(err) } } +// SetMessage sets the message property value. The message property +func (m *ItemListItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password property func (m *ItemListItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -323,6 +357,7 @@ type ItemListItemsItemCreateLinkPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMessage()(*string) GetPassword()(*string) GetRecipients()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable) GetRetainInheritedPermissions()(*bool) @@ -331,6 +366,7 @@ type ItemListItemsItemCreateLinkPostRequestBodyable interface { GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMessage(value *string)() SetPassword(value *string)() SetRecipients(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable)() SetRetainInheritedPermissions(value *bool)() diff --git a/sites/item_lists_item_items_item_create_link_post_request_body.go b/sites/item_lists_item_items_item_create_link_post_request_body.go index e40791d373a..eac6345ceb8 100644 --- a/sites/item_lists_item_items_item_create_link_post_request_body.go +++ b/sites/item_lists_item_items_item_create_link_post_request_body.go @@ -64,6 +64,16 @@ func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeserializers( } return nil } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -132,6 +142,17 @@ func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) GetFieldDeserializers( } return res } +// GetMessage gets the message property value. The message property +func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password property func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -206,6 +227,12 @@ func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) Serialize(writer i878a return err } } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -274,6 +301,13 @@ func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) SetExpirationDateTime( panic(err) } } +// SetMessage sets the message property value. The message property +func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password property func (m *ItemListsItemItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -323,6 +357,7 @@ type ItemListsItemItemsItemCreateLinkPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMessage()(*string) GetPassword()(*string) GetRecipients()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable) GetRetainInheritedPermissions()(*bool) @@ -331,6 +366,7 @@ type ItemListsItemItemsItemCreateLinkPostRequestBodyable interface { GetTypeEscaped()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMessage(value *string)() SetPassword(value *string)() SetRecipients(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveRecipientable)() SetRetainInheritedPermissions(value *bool)() diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index 21a3e7d5163..f4834983344 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -11,7 +11,7 @@ import ( type SitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// 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. +// SitesRequestBuilderGetQueryParameters 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. type SitesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -75,10 +75,10 @@ func (m *SitesRequestBuilder) Count()(*CountRequestBuilder) { func (m *SitesRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get 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. +// Get 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/site-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/site-search?view=graph-rest-1.0 func (m *SitesRequestBuilder) Get(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -105,7 +105,7 @@ func (m *SitesRequestBuilder) GetAllSites()(*GetAllSitesRequestBuilder) { func (m *SitesRequestBuilder) Remove()(*RemoveRequestBuilder) { return NewRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation 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. +// ToGetRequestInformation 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. func (m *SitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_events_item_presenters_request_builder.go b/solutions/virtual_events_events_item_presenters_request_builder.go index 94df66998dd..f4fa9561ce6 100644 --- a/solutions/virtual_events_events_item_presenters_request_builder.go +++ b/solutions/virtual_events_events_item_presenters_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsEventsItemPresentersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsEventsItemPresentersRequestBuilder(rawUrl string, requestAd func (m *VirtualEventsEventsItemPresentersRequestBuilder) Count()(*VirtualEventsEventsItemPresentersCountRequestBuilder) { return NewVirtualEventsEventsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsEventsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsEventsItemPresentersRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable), nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsEventsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go index a1845b4668a..5853c7c1b28 100644 --- a/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go +++ b/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderDel // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilde } return nil } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_events_item_sessions_request_builder.go b/solutions/virtual_events_events_item_sessions_request_builder.go index 6cddf7fc38a..d9fecc46de5 100644 --- a/solutions/virtual_events_events_item_sessions_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsEventsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsEventsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsEventsItemSessionsRequestBuilder(rawUrl string, requestAdap func (m *VirtualEventsEventsItemSessionsRequestBuilder) Count()(*VirtualEventsEventsItemSessionsCountRequestBuilder) { return NewVirtualEventsEventsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsEventsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsEventsItemSessionsRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsEventsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go index 4977f2628df..55683317b98 100644 --- a/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_virtual_event_session_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderDeleteR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,7 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) D } return nil } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) T requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_townhalls_item_presenters_request_builder.go b/solutions/virtual_events_townhalls_item_presenters_request_builder.go index 30dae98b7fe..db8b3789efe 100644 --- a/solutions/virtual_events_townhalls_item_presenters_request_builder.go +++ b/solutions/virtual_events_townhalls_item_presenters_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsTownhallsItemPresentersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsTownhallsItemPresentersRequestBuilder(rawUrl string, reques func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Count()(*VirtualEventsTownhallsItemPresentersCountRequestBuilder) { return NewVirtualEventsTownhallsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Post(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable), nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go index 6ffa2e6d35a..6e326c4f99c 100644 --- a/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go +++ b/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBui } return nil } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_townhalls_item_sessions_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_request_builder.go index 10984067ea3..922b675065e 100644 --- a/solutions/virtual_events_townhalls_item_sessions_request_builder.go +++ b/solutions/virtual_events_townhalls_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsTownhallsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsTownhallsItemSessionsRequestBuilder(rawUrl string, requestA func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Count()(*VirtualEventsTownhallsItemSessionsCountRequestBuilder) { return NewVirtualEventsTownhallsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Post(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go index 842a285585c..7a3add47dec 100644 --- a/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go +++ b/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderDele // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,7 @@ func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder } return nil } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_item_presenters_request_builder.go b/solutions/virtual_events_webinars_item_presenters_request_builder.go index b563d171bc1..e6671134f50 100644 --- a/solutions/virtual_events_webinars_item_presenters_request_builder.go +++ b/solutions/virtual_events_webinars_item_presenters_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsWebinarsItemPresentersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsWebinarsItemPresentersRequestBuilder(rawUrl string, request func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Count()(*VirtualEventsWebinarsItemPresentersCountRequestBuilder) { return NewVirtualEventsWebinarsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Post(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable), nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go index 368f67c8952..5982111ee1b 100644 --- a/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go +++ b/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderD // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters presenters' information of the virtual event. +// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters the virtual event presenters. type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuil } return nil } -// Get presenters' information of the virtual event. +// Get the virtual event presenters. func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventPresenterable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuil requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation presenters' information of the virtual event. +// ToGetRequestInformation the virtual event presenters. func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_item_sessions_request_builder.go b/solutions/virtual_events_webinars_item_sessions_request_builder.go index 23ddda2bc17..d6e08f21231 100644 --- a/solutions/virtual_events_webinars_item_sessions_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsWebinarsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsWebinarsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsWebinarsItemSessionsRequestBuilder(rawUrl string, requestAd func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Count()(*VirtualEventsWebinarsItemSessionsCountRequestBuilder) { return NewVirtualEventsWebinarsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsWebinarsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go index 7a03187fe33..a2060e2f9c0 100644 --- a/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_virtual_event_session_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderDelet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions of the virtual event. +// VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions for the virtual event. type VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,7 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) } return nil } -// Get sessions of the virtual event. +// Get sessions for the virtual event. func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation sessions of the virtual event. +// ToGetRequestInformation sessions for the virtual event. func (m *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/solutions/virtual_events_webinars_request_builder.go b/solutions/virtual_events_webinars_request_builder.go index ffb07c56f73..f3f6605e393 100644 --- a/solutions/virtual_events_webinars_request_builder.go +++ b/solutions/virtual_events_webinars_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEventsWebinarsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsRequestBuilderGetQueryParameters get the list of all virtualEventWebinar objects created in a tenant. +// VirtualEventsWebinarsRequestBuilderGetQueryParameters get the list of all virtualEventWebinar objects created in the tenant. type VirtualEventsWebinarsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewVirtualEventsWebinarsRequestBuilder(rawUrl string, requestAdapter i2ae41 func (m *VirtualEventsWebinarsRequestBuilder) Count()(*VirtualEventsWebinarsCountRequestBuilder) { return NewVirtualEventsWebinarsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of all virtualEventWebinar objects created in a tenant. +// Get get the list of all virtualEventWebinar objects created in the tenant. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/virtualeventsroot-list-webinars?view=graph-rest-1.0 @@ -123,7 +123,7 @@ func (m *VirtualEventsWebinarsRequestBuilder) Post(ctx context.Context, body ie2 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventWebinarable), nil } -// ToGetRequestInformation get the list of all virtualEventWebinar objects created in a tenant. +// ToGetRequestInformation get the list of all virtualEventWebinar objects created in the tenant. func (m *VirtualEventsWebinarsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teams/item_channels_channel_item_request_builder.go b/teams/item_channels_channel_item_request_builder.go index 5fe46145504..6df9ac21ac5 100644 --- a/teams/item_channels_channel_item_request_builder.go +++ b/teams/item_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type ItemChannelsChannelItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemChannelsChannelItemRequestBuilder) Archive()(*ItemChannelsItemArchiveRequestBuilder) { + return NewItemChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemChannelsItemCompleteMigrationRequestBuilder) { return NewItemChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -190,6 +194,10 @@ func (m *ItemChannelsChannelItemRequestBuilder) ToPatchRequestInformation(ctx co } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemChannelsChannelItemRequestBuilder) Unarchive()(*ItemChannelsItemUnarchiveRequestBuilder) { + return NewItemChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsChannelItemRequestBuilder) { return NewItemChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_channels_item_archive_post_request_body.go b/teams/item_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..a7de30e8603 --- /dev/null +++ b/teams/item_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemChannelsItemArchivePostRequestBody +type ItemChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemChannelsItemArchivePostRequestBody instantiates a new ItemChannelsItemArchivePostRequestBody and sets the default values. +func NewItemChannelsItemArchivePostRequestBody()(*ItemChannelsItemArchivePostRequestBody) { + m := &ItemChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemChannelsItemArchivePostRequestBodyable +type ItemChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teams/item_channels_item_archive_request_builder.go b/teams/item_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..20c4198670d --- /dev/null +++ b/teams/item_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemArchiveRequestBuilder) { + m := &ItemChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemArchiveRequestBuilder) { + return NewItemChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_members_conversation_member_item_request_builder.go b/teams/item_channels_item_members_conversation_member_item_request_builder.go index fa6c2d00b70..28bac9f8a7b 100644 --- a/teams/item_channels_item_members_conversation_member_item_request_builder.go +++ b/teams/item_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToGetReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teams/item_channels_item_unarchive_request_builder.go b/teams/item_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..755caddfa4b --- /dev/null +++ b/teams/item_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemUnarchiveRequestBuilder) { + m := &ItemChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemUnarchiveRequestBuilder) { + return NewItemChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_archive_post_request_body.go b/teams/item_primary_channel_archive_post_request_body.go new file mode 100644 index 00000000000..dab2549ce40 --- /dev/null +++ b/teams/item_primary_channel_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPrimaryChannelArchivePostRequestBody +type ItemPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPrimaryChannelArchivePostRequestBody instantiates a new ItemPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemPrimaryChannelArchivePostRequestBody()(*ItemPrimaryChannelArchivePostRequestBody) { + m := &ItemPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemPrimaryChannelArchivePostRequestBodyable +type ItemPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teams/item_primary_channel_archive_request_builder.go b/teams/item_primary_channel_archive_request_builder.go new file mode 100644 index 00000000000..d58036ed03b --- /dev/null +++ b/teams/item_primary_channel_archive_request_builder.go @@ -0,0 +1,66 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelArchiveRequestBuilder) { + m := &ItemPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemPrimaryChannelArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelArchiveRequestBuilder) { + return NewItemPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_members_conversation_member_item_request_builder.go b/teams/item_primary_channel_members_conversation_member_item_request_builder.go index 9f9496304eb..edac2b6a930 100644 --- a/teams/item_primary_channel_members_conversation_member_item_request_builder.go +++ b/teams/item_primary_channel_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *ItemPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teams/item_primary_channel_request_builder.go b/teams/item_primary_channel_request_builder.go index 3a08d405c5f..7e10b6ab498 100644 --- a/teams/item_primary_channel_request_builder.go +++ b/teams/item_primary_channel_request_builder.go @@ -41,6 +41,10 @@ type ItemPrimaryChannelRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemPrimaryChannelRequestBuilder) Archive()(*ItemPrimaryChannelArchiveRequestBuilder) { + return NewItemPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemPrimaryChannelRequestBuilder) CompleteMigration()(*ItemPrimaryChannelCompleteMigrationRequestBuilder) { return NewItemPrimaryChannelCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -184,6 +188,10 @@ func (m *ItemPrimaryChannelRequestBuilder) ToPatchRequestInformation(ctx context } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemPrimaryChannelRequestBuilder) Unarchive()(*ItemPrimaryChannelUnarchiveRequestBuilder) { + return NewItemPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelRequestBuilder) { return NewItemPrimaryChannelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_primary_channel_unarchive_request_builder.go b/teams/item_primary_channel_unarchive_request_builder.go new file mode 100644 index 00000000000..826c00a8262 --- /dev/null +++ b/teams/item_primary_channel_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemPrimaryChannelUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + return NewItemPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go index 3a95b52ff6a..176baadd93b 100644 --- a/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type ItemTeamDefinitionChannelsChannelItemRequestBuilderPatchRequestConfiguratio // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) Archive()(*ItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemTeamDefinitionChannelsItemCompleteMigrationRequestBuilder) { return NewItemTeamDefinitionChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -190,6 +194,10 @@ func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) ToPatchRequestInfo } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) Unarchive()(*ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsChannelItemRequestBuilder) { return NewItemTeamDefinitionChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go b/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..f1eb7dc9ca8 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemTeamDefinitionChannelsItemArchivePostRequestBody +type ItemTeamDefinitionChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamDefinitionChannelsItemArchivePostRequestBody instantiates a new ItemTeamDefinitionChannelsItemArchivePostRequestBody and sets the default values. +func NewItemTeamDefinitionChannelsItemArchivePostRequestBody()(*ItemTeamDefinitionChannelsItemArchivePostRequestBody) { + m := &ItemTeamDefinitionChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamDefinitionChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemTeamDefinitionChannelsItemArchivePostRequestBodyable +type ItemTeamDefinitionChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_archive_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..e7e9e138797 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamDefinitionChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemTeamDefinitionChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamDefinitionChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemTeamDefinitionChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamDefinitionChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go index 536007b9790..c9c21123d30 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuild requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamtemplatedefinition/item_team_definition_channels_item_unarchive_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..ff3b00cab93 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go b/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go new file mode 100644 index 00000000000..9322d8960bb --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemTeamDefinitionPrimaryChannelArchivePostRequestBody +type ItemTeamDefinitionPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamDefinitionPrimaryChannelArchivePostRequestBody instantiates a new ItemTeamDefinitionPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemTeamDefinitionPrimaryChannelArchivePostRequestBody()(*ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) { + m := &ItemTeamDefinitionPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// ItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable +type ItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_archive_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_archive_request_builder.go new file mode 100644 index 00000000000..a73d5aa03d1 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go index 17e8741bf28..c13593f40eb 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go index 8a9282d6d42..41422f0ba48 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go @@ -41,6 +41,10 @@ type ItemTeamDefinitionPrimaryChannelRequestBuilderPatchRequestConfiguration str // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) Archive()(*ItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) CompleteMigration()(*ItemTeamDefinitionPrimaryChannelCompleteMigrationRequestBuilder) { return NewItemTeamDefinitionPrimaryChannelCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -184,6 +188,10 @@ func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) ToPatchRequestInformati } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) Unarchive()(*ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelRequestBuilder) { return NewItemTeamDefinitionPrimaryChannelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_unarchive_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_unarchive_request_builder.go new file mode 100644 index 00000000000..f89306b5a3e --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_channel_item_request_builder.go b/teamwork/deleted_teams_item_channels_channel_item_request_builder.go index 451d9732778..5aebab7b3a6 100644 --- a/teamwork/deleted_teams_item_channels_channel_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type DeletedTeamsItemChannelsChannelItemRequestBuilderPatchRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) Archive()(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) CompleteMigration()(*DeletedTeamsItemChannelsItemCompleteMigrationRequestBuilder) { return NewDeletedTeamsItemChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -181,6 +185,10 @@ func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) ToPatchRequestInform } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) Unarchive()(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsChannelItemRequestBuilder) { return NewDeletedTeamsItemChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go b/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..feab813fcca --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// DeletedTeamsItemChannelsItemArchivePostRequestBody +type DeletedTeamsItemChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDeletedTeamsItemChannelsItemArchivePostRequestBody instantiates a new DeletedTeamsItemChannelsItemArchivePostRequestBody and sets the default values. +func NewDeletedTeamsItemChannelsItemArchivePostRequestBody()(*DeletedTeamsItemChannelsItemArchivePostRequestBody) { + m := &DeletedTeamsItemChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDeletedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateDeletedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// DeletedTeamsItemChannelsItemArchivePostRequestBodyable +type DeletedTeamsItemChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamwork/deleted_teams_item_channels_item_archive_request_builder.go b/teamwork/deleted_teams_item_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..9f8ed60f698 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type DeletedTeamsItemChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + m := &DeletedTeamsItemChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body DeletedTeamsItemChannelsItemArchivePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body DeletedTeamsItemChannelsItemArchivePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go b/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go index e459ea0e6b9..38f5abd2d57 100644 --- a/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go b/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..438113a2fb9 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type DeletedTeamsItemChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + m := &DeletedTeamsItemChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go index e0d3c345a24..1c3cd016dcb 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go @@ -41,6 +41,10 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBui // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) Archive()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) CompleteMigration()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemCompleteMigrationRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -190,6 +194,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemReques } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) Unarchive()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go new file mode 100644 index 00000000000..6a80b18f892 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyable +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_request_builder.go new file mode 100644 index 00000000000..6274609fa15 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go index 529c8566520..52b824894a2 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConver } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConver requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_unarchive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_unarchive_request_builder.go new file mode 100644 index 00000000000..c0e7219fcb7 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go new file mode 100644 index 00000000000..fed3f4094a9 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go @@ -0,0 +1,110 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_request_builder.go new file mode 100644 index 00000000000..cecb5b95f98 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_request_builder.go @@ -0,0 +1,66 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/archive", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go index d81b0894299..9d080f2be55 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_members_conversation_member_item_request_builder.go @@ -95,10 +95,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConv } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } -// Patch update the role of a conversationMember in a team.or channel. +// Patch update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConv requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the role of a conversationMember in a team.or channel. +// ToPatchRequestInformation update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go index 48243ffe482..b06c453ffe7 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go @@ -41,6 +41,10 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilderP // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) Archive()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) CompleteMigration()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelCompleteMigrationRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -184,6 +188,10 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuil } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) Unarchive()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_unarchive_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_unarchive_request_builder.go new file mode 100644 index 00000000000..390bbf13de1 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_unarchive_request_builder.go @@ -0,0 +1,62 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_request_builder.go b/teamwork/team_templates_request_builder.go index 79606c0ea7c..d5ee33abf5e 100644 --- a/teamwork/team_templates_request_builder.go +++ b/teamwork/team_templates_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamTemplatesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesRequestBuilderGetQueryParameters get the list of teamTemplate objects that are available for a tenant. +// TeamTemplatesRequestBuilderGetQueryParameters list the teamTemplateDefinition objects associated with a teamTemplate. type TeamTemplatesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,10 @@ func NewTeamTemplatesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee func (m *TeamTemplatesRequestBuilder) Count()(*TeamTemplatesCountRequestBuilder) { return NewTeamTemplatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of teamTemplate objects that are available for a tenant. +// Get list the teamTemplateDefinition objects associated with a teamTemplate. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/teamwork-list-teamtemplates?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/teamtemplate-list-definitions?view=graph-rest-1.0 func (m *TeamTemplatesRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamTemplateCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -115,7 +115,7 @@ func (m *TeamTemplatesRequestBuilder) Post(ctx context.Context, body ie233ee762e } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamTemplateable), nil } -// ToGetRequestInformation get the list of teamTemplate objects that are available for a tenant. +// ToGetRequestInformation list the teamTemplateDefinition objects associated with a teamTemplate. func (m *TeamTemplatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/teamwork/teamwork_request_builder.go b/teamwork/teamwork_request_builder.go index 8e076dcf57a..f2152026a02 100644 --- a/teamwork/teamwork_request_builder.go +++ b/teamwork/teamwork_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamworkRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamworkRequestBuilderGetQueryParameters get teamwork +// TeamworkRequestBuilderGetQueryParameters get the properties and relationships of a teamwork object, such as the region of the organization and whether Microsoft Teams is enabled. type TeamworkRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -59,7 +59,10 @@ func (m *TeamworkRequestBuilder) DeletedTeams()(*DeletedTeamsRequestBuilder) { func (m *TeamworkRequestBuilder) Devices()(*DevicesRequestBuilder) { return NewDevicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get teamwork +// Get get the properties and relationships of a teamwork object, such as the region of the organization and whether Microsoft Teams is enabled. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/teamwork-get?view=graph-rest-1.0 func (m *TeamworkRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamworkRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Teamworkable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -109,7 +112,7 @@ func (m *TeamworkRequestBuilder) TeamsAppSettings()(*TeamsAppSettingsRequestBuil func (m *TeamworkRequestBuilder) TeamTemplates()(*TeamTemplatesRequestBuilder) { return NewTeamTemplatesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation get teamwork +// ToGetRequestInformation get the properties and relationships of a teamwork object, such as the region of the organization and whether Microsoft Teams is enabled. func (m *TeamworkRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamworkRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/tenantrelationships/multi_tenant_organization_request_builder.go b/tenantrelationships/multi_tenant_organization_request_builder.go index 95ba1b5e2e3..1debbc0fb3a 100644 --- a/tenantrelationships/multi_tenant_organization_request_builder.go +++ b/tenantrelationships/multi_tenant_organization_request_builder.go @@ -73,10 +73,10 @@ func (m *MultiTenantOrganizationRequestBuilder) Get(ctx context.Context, request func (m *MultiTenantOrganizationRequestBuilder) JoinRequest()(*MultiTenantOrganizationJoinRequestRequestBuilder) { return NewMultiTenantOrganizationJoinRequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a multi-tenant organization. +// Patch 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. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/multitenantorganization-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0 func (m *MultiTenantOrganizationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *MultiTenantOrganizationRequestBuilder) ToGetRequestInformation(ctx cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a multi-tenant organization. +// ToPatchRequestInformation 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. func (m *MultiTenantOrganizationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item/cloudpcs/item/changeuseraccounttype/change_user_account_type_post_request_body_user_account_type.go b/users/item/cloudpcs/item/changeuseraccounttype/change_user_account_type_post_request_body_user_account_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/cloudpcs/item/getfrontlinecloudpcaccessstate/get_frontline_cloud_pc_access_state_get_response.go b/users/item/cloudpcs/item/getfrontlinecloudpcaccessstate/get_frontline_cloud_pc_access_state_get_response.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/cloudpcs/item/getshiftworkcloudpcaccessstate/get_shift_work_cloud_pc_access_state_get_response.go b/users/item/cloudpcs/item/getshiftworkcloudpcaccessstate/get_shift_work_cloud_pc_access_state_get_response.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/cloudpcs/item/reprovision/reprovision_post_request_body_os_version.go b/users/item/cloudpcs/item/reprovision/reprovision_post_request_body_os_version.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/cloudpcs/item/reprovision/reprovision_post_request_body_user_account_type.go b/users/item/cloudpcs/item/reprovision/reprovision_post_request_body_user_account_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/getmailtips/get_mail_tips_post_request_body_mail_tips_options.go b/users/item/getmailtips/get_mail_tips_post_request_body_mail_tips_options.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/manageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go b/users/item/manageddevices/bulkrestorecloudpc/bulk_restore_cloud_pc_post_request_body_time_range.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/manageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go b/users/item/manageddevices/item/wipe/wipe_post_request_body_obliteration_behavior.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go b/users/item/onlinemeetings/item/sendvirtualappointmentremindersms/send_virtual_appointment_reminder_sms_post_request_body_remind_before_time_in_minutes_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go b/users/item/onlinemeetings/item/sendvirtualappointmentsms/send_virtual_appointment_sms_post_request_body_sms_type.go new file mode 100644 index 00000000000..e69de29bb2d diff --git a/users/item_calendar_calendar_view_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_attachments_request_builder.go index 59c438d9ca0..a246fd15356 100644 --- a/users/item_calendar_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Get(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index a793ff7b51d..eadeb0ce0db 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 5018e092283..e2cb55b29fd 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go index aa5088458c4..b7ffb1d1903 100644 --- a/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToG requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index eeef3add039..62c6d29cb1d 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_attachments_request_builder.go b/users/item_calendar_events_item_attachments_request_builder.go index c03109fd47f..e75d31eb632 100644 --- a/users/item_calendar_events_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Get(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToGetRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go index 60a000f5822..43d57b754e2 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index b3b6468d998..48618f96f76 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_instances_item_attachments_request_builder.go b/users/item_calendar_events_item_instances_item_attachments_request_builder.go index c6aed9e8485..394901da841 100644 --- a/users/item_calendar_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 13f5de7969d..bcbc86229d0 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go index 0bcadb50e1d..76c8f54f834 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 38cb1954a7b..6af4f986a7b 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 55da006899a..bc3a22e3f99 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go index 5210b5a564b..a9b33b9636a 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 27c030e5c4a..3ad82d70267 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go index 52fd750e147..88cb2082437 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go index b2a7c159b3a..fcc2938f32e 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 1383e4119fc..dc22f49904c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go index cf4a1e62284..8ca97b6ae8c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 58df38981ba..6fdc6d1bc35 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_attachments_request_builder.go b/users/item_calendar_view_item_attachments_request_builder.go index 39627521faa..49b6289cbe8 100644 --- a/users/item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 23dfab72dfd..522a012b8dc 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 45814f095b6..3f07cc632e1 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendar_view_item_instances_item_attachments_request_builder.go index fa3bbd3c567..9d0c1629edf 100644 --- a/users/item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 21bb089bb61..bb254cca000 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_attachments_request_builder.go index 3e622b5b4f2..a3e65aaf2ba 100644 --- a/users/item_calendars_item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 9e3e8805699..acf7ab76bab 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 0c787d0f9ee..4d1dd777014 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go index 0cb004ab294..b8b5da42f14 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index bd39d1fac64..eb49a2253f6 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_attachments_request_builder.go b/users/item_calendars_item_events_item_attachments_request_builder.go index 2f897a16e55..c2fbac68228 100644 --- a/users/item_calendars_item_events_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go index 1c01e0128b1..1f384f9dd6d 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 3580abc45d6..844a968d0f5 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go index 9575fa44d7b..2f6cfb0b697 100644 --- a/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index 10d94ca2acc..18e8be1152d 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_cloud_p_cs_item_change_user_account_type_post_request_body.go b/users/item_cloud_p_cs_item_change_user_account_type_post_request_body.go index a122e2c862b..be5bf5f7e0a 100644 --- a/users/item_cloud_p_cs_item_change_user_account_type_post_request_body.go +++ b/users/item_cloud_p_cs_item_change_user_account_type_post_request_body.go @@ -2,7 +2,6 @@ package users import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -42,38 +41,10 @@ func (m *ItemCloudPCsItemChangeUserAccountTypePostRequestBody) GetBackingStore() // GetFieldDeserializers the deserialization information for the current model func (m *ItemCloudPCsItemChangeUserAccountTypePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["userAccountType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcUserAccountType) - if err != nil { - return err - } - if val != nil { - m.SetUserAccountType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)) - } - return nil - } return res } -// GetUserAccountType gets the userAccountType property value. The userAccountType property -func (m *ItemCloudPCsItemChangeUserAccountTypePostRequestBody) GetUserAccountType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) { - val, err := m.GetBackingStore().Get("userAccountType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) - } - return nil -} // Serialize serializes information the current object func (m *ItemCloudPCsItemChangeUserAccountTypePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetUserAccountType() != nil { - cast := (*m.GetUserAccountType()).String() - err := writer.WriteStringValue("userAccountType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -93,20 +64,11 @@ func (m *ItemCloudPCsItemChangeUserAccountTypePostRequestBody) SetAdditionalData func (m *ItemCloudPCsItemChangeUserAccountTypePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetUserAccountType sets the userAccountType property value. The userAccountType property -func (m *ItemCloudPCsItemChangeUserAccountTypePostRequestBody) SetUserAccountType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)() { - err := m.GetBackingStore().Set("userAccountType", value) - if err != nil { - panic(err) - } -} // ItemCloudPCsItemChangeUserAccountTypePostRequestBodyable type ItemCloudPCsItemChangeUserAccountTypePostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetUserAccountType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetUserAccountType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)() } diff --git a/users/item_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go b/users/item_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go index c9439f9c836..519d56451ac 100644 --- a/users/item_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go +++ b/users/item_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go @@ -3,8 +3,8 @@ package users import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i88f3a6af88aa2aea2fd7d6de613104f05bcd862d575941b44d37158780bcdd7b "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/cloudpcs/item/getfrontlinecloudpcaccessstate" ) // ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder provides operations to call the getFrontlineCloudPcAccessState method. @@ -32,7 +32,7 @@ func NewItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder(rawUrl stri return NewItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function getFrontlineCloudPcAccessState -func (m *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FrontlineCloudPcAccessState, error) { +func (m *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*i88f3a6af88aa2aea2fd7d6de613104f05bcd862d575941b44d37158780bcdd7b.GetFrontlineCloudPcAccessStateGetResponse, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -41,14 +41,14 @@ func (m *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) Get(ctx c "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.SendEnum(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseFrontlineCloudPcAccessState, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.SendEnum(ctx, requestInfo, i88f3a6af88aa2aea2fd7d6de613104f05bcd862d575941b44d37158780bcdd7b.ParseGetFrontlineCloudPcAccessStateGetResponse, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FrontlineCloudPcAccessState), nil + return res.(*i88f3a6af88aa2aea2fd7d6de613104f05bcd862d575941b44d37158780bcdd7b.GetFrontlineCloudPcAccessStateGetResponse), nil } // ToGetRequestInformation invoke function getFrontlineCloudPcAccessState func (m *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/users/item_cloud_p_cs_item_get_shift_work_cloud_pc_access_state_request_builder.go b/users/item_cloud_p_cs_item_get_shift_work_cloud_pc_access_state_request_builder.go index 01a88f29a86..209aa8dcfa8 100644 --- a/users/item_cloud_p_cs_item_get_shift_work_cloud_pc_access_state_request_builder.go +++ b/users/item_cloud_p_cs_item_get_shift_work_cloud_pc_access_state_request_builder.go @@ -3,8 +3,8 @@ package users import ( "context" i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + iaf9274241d5101da68937e82d42cc86d252661bad301303aadd017d8b9c074b4 "github.com/microsoftgraph/msgraph-beta-sdk-go/users/item/cloudpcs/item/getshiftworkcloudpcaccessstate" ) // ItemCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder provides operations to call the getShiftWorkCloudPcAccessState method. @@ -33,7 +33,7 @@ func NewItemCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder(rawUrl stri } // Get invoke function getShiftWorkCloudPcAccessState // Deprecated: The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState on 2023-09-05 and will be removed 2023-12-31 -func (m *ItemCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftWorkCloudPcAccessState, error) { +func (m *ItemCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*iaf9274241d5101da68937e82d42cc86d252661bad301303aadd017d8b9c074b4.GetShiftWorkCloudPcAccessStateGetResponse, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -42,14 +42,14 @@ func (m *ItemCloudPCsItemGetShiftWorkCloudPcAccessStateRequestBuilder) Get(ctx c "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.SendEnum(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseShiftWorkCloudPcAccessState, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.SendEnum(ctx, requestInfo, iaf9274241d5101da68937e82d42cc86d252661bad301303aadd017d8b9c074b4.ParseGetShiftWorkCloudPcAccessStateGetResponse, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftWorkCloudPcAccessState), nil + return res.(*iaf9274241d5101da68937e82d42cc86d252661bad301303aadd017d8b9c074b4.GetShiftWorkCloudPcAccessStateGetResponse), nil } // ToGetRequestInformation invoke function getShiftWorkCloudPcAccessState // Deprecated: The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState on 2023-09-05 and will be removed 2023-12-31 diff --git a/users/item_cloud_p_cs_item_reprovision_post_request_body.go b/users/item_cloud_p_cs_item_reprovision_post_request_body.go index 4616d33a37b..eb8e9af855f 100644 --- a/users/item_cloud_p_cs_item_reprovision_post_request_body.go +++ b/users/item_cloud_p_cs_item_reprovision_post_request_body.go @@ -2,7 +2,6 @@ package users import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -42,66 +41,10 @@ func (m *ItemCloudPCsItemReprovisionPostRequestBody) GetBackingStore()(ie8677ce2 // GetFieldDeserializers the deserialization information for the current model func (m *ItemCloudPCsItemReprovisionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["osVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcOperatingSystem) - if err != nil { - return err - } - if val != nil { - m.SetOsVersion(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem)) - } - return nil - } - res["userAccountType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcUserAccountType) - if err != nil { - return err - } - if val != nil { - m.SetUserAccountType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)) - } - return nil - } return res } -// GetOsVersion gets the osVersion property value. The osVersion property -func (m *ItemCloudPCsItemReprovisionPostRequestBody) GetOsVersion()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem) { - val, err := m.GetBackingStore().Get("osVersion") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem) - } - return nil -} -// GetUserAccountType gets the userAccountType property value. The userAccountType property -func (m *ItemCloudPCsItemReprovisionPostRequestBody) GetUserAccountType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) { - val, err := m.GetBackingStore().Get("userAccountType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) - } - return nil -} // Serialize serializes information the current object func (m *ItemCloudPCsItemReprovisionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetOsVersion() != nil { - cast := (*m.GetOsVersion()).String() - err := writer.WriteStringValue("osVersion", &cast) - if err != nil { - return err - } - } - if m.GetUserAccountType() != nil { - cast := (*m.GetUserAccountType()).String() - err := writer.WriteStringValue("userAccountType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -121,29 +64,11 @@ func (m *ItemCloudPCsItemReprovisionPostRequestBody) SetAdditionalData(value map func (m *ItemCloudPCsItemReprovisionPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetOsVersion sets the osVersion property value. The osVersion property -func (m *ItemCloudPCsItemReprovisionPostRequestBody) SetOsVersion(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem)() { - err := m.GetBackingStore().Set("osVersion", value) - if err != nil { - panic(err) - } -} -// SetUserAccountType sets the userAccountType property value. The userAccountType property -func (m *ItemCloudPCsItemReprovisionPostRequestBody) SetUserAccountType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)() { - err := m.GetBackingStore().Set("userAccountType", value) - if err != nil { - panic(err) - } -} // ItemCloudPCsItemReprovisionPostRequestBodyable type ItemCloudPCsItemReprovisionPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetOsVersion()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem) - GetUserAccountType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetOsVersion(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcOperatingSystem)() - SetUserAccountType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcUserAccountType)() } diff --git a/users/item_events_item_attachments_request_builder.go b/users/item_events_item_attachments_request_builder.go index 4788d1185f5..f34c2c710d4 100644 --- a/users/item_events_item_attachments_request_builder.go +++ b/users/item_events_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, reque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_events_item_exception_occurrences_item_attachments_request_builder.go index bec9cb61e91..134ea7bd3c5 100644 --- a/users/item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index ed2faed3f9b..ba9ffe4e0cd 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_instances_item_attachments_request_builder.go b/users/item_events_item_instances_item_attachments_request_builder.go index 990d14c298e..b718a75b63f 100644 --- a/users/item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_events_item_instances_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index c73ccecbb6c..bea73535f76 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_get_mail_tips_post_request_body.go b/users/item_get_mail_tips_post_request_body.go index 321f5c062c4..067ebb6ecf0 100644 --- a/users/item_get_mail_tips_post_request_body.go +++ b/users/item_get_mail_tips_post_request_body.go @@ -2,7 +2,6 @@ package users import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -69,29 +68,8 @@ func (m *ItemGetMailTipsPostRequestBody) GetFieldDeserializers()(map[string]func } return nil } - res["MailTipsOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseMailTipsType) - if err != nil { - return err - } - if val != nil { - m.SetMailTipsOptions(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailTipsType)) - } - return nil - } return res } -// GetMailTipsOptions gets the MailTipsOptions property value. The MailTipsOptions property -func (m *ItemGetMailTipsPostRequestBody) GetMailTipsOptions()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailTipsType) { - val, err := m.GetBackingStore().Get("mailTipsOptions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailTipsType) - } - return nil -} // Serialize serializes information the current object func (m *ItemGetMailTipsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetEmailAddresses() != nil { @@ -100,13 +78,6 @@ func (m *ItemGetMailTipsPostRequestBody) Serialize(writer i878a80d2330e89d268963 return err } } - if m.GetMailTipsOptions() != nil { - cast := (*m.GetMailTipsOptions()).String() - err := writer.WriteStringValue("MailTipsOptions", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -133,13 +104,6 @@ func (m *ItemGetMailTipsPostRequestBody) SetEmailAddresses(value []string)() { panic(err) } } -// SetMailTipsOptions sets the MailTipsOptions property value. The MailTipsOptions property -func (m *ItemGetMailTipsPostRequestBody) SetMailTipsOptions(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailTipsType)() { - err := m.GetBackingStore().Set("mailTipsOptions", value) - if err != nil { - panic(err) - } -} // ItemGetMailTipsPostRequestBodyable type ItemGetMailTipsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -147,8 +111,6 @@ type ItemGetMailTipsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetEmailAddresses()([]string) - GetMailTipsOptions()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailTipsType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetEmailAddresses(value []string)() - SetMailTipsOptions(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailTipsType)() } diff --git a/users/item_license_details_get_teams_licensing_details_request_builder.go b/users/item_license_details_get_teams_licensing_details_request_builder.go new file mode 100644 index 00000000000..342a7138397 --- /dev/null +++ b/users/item_license_details_get_teams_licensing_details_request_builder.go @@ -0,0 +1,66 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder provides operations to call the getTeamsLicensingDetails method. +type ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal instantiates a new GetTeamsLicensingDetailsRequestBuilder and sets the default values. +func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + m := &ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/licenseDetails/getTeamsLicensingDetails()", pathParameters), + } + return m +} +// NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder instantiates a new GetTeamsLicensingDetailsRequestBuilder and sets the default values. +func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getTeamsLicensingDetails +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamsLicensingDetailsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable), nil +} +// ToGetRequestInformation invoke function getTeamsLicensingDetails +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_license_details_request_builder.go b/users/item_license_details_request_builder.go index a6e7de19de8..3237f30e21c 100644 --- a/users/item_license_details_request_builder.go +++ b/users/item_license_details_request_builder.go @@ -96,6 +96,10 @@ func (m *ItemLicenseDetailsRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsCollectionResponseable), nil } +// GetTeamsLicensingDetails provides operations to call the getTeamsLicensingDetails method. +func (m *ItemLicenseDetailsRequestBuilder) GetTeamsLicensingDetails()(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { + return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to licenseDetails for users func (m *ItemLicenseDetailsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, requestConfiguration *ItemLicenseDetailsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go index 0f08de5e7fc..38ae4e7d1dd 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go @@ -94,10 +94,10 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_mail_folders_item_child_folders_request_builder.go b/users/item_mail_folders_item_child_folders_request_builder.go index 753fea01540..8e8110e8545 100644 --- a/users/item_mail_folders_item_child_folders_request_builder.go +++ b/users/item_mail_folders_item_child_folders_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderCollectionResponseable), nil } -// Post use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. +// Post create a new mailSearchFolder in the specified user's mailbox. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/mailfolder-post-childfolders?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/mailsearchfolder-post?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -135,7 +135,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. +// ToPostRequestInformation create a new mailSearchFolder in the specified user's mailbox. func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_mail_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_messages_item_attachments_request_builder.go index 0819b977a9e..3820d048813 100644 --- a/users/item_mail_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_messages_item_attachments_request_builder.go @@ -94,10 +94,10 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_managed_devices_bulk_restore_cloud_pc_post_request_body.go b/users/item_managed_devices_bulk_restore_cloud_pc_post_request_body.go index 2ef02d4c1dd..431da9cbadc 100644 --- a/users/item_managed_devices_bulk_restore_cloud_pc_post_request_body.go +++ b/users/item_managed_devices_bulk_restore_cloud_pc_post_request_body.go @@ -3,7 +3,6 @@ package users import ( i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -69,16 +68,6 @@ func (m *ItemManagedDevicesBulkRestoreCloudPcPostRequestBody) GetFieldDeserializ } return nil } - res["timeRange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseRestoreTimeRange) - if err != nil { - return err - } - if val != nil { - m.SetTimeRange(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)) - } - return nil - } return res } // GetManagedDeviceIds gets the managedDeviceIds property value. The managedDeviceIds property @@ -103,17 +92,6 @@ func (m *ItemManagedDevicesBulkRestoreCloudPcPostRequestBody) GetRestorePointDat } return nil } -// GetTimeRange gets the timeRange property value. The timeRange property -func (m *ItemManagedDevicesBulkRestoreCloudPcPostRequestBody) GetTimeRange()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) { - val, err := m.GetBackingStore().Get("timeRange") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) - } - return nil -} // Serialize serializes information the current object func (m *ItemManagedDevicesBulkRestoreCloudPcPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetManagedDeviceIds() != nil { @@ -128,13 +106,6 @@ func (m *ItemManagedDevicesBulkRestoreCloudPcPostRequestBody) Serialize(writer i return err } } - if m.GetTimeRange() != nil { - cast := (*m.GetTimeRange()).String() - err := writer.WriteStringValue("timeRange", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -168,13 +139,6 @@ func (m *ItemManagedDevicesBulkRestoreCloudPcPostRequestBody) SetRestorePointDat panic(err) } } -// SetTimeRange sets the timeRange property value. The timeRange property -func (m *ItemManagedDevicesBulkRestoreCloudPcPostRequestBody) SetTimeRange(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)() { - err := m.GetBackingStore().Set("timeRange", value) - if err != nil { - panic(err) - } -} // ItemManagedDevicesBulkRestoreCloudPcPostRequestBodyable type ItemManagedDevicesBulkRestoreCloudPcPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -183,9 +147,7 @@ type ItemManagedDevicesBulkRestoreCloudPcPostRequestBodyable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetManagedDeviceIds()([]string) GetRestorePointDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetTimeRange()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetManagedDeviceIds(value []string)() SetRestorePointDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetTimeRange(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestoreTimeRange)() } diff --git a/users/item_managed_devices_item_wipe_post_request_body.go b/users/item_managed_devices_item_wipe_post_request_body.go index 881e8f8ff36..87e3abd75da 100644 --- a/users/item_managed_devices_item_wipe_post_request_body.go +++ b/users/item_managed_devices_item_wipe_post_request_body.go @@ -2,7 +2,6 @@ package users import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -72,16 +71,6 @@ func (m *ItemManagedDevicesItemWipePostRequestBody) GetFieldDeserializers()(map[ } return nil } - res["obliterationBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseObliterationBehavior) - if err != nil { - return err - } - if val != nil { - m.SetObliterationBehavior(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)) - } - return nil - } res["persistEsimDataPlan"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -137,17 +126,6 @@ func (m *ItemManagedDevicesItemWipePostRequestBody) GetMacOsUnlockCode()(*string } return nil } -// GetObliterationBehavior gets the obliterationBehavior property value. The obliterationBehavior property -func (m *ItemManagedDevicesItemWipePostRequestBody) GetObliterationBehavior()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) { - val, err := m.GetBackingStore().Get("obliterationBehavior") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) - } - return nil -} // GetPersistEsimDataPlan gets the persistEsimDataPlan property value. The persistEsimDataPlan property func (m *ItemManagedDevicesItemWipePostRequestBody) GetPersistEsimDataPlan()(*bool) { val, err := m.GetBackingStore().Get("persistEsimDataPlan") @@ -190,13 +168,6 @@ func (m *ItemManagedDevicesItemWipePostRequestBody) Serialize(writer i878a80d233 return err } } - if m.GetObliterationBehavior() != nil { - cast := (*m.GetObliterationBehavior()).String() - err := writer.WriteStringValue("obliterationBehavior", &cast) - if err != nil { - return err - } - } { err := writer.WriteBoolValue("persistEsimDataPlan", m.GetPersistEsimDataPlan()) if err != nil { @@ -249,13 +220,6 @@ func (m *ItemManagedDevicesItemWipePostRequestBody) SetMacOsUnlockCode(value *st panic(err) } } -// SetObliterationBehavior sets the obliterationBehavior property value. The obliterationBehavior property -func (m *ItemManagedDevicesItemWipePostRequestBody) SetObliterationBehavior(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)() { - err := m.GetBackingStore().Set("obliterationBehavior", value) - if err != nil { - panic(err) - } -} // SetPersistEsimDataPlan sets the persistEsimDataPlan property value. The persistEsimDataPlan property func (m *ItemManagedDevicesItemWipePostRequestBody) SetPersistEsimDataPlan(value *bool)() { err := m.GetBackingStore().Set("persistEsimDataPlan", value) @@ -279,14 +243,12 @@ type ItemManagedDevicesItemWipePostRequestBodyable interface { GetKeepEnrollmentData()(*bool) GetKeepUserData()(*bool) GetMacOsUnlockCode()(*string) - GetObliterationBehavior()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior) GetPersistEsimDataPlan()(*bool) GetUseProtectedWipe()(*bool) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetKeepEnrollmentData(value *bool)() SetKeepUserData(value *bool)() SetMacOsUnlockCode(value *string)() - SetObliterationBehavior(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ObliterationBehavior)() SetPersistEsimDataPlan(value *bool)() SetUseProtectedWipe(value *bool)() } diff --git a/users/item_messages_item_attachments_request_builder.go b/users/item_messages_item_attachments_request_builder.go index 2ecca9ac69d..26b6d00dec4 100644 --- a/users/item_messages_item_attachments_request_builder.go +++ b/users/item_messages_item_attachments_request_builder.go @@ -94,10 +94,10 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } -// Post use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. +// Post use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 func (m *ItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage that is being drafted, or created and sent on the fly. +// ToPostRequestInformation use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_messages_item_value_content_request_builder.go b/users/item_messages_item_value_content_request_builder.go index b56be15ccd4..3f8d0a14bf7 100644 --- a/users/item_messages_item_value_content_request_builder.go +++ b/users/item_messages_item_value_content_request_builder.go @@ -40,7 +40,7 @@ func NewItemMessagesItemValueContentRequestBuilder(rawUrl string, requestAdapter // Get get media content for the navigation property messages from users // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 func (m *ItemMessagesItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/users/item_messages_message_item_request_builder.go b/users/item_messages_message_item_request_builder.go index 87fc5ddab87..bc3c97b1be4 100644 --- a/users/item_messages_message_item_request_builder.go +++ b/users/item_messages_message_item_request_builder.go @@ -110,7 +110,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Forward()(*ItemMessagesItemForwa // Get the messages in a mailbox or folder. Read-only. Nullable. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/singlevaluelegacyextendedproperty-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-get?view=graph-rest-1.0 func (m *ItemMessagesMessageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -145,10 +145,10 @@ func (m *ItemMessagesMessageItemRequestBuilder) Mentions()(*ItemMessagesItemMent func (m *ItemMessagesMessageItemRequestBuilder) Move()(*ItemMessagesItemMoveRequestBuilder) { return NewItemMessagesItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a message object. +// Patch update the properties of an eventMessage object. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-update?view=graph-rest-1.0 func (m *ItemMessagesMessageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -202,7 +202,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) ToGetRequestInformation(ctx cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a message object. +// ToPatchRequestInformation update the properties of an eventMessage object. func (m *ItemMessagesMessageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_messages_request_builder.go b/users/item_messages_request_builder.go index f4a87b9a605..1d2d0d9adb1 100644 --- a/users/item_messages_request_builder.go +++ b/users/item_messages_request_builder.go @@ -83,7 +83,7 @@ func (m *ItemMessagesRequestBuilder) Delta()(*ItemMessagesDeltaRequestBuilder) { // Get the messages in a mailbox or folder. Read-only. Nullable. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/users/item_online_meetings_item_registration_request_builder.go b/users/item_online_meetings_item_registration_request_builder.go index 19b2e8d96ba..2c5d99184ef 100644 --- a/users/item_online_meetings_item_registration_request_builder.go +++ b/users/item_online_meetings_item_registration_request_builder.go @@ -18,7 +18,7 @@ type ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemOnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// ItemOnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the externalMeetingRegistration details associated with an onlineMeeting. type ItemOnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -58,10 +58,10 @@ func NewItemOnlineMeetingsItemRegistrationRequestBuilder(rawUrl string, requestA func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete disable and delete the externalMeetingRegistration of an onlineMeeting. +// Delete disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -77,10 +77,10 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Co } return nil } -// Get get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// Get get the externalMeetingRegistration details associated with an onlineMeeting. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/meetingregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalmeetingregistration-get?view=graph-rest-1.0 func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -125,7 +125,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Con func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation disable and delete the externalMeetingRegistration of an onlineMeeting. +// ToDeleteRequestInformation disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { @@ -135,7 +135,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInform requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. +// ToGetRequestInformation get the externalMeetingRegistration details associated with an onlineMeeting. func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go b/users/item_online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go index 681544c0fa0..10cc22cf18c 100644 --- a/users/item_online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go +++ b/users/item_online_meetings_item_send_virtual_appointment_reminder_sms_post_request_body.go @@ -2,7 +2,6 @@ package users import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -58,16 +57,6 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) } return nil } - res["remindBeforeTimeInMinutesType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseRemindBeforeTimeInMinutesType) - if err != nil { - return err - } - if val != nil { - m.SetRemindBeforeTimeInMinutesType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)) - } - return nil - } return res } // GetPhoneNumbers gets the phoneNumbers property value. The phoneNumbers property @@ -81,17 +70,6 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) } return nil } -// GetRemindBeforeTimeInMinutesType gets the remindBeforeTimeInMinutesType property value. The remindBeforeTimeInMinutesType property -func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) GetRemindBeforeTimeInMinutesType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) { - val, err := m.GetBackingStore().Get("remindBeforeTimeInMinutesType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) - } - return nil -} // Serialize serializes information the current object func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetPhoneNumbers() != nil { @@ -100,13 +78,6 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) return err } } - if m.GetRemindBeforeTimeInMinutesType() != nil { - cast := (*m.GetRemindBeforeTimeInMinutesType()).String() - err := writer.WriteStringValue("remindBeforeTimeInMinutesType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -133,13 +104,6 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) panic(err) } } -// SetRemindBeforeTimeInMinutesType sets the remindBeforeTimeInMinutesType property value. The remindBeforeTimeInMinutesType property -func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBody) SetRemindBeforeTimeInMinutesType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)() { - err := m.GetBackingStore().Set("remindBeforeTimeInMinutesType", value) - if err != nil { - panic(err) - } -} // ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable type ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -147,8 +111,6 @@ type ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetPhoneNumbers()([]string) - GetRemindBeforeTimeInMinutesType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetPhoneNumbers(value []string)() - SetRemindBeforeTimeInMinutesType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemindBeforeTimeInMinutesType)() } diff --git a/users/item_online_meetings_item_send_virtual_appointment_sms_post_request_body.go b/users/item_online_meetings_item_send_virtual_appointment_sms_post_request_body.go index 760803d7d71..9e528a4a44a 100644 --- a/users/item_online_meetings_item_send_virtual_appointment_sms_post_request_body.go +++ b/users/item_online_meetings_item_send_virtual_appointment_sms_post_request_body.go @@ -2,7 +2,6 @@ package users import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -58,16 +57,6 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetFiel } return nil } - res["smsType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseVirtualAppointmentSmsType) - if err != nil { - return err - } - if val != nil { - m.SetSmsType(val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)) - } - return nil - } return res } // GetPhoneNumbers gets the phoneNumbers property value. The phoneNumbers property @@ -81,17 +70,6 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetPhon } return nil } -// GetSmsType gets the smsType property value. The smsType property -func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) GetSmsType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) { - val, err := m.GetBackingStore().Get("smsType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) - } - return nil -} // Serialize serializes information the current object func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetPhoneNumbers() != nil { @@ -100,13 +78,6 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) Seriali return err } } - if m.GetSmsType() != nil { - cast := (*m.GetSmsType()).String() - err := writer.WriteStringValue("smsType", &cast) - if err != nil { - return err - } - } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -133,13 +104,6 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) SetPhon panic(err) } } -// SetSmsType sets the smsType property value. The smsType property -func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBody) SetSmsType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)() { - err := m.GetBackingStore().Set("smsType", value) - if err != nil { - panic(err) - } -} // ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable type ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder @@ -147,8 +111,6 @@ type ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable interfac i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetPhoneNumbers()([]string) - GetSmsType()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetPhoneNumbers(value []string)() - SetSmsType(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualAppointmentSmsType)() } diff --git a/users/item_planner_plans_item_archive_post_request_body.go b/users/item_planner_plans_item_archive_post_request_body.go new file mode 100644 index 00000000000..b7cc97495a2 --- /dev/null +++ b/users/item_planner_plans_item_archive_post_request_body.go @@ -0,0 +1,110 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPlannerPlansItemArchivePostRequestBody +type ItemPlannerPlansItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPlannerPlansItemArchivePostRequestBody instantiates a new ItemPlannerPlansItemArchivePostRequestBody and sets the default values. +func NewItemPlannerPlansItemArchivePostRequestBody()(*ItemPlannerPlansItemArchivePostRequestBody) { + m := &ItemPlannerPlansItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPlannerPlansItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPlannerPlansItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPlannerPlansItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *ItemPlannerPlansItemArchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPlannerPlansItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *ItemPlannerPlansItemArchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// ItemPlannerPlansItemArchivePostRequestBodyable +type ItemPlannerPlansItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/users/item_planner_plans_item_archive_request_builder.go b/users/item_planner_plans_item_archive_request_builder.go new file mode 100644 index 00000000000..5f3434dca58 --- /dev/null +++ b/users/item_planner_plans_item_archive_request_builder.go @@ -0,0 +1,66 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemArchiveRequestBuilder provides operations to call the archive method. +type ItemPlannerPlansItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemArchiveRequestBuilderInternal instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemArchiveRequestBuilder) { + m := &ItemPlannerPlansItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/archive", pathParameters), + } + return m +} +// NewItemPlannerPlansItemArchiveRequestBuilder instantiates a new ArchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action archive +func (m *ItemPlannerPlansItemArchiveRequestBuilder) Post(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action archive +func (m *ItemPlannerPlansItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPlannerPlansItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemArchiveRequestBuilder) { + return NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_planner_plans_item_unarchive_post_request_body.go b/users/item_planner_plans_item_unarchive_post_request_body.go new file mode 100644 index 00000000000..e898e3e3c2d --- /dev/null +++ b/users/item_planner_plans_item_unarchive_post_request_body.go @@ -0,0 +1,110 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ItemPlannerPlansItemUnarchivePostRequestBody +type ItemPlannerPlansItemUnarchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPlannerPlansItemUnarchivePostRequestBody instantiates a new ItemPlannerPlansItemUnarchivePostRequestBody and sets the default values. +func NewItemPlannerPlansItemUnarchivePostRequestBody()(*ItemPlannerPlansItemUnarchivePostRequestBody) { + m := &ItemPlannerPlansItemUnarchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPlannerPlansItemUnarchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateItemPlannerPlansItemUnarchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPlannerPlansItemUnarchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJustification(val) + } + return nil + } + return res +} +// GetJustification gets the justification property value. The justification property +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) GetJustification()(*string) { + val, err := m.GetBackingStore().Get("justification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("justification", m.GetJustification()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetJustification sets the justification property value. The justification property +func (m *ItemPlannerPlansItemUnarchivePostRequestBody) SetJustification(value *string)() { + err := m.GetBackingStore().Set("justification", value) + if err != nil { + panic(err) + } +} +// ItemPlannerPlansItemUnarchivePostRequestBodyable +type ItemPlannerPlansItemUnarchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetJustification()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetJustification(value *string)() +} diff --git a/users/item_planner_plans_item_unarchive_request_builder.go b/users/item_planner_plans_item_unarchive_request_builder.go new file mode 100644 index 00000000000..2bf7dea0509 --- /dev/null +++ b/users/item_planner_plans_item_unarchive_request_builder.go @@ -0,0 +1,66 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemPlannerPlansItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemUnarchiveRequestBuilderInternal instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + m := &ItemPlannerPlansItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemPlannerPlansItemUnarchiveRequestBuilder instantiates a new UnarchiveRequestBuilder and sets the default values. +func NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unarchive +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) Post(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unarchive +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + return NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_planner_plans_planner_plan_item_request_builder.go b/users/item_planner_plans_planner_plan_item_request_builder.go index c346f616f03..749848bbc35 100644 --- a/users/item_planner_plans_planner_plan_item_request_builder.go +++ b/users/item_planner_plans_planner_plan_item_request_builder.go @@ -41,6 +41,10 @@ type ItemPlannerPlansPlannerPlanItemRequestBuilderPatchRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Archive()(*ItemPlannerPlansItemArchiveRequestBuilder) { + return NewItemPlannerPlansItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Buckets provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Buckets()(*ItemPlannerPlansItemBucketsRequestBuilder) { return NewItemPlannerPlansItemBucketsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) @@ -161,6 +165,10 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToPatchRequestInformatio } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Unarchive()(*ItemPlannerPlansItemUnarchiveRequestBuilder) { + return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansPlannerPlanItemRequestBuilder) { return NewItemPlannerPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_presence_request_builder.go b/users/item_presence_request_builder.go index 8f89f4f1aad..380cd30aed9 100644 --- a/users/item_presence_request_builder.go +++ b/users/item_presence_request_builder.go @@ -18,7 +18,7 @@ type ItemPresenceRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemPresenceRequestBuilderGetQueryParameters set a presence status message for a user. An optional expiration date and time can be supplied. +// ItemPresenceRequestBuilderGetQueryParameters get a user's presence information. type ItemPresenceRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -78,10 +78,10 @@ func (m *ItemPresenceRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get set a presence status message for a user. An optional expiration date and time can be supplied. +// Get get a user's presence information. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0 func (m *ItemPresenceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemPresenceRequestBuilder) ToDeleteRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation set a presence status message for a user. An optional expiration date and time can be supplied. +// ToGetRequestInformation get a user's presence information. func (m *ItemPresenceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { diff --git a/users/item_teamwork_request_builder.go b/users/item_teamwork_request_builder.go index 8897b3ca638..2ac47ea36bf 100644 --- a/users/item_teamwork_request_builder.go +++ b/users/item_teamwork_request_builder.go @@ -18,7 +18,7 @@ type ItemTeamworkRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemTeamworkRequestBuilderGetQueryParameters a container for Microsoft Teams features available for the user. Read-only. Nullable. +// ItemTeamworkRequestBuilderGetQueryParameters get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user. type ItemTeamworkRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,10 @@ func (m *ItemTeamworkRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get a container for Microsoft Teams features available for the user. Read-only. Nullable. +// Get get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/userteamwork-get?view=graph-rest-1.0 func (m *ItemTeamworkRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserTeamworkable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +133,7 @@ func (m *ItemTeamworkRequestBuilder) ToDeleteRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation a container for Microsoft Teams features available for the user. Read-only. Nullable. +// ToGetRequestInformation get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user. func (m *ItemTeamworkRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil {